/* Home page dashboard tour: a sticky 3D panel that changes screen as you scroll.
   Panel styles mirror dashboard.html so it looks like the real thing. */
.tour {
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --e: cubic-bezier(.2, .7, .2, 1);
  position: relative; background: #060709;
}
.tour-intro { padding: 150px var(--gutter) 0; text-align: center; }
.tour-intro h2 { margin-top: 22px; font-size: clamp(34px, 3.8vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
.tour-intro h2 span { display: block; color: #a9a9ad; }
.tour-intro p { max-width: 560px; margin: 20px auto 0; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.66); }

.tour-track { position: relative; height: calc(var(--n) * 70vh + 100vh); }
.tour-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter);
}

/* left column */
.tour-steps { list-style: none; border-left: 1px solid rgba(255,255,255,.1); }
.tour-steps button {
  position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 9px 0 9px 20px; text-align: left;
  font-size: 15px; color: rgba(255,255,255,.42); transition: color .3s;
}
.tour-steps button small { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.3); }
.tour-steps button::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: #fff;
  transform: scaleY(var(--f, 0)); transform-origin: top;
}
.tour-steps button:hover { color: rgba(255,255,255,.75); }
.tour-steps button.on { color: #fff; }
.tour-steps button.done::before { transform: scaleY(1); background: rgba(255,255,255,.35); }
.tour-desc { margin-top: 36px; }
.tour-desc .num { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.4); }
.tour-desc h3 { margin-top: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.tour-desc p { margin-top: 8px; min-height: 76px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.62); }
.tour-desc .fade { transition: opacity .3s, transform .3s; }
.tour-desc.swap .fade { opacity: 0; transform: translateY(6px); }
.tour-copy .btn { margin-top: 22px; }

/* right column: 3D stack */
.tour-view { position: relative; height: min(80vh, 760px); display: flex; align-items: center; justify-content: center; perspective: 1900px; }
.tour-view::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 2%; height: 30%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(61,107,255,.2), transparent 70%); filter: blur(20px);
}
.tour-fit { position: relative; flex: none; }
.tour-in, .tour-tilt, .p-scale { transform-style: preserve-3d; }
.tour-in { position: absolute; inset: 0; will-change: transform, opacity; }
.tour-tilt { position: absolute; inset: 0; transition: transform 1.1s var(--e); }
.p-scale { position: absolute; top: 0; left: 0; width: 1100px; height: 684px; transform-origin: 0 0; }

/* ---------- the panel ---------- */
.pn {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #08090b;
  color: #ececee; font: 12.5px/1.5 "Inter", system-ui, sans-serif; text-align: left;
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(61,107,255,.05);
}
.pn button { cursor: default; }
.p-bar { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: #0b0c10; }
.p-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
.p-bar span { margin: 0 auto; padding: 2px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; font-family: var(--mono); font-size: 11px; color: rgba(236,236,238,.38); transform: translateX(-20px); }
.p-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); }

.p-side { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.07); background: #0a0b0e; }
.p-side .logo { display: block; height: 19px; width: auto; margin: 16px 16px 12px; }
.p-srv { display: flex; align-items: center; gap: 8px; margin: 0 9px 4px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 5px; }
.p-srv i { width: 6px; height: 6px; border-radius: 50%; background: #4fb07f; }
.p-srv b { font-weight: 500; }
.p-srv small { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: rgba(236,236,238,.38); }
.p-nav { padding: 0 9px; }
.p-nav h6 { margin: 12px 7px 4px; font-size: 10.5px; font-weight: 500; color: rgba(236,236,238,.38); }
.p-nav a { display: flex; align-items: center; gap: 9px; height: 27px; padding: 0 7px; border-radius: 4px; color: rgba(236,236,238,.56); transition: background .3s, color .3s; }
.p-nav a.on { background: rgba(255,255,255,.055); color: #fff; }
.p-nav svg, .p-ic { width: 13px; height: 13px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-nav a b { margin-left: auto; font-weight: 400; color: #ececee; }
.p-me { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.07); line-height: 1.3; }
.p-av { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #23262d; font-size: 10px; font-weight: 600; color: #fff; }
.p-me small { display: block; font-size: 10.5px; color: rgba(236,236,238,.38); }

.p-main { position: relative; min-width: 0; display: flex; flex-direction: column; }
.p-top { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(236,236,238,.38); }
.p-top b { font-weight: 500; color: #ececee; }
.p-search { display: flex; align-items: center; gap: 7px; width: 220px; height: 27px; margin-left: auto; padding: 0 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 5px; background: #0e1014; font-size: 12px; white-space: nowrap; }
.p-search kbd { margin-left: auto; padding: 0 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; font-family: var(--mono); font-size: 9.5px; }
.p-bell { position: relative; display: grid; place-items: center; width: 27px; height: 27px; color: rgba(236,236,238,.56); }
.p-bell i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: #e5645e; }

/* screens */
.p-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.p-scr {
  position: absolute; inset: 0; padding: 18px 20px; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s, transform .5s var(--e), visibility 0s .5s;
}
.p-scr.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .12s, transform .7s var(--e) .12s, visibility 0s; }
.p-scr .st { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--e); }
.p-scr.on .st { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--e); transition-delay: calc(.2s + var(--k, 0) * 70ms); }

.p-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p-ph h4 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.p-ph p { margin-top: 1px; color: rgba(236,236,238,.56); }
.p-ph .acts { display: flex; align-items: center; gap: 8px; }
.p-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(236,236,238,.56); }
.p-live i { width: 6px; height: 6px; border-radius: 50%; background: #4fb07f; }
.p-btn { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #12151a; font-size: 12px; font-weight: 500; white-space: nowrap; color: #ececee; }
.p-btn.pri { background: #ececee; border-color: #ececee; color: #0b0b0c; }
.p-btn.red { color: #e5645e; }
.p-btn.sm { height: 23px; padding: 0 8px; font-size: 11.5px; }

.p-pan { border: 1px solid rgba(255,255,255,.07); border-radius: 4px; background: #0e1014; min-width: 0; overflow: hidden; }
.p-pan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; padding: 0 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.p-pan-h h5 { font-size: 12px; font-weight: 500; }
.p-pan-h small { font-size: 11px; color: rgba(236,236,238,.56); }
.p-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.p-kpis > div { padding: 11px 14px 12px; background: #0e1014; }
.p-kpis > div > span { font-size: 11px; color: rgba(236,236,238,.56); }
.p-kpis strong { display: block; margin-top: 2px; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.p-kpis strong small { font-size: 11.5px; font-weight: 400; color: rgba(236,236,238,.38); }
.p-kpis em { display: block; font-style: normal; font-size: 11px; color: rgba(236,236,238,.38); }
.p-kpis em.down { color: #4fb07f; }
.p-g2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }

.p-legend { display: flex; gap: 10px; font-size: 10.5px; color: rgba(236,236,238,.56); }
.p-legend span { display: inline-flex; align-items: center; gap: 5px; }
.p-legend i { width: 7px; height: 7px; border-radius: 1px; }
.p-chart-wrap { position: relative; padding: 14px 13px 10px 32px; }
.p-grid { position: absolute; inset: 14px 13px 28px 32px; display: flex; flex-direction: column; justify-content: space-between; }
.p-grid span { position: relative; border-top: 1px dashed rgba(255,255,255,.05); }
.p-grid span::before { content: attr(data-v); position: absolute; left: -22px; top: -7px; font-family: var(--mono); font-size: 9.5px; color: rgba(236,236,238,.38); }
.p-chart { position: relative; display: flex; align-items: flex-end; height: 118px; }
.p-chart i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; height: 100%; transform: scaleY(0); transform-origin: bottom; transition: transform .3s; }
.p-scr.on .p-chart i { transform: scaleY(1); transition: transform .9s var(--e); transition-delay: calc(.35s + var(--i) * 22ms); }
.p-chart b { display: block; margin: 0 18%; }
.p-chart .f { background: #2e3138; } .p-chart .bl { background: #4a4e57; } .p-chart .k { background: #767a84; } .p-chart .bn { background: #d9605a; }
.p-x { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 9.5px; color: rgba(236,236,238,.38); }
.p-rank { padding: 6px 13px; }
.p-rank div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 3px 0; }
.p-rank span { color: rgba(236,236,238,.82); }
.p-rank b { font-weight: 400; color: rgba(236,236,238,.56); font-variant-numeric: tabular-nums; }
.p-rank u { grid-column: 1 / -1; display: block; height: 2px; background: rgba(255,255,255,.05); text-decoration: none; }
.p-rank u i { display: block; height: 100%; width: 0; background: #6f737c; transition: width .3s; }
.p-scr.on .p-rank u i { width: var(--w); transition: width 1s var(--e) .4s; }

/* tables */
.p-tbl { width: 100%; border-collapse: collapse; }
.p-tbl th { height: 30px; padding: 0 12px; text-align: left; font-size: 11px; font-weight: 500; color: rgba(236,236,238,.38); border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.p-tbl td { height: 33px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.p-tbl tr:last-child td { border-bottom: 0; }
.p-tbl .r { text-align: right; }
.p-tbl .m { color: rgba(236,236,238,.56); font-variant-numeric: tabular-nums; }
.p-tbl .id { font-family: var(--mono); font-size: 11px; color: rgba(236,236,238,.38); }
.p-tbl .mo { font-family: var(--mono); font-size: 11px; }
.p-tbl small { margin-left: 5px; color: rgba(236,236,238,.38); }
.p-tbl tr.sel td { background: rgba(255,255,255,.045); }
.p-tbl tr.fresh td { animation: pFresh 2.2s ease-out; }
@keyframes pFresh { from { background: rgba(255,255,255,.07); } to { background: transparent; } }
.p-act { display: inline-flex; align-items: center; gap: 6px; color: rgba(236,236,238,.82); white-space: nowrap; }
.p-act::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 1px; background: var(--c, #84868d); }
.p-act.ban { --c: #e5645e; color: #ececee; } .p-act.kick { --c: #d4a24a; } .p-act.block { --c: #8a94b8; } .p-act.flag { --c: #84868d; color: rgba(236,236,238,.56); }
.p-act.ok { --c: #4fb07f; } .p-act.off { --c: rgba(255,255,255,.18); color: rgba(236,236,238,.38); }
.p-dot { display: inline-flex; align-items: center; gap: 6px; }
.p-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #4fb07f); }
.p-risk { display: inline-flex; gap: 2px; vertical-align: -1px; }
.p-risk i { width: 4px; height: 11px; border-radius: 1px; background: rgba(255,255,255,.12); }
.p-risk.r1 i:nth-child(-n+1) { background: #4fb07f; }
.p-risk.r2 i:nth-child(-n+2) { background: #d4a24a; }
.p-risk.r3 i:nth-child(-n+3) { background: #e5645e; }

/* toolbar bits */
.p-bar2 { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.p-bar2 .sp { flex: 1; }
.p-inp { display: flex; align-items: center; gap: 7px; height: 27px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #08090b; color: rgba(236,236,238,.38); white-space: nowrap; }
.p-inp.w { width: 230px; }
.p-sel { display: flex; align-items: center; gap: 18px; height: 27px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #08090b; white-space: nowrap; }
.p-sel::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border-right: 1.3px solid #888; border-bottom: 1.3px solid #888; transform: rotate(45deg); }
.p-seg { display: inline-flex; padding: 2px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; background: #08090b; }
.p-seg span { height: 21px; padding: 0 9px; border-radius: 3px; line-height: 21px; font-size: 11.5px; color: rgba(236,236,238,.56); }
.p-seg span.on { background: rgba(255,255,255,.1); color: #fff; }
.p-seg small { margin-left: 4px; font-family: var(--mono); font-size: 10px; color: rgba(236,236,238,.38); }
.p-tabs { display: flex; gap: 2px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.p-tabs span { position: relative; height: 32px; padding: 0 11px; line-height: 32px; color: rgba(236,236,238,.56); }
.p-tabs span.on { color: #fff; }
.p-tabs span.on::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: -1px; height: 2px; background: #fff; }
.p-tabs small { margin-left: 5px; font-family: var(--mono); font-size: 10.5px; color: rgba(236,236,238,.38); }
.p-tgl { position: relative; display: inline-block; width: 26px; height: 15px; flex: none; border-radius: 8px; background: rgba(255,255,255,.14); vertical-align: middle; }
.p-tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfd0d4; transition: transform .3s; }
.p-tgl.on { background: #ececee; }
.p-tgl.on::after { transform: translateX(11px); background: #0b0b0c; }

/* detection log drawer */
.p-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .4s; }
.p-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; border-left: 1px solid rgba(255,255,255,.12); background: #0e1014; transform: translateX(102%); transition: transform .5s var(--e); }
.p-scr.on .p-scrim { opacity: 1; transition-delay: .9s; }
.p-scr.on .p-drawer { transform: none; transition: transform .7s var(--e) .9s; }
.p-dr-h { padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.p-dr-h h5 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.p-dr-h p { margin-top: 2px; color: rgba(236,236,238,.56); }
.p-dr-b { padding: 14px 16px; }
.p-kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; }
.p-kv dt { color: rgba(236,236,238,.56); }
.p-kv dd { font-family: var(--mono); font-size: 11px; }
.p-sec { margin: 16px 0 7px; font-size: 11px; font-weight: 500; color: rgba(236,236,238,.38); }
.p-box { padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; background: #08090b; }
.p-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }

/* appeals */
.p-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; }
.p-list { border-right: 1px solid rgba(255,255,255,.07); }
.p-ap { padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.p-ap.on { background: rgba(255,255,255,.05); }
.p-ap > div { display: flex; justify-content: space-between; gap: 8px; }
.p-ap b { font-weight: 500; }
.p-ap p { margin-top: 3px; color: rgba(236,236,238,.56); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-ap small { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(236,236,238,.38); }
.p-det { padding: 15px 18px; min-width: 0; }
.p-det h5 { font-size: 14px; font-weight: 600; }
.p-msg { margin-top: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px; background: #08090b; line-height: 1.6; color: rgba(236,236,238,.82); }
.p-msg header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 11px; color: rgba(236,236,238,.38); }
.p-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.p-chip { padding: 2px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; background: #08090b; font-family: var(--mono); font-size: 10.5px; color: rgba(236,236,238,.82); }
.p-reply { height: 54px; margin-top: 4px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 4px; background: #08090b; color: rgba(236,236,238,.38); }
.p-typed { color: #ececee; }
.p-typed::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: #ececee; animation: pBlink 1s steps(1) infinite; }
@keyframes pBlink { 50% { opacity: 0; } }

/* detections config */
.p-cfg-h, .p-cfg { display: grid; grid-template-columns: 34px 1.5fr 120px 90px 1fr; gap: 12px; align-items: center; padding: 0 13px; }
.p-cfg-h { height: 30px; font-size: 11px; color: rgba(236,236,238,.38); border-bottom: 1px solid rgba(255,255,255,.07); }
.p-cfg { height: 38px; border-bottom: 1px solid rgba(255,255,255,.07); transition: background .4s; }
.p-cfg:last-child { border-bottom: 0; }
.p-cfg b { font-weight: 500; }
.p-cfg .key { margin-left: 7px; font-family: var(--mono); font-size: 10.5px; color: rgba(236,236,238,.38); }
.p-cfg.dis b, .p-cfg.dis .p-sel, .p-cfg.dis .p-inp { opacity: .45; }
.p-cfg.dirty { background: rgba(255,255,255,.035); }
.p-cfg .p-sel { justify-content: space-between; }
.p-cfg .p-inp { color: #ececee; font-variant-numeric: tabular-nums; }
.p-spark { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.p-spark i { width: 4px; background: #4a4e57; border-radius: 1px 1px 0 0; }
.p-save {
  position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: #15181d; box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transform: translateY(70px); transition: transform .4s var(--e);
}
.p-save > span:first-child { flex: 1; }
.p-scr.on .p-save { transform: none; transition: transform .7s var(--e) 1s; }

/* webhooks */
.p-hooks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p-hook .p-pan-h h5 { display: flex; align-items: center; gap: 7px; }
.p-hook .hash { color: rgba(236,236,238,.38); font-weight: 400; }
.p-hook-b { padding: 12px 13px; }
.p-hook-b label { display: block; margin-bottom: 5px; font-size: 11px; color: rgba(236,236,238,.56); }
.p-hook-b .p-inp { font-family: var(--mono); font-size: 10.5px; overflow: hidden; }
.p-hook-b .p-inp.ok { color: rgba(236,236,238,.82); }
.p-checks { display: flex; gap: 12px; margin-top: 11px; font-size: 11.5px; color: rgba(236,236,238,.82); }
.p-checks span { display: inline-flex; align-items: center; gap: 5px; }
.p-checks i { width: 11px; height: 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; }
.p-checks i.y { background: #ececee; border-color: #ececee; box-shadow: inset 0 0 0 2px #0e1014; }
.p-dc { display: grid; grid-template-columns: 28px 1fr; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 4px; background: #1e1f24; }
.p-dc .bot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2b2d33; }
.p-dc .bot img { width: 17px; height: auto; }
.p-dc header { font-size: 12px; font-weight: 600; }
.p-dc header em { margin-left: 4px; padding: 0 4px; border-radius: 3px; background: #5865f2; font-style: normal; font-size: 9px; font-weight: 600; vertical-align: 1px; }
.p-dc header small { margin-left: 6px; font-size: 10px; font-weight: 400; color: rgba(236,236,238,.38); }
.p-embed { margin-top: 5px; padding: 8px 10px; border-left: 3px solid var(--c); border-radius: 3px; background: #26272d; font-size: 11px; }
.p-embed b { display: block; font-size: 11.5px; font-weight: 600; }
.p-embed dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 5px; }
.p-embed dt { font-weight: 600; font-size: 10.5px; }
.p-embed dd { color: rgba(236,236,238,.72); }
.p-embed footer { margin-top: 6px; font-size: 9.5px; color: rgba(236,236,238,.4); }
.p-off { display: grid; place-items: center; height: 186px; margin-top: 13px; border: 1px dashed rgba(255,255,255,.1); border-radius: 4px; color: rgba(236,236,238,.38); text-align: center; }

/* toast floats in front of the panel in 3D */
.p-toast {
  position: absolute; right: -26px; bottom: 34px; display: flex; align-items: center; gap: 9px; min-width: 250px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 7px; background: #181b21; color: #ececee;
  font: 12.5px/1.4 "Inter", system-ui, sans-serif; box-shadow: 0 24px 50px rgba(0,0,0,.6);
  opacity: 0; transform: translateZ(90px) translateY(16px); transition: opacity .3s, transform .3s;
}
.p-toast svg { width: 14px; height: 14px; flex: none; stroke: #4fb07f; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-toast.show { opacity: 1; transform: translateZ(90px); transition: opacity .5s, transform .8s var(--e); }

/* ---------- smaller screens: narrower panel, no sidebar ---------- */
@media (max-width: 1100px) {
  .tour-stage { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .tour-intro { padding-top: 110px; }
  .tour-track { height: calc(var(--n) * 60svh + 100svh); }
  .tour-stage { height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 22px; }
  .tour-steps, .tour-copy .btn { display: none; }
  .tour-desc { margin-top: 0; }
  .tour-desc h3 { font-size: 19px; }
  .tour-desc p { min-height: 72px; font-size: 14px; }
  .tour-view { height: auto; }
  .p-scale { width: 760px; }
  .p-body { grid-template-columns: 1fr; }
  .p-side, .p-search, .hm { display: none; }
  .p-hooks { grid-template-columns: 1fr 1fr; }
  .p-drawer { width: 300px; }
  .p-split { grid-template-columns: 220px minmax(0, 1fr); }
  .p-toast { right: 10px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-in, .tour-tilt { transform: none !important; transition: none; }
  .p-scr, .p-scr .st, .p-chart i, .p-drawer, .p-save, .p-toast { transition: none !important; }
}
