/* DV92 BELL NOTIFY — Halcyon workspace · stage 1 of 3: the page, the panel and the SVG bell in frosted CSS glass. The stage is a design frame: 1600×1000 units on wide screens (the concept),
   390×844 on narrow ones (concept_phone). 1 unit = 1em on .stage (font-size = --k px), so every position below is in
   concept units. Text is DOM above the WebGL canvas. The theme is the page's own (light); the OS is never read. */
:root {
  --ink: #1d1b26; --nav: #5a5568; --muted: #6c6680; --violet: #6d5cff; --violet-d: #5443e8;
  --red1: #ffb199; --red2: #ff5f45; --red3: #d93a2b; --glassw: rgba(255,255,255,.42);
  --k: 1;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: #eadff0; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
html.wide body { overflow: hidden; height: 100vh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 50; padding: 15px 16px; min-height: 44px; border-radius: 12px; background: #fff; color: var(--ink); font: 600 14px/1 'Inter'; transform: translateY(-160%); transition: transform .2s; }
.skip:focus-visible { transform: none; outline: 2px solid var(--violet); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }

.clipx { position: relative; width: 100%; overflow-x: clip; }
.stage { position: relative; z-index: 1; font-size: calc(var(--k) * 1px); margin: 0 auto; overflow: visible; }
html.wide .stage { width: 1600em; height: 1000em; top: calc((100vh - 1000em) / 2); }
html.narrow .stage { width: 390em; height: 844em; }
.stage > * { font-size: 1em; }

/* ---- glass header. Until WebGL draws (and without it) it is CSS frosted glass. */
.hdr { position: absolute; z-index: 3; border-radius: 44em; display: block;
  background: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75), inset 0 2px 0 rgba(255,255,255,.6), 0 30px 60px -36px rgba(60,40,100,.45); }
html.wide .hdr { left: 120em; top: 88em; width: 1360em; height: 206em; }
html.narrow .hdr { left: 14em; top: 14em; width: 362em; height: 236em; border-radius: 30em; }
.rings { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; display: none; }
html.no-fx .rings { display: block; }
.rings i { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 0 6px rgba(255,255,255,.18), inset 0 0 0 6px rgba(255,255,255,.18);
  transform: translate(-50%, -50%) scale(.1); opacity: 0; animation: ring 1.6s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes ring { 0% { transform: translate(-50%,-50%) scale(.1); opacity: .95; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }

.logo { position: absolute; display: flex; align-items: center; gap: 14em; font-weight: 600; letter-spacing: -.02em; color: var(--ink); border-radius: 14px; }
.logo span { font-size: 26em; }
.logo i { width: 34em; height: 34em; border-radius: 11em; flex: none; display: block;
  background: conic-gradient(from 200deg, #ff9a7a, #ffcf8a, #b9a7ff, #7fc3ff, #ff9a7a); box-shadow: 0 6px 16px -6px rgba(80,50,120,.5), inset 0 1px 0 rgba(255,255,255,.6); }
html.wide .logo { left: 46em; top: 76em; height: 54em; }
html.narrow .logo { left: 22em; top: 18em; height: 44em; gap: 11em; }
html.narrow .logo span { font-size: 21em; }
html.narrow .logo i { width: 27em; height: 27em; border-radius: 9em; }

.nav { position: absolute; display: flex; align-items: center; gap: 10em; }
html.wide .nav { left: 241em; top: 78em; height: 50em; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12em; border-radius: 12em; color: var(--nav); font-weight: 500; transition: color .2s, background-color .2s; }
.nav a { font-size: 17em; padding: 0 .7em; border-radius: .7em; }
.nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
@media (hover: hover) { .nav a:hover { color: var(--ink); background: rgba(255,255,255,.35); } }
html.narrow .nav, html.narrow .srch { display: none; }

.srch { position: absolute; left: 627em; top: 78em; width: 290em; height: 50em; border-radius: 25em; display: flex; align-items: center; gap: 10em; padding: 0 12em 0 18em;
  background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); color: #6f6985; transition: background-color .2s, box-shadow .2s; cursor: text; }
.srch svg { width: 18em; height: 18em; flex: none; }
.srch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15em; font-weight: 500; color: var(--ink); }
.srch input::placeholder { color: #6f6985; opacity: 1; }
.srch input::-webkit-search-cancel-button { display: none; }
.srch kbd { font: 600 11em/1 'Inter'; padding: .45em .6em; border-radius: .55em; background: rgba(255,255,255,.55); color: #625c76; }
.srch:hover { background: rgba(255,255,255,.45); }
.srch:focus-within { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 2px var(--violet); }

.chip { position: absolute; display: inline-flex; align-items: center; gap: .45em; height: 2.2em; padding: 0 .85em; border-radius: 1.1em; font-size: 13em; font-weight: 600; color: #4a4560;
  background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 8px 18px -12px rgba(60,40,100,.5); transform: translate(-50%, -50%); white-space: nowrap; }
.chip svg { width: 1.1em; height: 1.1em; }
.chip[hidden] { display: none; }

/* ---- the bell: hit area (placed by app.js from the pivot), focus ring, badge */
.bell { position: absolute; z-index: 6; border: 0; padding: 0; background: transparent; border-radius: 42% 42% 46% 46%; touch-action: none; }
.bell:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; box-shadow: 0 0 0 8px rgba(109,92,255,.14); }
.bell.grabbing { cursor: grabbing; }
.bellsvg { position: absolute; z-index: 5; pointer-events: none; display: none; }   /* above the CSS-glass header (3), like #bellfx */
html.no-fx .bellsvg { display: block; }
.bellsvg svg { position: absolute; left: 0; top: 0; overflow: visible; }

.badge { position: absolute; left: 0; top: 0; z-index: 7; display: grid; place-items: center; pointer-events: none; will-change: translate;
  height: 52em; min-width: 52em; padding: 0 14em; border-radius: 26em; color: #fff; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: radial-gradient(120% 90% at 35% 25%, var(--red1) 0%, var(--red2) 45%, var(--red3) 100%);
  box-shadow: 0 12px 24px -8px rgba(217,58,43,.7), inset 0 1.5px 0 rgba(255,255,255,.65), inset 0 -3px 6px rgba(120,10,0,.35);
  transition: background .35s, box-shadow .35s, opacity .3s; }
html.narrow .badge { height: 38em; min-width: 38em; padding: 0 10em; border-radius: 19em; }
.badge .odo { position: relative; display: block; height: 1.2em; line-height: 1.2em; overflow: hidden; font-size: 25em; min-width: .62em; text-align: center; }
html.narrow .badge .odo { font-size: 18.5em; }
.odo span { position: absolute; left: 0; right: 0; top: 0; transition: transform .34s cubic-bezier(.3,1.4,.5,1); }
.odo span.from-below { transform: translateY(105%); }
.odo span.from-above { transform: translateY(-105%); }
.odo span.to-above { transform: translateY(-105%); }
.odo span.to-below { transform: translateY(105%); }
.badge > .pop { display: contents; }
.badge.zero { opacity: 0; }
.badge.paused { background: radial-gradient(120% 90% at 35% 25%, #a9a4b8 0%, #6f6a82 50%, #4c475e 100%); box-shadow: 0 12px 24px -10px rgba(40,30,70,.55), inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -3px 6px rgba(20,10,40,.35); }

/* ---- greeting */
.greet { position: absolute; z-index: 4; outline: none; }
html.wide .greet { left: 166em; top: 378em; width: 760em; }
.kicker { margin: 0; font-size: 12em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.greet h1 { margin: 16em 0 0; font: 400 76em/1 'Fraunces', Georgia, serif; letter-spacing: -.03em; color: var(--ink); font-optical-sizing: auto; }
.greet h1 { margin-top: .21em; }
.greet h1 em { font-style: italic; color: var(--violet); }
.lede { margin: 0; font-size: 17em; line-height: 1.5; color: var(--nav); max-width: 27.6em; margin-top: .95em; }
.ping { display: inline-flex; align-items: center; gap: .55em; margin-top: 1.5em; height: max(44px, 2.9em); padding: 0 1.15em 0 1em; border: 0; border-radius: 1.5em;
  font-size: 15em; font-weight: 600; color: var(--violet-d); background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 24px -16px rgba(60,40,100,.55);
  transition: background-color .2s, transform .15s, box-shadow .2s; }
.ping svg { width: 1.25em; height: 1.25em; }
@media (hover: hover) { .ping:hover { background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px #fff, 0 14px 28px -16px rgba(60,40,100,.6); } }
.ping:active { transform: scale(.97); }
html.narrow .greet { left: 36em; top: 92em; width: 220em; }
html.narrow .kicker { font-size: 10.5em; letter-spacing: .26em; }
html.narrow .greet h1 { font-size: 29em; line-height: 1.06; margin-top: .4em; }
html.narrow .greet h1 em { display: block; }
html.narrow .lede, html.narrow .ping .long { display: none; }
html.narrow .ping { font-size: 13.5em; margin-top: 1.05em; height: max(44px, 3.1em); padding: 0 .95em 0 .8em; }

/* ---- notification panel (frosted CSS glass) */
.panel { position: absolute; z-index: 4; border-radius: 28em; padding: 22em 22em 14em;
  background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 30px 60px -30px rgba(60,40,100,.45); transition: opacity .22s, transform .22s; transform-origin: 80% 0; }
html.wide .panel { left: 990em; top: 404em; width: 430em; }
html.narrow .panel { left: 16em; top: 266em; width: 358em; border-radius: 26em; padding: 18em 16em 10em; }
.panel.closing { opacity: 0; transform: translateY(-10px) scale(.98); }
.panel[hidden] { display: none; }
.phead { display: flex; justify-content: space-between; align-items: center; margin: 0 4em 8em; }
.phead h2 { margin: 0; font-size: 17em; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.link { border: 0; background: none; padding: 0 .35em; min-height: 44px; border-radius: .5em; font-size: 13em; font-weight: 600; color: var(--violet-d); transition: color .2s, background-color .2s; }
@media (hover: hover) { .link:hover { color: #3b2ad0; background: rgba(255,255,255,.4); } }
.link[aria-disabled=true] { color: #9b96ad; cursor: default; background: none; }
.caught { display: flex; align-items: center; gap: .55em; margin: 0 0 .5em; padding: .75em .9em; border-radius: 1.1em; font-size: 13.5em; font-weight: 600; color: #2f7a62; background: rgba(255,255,255,.5); }
.caught svg { width: 1.45em; height: 1.45em; color: #2f9a76; flex: none; }
.caught[hidden] { display: none; }
.list { list-style: none; margin: 0 -6em; padding: 0 6em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(90,80,130,.25) transparent; }
html.wide .list { max-height: 372em; }
html.narrow .list { max-height: 250em; }
.list li + li { margin-top: 2em; }
.n { display: flex; gap: 14em; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; padding: 13em 12em; border-radius: 18em; color: #4a4558;
  transition: background-color .2s, box-shadow .2s, transform .15s; position: relative; }
.n .txt { flex: 1; min-width: 0; font-size: 14.5em; line-height: 1.4; }
.n .txt b { color: var(--ink); font-weight: 600; }
.n small { display: block; color: var(--muted); font-size: .862em; margin-top: .2em; }
.n .av { width: 40em; height: 40em; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.n .av b { font-size: 15em; }
.n .av svg { width: 18em; height: 18em; }
.n .dot { width: 9em; height: 9em; border-radius: 50%; background: var(--red2); margin: 6em 0 0; flex: none; box-shadow: 0 0 0 3em rgba(255,95,69,.18); transition: transform .3s, opacity .3s; }
.n.read .dot { transform: scale(0); opacity: 0; }
.n.fresh { background: rgba(255,255,255,.66); box-shadow: 0 8px 20px -14px rgba(60,40,100,.5); }
.n.enter { animation: slide .6s cubic-bezier(.2,.9,.3,1.15); }
@keyframes slide { from { transform: translateY(-14px); opacity: 0; } }
@media (hover: hover) { .n:hover { background: rgba(255,255,255,.5); } .n.fresh:hover { background: rgba(255,255,255,.78); } }
.n:active { transform: scale(.985); }
.n:focus-visible { outline-offset: -2px; }
html.narrow .n { padding: 12em 10em; gap: 12em; }
html.narrow .n .txt { font-size: 14.2em; }
html.narrow .n .av { width: 38em; height: 38em; }

.alert { display: flex; align-items: center; flex-wrap: wrap; gap: .4em .5em; margin: .6em 0 0; padding: .55em .8em; border-radius: 1em; font-size: 13em; font-weight: 500; color: #a1281b; background: rgba(255,235,230,.75); box-shadow: inset 0 0 0 1px rgba(217,58,43,.25); }
.alert svg { width: 1.3em; height: 1.3em; flex: none; }
.alert .link { font-size: 1em; color: #a1281b; text-decoration: underline; text-underline-offset: 2px; }
.alert[hidden] { display: none; }
.alert.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10em; margin-top: 8em; padding-top: 8em; border-top: 1px solid rgba(90,80,130,.12); }
.more { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 .7em; border: 0; border-radius: .8em; background: transparent; font-size: 13.5em; font-weight: 600; color: var(--nav); transition: background-color .2s, color .2s; }
@media (hover: hover) { .more:hover { background: rgba(255,255,255,.45); color: var(--ink); } }
.more:active { transform: scale(.97); }
.more .spin { width: 1em; height: 1em; border-radius: 50%; border: 2px solid rgba(90,85,104,.25); border-top-color: var(--violet); display: none; animation: spin .8s linear infinite; }
.more[aria-busy=true] .spin { display: inline-block; }
.more[aria-disabled=true] { color: #8f8aa3; cursor: default; background: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ctl { display: flex; align-items: center; gap: 6em; }
.sw-wrap { display: inline-flex; align-items: center; gap: 8px; }
.sw-label { font-size: 13.5em; font-weight: 600; color: var(--nav); }
.sw { position: relative; width: 50px; height: 44px; border: 0; padding: 0; background: transparent; }
.sw i { position: absolute; left: 3px; right: 3px; top: 11px; height: 22px; border-radius: 11px; background: rgba(90,85,104,.22); box-shadow: inset 0 1px 2px rgba(40,30,70,.2); transition: background-color .25s; }
.sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(40,30,70,.3); transition: transform .25s cubic-bezier(.3,1.3,.5,1); }
.sw[aria-checked=true] i { background: var(--violet); }
.sw[aria-checked=true] i::after { transform: translateX(22px); }
.sw:focus-visible { outline: none; } .sw:focus-visible i { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---- project cards */
.cards { position: absolute; z-index: 4; display: flex; gap: 22em; }
html.wide .cards { left: 166em; top: 665em; }
.card { width: 250em; padding: 18em; border-radius: 24em; background: rgba(255,255,255,.38); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.66), 0 24px 40px -28px rgba(60,40,100,.45); }
.card i { display: block; height: 74em; border-radius: 14em; margin-bottom: 14em; }
.card h3 { margin: 0 0 .26em; font-size: 15.5em; font-weight: 600; color: var(--ink); line-height: 1.2; }
.card p { margin: 0; font-size: 13em; color: var(--muted); font-weight: 500; }
.bar { display: block; height: 6em; border-radius: 3em; background: rgba(60,40,100,.1); margin-top: 14em; overflow: hidden; }
.bar s { display: block; height: 100%; border-radius: 3em; background: linear-gradient(90deg, #9d8cff, var(--violet)); }
html.narrow .cards { left: 16em; top: 668em; gap: 10em; }
html.narrow .card { width: 112.6em; padding: 10em; border-radius: 18em; }
html.narrow .card i { height: 44em; border-radius: 11em; margin-bottom: 9em; }
html.narrow .card h3 { font-size: 12.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.narrow .card p { font-size: 11.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.narrow .bar { margin-top: 9em; height: 5em; }

/* ---- caption + brandmark */
.cap { position: absolute; z-index: 4; color: var(--ink); pointer-events: none; }
.cap b { display: block; font-size: 12em; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #5f5873; margin-bottom: .66em; }
.cap span { display: block; font-size: 17em; font-weight: 500; letter-spacing: -.005em; }
.cap i { display: block; font-style: normal; font-size: 13em; color: var(--muted); margin-top: .3em; }
html.wide .cap { left: 48em; top: 890em; }
.brandmark { position: absolute; z-index: 4; font-size: 11em; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #6b6480; pointer-events: none; }
html.wide .brandmark { right: 4.36em; top: 86.4em; }
html.narrow .cap { left: 22em; top: 802em; }
html.narrow .cap b { font-size: 11em; }
html.narrow .cap span { font-size: 14.5em; }
html.narrow .cap i, html.narrow .brandmark { display: none; }

/* ---- touch: 44 px targets */
@media (pointer: coarse) {
  .logo { min-height: 44px; }
}

/* ---- reduced motion: no rolling, no sliding, no shake */
@media (prefers-reduced-motion: reduce) {
  .odo span, .n, .panel, .sw i::after, .badge, .skip { transition: none !important; }
  .n.enter, .alert.shake, .rings i { animation: none !important; }
  .more .spin { animation-duration: 2.4s; }
}
