/* =========================================================
   Product demo: Chrome window → X timeline → Argus side panel.
   Scroll-driven (see initDemo in main.js). The canvas is laid out
   at a fixed size and scaled to fit, so X stays 1:1.
   ========================================================= */
.demo-section { padding-top: clamp(90px, 11vw, 150px); }
.demo-scroll { position: relative; height: 480vh; }
.demo-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; padding: 76px 0 14px; overflow: hidden;
}
.demo-top { flex: none; margin-bottom: 14px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo-steps li {
  display: flex; align-items: center; gap: 10px; padding: 0 0 12px;
  font: 500 12.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--ivory-3); transition: color .3s;
}
.demo-steps b { font-weight: 500; color: var(--ivory-3); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 3px; transition: all .3s; }
.demo-steps li.on { color: var(--ivory); }
.demo-steps li.on b { color: #fff; background: var(--violet); border-color: var(--violet); box-shadow: 0 0 14px var(--violet-glow); }
.demo-progress { height: 1px; background: var(--line-2); }
.demo-progress i { display: block; height: 100%; width: 0; background: var(--violet-hi); box-shadow: 0 0 10px var(--violet-hi); }
.demo-stage { position: relative; flex: 1; min-height: 0; }
.demo-canvas { position: absolute; left: 50%; top: 50%; width: 1280px; height: 780px; transform: translate(-50%, -50%) scale(var(--s, .8)); }
.demo-note { flex: none; margin: 10px 0 0; text-align: center; font: 400 11.5px var(--mono); color: var(--ivory-3); }

/* ---------------- Chrome window ---------------- */
.chrome {
  --frame: #1f1f22; --tool: #2c2c30; --omni: #1a1a1d; --ctext: #e3e3e3; --cicon: #b9bcc0;
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--frame); border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 120px -30px rgba(0,0,0,.9), 0 0 120px -30px rgba(122, 60, 240, .55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: 0;
}
.chrome svg { width: 18px; height: 18px; stroke-width: 1.8; }
.ch-tabs { flex: none; height: 40px; display: flex; align-items: flex-end; gap: 4px; padding: 0 10px; }
.ch-lights { display: flex; gap: 8px; align-self: center; margin: 0 14px 0 4px; }
.ch-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.ch-lights i:nth-child(2) { background: #febc2e; }
.ch-lights i:nth-child(3) { background: #28c840; }
.ch-tab {
  position: relative; height: 32px; width: 240px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px;
  background: var(--tool); border-radius: 9px 9px 0 0; color: var(--ctext); font-size: 12.5px;
}
.ch-tab .x-logo { width: 14px; height: 14px; fill: #fff; stroke: none; }
.ch-tab span { flex: 1; }
.ch-tab .ch-x { width: 14px; height: 14px; color: var(--cicon); }
.ch-plus { height: 32px; display: grid; place-items: center; padding: 0 8px; color: var(--cicon); }
.ch-toolbar { flex: none; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--tool); }
.ch-navs { display: flex; gap: 14px; color: var(--cicon); padding: 0 6px; }
.ch-navs .off { opacity: .35; }
.ch-omni { flex: 1; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; background: var(--omni); color: var(--ctext); font-size: 13.5px; }
.ch-omni svg { width: 16px; height: 16px; color: var(--cicon); }
.ch-omni span { flex: 1; }
.ch-ext { display: flex; align-items: center; gap: 12px; color: var(--cicon); padding-right: 4px; }
.ch-argus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.ch-argus img { width: 18px; height: 18px; border-radius: 50%; }
.chrome.panel-open .ch-argus { background: rgba(255,255,255,.12); }
.chrome.panel-open .ch-sp { color: #a8c7fa; }
.ch-avatar { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 90deg, #7a3cf0, #f3ecdf, #4b16c2, #7a3cf0); }
.ch-body { position: relative; flex: 1; min-height: 0; display: flex; background: var(--tool); }
.ch-page { position: relative; flex: 1; min-width: 0; background: #000; overflow: hidden; }

/* ---------------- Chrome side panel ---------------- */
.ch-side { flex: none; width: 0; overflow: hidden; background: var(--tool); transition: width .6s var(--ease-out); }
.chrome.panel-open .ch-side { width: 390px; }
.ch-side-in { width: 390px; height: 100%; display: flex; flex-direction: column; padding: 0 8px 8px 8px; }
.ch-side-head { flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 6px; color: var(--ctext); }
.ch-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 4px 8px; border-radius: 6px; }
.ch-sel img { width: 16px; height: 16px; border-radius: 50%; }
.ch-sel svg { width: 14px; height: 14px; color: var(--cicon); }
.ch-sh-r { display: flex; gap: 12px; color: var(--cicon); }
.ch-sh-r svg { width: 16px; height: 16px; }

/* ---------------- X (dark) ---------------- */
.x-app {
  --xb: #2f3336; --xt: #e7e9ea; --xm: #71767b; --blue: #1d9bf0;
  height: 100%; display: flex; justify-content: center; color: var(--xt); font-size: 15px; line-height: 20px;
}
.x-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; }
.av-me { background: radial-gradient(circle at 35% 30%, #c9b2ff, #7a3cf0 55%, #2b0f6b); }
.av-1 { background: radial-gradient(circle at 30% 30%, #8ff0c4, #0f7a52 60%, #052b1d); }
.av-2 { background: radial-gradient(circle at 30% 30%, #ffd9a1, #c96a1a 60%, #3d1a04); }
.av-3 { background: radial-gradient(circle at 50% 35%, #2a5a46 0%, #0c2c2a 45%, #0b0a1a 80%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); position: relative; }
.av-3::after { content: "🌙"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.av-4 { background: radial-gradient(circle at 30% 30%, #a9c8ff, #2f5fd0 60%, #0a1b48); }
.av-5 { background: radial-gradient(circle at 30% 30%, #ffb3c4, #b8325b 60%, #3a0716); }

/* left nav */
.x-nav { position: relative; width: 275px; flex: none; padding: 0 12px 0 8px; display: flex; flex-direction: column; align-items: flex-start; transition: width .5s var(--ease-out); }
.x-mark { width: 52px; height: 52px; display: grid; place-items: center; }
.x-mark svg, .x-mtop svg { width: 30px; height: 30px; fill: var(--xt); stroke: none; }
.x-nav a { display: flex; align-items: center; gap: 20px; padding: 11px 12px; border-radius: 999px; font-size: 20px; line-height: 24px; color: var(--xt); white-space: nowrap; }
.x-nav a svg { width: 26px; height: 26px; stroke-width: 1.9; }
.x-nav a.act { font-weight: 700; }
.x-postbtn { margin-top: 14px; width: 233px; height: 52px; border-radius: 999px; background: #eff3f4; color: #0f1419; display: grid; place-items: center; font-size: 17px; font-weight: 700; transition: width .5s var(--ease-out); }
.x-me { position: absolute; left: 8px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 999px; }
.x-me b { display: block; font-size: 15px; }
.x-me small { color: var(--xm); font-size: 15px; }

/* timeline */
.x-main { width: 600px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--xb); border-right: 1px solid var(--xb); min-height: 0; }
.x-head { flex: none; position: relative; z-index: 2; background: rgba(0,0,0,.65); border-bottom: 1px solid var(--xb); }
.x-mtop { display: none; height: 53px; align-items: center; justify-content: space-between; padding: 0 16px; }
.x-mtop .x-av { width: 32px; height: 32px; }
.x-mtop span:last-child { width: 32px; }
.x-mtop svg { width: 24px; height: 24px; }
.x-tabs { display: flex; height: 53px; }
.x-tabs span { flex: 1; display: grid; place-items: center; color: var(--xm); font-weight: 500; position: relative; }
.x-tabs span.on { color: var(--xt); font-weight: 700; }
.x-tabs span.on::after { content: ""; position: absolute; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--blue); }
.x-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.x-scroller { will-change: transform; }
.x-compose { display: flex; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--xb); }
.x-compose > div { flex: 1; }
.x-ph { font-size: 20px; line-height: 24px; color: var(--xm); padding: 8px 0 18px; }
.x-ctools { display: flex; align-items: center; gap: 14px; color: var(--blue); padding-top: 10px; border-top: 1px solid var(--xb); }
.x-ctools svg { width: 20px; height: 20px; }
.x-cbtn { margin-left: auto; height: 36px; padding: 0 16px; border-radius: 999px; background: #eff3f4; color: #0f1419; opacity: .5; font-weight: 700; display: grid; place-items: center; }
.x-show { height: 49px; display: grid; place-items: center; color: var(--blue); border-bottom: 1px solid var(--xb); }

.xp { display: flex; gap: 8px; padding: 12px 16px 4px; border-bottom: 1px solid var(--xb); }
.xp-b { flex: 1; min-width: 0; }
.xp-h { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.xp-h b { font-weight: 700; }
.xp-h .mut { color: var(--xm); overflow: hidden; text-overflow: ellipsis; }
.vf { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--blue); position: relative; }
.vf::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.xp-dots { margin-left: auto; width: 18px; height: 4px; background: radial-gradient(circle, var(--xm) 1.6px, transparent 2px) 0 0 / 6px 4px repeat-x; }
.xp p { margin: 2px 0 0; overflow-wrap: anywhere; }
.xp-media { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--xb); aspect-ratio: 16 / 10; position: relative; }
.xp-chart { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--xb); height: 150px; position: relative; background: #060b09; }
.xp-chart svg { width: 100%; height: 100%; display: block; }
.xp-chart span { position: absolute; left: 12px; top: 10px; font-size: 12px; color: var(--xm); }
.meme { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 110%, #1d6b4b 0%, #0c2c2a 40%, #0b0a1a 75%); }
.meme-moon { position: absolute; width: 30%; aspect-ratio: 1; right: 12%; top: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fffaf0, #e8d9b8 55%, #b9a57a); box-shadow: 0 0 60px rgba(255, 240, 200, .45); }
.meme-frog { position: absolute; left: 12%; bottom: -6%; font-size: 120px; line-height: 1; transform: rotate(-6deg); filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.meme-stars { position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(1.5px 1.5px at 20% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 40%, #fff, transparent), radial-gradient(1px 1px at 8% 50%, #fff, transparent), radial-gradient(1px 1px at 52% 22%, #fff, transparent); }

/* action row (role="group" on X); Argus appends its button at the end */
.xa { display: flex; align-items: center; justify-content: space-between; height: 32px; margin: 8px 0 4px -8px; color: var(--xm); font-size: 13px; }
.xa > span { display: inline-flex; align-items: center; gap: 4px; }
.xa svg { width: 18.75px; height: 18.75px; stroke-width: 1.7; }
.xa > span:not(.xa-btn):not(.xa-r) { min-width: 60px; padding: 0 8px; }
.xa-r { gap: 12px !important; }

/* the Argus in-page button: same styles as extension/src/inpage.ts */
.xa-btn {
  position: relative; height: 34px; padding: 0 8px; border-radius: 999px; color: rgb(113, 118, 123);
  transition: background-color .15s ease, color .15s ease;
}
.xa-btn svg { width: 19px; height: 19px; }
.xa-btn.hover { background: rgba(122, 60, 240, .14); color: #a77bff; }
.xa-btn.press { transform: scale(.9); }
.xa-btn.busy svg { animation: xpulse 1s ease-in-out infinite; }
.xa-btn.busy { color: #a77bff; }
.xa-btn.done { color: #4ade9b; }
@keyframes xpulse { 50% { opacity: .35; } }
.xa-btn .tip {
  position: absolute; bottom: calc(100% + 6px); right: 0; transform: translateY(4px);
  white-space: nowrap; padding: 5px 9px; border-radius: 8px; font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #16141c; color: #f3ecdf; box-shadow: 0 0 0 1px rgba(243,236,223,.1), 0 8px 20px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.xa-btn.hover .tip { opacity: 1; transform: none; }
.xp-target { transition: background .4s; }
.xp-target.lit { background: rgba(122, 60, 240, .06); }

/* right column */
.x-side { width: 350px; flex: none; margin-left: 30px; padding-top: 6px; transition: opacity .4s, width .5s var(--ease-out), margin .5s var(--ease-out); overflow: hidden; }
.x-search { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--xb); color: var(--xm); margin-bottom: 16px; }
.x-search svg { width: 18px; height: 18px; }
.x-box { border: 1px solid var(--xb); border-radius: 16px; padding: 12px 0 0; margin-bottom: 16px; }
.x-box h4 { margin: 0; padding: 0 16px 8px; font-size: 20px; line-height: 24px; font-weight: 800; }
.x-trend { padding: 10px 16px; display: grid; }
.x-trend small { font-size: 13px; color: var(--xm); line-height: 16px; }
.x-trend b { font-weight: 700; }
.x-more { padding: 14px 16px; color: var(--blue); }
.x-follow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.x-follow > div { flex: 1; }
.x-follow b { display: block; }
.x-follow small { color: var(--xm); font-size: 15px; }
.x-fbtn { height: 32px; padding: 0 16px; border-radius: 999px; background: #eff3f4; color: #0f1419; font-size: 14px; font-weight: 700; display: grid; place-items: center; }

/* page narrows when the side panel opens: X collapses its nav and drops the right column */
.chrome.panel-open .x-nav { width: 88px; }
.chrome.panel-open .x-nav a span, .chrome.panel-open .x-me div { display: none; }
.chrome.panel-open .x-postbtn { width: 52px; font-size: 0; }
.chrome.panel-open .x-postbtn::after { content: "+"; font-size: 26px; font-weight: 500; }
.chrome.panel-open .x-side { width: 0; margin-left: 0; opacity: 0; }

/* ---------------- pointer ---------------- */
.cursor { position: absolute; left: 0; top: 0; z-index: 40; width: 28px; height: 28px; pointer-events: none; opacity: 0; will-change: transform; }
.cursor svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); stroke: none; transition: transform .12s; }
.cursor.down svg { transform: scale(.86); }
.cursor .ripple { position: absolute; left: 6px; top: 4px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid #a77bff; opacity: 0; }
.cursor.down .ripple { animation: rip .5s ease-out; }
@keyframes rip { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.4); } }

/* ---------------- Argus side panel (mirrors extension/static/sidepanel.css) ---------------- */
.ap {
  --o0: #070609; --o1: #0e0d12; --o2: #16141c; --o3: #1e1b26; --o4: #2a2634;
  --iv: #f3ecdf; --iv2: #cfc7b8; --iv3: #8f8879; --il: rgba(243,236,223,.08); --il2: rgba(243,236,223,.14);
  --vi: #7a3cf0; --vh: #a77bff; --vl: #4b16c2; --vg: rgba(122,60,240,.35); --vt: rgba(122,60,240,.12);
  --mint: #4ade9b; --mt: rgba(74,222,155,.12); --amber: #f6b24e;
  --radius: 16px; --rs: 12px; --sh: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  font: 13px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: var(--iv);
  background: radial-gradient(120% 60% at 50% -10%, rgba(122,60,240,.16), transparent 60%), var(--o0);
}
.ap svg { width: 16px; height: 16px; stroke-width: 2; }
.ap-header { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--il); background: rgba(7,6,9,.72); }
.ap-logo { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--il), 0 4px 18px var(--vg); }
.ap-wordmark { font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.ap-wordmark small { display: block; font-weight: 500; font-size: 11px; color: var(--iv3); margin-top: -2px; }
.ap-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--o2); border: 1px solid var(--il); color: var(--iv2); }
.ap-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.ap-view { flex: 1; min-height: 0; overflow: hidden; }
.ap-inner { padding: 16px 16px 8px; will-change: transform; }
.ap-busy, .ap-result { display: none; flex-direction: column; gap: 14px; }
.ap[data-state^="busy"] .ap-busy { display: flex; }
.ap[data-state="result"] .ap-result { display: flex; }
.ap-busy > *, .ap-result > * { animation: apfade .3s var(--ease) both; }
.ap-result > *:nth-child(2) { animation-delay: .06s; }
.ap-result > *:nth-child(3), .ap-result > *:nth-child(4) { animation-delay: .12s; }
@keyframes apfade { from { opacity: 0; transform: translateY(6px); } }

.ap-scan { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 6px; }
.ap-scan .orb { width: 64px; height: 64px; position: relative; }
.ap-scan .orb .ap-logo { width: 64px; height: 64px; }
.ap-scan .ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--vh); border-right-color: var(--vi); animation: apspin 1s linear infinite; }
@keyframes apspin { to { transform: rotate(360deg); } }
.ap-progress { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.ap-progress li { display: flex; align-items: center; gap: 10px; color: var(--iv3); padding: 6px 4px; }
.ap-progress .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--il2); display: grid; place-items: center; flex: none; }
.ap-progress .tick svg { width: 11px; height: 11px; color: #fff; stroke-width: 2.4; opacity: 0; }
.ap[data-state="busy1"] li[data-s="0"],
.ap[data-state="busy2"] li[data-s="1"],
.ap[data-state="busy2"] li[data-s="2"] { color: var(--iv); }
.ap[data-state="busy1"] li[data-s="0"] .tick,
.ap[data-state="busy2"] li[data-s="1"] .tick,
.ap[data-state="busy2"] li[data-s="2"] .tick { border-color: var(--vh); border-top-color: transparent; animation: apspin .8s linear infinite; }
.ap[data-state="busy2"] li[data-s="0"] { color: var(--iv2); }
.ap[data-state="busy2"] li[data-s="0"] .tick { background: var(--vi); border-color: var(--vi); }
.ap[data-state="busy2"] li[data-s="0"] .tick svg { opacity: 1; }
.ap-skeleton { height: 112px; border-radius: var(--radius); border: 1px solid var(--il); background: linear-gradient(90deg, var(--o2), var(--o3), var(--o2)); background-size: 200% 100%; animation: apshim 1.4s linear infinite; }
@keyframes apshim { to { background-position: -200% 0; } }

.ap-post { background: var(--o1); border: 1px solid var(--il); border-radius: var(--radius); padding: 12px 14px; }
.ap-post .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--iv3); margin-bottom: 6px; }
.ap-post .handle { color: var(--iv); font-weight: 600; }
.mini-chip { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--o3); color: var(--iv2); border: 1px solid var(--il); }
.ap-post .text { margin: 0; color: var(--iv2); }

.ap-verdict { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, var(--o2), var(--o1)); border: 1px solid var(--il2); box-shadow: var(--sh); }
.ap-verdict::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 0% 0%, var(--mt), transparent 60%); pointer-events: none; }
.ap-verdict .icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mt); color: var(--mint); }
.ap-verdict .icon svg { width: 22px; height: 22px; stroke-width: 2.4; }
.ap-verdict .body { position: relative; }
.ap-verdict .title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 1px 0 2px; }
.ap-verdict .headline { margin: 0; color: var(--iv2); }
.ap-sectitle { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--iv3); margin: 4px 2px -6px; }

.ap-card { position: relative; background: linear-gradient(180deg, var(--o2), var(--o1)); border: 1px solid rgba(74,222,155,.28); border-radius: var(--radius); padding: 14px; box-shadow: var(--sh); }
.card-head { display: flex; gap: 12px; align-items: center; }
.ap-card .avatar { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 50% 120%, #1d6b4b, #0b0a1a); box-shadow: 0 0 0 1px var(--il); }
.ap-card .name { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.ap-card .ticker { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--vt); color: var(--vh); vertical-align: 1px; }
.ap-card .badges { display: flex; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--iv3); }
.ap-card .badge { display: inline-flex; align-items: center; gap: 4px; }
.ap-card .badge.ok { color: var(--mint); }
.ap-card .badge svg { width: 12px; height: 12px; stroke-width: 2.4; }
.ap-card .desc { margin: 10px 0 0; font-size: 12px; color: var(--iv2); }
.ap-card .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ap-card .link-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--iv2); background: var(--o3); border: 1px solid var(--il); }
.ap-card .link-chip svg { width: 12px; height: 12px; color: var(--iv); }
.ap-card .mint-field { margin-top: 12px; display: flex; align-items: center; gap: 8px; background: var(--o0); border: 1px solid var(--il); border-radius: var(--rs); padding: 8px 8px 8px 12px; }
.ap-card .mint-field code { flex: 1; font: 11px/1.35 "SF Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: -.01em; color: var(--iv); overflow-wrap: anywhere; }
.ap-card .icon-btn { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--il); background: var(--o3); display: grid; place-items: center; color: var(--iv2); }
.ap-card .icon-btn svg { width: 15px; height: 15px; }
.ap-card .evidence { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.ap-card .ev { display: grid; grid-template-columns: 8px 1fr; gap: 10px; align-items: start; }
.ap-card .ev .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--vh); box-shadow: 0 0 8px var(--vg); }
.ap-card .ev .kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vh); }
.ap-card .ev .lbl { color: var(--iv2); }
.ap-card .ev .detail { display: block; font-size: 11px; color: var(--iv3); }
.ap-card .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; background: none; border: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ap-card .stat { background: var(--o0); border: 1px solid var(--il); border-radius: 10px; padding: 7px 9px; }
.ap-card .stat + .stat { border-left: 1px solid var(--il); }
.ap-card .stat .k { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--iv3); }
.ap-card .stat .v { font-weight: 700; font-size: 13px; margin-top: 1px; }
.ap-card .auths { display: flex; gap: 6px; margin-top: 10px; }
.ap-card .auth { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--mint); background: var(--mt); }
.ap-card .auth svg { width: 12px; height: 12px; }
.ap-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--iv3); }
.ap-card .ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--vh); }
.ap-card .ext svg { width: 12px; height: 12px; }
.ap-details { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--o1); border: 1px solid var(--il); font-weight: 600; color: var(--iv2); }
.ap-details svg { width: 14px; height: 14px; color: var(--iv3); }
.ap-details .count { margin-left: auto; font-size: 11px; color: var(--iv3); background: var(--o3); border-radius: 999px; padding: 1px 8px; }
.ap-meta { border-top: 1px solid var(--il); padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.prov { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--o2); border: 1px solid var(--il); color: var(--iv2); }
.prov .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.ap-foot { font-size: 11px; color: var(--iv3); text-align: center; padding-bottom: 6px; }
.ap-actions { flex: none; display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--il); opacity: 0; transition: opacity .3s; }
.ap[data-state="result"] .ap-actions { opacity: 1; }
.ap-btn { flex: 1; height: 42px; border-radius: 14px; font-weight: 700; font-size: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--vh) 0%, var(--vi) 45%, var(--vl) 100%); box-shadow: 0 8px 24px var(--vg), inset 0 1px 0 rgba(255,255,255,.25); }
.ap-btn.sec { flex: none; width: 42px; background: var(--o3); box-shadow: none; border: 1px solid var(--il2); color: var(--iv); }

/* ---------------- compact (phones): X mobile layout, panel slides over ---------------- */
.chrome.compact .ch-lights, .chrome.compact .ch-navs, .chrome.compact .ch-plus, .chrome.compact .ch-ext > svg:not(.ch-sp), .chrome.compact .ch-avatar { display: none; }
.chrome.compact .ch-tab { width: auto; flex: 1; }
.chrome.compact .x-nav, .chrome.compact .x-side { display: none; }
.chrome.compact .x-main { width: 100%; border: 0; }
.chrome.compact .x-mtop { display: flex; }
.chrome.compact .x-compose, .chrome.compact .x-show { display: none; }
.chrome.compact .ch-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; box-shadow: -20px 0 50px rgba(0,0,0,.6); }
.chrome.compact.panel-open .ch-side { width: 100%; }
.chrome.compact .ch-side-in { width: 420px; padding: 0 6px 6px; }

@media (max-width: 760px) {
  .demo-scroll { height: 420vh; }
  .demo-sticky { padding-top: 70px; }
  .demo-steps { grid-template-columns: repeat(2, 1fr); gap: 6px 12px; }
  .demo-steps li { padding-bottom: 6px; font-size: 11.5px; }
}
