/* Vela — home page additions on top of vela.css and home.css: the working
   Vela window and the interactive pieces in each section. Colours come from
   the site's theme tokens, so everything follows the theme picker. */

@font-face { font-family: "Vela Orbitron"; src: url("fonts/WLOrbit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vela Oxanium"; src: url("fonts/WLOxanium-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Vela Oxanium"; src: url("fonts/WLOxanium-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vela Oxanium"; src: url("fonts/WLOxanium-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root { --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }

/* ---- The window in the hero ---- */
.demo-stage { position: relative; margin: clamp(44px, 7vw, 76px) auto 0; }
.demo-stage .glow { width: min(1100px, 96%); height: 70%; left: 50%; top: 18%; transform: translateX(-50%); }
.demo-frame { position: relative; margin: 0 auto; width: calc(1180px * var(--s, 1)); height: calc(740px * var(--s, 1)); }
.demo-note { display: none; margin: 14px 0 0; font-size: 14px; color: var(--text-3); text-align: center; }
.demo-caption { position: relative; margin: 28px auto 0; max-width: 1180px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.try { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.try .caption-label { align-self: center; margin-right: 4px; font-size: 13px; color: var(--text-3); }
.try button {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 9px; border-radius: 99px; font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.try button:hover { background: var(--surface-2); border-color: var(--line-2); }
.try button i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; flex: none; transition: background .2s, box-shadow .2s; }
.try button.done { border-color: rgba(var(--accent-rgb), .45); }
.try button.done i { background: var(--accent); box-shadow: none; }
.try button.done i::after { content: ""; position: absolute; left: 5.5px; top: 2.5px; width: 3.5px; height: 7.5px; border: solid var(--accent-ink); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.caption-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.caption-row .theme-strip { margin: 0; }
.tour-btn svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* ---- AI Brief: feeds → one story → one line ---- */
.pipeline { display: grid; grid-template-columns: 1fr 1fr 1.35fr; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pl-step { padding: clamp(20px, 2.4vw, 30px); position: relative; min-width: 0; }
.pl-step + .pl-step { border-left: 1px solid var(--line); }
.pl-step .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-bottom: 14px; font: 700 12px/1 var(--rounded); color: var(--accent-ink); background: var(--accent); }
.pl-step h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.pl-step > p { margin: 0 0 18px; font-size: 14px; color: var(--text-2); }
.feeds { height: 236px; overflow: hidden; position: relative; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.feeds ul { list-style: none; margin: 0; padding: 0; animation: feed 26s linear infinite; }
.feeds li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.feeds li b { font-weight: 600; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); width: 100px; flex: none; overflow: hidden; text-overflow: ellipsis; }
.feeds li span { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.feeds li.hit span { color: var(--text); font-weight: 600; }
.feeds li.hit b { color: var(--accent); }
@keyframes feed { to { transform: translateY(-50%); } }
.cluster-stack { position: relative; height: 236px; }
.cluster-stack .c { position: absolute; left: 0; right: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 12px 28px -18px rgba(0,0,0,.5); font-size: 13px; transition: transform .6s var(--ease), opacity .6s; }
.cluster-stack .c small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.cluster-stack .c:nth-child(1) { top: 0; transform: rotate(-1deg); }
.cluster-stack .c:nth-child(2) { top: 72px; transform: rotate(.8deg); }
.cluster-stack .c:nth-child(3) { top: 144px; transform: rotate(-.6deg); }
.cluster-stack .c.merged { top: 64px; opacity: 0; transform: translateY(14px) scale(.96); border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .1), 0 16px 34px -18px rgba(0,0,0,.5); }
.cluster-stack .c.merged b { display: block; margin-top: 2px; font: 700 16px/1.3 var(--font-serif); color: var(--text); }
.cluster-stack .count { position: absolute; right: 10px; top: -11px; padding: 3px 9px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1.3 var(--rounded); }
.pipeline.go .cluster-stack .c:nth-child(1) { transform: translateY(72px) scale(.9); opacity: 0; }
.pipeline.go .cluster-stack .c:nth-child(2) { transform: scale(.9); opacity: 0; transition-delay: .1s; }
.pipeline.go .cluster-stack .c:nth-child(3) { transform: translateY(-72px) scale(.9); opacity: 0; transition-delay: .2s; }
.pipeline.go .cluster-stack .c.merged { opacity: 1; transform: none; transition-delay: .45s; }
.mini-cover { position: relative; height: 236px; border-radius: 24px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0d1424, #2f6db0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px -20px rgba(0,0,0,.6); }
.mini-cover .art, .mini-cover .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.84), rgba(0,0,0,.4) 50%, transparent 85%); }
.mini-cover .body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.mini-cover .badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font: 900 9.5px/1 var(--font-text); letter-spacing: .9px; background: linear-gradient(90deg, #7b61ff, #2f8cff); box-shadow: 0 0 14px rgba(47,140,255,.45); }
.mini-cover .badge .icon { width: 10px; height: 10px; }
.mini-cover .src { margin-left: 7px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.mini-cover h4 { margin: 8px 0 4px; font: 700 20px/1.18 var(--font-serif); }
.mini-cover p { margin: 0; font-size: 13px; line-height: 1.4; min-height: 36px; color: rgba(255,255,255,.9); }
.mini-cover .caret { display: inline-block; width: 2px; height: 13px; margin-left: 1px; vertical-align: -2px; background: #fff; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---- Privacy: drag between the same page with and without Vela ---- */
.compare { position: relative; height: 470px; border-radius: var(--radius); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: #fbf7f0; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0,0,0,.6); }
.compare .side { position: absolute; inset: 0; }
.compare .clean { clip-path: inset(0 0 0 var(--cut, 50%)); }
.cmp-page { position: absolute; inset: 0; background: #fbf7f0; color: #1f1f1f; font: 13.5px/1.6 var(--font-text); }
.cmp-bar { height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid #eadfcd; font-size: 12px; color: #6a6a6a; }
.cmp-bar b { color: #1f1f1f; font-size: 14px; margin-right: auto; }
.cmp-hero { height: 150px; overflow: hidden; }
.cmp-hero svg { width: 100%; height: 100%; }
.cmp-body { padding: 18px 26px; max-width: 520px; }
.cmp-body h5 { margin: 0 0 6px; font: 700 24px/1.15 var(--font-serif); color: #1f1f1f; }
.cmp-body p { margin: 0 0 10px; color: #444; }
.cmp-ad { position: absolute; right: 18px; top: 58px; width: 170px; height: 230px; border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; background: repeating-linear-gradient(135deg, #f0ece4 0 10px, #e8e2d6 10px 20px); }
.cmp-ad.wide { top: auto; bottom: 104px; left: 26px; right: 214px; width: auto; height: 60px; }
.cmp-banner { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.22); display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #1f1f1f; }
.cmp-banner b { display: block; font-size: 13.5px; }
.cmp-banner span { margin-left: auto; padding: 8px 12px; border-radius: 7px; background: #1f56c9; color: #fff; font-weight: 600; white-space: nowrap; }
.tracker { position: absolute; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font: 600 10.5px/1.2 var(--font-mono); background: #d1243a; color: #fff; box-shadow: 0 4px 10px rgba(209,36,58,.3); }
.tracker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cmp-tag { position: absolute; top: 52px; z-index: 3; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(20,20,24,.82); color: #fff; }
.cmp-tag.l { left: 14px; }
.cmp-tag.r { right: 14px; background: var(--accent); color: var(--accent-ink); }
.clean .cmp-shield { position: absolute; left: 26px; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #1f7a45; }
.clean .cmp-shield .icon { width: 15px; height: 15px; }
.handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); z-index: 4; pointer-events: none; }
.handle i { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); display: grid; place-items: center; color: #333; }
.handle i::before { content: "‹ ›"; font: 700 15px/1 var(--font-text); letter-spacing: 2px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 5; }
.privacy-live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.privacy-live .toggles { margin-top: 0; }
@media (min-width: 900px) { .stats-wide .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Tabs: the Island band and the classic strip, drawn by the window code ---- */
.chrome-demo { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0,0,0,.6); }
.chrome-demo .scaler { position: relative; width: 100%; height: calc(var(--h) * var(--k, 1)); }
.chrome-demo .vw { position: absolute; height: var(--h); transform: scale(var(--k, 1)); box-shadow: none; border-radius: 0; }
.chrome-demo .vw .slice { flex: 1; position: relative; overflow: hidden; }
.chrome-demo .vw .slice .sp-bg { position: absolute; inset: 0; }
.chrome-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 10px; font-size: 14px; color: var(--text-3); }
.chrome-label b { color: var(--text); font-weight: 600; }
.chrome-label + .chrome-demo { margin-bottom: 30px; }
.new-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .16); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.spec-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }

/* ---- Vela AI: a conversation that plays out ---- */
.ai-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.chat { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 470px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), .6)); flex: none; }
.chat-av .icon { width: 15px; height: 15px; }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.chat-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.bubble.in { opacity: 1; transform: none; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.ai ul { margin: 6px 0 0; padding-left: 18px; }
.step { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 6px 12px; border-radius: 99px; background: rgba(var(--accent-rgb), .12); opacity: 0; transition: opacity .35s; }
.step.in { opacity: 1; }
.step i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: caret-blink 1s ease-in-out infinite; }
.chat-input { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 22px; border: 1px solid var(--line-2); color: var(--text-3); font-size: 14.5px; }
.chat-input span { flex: 1; }
.chat-input i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.chat-input i .icon { width: 15px; height: 15px; }
.ai-live .providers { margin-top: 26px; }

/* ---- Profiles ---- */
.world .open-in { appearance: none; border: 0; background: none; padding: 0; margin-top: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 600; }
.world .open-in:hover { text-decoration: underline; text-underline-offset: 3px; }
.world .open-in .icon { width: 14px; height: 14px; }

/* ---- Themes: small Vela windows in each theme ---- */
.theme-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; margin-top: clamp(32px, 5vw, 48px); }
.tw { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--text); }
.tw .win { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10.5; display: flex; flex-direction: column; background: var(--t-bg); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -26px rgba(0,0,0,.6); transition: transform .25s var(--spring), box-shadow .2s; }
.tw:hover .win { transform: translateY(-4px); }
.tw[aria-pressed="true"] .win { box-shadow: 0 0 0 2.5px var(--accent), 0 0 30px -6px var(--glow), 0 20px 40px -26px rgba(0,0,0,.6); }
.tw .bar { height: 17%; flex: none; display: flex; align-items: center; gap: 4%; padding: 0 5%; background: var(--t-toolbar); }
.tw .bar .l { display: flex; gap: 3px; }
.tw .bar .l i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.tw .bar .l i:nth-child(2) { background: #febc2e; }
.tw .bar .l i:nth-child(3) { background: #28c840; }
.tw .bar .cap { flex: 1; height: 52%; border-radius: 99px; background: var(--t-cap); box-shadow: 0 0 0 .5px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 5px; }
.tw .bar .cap i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--t-text) 30%, transparent); }
.tw .bar .cap i:first-child { box-shadow: 0 0 0 1.4px var(--t-accent); background: color-mix(in srgb, var(--t-accent) 25%, transparent); }
.tw .page { flex: 1; position: relative; padding: 6% 7%; display: flex; flex-direction: column; gap: 7%; overflow: hidden; }
.tw .page.galaxy { background: radial-gradient(50% 50% at 50% 25%, color-mix(in srgb, var(--t-accent) 25%, transparent), transparent 70%), radial-gradient(60% 70% at 100% 100%, rgba(115,64,217,.18), transparent 70%), linear-gradient(#090912, #050509); }
.tw .page.deep { background: radial-gradient(80% 90% at 0 0, rgba(36,123,157,.3), transparent 70%), #080e1c; }
.tw .page::before { content: ""; position: absolute; inset: 0; background-image: var(--stars-a); background-size: 130px 110px; opacity: .7; }
.tw .page > * { position: relative; }
.tw .cv { display: block; height: 34%; border-radius: 8px; background: linear-gradient(120deg, #0d1424, color-mix(in srgb, var(--t-accent) 80%, #0d1424)); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2); }
.tw .row { display: flex; gap: 5%; flex: 1; }
.tw .row i { flex: 1; border-radius: 7px; background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); }
.tw .row i:nth-child(3) { flex: 1.2; }
.tw .name { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.tw .name .sw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.tw .name small { margin-left: auto; font-weight: 400; color: var(--text-3); font-size: 12.5px; }

/* ---- Recent releases ---- */
.releases { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.releases li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 26px; }
.releases li + li { border-top: 1px solid var(--line); }
.releases .ver { font: 650 15px/1.5 var(--font-display); }
.releases .ver small { display: block; font-weight: 400; color: var(--text-3); font-size: 13px; }
.releases li:first-child .ver::after { content: "Latest"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(var(--accent-rgb), .16); color: var(--accent); vertical-align: 1px; }
.releases p { margin: 0; color: var(--text-2); font-size: 15.5px; }

@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pl-step:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .privacy-live, .ai-live { grid-template-columns: 1fr; }
  .theme-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .demo-note { display: block; }
  .pipeline { grid-template-columns: 1fr; }
  .pl-step + .pl-step { border-left: 0; border-top: 1px solid var(--line); }
  .pl-step:nth-child(3) { grid-column: auto; }
  .compare { height: 400px; }
  .cmp-ad { display: none; }
  .releases li { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
  .chat { min-height: 0; }
}

/* ====================================================================
   The Vela window. Drawn at its real size (1180 × 740) and scaled to fit.
   Values come from the app's SwiftUI code: Island band 52, capsule 38,
   tab dots 28, Bento tiles r24, the AI Brief cover r30.
   ==================================================================== */
.vw {
  --v-accent: #007aff; --v-toolbar: #f5f5f7; --v-sidebar: #efeff1; --v-bg: #ffffff;
  --v-tabbar: #e8e8ed; --v-text: #1d1d1f; --v-text2: #67676c;
  --v-hover: rgba(0,0,0,.07); --v-hair: rgba(0,0,0,.07);
  --v-capsule: rgba(255,255,255,.86); --v-capsule-line: rgba(0,0,0,.08); --v-capsule-shadow: rgba(0,0,0,.09);
  --v-cluster: rgba(0,0,0,.035);
  --v-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --v-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  position: absolute; left: 0; top: 0;
  width: 1180px; height: 740px;
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--v-bg); color: var(--v-text);
  font: 13px/1.35 var(--v-font);
  text-align: left; letter-spacing: 0;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.32), 0 32px 80px -16px rgba(18,20,28,.38), 0 12px 28px -14px rgba(18,20,28,.28);
  user-select: none; -webkit-user-select: none;
  transition: background-color .35s ease, color .35s ease;
}
.vw[data-dark] {
  --v-hover: rgba(255,255,255,.12); --v-hair: rgba(255,255,255,.10);
  --v-capsule: rgba(255,255,255,.075); --v-capsule-line: rgba(255,255,255,.10); --v-capsule-shadow: rgba(0,0,0,.32);
  --v-cluster: rgba(255,255,255,.05);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.55), inset 0 0 0 .5px rgba(255,255,255,.14), 0 32px 80px -16px rgba(18,20,28,.5), 0 12px 28px -14px rgba(18,20,28,.35);
}
.vw[data-theme="deepspace"] { --v-font: "Vela Oxanium", -apple-system, system-ui, sans-serif; --v-display: "Vela Orbitron", "Vela Oxanium", system-ui, sans-serif; }
:where(.vw) button { appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: default; color: inherit; font: inherit; }
.vw svg.i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vw svg.i.fill { fill: currentColor; stroke: none; }
:where(.vw) input { font: inherit; color: inherit; background: none; border: 0; outline: 0; margin: 0; padding: 0; min-width: 0; }
.vw ::placeholder { color: var(--v-text2); opacity: .9; }

/* Traffic lights */
.vw .tl { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; z-index: 2; }
.tl i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.tl i:nth-child(2) { background: #febc2e; }
.tl i:nth-child(3) { background: #28c840; }

/* --- Island band ------------------------------------------------------ */
.band { height: 52px; flex: none; position: relative; background: var(--v-toolbar); z-index: 5; transition: background-color .35s ease; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .5px; background: var(--v-hair); }
.vw[data-theme="deepspace"] .band::before, .vw[data-theme="deepspace"] .toolbar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--stars-a); background-size: 260px 52px; opacity: .45; }
.cluster { position: absolute; top: 9px; height: 34px; border-radius: 17px; background: var(--v-cluster); display: flex; align-items: center; gap: 2px; padding: 0 4px; z-index: 2; }
.cluster.left { left: 76px; }
.cluster.right { right: 10px; }
.ib {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: color-mix(in srgb, var(--v-text) 88%, transparent); transition: background-color .12s ease, color .12s ease, transform .12s ease;
}
.ib:hover { background: var(--v-hover); }
.ib:disabled { opacity: .3; }
.ib.on { color: var(--v-accent); }
.ib svg.i { width: 16px; height: 16px; stroke-width: 1.8; }
.pfb { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.pfb:hover { background: var(--v-hover); }
.pfb span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--p-color, #4a90d9); color: #fff; transition: background-color .25s; }
.pfb span svg.i { width: 11px; height: 11px; stroke-width: 2.4; }

.capsule {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 788px; height: 38px; border-radius: 19px; z-index: 3;
  display: flex; align-items: center; padding: 0 4px;
  background: var(--v-capsule);
  box-shadow: 0 0 0 1px var(--v-capsule-line), 0 2px 9px var(--v-capsule-shadow);
  transition: box-shadow .15s ease, background-color .35s ease;
}
.capsule.focused { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--v-accent) 55%, transparent), 0 2px 9px var(--v-capsule-shadow); }
.capsule .cnav { display: flex; padding-right: 2px; } /* not ".nav": vela.css fixes that to the page top */
.capsule .ib { width: 30px; height: 30px; }
.addr { flex: 1; min-width: 0; height: 30px; border-radius: 15px; display: flex; align-items: center; gap: 8px; padding: 0 12px; position: relative; cursor: text; transition: background-color .15s; }
.capsule.focused .addr { background: color-mix(in srgb, var(--v-bg) 85%, transparent); }
.addr .addr-ic { color: var(--v-text2); display: grid; place-items: center; }
.addr .addr-ic.secure { color: var(--v-accent); }
.addr .addr-ic svg.i { width: 13px; height: 13px; stroke-width: 2; }
.addr input { flex: 1; font-size: 13.5px; height: 100%; }
.addr .shown { position: absolute; left: 33px; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; font-size: 13.5px; pointer-events: none; }
.addr .shown b { font-weight: 500; }
.addr .shown em { font-style: normal; color: var(--v-text2); opacity: .6; margin: 0 4px; }
.addr .shown span { color: var(--v-text2); overflow: hidden; text-overflow: ellipsis; }
.addr input:not(:focus) { color: transparent; }
.addr.typing input { color: inherit; }
.addr input:focus + .shown, .addr.typing .shown { display: none; }
.addr input:not(:focus)::placeholder { color: var(--v-text2); }
.addr.has-page input:not(:focus)::placeholder { color: transparent; }
.cap-divider { width: 1px; height: 18px; background: color-mix(in srgb, var(--v-text) 12%, transparent); margin: 0 5px; flex: none; }
.dots { display: flex; gap: 1px; align-items: center; }
.tdot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  transition: background-color .12s ease, transform .3s cubic-bezier(.3,1.4,.5,1);
  animation: dot-in .32s cubic-bezier(.3,1.35,.5,1) both;
}
.tdot:hover { background: var(--v-hover); transform: scale(1.08); }
.tdot.current { background: color-mix(in srgb, var(--v-accent) 16%, transparent); box-shadow: inset 0 0 0 1.6px var(--v-accent); transform: none; }
.vw[data-dark] .tdot.current { background: color-mix(in srgb, var(--v-accent) 26%, transparent); }
.tdot .spark { color: var(--v-text2); }
.tdot.current .spark { color: var(--v-accent); }
.tdot .spark svg.i { width: 13px; height: 13px; }
.tdot.loading::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.6px solid transparent; border-top-color: var(--v-accent); animation: spin .85s linear infinite; }
.tdot.pinged { z-index: 2; }
.tdot .ripple, .shelf-btn .ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--v-accent); animation: ripple .95s ease-out both; pointer-events: none; }
.tdot .ripple + .ripple, .shelf-btn .ripple + .ripple { animation-delay: .3s; }
.tdot.hop, .shelf-btn.hop { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes dot-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes hop { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.shelf-btn { width: 32px; height: 30px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.shelf-btn:hover { background: var(--v-hover); }
.shelf-btn b { width: 24px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--v-text) 75%, transparent); display: grid; place-items: center; font: 700 10.5px/1 var(--rounded); color: color-mix(in srgb, var(--v-text) 90%, transparent); }
.shelf-btn.open b { box-shadow: inset 0 0 0 1.4px var(--v-accent); background: color-mix(in srgb, var(--v-accent) 16%, transparent); color: var(--v-accent); }
.progress { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 1px; overflow: hidden; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--v-accent); border-radius: 1px; opacity: 0; }
.progress.run i { opacity: 1; transition: width .9s cubic-bezier(.2,.7,.3,1); }
.progress.done i { opacity: 0; transition: width .2s ease-out, opacity .3s .2s; }

.bg-note {
  position: absolute; top: 58px; z-index: 30; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 11px; border-radius: 14px; font-size: 11.5px; font-weight: 600;
  background: var(--v-toolbar); box-shadow: 0 0 0 .5px var(--v-capsule-line), 0 4px 10px rgba(0,0,0,.14);
  animation: note-in .3s cubic-bezier(.3,1.3,.5,1) both; pointer-events: none;
}
.bg-note svg.i { color: var(--v-accent); width: 12px; height: 12px; stroke-width: 2.2; }
.bg-note span { font-weight: 400; color: var(--v-text2); }
.bg-note.out { animation: note-out .25s ease-out both; }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, -6px) scale(.85); } }
@keyframes note-out { to { opacity: 0; } }

/* Suggestions under the address field */
.suggest {
  position: absolute; top: 49px; left: 50%; transform: translateX(-50%); width: 640px; z-index: 40;
  background: var(--v-toolbar); border-radius: 14px; padding: 6px;
  box-shadow: 0 0 0 .5px var(--v-capsule-line), 0 18px 40px -10px rgba(0,0,0,.35);
  animation: pop .16s ease-out both;
}
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 13px; }
.suggest button.sel, .suggest button:hover { background: var(--v-accent); color: #fff; }
.suggest button.sel .sub, .suggest button:hover .sub { color: rgba(255,255,255,.8); }
.suggest .label { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.suggest .sub { color: var(--v-text2); font-size: 12px; flex: none; }
.suggest button > svg.i { color: var(--v-text2); width: 14px; height: 14px; margin: 0 1px; }
.suggest button.sel > svg.i, .suggest button:hover > svg.i { color: #fff; }
.suggest .fav { width: 16px; height: 16px; font-size: 9.5px; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(-4px) scale(.98); } }

/* --- Classic chrome ---------------------------------------------------- */
.toolbar { height: 52px; flex: none; position: relative; background: var(--v-toolbar); display: flex; align-items: center; gap: 10px; padding: 0 14px 0 86px; z-index: 5; transition: background-color .35s ease; }
.toolbar .tb { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; color: var(--v-text2); position: relative; z-index: 1; }
.toolbar .tb:hover { background: color-mix(in srgb, var(--v-tabbar) 90%, transparent); }
.toolbar .tb.on { color: var(--v-accent); }
.toolbar .tb svg.i { width: 15px; height: 15px; }
.toolbar .navset { display: flex; gap: 2px; position: relative; z-index: 1; }
.profile-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 500; color: var(--p-color, #4a90d9); background: color-mix(in srgb, var(--p-color, #4a90d9) 10%, transparent); position: relative; z-index: 1; }
.profile-pill svg.i { width: 13px; height: 13px; }
.toolbar .addr { height: 32px; border-radius: 10px; background: var(--v-tabbar); padding: 0 12px; z-index: 1; }
.toolbar .addr.focused { background: var(--v-bg); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--v-accent) 60%, transparent); }
.toolbar .addr:not(.focused):hover { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--v-text2) 25%, transparent); }
.toolbar .right { display: flex; gap: 2px; position: relative; z-index: 1; }
.strip { height: 40px; flex: none; background: var(--v-tabbar); display: flex; align-items: center; padding: 3px 8px; gap: 1px; position: relative; z-index: 4; transition: background-color .35s ease; }
.ctab {
  width: 220px; min-width: 60px; flex: 0 1 220px; height: 34px; border-radius: 8px; position: relative;
  display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px;
  background: color-mix(in srgb, var(--v-toolbar) 35%, transparent); color: var(--v-text2); font-size: 12px;
  -webkit-mask: radial-gradient(circle 5.5px at 0 50%, transparent 98%, #000 100%);
          mask: radial-gradient(circle 5.5px at 0 50%, transparent 98%, #000 100%);
  animation: tab-in .22s ease-out both;
}
.ctabs { display: flex; gap: 1px; min-width: 0; flex: 0 1 auto; }
.ctab:first-child { -webkit-mask: none; mask: none; }
.ctab::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: inherit; z-index: 1; }
.ctab:last-child::after { display: none; }
.ctab.seen, .tdot.seen { animation: none; }
.ctab .fav svg.i, .fav svg.i { width: 10px; height: 10px; stroke-width: 2.2; }
.bmbar { height: 30px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 12px; background: var(--v-toolbar); border-bottom: .5px solid var(--v-hair); font-size: 12px; position: relative; z-index: 4; }
.bmbar button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; }
.bmbar button:hover { background: var(--v-hover); }
.bmbar .fav { width: 14px; height: 14px; font-size: 8.5px; }
.vchrome { flex: none; display: flex; flex-direction: column; position: relative; z-index: 5; }
.toolbar .progress { left: 86px; right: 14px; }
.ctab:hover { background: color-mix(in srgb, var(--v-toolbar) 60%, transparent); }
.ctab.current { background: var(--v-toolbar); color: var(--v-text); font-weight: 500; z-index: 2; }
.ctab .title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctab .x { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; opacity: 0; }
.ctab .x svg.i { width: 9px; height: 9px; stroke-width: 2.6; }
.ctab:hover .x, .ctab.current .x { opacity: 1; }
.ctab .x:hover { background: var(--v-hover); }
.strip .newtab { width: 30px; height: 30px; display: grid; place-items: center; color: var(--v-text2); border-radius: 7px; margin-left: 4px; }
.strip .newtab:hover { background: var(--v-hover); }
@keyframes tab-in { from { max-width: 0; opacity: 0; } to { max-width: 220px; opacity: 1; } }

/* Favicons of the demo's sites */
.fav { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; color: #fff; font: 700 9.5px/1 var(--sans); flex: none; }
.tdot .fav { width: 15px; height: 15px; font-size: 9px; }

/* --- Body: sidebar · page · AI panel ------------------------------------ */
.vbody { flex: 1; min-height: 0; display: flex; position: relative; }
.vside { width: 0; overflow: hidden; flex: none; background: var(--v-sidebar); transition: width .22s ease; border-right: .5px solid transparent; }
.vw.side-open .vside { width: 240px; border-right-color: var(--v-hair); }
.vside-in { width: 240px; padding: 14px 10px; }
.vside h4 { margin: 6px 8px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--v-text2); }
.vside button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border-radius: 7px; font-size: 13px; text-align: left; }
.vside button:hover { background: var(--v-hover); }
.vmain { flex: 1; min-width: 0; position: relative; overflow: hidden; background: var(--v-bg); }
.pg { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; animation: page-in .28s ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

.vai { width: 0; flex: none; overflow: hidden; transition: width .22s ease; position: relative; background: linear-gradient(180deg, var(--v-toolbar), var(--v-bg) 45%, var(--v-toolbar)); }
.vw.ai-open .vai { width: 340px; box-shadow: -1px 0 0 var(--v-hair), -18px 0 18px -18px rgba(0,0,0,.25); }
.ai-in { width: 340px; height: 100%; display: flex; flex-direction: column; }
.ai-head { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 14px; border-bottom: .5px solid var(--v-hair); }
.ai-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--v-accent), color-mix(in srgb, var(--v-accent) 65%, transparent)); flex: none; }
.ai-av svg.i { width: 14px; height: 14px; }
.ai-head b { display: block; font-size: 14px; font-weight: 600; }
.ai-head small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--v-text2); }
.ai-head small i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }
.ai-head .acts { margin-left: auto; display: flex; gap: 2px; }
.ai-head .acts button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--v-text2); }
.ai-head .acts button:hover { background: var(--v-hover); }
.ai-head .acts svg.i { width: 14px; height: 14px; }
.ai-scroll { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.ai-empty { text-align: center; padding-top: 10px; }
.ai-mark { width: 82px; height: 82px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: var(--v-accent); background: color-mix(in srgb, var(--v-accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v-accent) 30%, transparent); }
.ai-mark svg.i { width: 32px; height: 32px; stroke-width: 1.5; }
.ai-empty h5 { margin: 0; font: 600 24px/1.2 var(--v-display); }
.ai-empty p { margin: 6px 12px 18px; font-size: 13px; color: var(--v-text2); }
.qa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; font-size: 13px; font-weight: 500; margin-top: 4px; background: color-mix(in srgb, var(--v-toolbar) 60%, transparent); }
.qa:hover { background: var(--v-hover); }
.qa .t { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--v-accent); background: color-mix(in srgb, var(--v-accent) 14%, transparent); flex: none; }
.qa .t svg.i { width: 15px; height: 15px; }
.qa > svg.i:last-child { margin-left: auto; width: 11px; height: 11px; color: var(--v-text2); stroke-width: 2.2; }
.msg { max-width: 252px; padding: 9px 13px; border-radius: 18px; font-size: 13.5px; line-height: 1.42; animation: page-in .2s ease-out both; }
.msg.me { align-self: flex-end; max-width: 246px; color: #fff; background: linear-gradient(135deg, var(--v-accent), color-mix(in srgb, var(--v-accent) 78%, #000)); }
.msg-row { display: flex; gap: 7px; align-items: flex-end; }
.msg-row .ai-av { width: 24px; height: 24px; }
.msg-row .ai-av svg.i { width: 12px; height: 12px; }
.msg.ai { background: color-mix(in srgb, var(--v-toolbar) 68%, transparent); box-shadow: 0 0 0 .5px var(--v-hair); }
.msg.ai ul { margin: 6px 0 0; padding-left: 18px; }
.msg.ai li { margin: 3px 0; }
.msg .caret { display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--v-accent); border-radius: 1px; animation: blink 1s steps(1) infinite; }
.ai-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--v-text2); padding: 5px 10px; border-radius: 12px; background: color-mix(in srgb, var(--v-accent) 10%, transparent); }
.ai-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--v-accent); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer { padding: 10px 12px 12px; border-top: .5px solid var(--v-hair); }
.composer .ctx { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--v-text2); margin: 0 4px 7px; white-space: nowrap; overflow: hidden; }
.composer .ctx svg.i { width: 12px; height: 12px; }
.composer form { display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 22px; background: var(--v-bg); box-shadow: 0 0 0 .5px var(--v-capsule-line), 0 1px 3px rgba(0,0,0,.06); }
.composer input { flex: 1; font-size: 15px; height: 30px; }
.composer button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: color-mix(in srgb, var(--v-text2) 45%, transparent); flex: none; transition: background-color .15s; }
.composer form.ready button { background: var(--v-accent); }
.composer button svg.i { width: 15px; height: 15px; stroke-width: 2.4; }

/* --- Popovers ---------------------------------------------------------- */
.pop {
  position: absolute; z-index: 45; background: var(--v-toolbar); color: var(--v-text);
  box-shadow: 0 0 0 .5px var(--v-capsule-line), 0 24px 60px -14px rgba(0,0,0,.4);
  animation: pop-in .2s cubic-bezier(.2,.9,.3,1.1) both; transform-origin: top right;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.pop.out { animation: pop-out .14s ease-in both; }
@keyframes pop-out { to { opacity: 0; transform: scale(.96) translateY(-4px); } }

.cc { top: 56px; right: 10px; width: 368px; border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0, color-mix(in srgb, var(--v-accent) 10%, transparent), transparent 60%); pointer-events: none; }
.vw[data-dark] .cc::before { background: radial-gradient(120% 90% at 100% 0, color-mix(in srgb, var(--v-accent) 16%, transparent), transparent 60%); }
.cc > * { position: relative; }
.cc-head { display: flex; align-items: center; gap: 10px; }
.cc-head .tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--sans); flex: none; }
.cc-head b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.cc-head small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--v-text2); }
.cc-head small svg.i { width: 10px; height: 10px; stroke-width: 2.2; }
.cc-head .acts { margin-left: auto; display: flex; gap: 4px; }
.cc-head .acts button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--v-hover); }
.cc-head .acts svg.i { width: 13px; height: 13px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-tile { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 16px; text-align: left; background: color-mix(in srgb, var(--v-text) 5%, transparent); transition: background-color .15s; }
.cc-tile:hover { background: color-mix(in srgb, var(--v-text) 9%, transparent); }
.cc-tile .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--v-text2); background: color-mix(in srgb, var(--v-text) 9%, transparent); transition: background-color .2s, color .2s; }
.cc-tile.on .c { color: #fff; background: var(--tint); }
.cc-tile .c svg.i { width: 15px; height: 15px; }
.cc-tile b { display: block; font-size: 12.5px; font-weight: 600; }
.cc-tile small { display: block; font-size: 11px; color: var(--v-text2); white-space: nowrap; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cc-widget { padding: 9px 10px; border-radius: 14px; background: color-mix(in srgb, var(--v-text) 5%, transparent); font-size: 11px; color: var(--v-text2); }
.cc-widget b { display: block; font: 600 17px/1.15 var(--rounded); color: var(--v-text); }
.cc-tools { display: flex; gap: 8px; }
.cc-tools > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 12px; background: color-mix(in srgb, var(--v-text) 5%, transparent); font-size: 12px; font-weight: 500; }
.cc-tools button:hover { background: color-mix(in srgb, var(--v-text) 9%, transparent); }
.cc-tools svg.i { width: 13px; height: 13px; }
.cc h6 { margin: 2px 2px -4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--v-text2); }
.cc-lib { display: flex; justify-content: space-between; }
.cc-lib button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; color: var(--v-text2); width: 62px; }
.cc-lib i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.cc-lib i svg.i { width: 16px; height: 16px; }

.menu { border-radius: 12px; padding: 5px; min-width: 220px; }
.menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border-radius: 7px; font-size: 13px; text-align: left; }
.menu button:hover { background: var(--v-accent); color: #fff; }
.menu button .pdot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.menu button .pdot svg.i { width: 10px; height: 10px; stroke-width: 2.4; }
.menu button .chk { margin-left: auto; width: 12px; height: 12px; stroke-width: 2.6; }
.menu hr { border: 0; height: .5px; background: var(--v-hair); margin: 5px 6px; }
.menu .label { padding: 4px 10px 2px; font-size: 11px; color: var(--v-text2); }
.dl { width: 300px; border-radius: 14px; padding: 12px; }
.dl h6 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.dl-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--v-text) 5%, transparent); }
.dl-item img { width: 32px; height: 32px; border-radius: 8px; }
.dl-item b { display: block; font-size: 12.5px; font-weight: 600; }
.dl-item small { color: var(--v-text2); font-size: 11px; }

/* Tab shelf */
.scrim { position: absolute; inset: 52px 0 0; z-index: 35; background: rgba(0,0,0,.22); animation: fade-in .2s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }
.shelf { top: 60px; left: 50%; width: 980px; margin-left: -490px; border-radius: 26px; padding: 18px; transform-origin: top center; }
.shelf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.shelf-head b { font: 700 20px/1 var(--rounded); }
.shelf-head small { font-size: 11px; color: var(--v-text2); }
.shelf-head .filter { margin-left: auto; width: 220px; height: 32px; border-radius: 16px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: color-mix(in srgb, var(--v-text) 6%, transparent); color: var(--v-text2); font-size: 12.5px; }
.shelf-head .filter svg.i { width: 13px; height: 13px; }
.shelf-head .new { height: 32px; padding: 0 13px; border-radius: 16px; background: var(--v-accent); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.shelf-head .new svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.shelf-head .close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--v-hover); }
.shelf-head .close svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
.scards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scard { border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--v-text) 5%, transparent); box-shadow: 0 0 0 .5px var(--v-capsule-line); text-align: left; transition: transform .15s ease, box-shadow .15s ease; animation: page-in .25s ease-out both; }
.scard:hover { transform: translateY(-2px); }
.scard.current { box-shadow: 0 0 0 2px var(--v-accent); }
.scard .thumb { height: 128px; position: relative; overflow: hidden; }
.scard .thumb svg { width: 100%; height: 100%; }
.scard .thumb.start { display: grid; place-items: center; gap: 4px; color: var(--v-accent); background: linear-gradient(160deg, color-mix(in srgb, var(--v-accent) 22%, transparent), var(--v-bg)); font-size: 12px; font-weight: 600; }
.scard .thumb.start svg.i { width: 20px; height: 20px; }
.scard .thumb .ttl { position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff; font: 700 14px/1.2 var(--serif); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.scard footer { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 8px 0 10px; font-size: 12px; }
.scard footer .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scard footer .x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--v-text2); }
.scard footer .x:hover { background: var(--v-hover); }
.scard footer .x svg.i { width: 9px; height: 9px; stroke-width: 2.6; }

/* --- Start page (Bento) ------------------------------------------------- */
.sp { min-height: 100%; padding: 20px 28px 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; container-type: inline-size; isolation: isolate; }
.sp > * { width: 100%; max-width: 1080px; position: relative; z-index: 1; }
.sp-bg { position: absolute !important; inset: 0; max-width: none !important; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.sp.wall .sp-bg {
  background:
    radial-gradient(42% 46% at 50% 26%, color-mix(in srgb, var(--v-accent) 20%, transparent), transparent 70%),
    radial-gradient(60% 70% at 0 0, color-mix(in srgb, var(--v-accent) 16%, transparent), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(115,64,217,.13), transparent 70%),
    linear-gradient(180deg, #090912, #050509);
}
.sp.wall .sp-bg::before, .sp.wall .sp-bg::after, .sp.deep .sp-bg::before {
  content: ""; position: absolute; inset: -60px; background-image: var(--stars-a); background-size: 260px 220px; opacity: .8;
  animation: drift 160s linear infinite;
}
.sp.wall .sp-bg::after { background-image: var(--stars-b); background-size: 370px 310px; opacity: .55; animation-duration: 240s; animation-direction: reverse; }
@keyframes drift { to { transform: translate(-60px, 30px); } }
.sp.plain .sp-bg { background: radial-gradient(70% 55% at 50% 18%, color-mix(in srgb, var(--v-accent) 9%, transparent), transparent 70%), var(--v-bg); }
.vw[data-dark] .sp.plain .sp-bg { background: radial-gradient(70% 55% at 50% 18%, color-mix(in srgb, var(--v-accent) 16%, transparent), transparent 70%), var(--v-bg); }
.sp.deep .sp-bg { background: radial-gradient(70% 90% at 0 0, rgba(36,123,157,.24), transparent 70%), #080e1c; }
.sp.deep .sp-bg::after { content: ""; position: absolute; left: 50%; bottom: -260px; width: 1400px; height: 420px; margin-left: -700px; border-radius: 50%; background: rgba(22,57,79,.2); box-shadow: inset 0 0 0 1px rgba(114,221,247,.2); }
.sp.art .sp-bg { background: radial-gradient(70% 60% at 50% 10%, rgba(184,70,11,.10), transparent 70%), var(--v-bg); }

.cover { height: 196px; border-radius: 30px; overflow: hidden; color: #fff; flex: none; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.35);
  background: radial-gradient(60% 90% at 100% 0, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0d1424, color-mix(in srgb, var(--v-accent) 85%, #0d1424));
  cursor: pointer;
}
.cover .art { position: absolute; inset: 0; transform-origin: 70% 40%; animation: slowzoom 18s ease-out both; }
.cover .art svg { width: 100%; height: 100%; }
@keyframes slowzoom { to { transform: scale(1.08); } }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.45) 45%, transparent 80%), linear-gradient(135deg, rgba(0,0,0,.38), transparent 45%); }
.cover-top { position: absolute; left: 22px; right: 18px; top: 16px; display: flex; align-items: center; gap: 9px; z-index: 2; }
.cover-top img { width: 30px; height: 30px; border-radius: 8px; }
.wordmark { font: 700 19px/1 "Vela Orbitron", var(--v-display); letter-spacing: 4px; }
.cover-next { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.cover-next:hover { background: rgba(255,255,255,.26); }
.cover-next svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.cover-body { position: absolute; left: 22px; right: 120px; bottom: 20px; z-index: 2; }
.badge-line { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font: 900 10px/1 var(--sans); letter-spacing: .9px; background: linear-gradient(90deg, #7b61ff, #2f8cff); box-shadow: 0 0 14px rgba(47,140,255,.5); position: relative; overflow: hidden; }
.badge svg.i { width: 11px; height: 11px; stroke-width: 2.2; }
.badge.writing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55), transparent 70%); animation: sheen 1.2s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.badge-line .src { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.78); text-transform: uppercase; }
.badge-line .ago { font-size: 10.5px; color: rgba(255,255,255,.6); }
.cover h4 { margin: 9px 0 0; font: 700 27px/1.15 var(--serif); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.cover p { margin: 7px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.38; min-height: 20px; max-width: 780px; }
.cover p .w { opacity: 0; transition: opacity .3s ease; }
.cover p .w.in { opacity: .9; }
.cover .line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; z-index: 3; background: linear-gradient(90deg, var(--v-accent), #fff); }
.cover .line.run { width: 100%; transition: width linear; }
.cover.swap .cover-body { animation: page-in .35s ease-out both; }

.sp-search { display: flex; gap: 12px; max-width: 790px !important; }
.sp-field { flex: 1; height: 54px; border-radius: 26px; display: flex; align-items: center; gap: 12px; padding: 0 20px; font-size: 15px; cursor: text; transition: box-shadow .15s; }
.sp-field svg.i { width: 17px; height: 17px; color: var(--v-text2); }
.sp-field input { flex: 1; height: 100%; font-size: 15px; }
.sp-field .ask { display: none; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--v-accent); color: #fff; font-size: 12.5px; font-weight: 600; align-items: center; gap: 5px; }
.sp-field .ask svg.i { width: 12px; height: 12px; color: #fff; }
.sp-field.has-text .ask { display: inline-flex; }
.sp-field:focus-within { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--v-accent) 60%, transparent), 0 6px 14px rgba(0,0,0,.08); }
.sp-round { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sp-round svg.i { width: 19px; height: 19px; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 24px; padding: 15px 16px; min-width: 0; position: relative; box-shadow: 0 6px 14px rgba(0,0,0,.06); }
.sp-field, .sp-round, .tile { background: rgba(255,255,255,.94); box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 6px 14px rgba(0,0,0,.06); color: var(--v-text); }
.vw[data-dark] .sp-field, .vw[data-dark] .sp-round, .vw[data-dark] .tile { background: color-mix(in srgb, var(--v-tabbar) 94%, transparent); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 6px 14px rgba(0,0,0,.25); }
.sp.wall .sp-field, .sp.wall .sp-round, .sp.wall .tile, .sp.deep .sp-field, .sp.deep .sp-round, .sp.deep .tile {
  background: rgba(0,0,0,.40); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.13), 0 6px 14px rgba(0,0,0,.25);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.sp.wall .sp-field svg.i, .sp.deep .sp-field svg.i { color: rgba(255,255,255,.7); }
.sp.wall ::placeholder, .sp.deep ::placeholder { color: rgba(255,255,255,.62); }
.sp.wall .dim, .sp.deep .dim { color: rgba(255,255,255,.62) !important; }
.th { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 10px; }
.th svg.i { width: 12px; height: 12px; color: var(--v-accent); }
.dim { color: var(--v-text2); }
.t-clock .greet { font-size: 13px; font-weight: 600; }
.t-clock .time { font: 700 48px/1 var(--rounded); letter-spacing: -.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.vw[data-theme="deepspace"] .t-clock .time, .vw[data-theme="deepspace"] .t-wx .temp { font-family: "Vela Orbitron", var(--rounded); font-size: 40px; letter-spacing: 0; }
.t-clock .time i { font-style: normal; animation: blink 1s steps(1) infinite; }
.t-clock .date { font-size: 12px; }
.chip-blocked { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 11px; background: rgba(255,149,0,.16); color: #e07b00; }
.sp.wall .chip-blocked, .sp.deep .chip-blocked, .vw[data-dark] .chip-blocked { color: #ffb340; }
.chip-blocked svg.i { width: 11px; height: 11px; }
.t-wx .row { display: flex; align-items: center; justify-content: space-between; }
.t-wx .temp { font: 700 42px/1 var(--rounded); }
.t-wx .sym { width: 34px; height: 34px; color: #ffcc00; }
.t-wx .sym svg.i { width: 34px; height: 34px; stroke-width: 1.4; }
.t-wx .cond { font-size: 13px; font-weight: 600; margin-top: 8px; }
.t-wx small { display: block; font-size: 11.5px; margin-top: 3px; }
.t-clock { grid-column: 1; grid-row: 1; }
.t-wx { grid-column: 2; grid-row: 1; }
.t-sites { grid-column: 1 / span 2; grid-row: 2; }
.sites { display: flex; gap: 12px; }
.sites button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; font-size: 10px; }
.sites button i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--sans); color: #fff; font-style: normal; transition: transform .15s; }
.sites button:hover i { transform: scale(1.06); }
.t-stories { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; }
.lead-img { height: 112px; width: 100%; border-radius: 14px; overflow: hidden; position: relative; display: block; }
.lead-img svg { width: 100%; height: 100%; }
.t-stories .lead-t { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 9px 0 3px; text-align: left; }
.t-stories small { font-size: 11px; }
.t-stories ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.t-stories li button { text-align: left; font-size: 12.5px; line-height: 1.32; display: block; }
.t-stories li button:hover, .t-stories .lead-t:hover { text-decoration: underline; text-underline-offset: 2px; }
.t-stories li small { display: block; font-size: 10.5px; margin-top: 2px; }
.t-ask { grid-column: 4; grid-row: 1; }
.t-ask .chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.t-ask .chips button { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; background: color-mix(in srgb, var(--v-accent) 13%, transparent); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sp.wall .t-ask .chips button, .sp.deep .t-ask .chips button { background: rgba(255,255,255,.12); }
.t-ask .chips button:hover { background: var(--v-accent); color: #fff; }
.t-jump { grid-column: 4; grid-row: 2; }
.t-jump button { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; width: 100%; text-align: left; }
.t-jump button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-jump button:hover span { text-decoration: underline; text-underline-offset: 2px; }
@container (max-width: 860px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-ask { grid-column: 1 / span 2; grid-row: 3; }
  .t-jump { grid-column: 3; grid-row: 3; }
  .cover-body { right: 30px; }
}

/* --- Demo websites ----------------------------------------------------- */
.site { min-height: 100%; background: #fff; color: #1f1f1f; font: 16px/1.62 var(--sans); }
.site-bar { height: 54px; display: flex; align-items: center; gap: 22px; padding: 0 40px; border-bottom: 1px solid #ececec; font-size: 13px; }
.site-bar b { font-size: 16px; margin-right: auto; }
.site-bar span { color: #6a6a6a; }
.site-hero { height: 260px; position: relative; overflow: hidden; }
.site-hero svg { width: 100%; height: 100%; }
.site-body { max-width: 640px; margin: 0 auto; padding: 34px 24px 60px; }
.site-body .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b4521f; }
.site-body h1 { margin: 8px 0 6px; font: 700 38px/1.12 var(--serif); letter-spacing: -.015em; }
.site-body .by { font-size: 13px; color: #777; margin-bottom: 22px; }
.site-body p { margin: 0 0 16px; }
.site-body h2 { font: 700 22px/1.25 var(--serif); margin: 28px 0 10px; }
.site-body ul { padding-left: 20px; }
.site.notes { background: #fbf7f0; }
.site.notes .site-bar { border-color: #eadfcd; background: #fbf7f0; }
.site.sky { background: #0d1321; color: #dfe6f3; }
.site.sky .site-bar { border-color: #1d2638; background: #0d1321; }
.site.sky .site-bar span { color: #8d9ab3; }
.site.sky .kicker { color: #7fe3b3; }
.site.sky .by { color: #8d9ab3; }
.kp { display: flex; gap: 6px; margin: 18px 0 24px; }
.kp div { flex: 1; text-align: center; font-size: 11px; color: #8d9ab3; }
.kp i { display: block; height: 58px; border-radius: 6px; margin-bottom: 5px; background: linear-gradient(0deg, #7fe3b3 var(--h), rgba(255,255,255,.06) var(--h)); }
.site.kitchen { background: #fffdf8; }
.site.kitchen .kicker { color: #2f7d4f; }
.recipe-facts { display: flex; gap: 22px; padding: 14px 0; margin: 4px 0 22px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 13px; color: #555; }
.recipe-facts b { display: block; font-size: 16px; color: #1f1f1f; }
.site .ad { display: none; margin: 22px 0; height: 110px; border-radius: 6px; background: repeating-linear-gradient(135deg, #f2f2f2 0 10px, #e9e9e9 10px 20px); color: #9a9a9a; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; place-items: center; }
.site.sky .ad { background: repeating-linear-gradient(135deg, #1a2234 0 10px, #161d2d 10px 20px); color: #59657e; }
.vw.unblocked .site .ad { display: grid; }
.cookie { display: none; position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 6; padding: 18px 20px; border-radius: 12px; background: #fff; color: #1f1f1f; box-shadow: 0 16px 40px rgba(0,0,0,.25); font-size: 13.5px; align-items: center; gap: 18px; animation: page-in .3s ease-out both; }
.cookie b { display: block; font-size: 15px; margin-bottom: 2px; }
.cookie .btns { margin-left: auto; display: flex; gap: 8px; flex: none; }
.cookie .btns span { padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; background: #efefef; }
.cookie .btns span:last-child { background: #1f56c9; color: #fff; }
.vw.unblocked .cookie { display: flex; }
.serp { min-height: 100%; background: var(--v-bg); color: var(--v-text); padding: 26px 0 40px; }
.serp-in { max-width: 680px; margin: 0 0 0 64px; }
.serp-q { font-size: 13px; color: var(--v-text2); margin-bottom: 18px; }
.serp-r { margin-bottom: 22px; }
.serp-r .u { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--v-text2); }
.serp-r button { display: block; font-size: 19px; color: color-mix(in srgb, var(--v-accent) 85%, var(--v-text)); margin: 3px 0 4px; text-align: left; cursor: pointer; }
.serp-r button:hover { text-decoration: underline; text-underline-offset: 3px; }
.serp-r p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--v-text2); }
.offline { min-height: 100%; display: grid; place-items: center; text-align: center; padding: 40px; background: var(--v-bg); color: var(--v-text); }
.offline svg.i { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--v-text2); stroke-width: 1.4; }
.offline h3 { margin: 0 0 6px; font-size: 20px; }
.offline p { margin: 0 auto 18px; max-width: 420px; color: var(--v-text2); font-size: 14px; }
.offline a { display: inline-block; padding: 9px 16px; border-radius: 9px; background: var(--v-accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; }

/* Ghost pointer for the guided tour, and the "you're driving" toast */
.ghost { position: absolute; left: 0; top: 0; z-index: 90; width: 24px; height: 24px; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.ghost.on { opacity: 1; }
.ghost svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ghost .ring { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.18); transform: scale(0); opacity: 0; }
.ghost.click .ring { animation: click-ring .4s ease-out; }
.ghost.click svg { transform: scale(.9); transform-origin: 3px 3px; }
@keyframes click-ring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; padding: 8px 14px; border-radius: 16px; background: rgba(20,20,24,.86); color: #fff; font-size: 12.5px; font-weight: 500; pointer-events: none; animation: page-in .25s ease-out both; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.toast.out { animation: note-out .3s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .vw *, .vw *::before, .vw *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
