/* Rufat Gadirli. This page is a frame on a canvas. Every spacing, size and line height is a multiple of 4. Press I to check. */
:root {
  --canvas: #efefec;
  --dots: #d6d6d1;
  --bg: #fbfbfa;
  --card: #ffffff;
  --sunk: #f3f3f1;
  --ink: #161616;
  --body: #4a4a48;
  --muted: #8a8a86;
  --line: #e4e4e0;
  --red: #f2462e;
  --green: #16a34a;
  --red-soft: color-mix(in srgb, var(--red) 12%, transparent);
  /* tokens the playground can change */
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
  --row: 8px; --sec: 64px;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --canvas: #0b0b0a; --dots: #232321; --bg: #141413; --card: #1b1b1a; --sunk: #222220; --ink: #f0f0ec; --body: #bdbdb8; --muted: #7e7e79; --line: #2c2c29; --red: #ff5a43; --green: #4cc38a; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --canvas: #0b0b0a; --dots: #232321; --bg: #141413; --card: #1b1b1a; --sunk: #222220; --ink: #f0f0ec; --body: #bdbdb8; --muted: #7e7e79; --line: #2c2c29; --red: #ff5a43; --green: #4cc38a; color-scheme: dark; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background-color: var(--canvas); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 16px 16px; color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 150ms var(--ease); }
a:hover { text-decoration-color: var(--ink); }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--red) 24%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); }
kbd { font-family: var(--mono); font-size: 12px; line-height: 16px; min-width: 20px; height: 20px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 4px; border: 1px solid var(--line); border-bottom-width: 2px; color: var(--muted); background: var(--card); }

/* ---------- Toolbar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.file { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.file a { color: var(--ink); text-decoration: none; font-weight: 500; }
.file .sep { opacity: .6; }
.tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: 13px; line-height: 20px; transition: border-color 150ms var(--ease), color 150ms var(--ease); }
.tool:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.tool .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color 150ms var(--ease); }
.tool[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.tool[aria-pressed="true"] .dot { background: var(--red); }
@media (max-width: 640px) { .tool .lbl { display: none; } .tool { padding: 0 8px; } .file .page, .file .sep { display: none; } }

/* ---------- Frame ---------- */
.frame-label { max-width: 656px; margin: 80px auto 0; padding: 8px 4px; display: flex; justify-content: space-between; color: var(--muted); }
.frame-label b { font-weight: 400; color: var(--red); font-variant-numeric: tabular-nums; }
.frame-label .fr { display: flex; align-items: center; gap: 12px; }
.presets { display: flex; gap: 4px; }
.presets button { height: 20px; padding: 0 4px; border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 16px; transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.presets button:hover { color: var(--ink); background: var(--card); }
.presets button[aria-pressed="true"] { color: var(--red); }
@media (max-width: 688px) { .presets { display: none; } }
/* Resizable frame */
main.anim, .frame-label.anim { transition: max-width 300ms var(--ease); }
.rz { position: absolute; top: 0; bottom: 0; width: 16px; cursor: ew-resize; z-index: 3; touch-action: none; }
.rz-l { left: -8px; } .rz-r { right: -8px; }
.rz::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background: var(--red); opacity: 0; transition: opacity 150ms var(--ease); }
.rz::after { content: ""; position: sticky; display: block; top: calc(50vh - 12px); margin-top: 120px; margin-left: 4px; width: 8px; height: 24px; border-radius: 4px; background: var(--card); border: 1px solid var(--red); opacity: 0; transition: opacity 150ms var(--ease); }
main.near-l .rz-l::after, main.near-r .rz-r::after, .rz:focus-visible::after, body.resizing .rz::after { opacity: 1; }
.rz:hover::before, body.resizing .rz::before { opacity: 1; }
body.resizing, body.resizing * { cursor: ew-resize !important; user-select: none; }
@media (hover: none), (max-width: 688px) { .rz { display: none; } }
main { position: relative; max-width: 656px; margin: 0 auto 96px; padding: 48px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 688px) { .frame-label { margin: 64px 16px 0; } main { margin: 0 16px 64px; } }
main[data-size="sm"] { padding: 24px; }
section + section { margin-top: var(--sec); }
.label { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 16px; }

/* Intro */
.who { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.face { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 16px; line-height: 24px; font-weight: 500; border-radius: var(--r-m); outline: 1px solid var(--red); outline-offset: 4px; }
.face i { position: absolute; width: 8px; height: 8px; background: var(--card); border: 1px solid var(--red); }
.face i:nth-child(1) { left: -8px; top: -8px; } .face i:nth-child(2) { right: -8px; top: -8px; } .face i:nth-child(3) { left: -8px; bottom: -8px; } .face i:nth-child(4) { right: -8px; bottom: -8px; }
.face .size { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 0 4px; border-radius: 4px; white-space: nowrap; transition: opacity 150ms var(--ease); }
.face .hint { position: absolute; left: 64px; top: 50%; transform: translate(-4px, -50%); background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease), transform 150ms var(--ease); z-index: 2; }
.face:hover .hint { opacity: 1; transform: translate(0, -50%); }
.face:hover .size { opacity: 0; }
.who h1 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.who p { color: var(--muted); }
.prose p { color: var(--ink); }
.prose p + p { margin-top: 16px; }
.prose .soft { color: var(--muted); }
.links { margin-top: 24px; color: var(--muted); }
.links button { text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--ink); }
.links button:hover { text-decoration-color: var(--ink); }

/* Work list as layers */
.work { list-style: none; margin-inline: -12px; }
.work a { display: grid; grid-template-columns: 20px 24px 1fr auto; gap: 8px; align-items: baseline; padding: var(--row) 12px; border-radius: var(--r-s); text-decoration: none; color: var(--muted); outline: 1px solid transparent; outline-offset: -1px; transition: background-color 150ms var(--ease), color 150ms var(--ease), outline-color 150ms var(--ease); }
.work a:hover, .work a:focus-visible { background: var(--red-soft); outline-color: var(--red); color: var(--body); }
.work .ico { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.work a:hover .ico { color: var(--red); }
.work .no { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.work b { color: var(--ink); font-weight: 500; }
.work .yr { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
main[data-size="sm"] .work a { grid-template-columns: 20px 1fr auto; } main[data-size="sm"] .work .no { display: none; }

/* Hover preview */
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 320px; height: 208px; border-radius: var(--r-m); overflow: hidden; pointer-events: none; background: var(--sunk); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12); opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.92); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.peek.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.peek > div { position: absolute; inset: 0; display: none; }
.peek > div.show { display: block; }
.peek .phones { display: flex; justify-content: center; align-items: flex-start; gap: 12px; padding-top: 20px; }
.peek .phones img { height: auto; width: 88px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.peek .phones img:nth-child(2) { margin-top: 16px; }
.peek svg { width: 100%; height: 100%; }
@media (hover: none) { .peek { display: none; } }

/* Experience */
.xp { list-style: none; }
.xp li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding-block: var(--row); }
.xp .yr { font-family: var(--mono); font-size: 12px; line-height: 24px; color: var(--muted); }
.xp b { color: var(--ink); font-weight: 500; }
.xp span { color: var(--muted); }
main[data-size="sm"] .xp li { grid-template-columns: 1fr; gap: 0; }
main[data-size="sm"] .demo { padding: 16px; }
main[data-size="sm"] .facts { grid-template-columns: 1fr; }

footer { margin-top: 96px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; line-height: 20px; }

/* Case page */
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 40px; transition: color 150ms var(--ease); }
.back:hover { color: var(--ink); }
.case h1 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.case .lead { font-size: 18px; line-height: 28px; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 32px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.facts dd { color: var(--ink); margin-top: 4px; }
.case h2 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); margin: 40px 0 8px; }
.case .prose p { color: var(--body); }
.case .prose ul { margin-top: 12px; padding-left: 20px; color: var(--body); }
.case .prose li + li { margin-top: 4px; }
.case .prose li::marker { color: var(--muted); }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 40px; }
.nums div { background: var(--sunk); border-radius: var(--r-m); padding: 16px; }
.nums b { display: block; font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nums span { font-size: 13px; line-height: 20px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; color: var(--muted); font-size: 13px; line-height: 20px; }
.pager a b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; line-height: 24px; }
.pager a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pager .r { text-align: right; }

/* Demo widgets */
.demo { margin-top: 32px; border-radius: var(--r-l); background: var(--sunk); padding: 24px; }
.demo .cap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 500; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.btn:hover { opacity: .88; } .btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn[disabled] { opacity: .4; cursor: default; }
.note { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 12px; min-height: 20px; }
.permit { position: relative; overflow: hidden; }
.permit .agenda { border-bottom: 1px solid var(--line); }
.permit .row { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.permit .row:last-of-type { border-bottom: 0; }
.permit .row span:first-child { color: var(--muted); }
.permit .row span:last-child { color: var(--ink); text-align: right; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #d4a017; }
.permit.done .status i { background: var(--green); }
.stamp { position: absolute; right: 16px; top: 12px; padding: 4px 12px; border: 2px solid var(--red); border-radius: var(--r-s); color: var(--red); font-family: var(--mono); font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .08em; opacity: 0; transform: rotate(-12deg) scale(1.8); pointer-events: none; }
.permit.done .stamp { animation: stamp 400ms var(--ease) forwards; }
@keyframes stamp { 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: .9; transform: rotate(-12deg) scale(1); } }
.steps7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.steps7 i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color 300ms var(--ease); }
.steps7 i.on { background: var(--ink); }
.agenda { font-weight: 500; color: var(--ink); }
.board { display: flex; gap: 8px; margin-block: 16px; }
.board span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; line-height: 16px; background: var(--sunk); color: var(--muted); border: 2px solid transparent; transition: border-color 300ms var(--ease); }
.board span.y { border-color: var(--green); color: var(--ink); }
.board span.n { border-color: var(--red); color: var(--ink); }
.board span.a { border-color: var(--muted); color: var(--ink); }
.votes { display: flex; gap: 8px; flex-wrap: wrap; }
.sign { margin-top: 16px; height: 64px; border-radius: var(--r-s); border: 1px dashed var(--line); display: grid; place-items: center; }
.sign svg { width: 200px; height: 48px; }
.sign path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; }
.sign.done path { transition: stroke-dashoffset 1200ms var(--ease); stroke-dashoffset: 0; }
.flowline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 80px; }
.chip { height: 36px; padding: 0 12px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--ink); transition: opacity 300ms var(--ease), transform 300ms var(--ease), max-width 400ms var(--ease), padding 400ms var(--ease), margin 400ms var(--ease), border-color 300ms var(--ease); max-width: 200px; overflow: hidden; white-space: nowrap; }
.chip.bad { border-color: var(--red); color: var(--red); }
.chip.gone { opacity: 0; transform: scale(.8); max-width: 0; padding: 0; margin-right: -8px; border-width: 0; }
.chip.fixed { border-color: var(--green); color: var(--ink); }
.counter { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 12px; }
.poll { display: grid; gap: 8px; }
.poll button { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; transition: border-color 150ms var(--ease); }
.poll button:hover { border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.poll button.picked { border-color: var(--ink); }
.poll button .tick { opacity: 0; transition: opacity 150ms var(--ease); }
.poll button.picked .tick { opacity: 1; }
.screens { display: flex; gap: 12px; justify-content: center; }
.screens img { height: auto; width: calc((100% - 24px) / 3); max-width: 168px; border-radius: var(--r-l); box-shadow: 0 4px 16px rgba(0,0,0,.16); transition: transform 300ms var(--ease); }
.screens img:hover { transform: translateY(-4px); }

/* ---------- Inspect ---------- */
.inspecting, .inspecting * { cursor: crosshair !important; }
.inspecting .props, .inspecting .props *, .inspecting .bar, .inspecting .bar * { cursor: default !important; }
.ix { position: fixed; inset: 0; z-index: 35; pointer-events: none; display: none; }
.inspecting .ix { display: block; }
.ix .box { position: fixed; outline: 1px solid var(--red); outline-offset: -1px; transition: all 80ms linear; }
.ix .box.locked { outline-width: 2px; }
.ix .pad { position: fixed; background: var(--red-soft); transition: all 80ms linear; }
.ix .tag { position: fixed; background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; transition: all 80ms linear; }

/* Properties panel */
.props { position: fixed; right: 16px; top: 64px; z-index: 45; width: 288px; max-height: calc(100vh - 80px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(0,0,0,.12); font-size: 13px; line-height: 20px; opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.props.on { opacity: 1; transform: none; pointer-events: auto; }
.props header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.props header b { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.props .x { width: 24px; height: 24px; border-radius: 4px; color: var(--muted); display: grid; place-items: center; }
.props .x:hover { background: var(--sunk); color: var(--ink); }
.props section { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.props h4 { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
.props .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.props .kv span { color: var(--muted); } .props .kv b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.props .sw { display: flex; align-items: center; gap: 8px; padding-block: 4px; }
.props .sw i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.props .sw b { font-weight: 500; color: var(--ink); } .props .sw span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.props .copy { width: 100%; height: 32px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-weight: 500; }
.props .copy:active { transform: scale(.98); }
@media (max-width: 640px) { .props { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; max-height: 50vh; } }

/* Tokens playground */
.tokens { position: fixed; right: 16px; top: 64px; z-index: 46; width: 288px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 16px; font-size: 13px; line-height: 20px; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.tokens.on { opacity: 1; transform: none; pointer-events: auto; }
.tokens .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tokens .head b { font-weight: 600; color: var(--ink); }
.tokens .grp + .grp { margin-top: 16px; }
.tokens h4 { font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 400; color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-s); background: var(--sunk); }
.seg button { height: 28px; border-radius: 4px; color: var(--muted); font-size: 13px; line-height: 20px; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 150ms var(--ease), transform 150ms var(--ease); }
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-pressed="true"] { outline-color: var(--ink); }
.tokens .reset { margin-top: 16px; width: 100%; height: 32px; border-radius: var(--r-s); border: 1px solid var(--line); color: var(--ink); }
.tokens .reset:hover { border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
@media (max-width: 640px) { .tokens { left: 16px; right: 16px; width: auto; } }

/* Command palette */
.cmdk { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(0,0,0,.24); padding: 96px 16px 16px; }
.cmdk.on { display: block; }
.cmdk .dlg { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 24px 64px rgba(0,0,0,.24); overflow: hidden; animation: pop 200ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.cmdk input { width: 100%; height: 52px; padding: 0 20px; font-size: 16px; line-height: 24px; color: var(--ink); border-bottom: 1px solid var(--line); outline: none; }
.cmdk input::placeholder { color: var(--muted); }
.cmdk ul { list-style: none; max-height: 360px; overflow: auto; padding: 8px; }
.cmdk .grp { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); padding: 8px 12px 4px; }
.cmdk li.it { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--r-s); color: var(--ink); cursor: pointer; }
.cmdk li.it .ic { width: 16px; color: var(--muted); font-family: var(--mono); font-size: 12px; text-align: center; }
.cmdk li.it .sub { color: var(--muted); font-size: 13px; }
.cmdk li.it kbd { margin-left: auto; }
.cmdk li.it.act { background: var(--sunk); }
.cmdk .empty { padding: 24px 12px; color: var(--muted); text-align: center; }
.cmdk .foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 20px; }
.cmdk .foot span { display: inline-flex; align-items: center; gap: 4px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 20px; padding: 8px 16px; border-radius: var(--r-s); transition: opacity 200ms var(--ease), transform 200ms var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* One entrance on load */
@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 400ms var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .sign path { stroke-dashoffset: 0; } }

/* ---------- v5.1 additions ---------- */
.tool.icon { padding: 0; width: 32px; justify-content: center; }
.tool.play { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tool.play:hover { color: var(--bg); opacity: .88; }
@media (max-width: 1100px) { .tool[data-tool="overview"] .lbl, .tool[data-tool="comments"] .lbl, .tool[data-tool="tokens"] .lbl { display: none; } .tool[data-tool="overview"], .tool[data-tool="comments"], .tool[data-tool="tokens"] { padding: 0 8px; } }
@media (max-width: 640px) { .tool[data-tool="comments"], .tool[data-tool="overview"] { display: none; } }

/* Pages panel */
.pages { position: fixed; top: 48px; bottom: 0; left: 0; z-index: 38; width: 240px; padding: 12px 8px; overflow: auto; background: var(--card); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform 300ms var(--ease); font-size: 13px; line-height: 20px; }
.pages-open .pages { transform: none; }
.pages .ph { padding: 12px 8px 4px; color: var(--muted); }
.pages .ph:first-child { padding-top: 4px; }
.pages a { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--r-s); color: var(--body); text-decoration: none; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.pages a:hover { background: var(--sunk); color: var(--ink); }
.pages a[aria-current="page"] { background: var(--red-soft); color: var(--ink); font-weight: 500; }
.pages .pi { width: 16px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pages a[aria-current="page"] .pi { color: var(--red); }
.pages .py { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pages .pf { padding: 16px 8px 4px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
@media (min-width: 1100px) { body { transition: padding-left 300ms var(--ease); } .pages-open body { padding-left: 240px; } }
@media (max-width: 1099px) {
  .pages { top: auto; right: 0; width: auto; max-height: 72vh; border-right: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; transform: translateY(100%); box-shadow: 0 -12px 32px rgba(0,0,0,.12); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Export + more links */
.frame-label .exp { color: var(--muted); text-decoration: none; font-size: 12px; line-height: 16px; transition: color 150ms var(--ease); }
.frame-label .exp:hover { color: var(--ink); }
.more { margin-top: 16px; }
@media (max-width: 688px) { .frame-label .exp { display: none; } }

/* Sticky notes on the canvas */
.stickies { position: absolute; left: calc(100% + 32px); top: 48px; width: 160px; display: none; }
.sticky { background: #fde68a; color: #3d3214; font-size: 13px; line-height: 20px; padding: 12px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: rotate(var(--rot)); transition: transform 300ms var(--ease); }
.sticky + .sticky { margin-top: 24px; }
.sticky:nth-child(2) { background: #bfdbfe; color: #14284b; margin-left: 24px; }
.sticky:nth-child(3) { background: #fecaca; color: #4b1414; }
.sticky:hover { transform: rotate(0) translateY(-4px); }
@media (min-width: 1280px) { main[data-size="lg"] .stickies { display: block; } .pages-open main[data-size="lg"] .stickies { display: none; } }
@media (min-width: 1520px) { .pages-open main[data-size="lg"] .stickies { display: block; } }
:root[data-theme="dark"] .sticky { filter: brightness(.85) saturate(.8); }

/* Comments */
.cpin { position: absolute; z-index: 32; width: 32px; height: 32px; border-radius: 16px 16px 16px 4px; background: var(--ink); color: var(--bg); border: 2px solid var(--card); box-shadow: 0 4px 12px rgba(0,0,0,.16); font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 500; display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--ease); }
.comments-on .cpin { transform: scale(1); }
.cpin:hover, .cpin[aria-expanded="true"] { background: var(--red); color: #fff; }
.cbub { position: absolute; z-index: 33; width: 240px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 12px 32px rgba(0,0,0,.12); font-size: 13px; line-height: 20px; color: var(--ink); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 150ms var(--ease), transform 150ms var(--ease); }
.cbub.on { opacity: 1; transform: none; pointer-events: auto; }
.cbub .who2 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 500; }
.cbub .who2 i { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 8px; }
.cbub .who2 span { color: var(--muted); font-weight: 400; font-size: 12px; }

/* Overview */
.overview { position: fixed; inset: 48px 0 0 0; z-index: 55; overflow: auto; padding: 48px 24px; background-color: var(--canvas); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 16px 16px; display: none; }
.overview.on { display: block; }
.overview .oh { max-width: 1040px; margin: 0 auto 24px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.overview .og { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.ofr { display: block; text-decoration: none; color: var(--muted); animation: ofr 400ms var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes ofr { from { opacity: 0; transform: scale(.94) translateY(8px); } }
.ofr .mono { display: block; margin-bottom: 8px; transition: color 150ms var(--ease); }
.ofr .th { display: block; aspect-ratio: 3 / 2; background: var(--bg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; position: relative; transition: box-shadow 150ms var(--ease), transform 300ms var(--ease); }
.ofr .th svg { width: 100%; height: 100%; }
.ofr .th .phones { display: flex; justify-content: center; gap: 8px; padding-top: 16px; }
.ofr .th .phones img { width: 25%; height: auto; border-radius: 8px; }
.ofr:hover .mono, .ofr.cur .mono { color: var(--red); }
.ofr:hover .th { box-shadow: 0 0 0 2px var(--red); transform: translateY(-4px); }
.ofr.cur .th { box-shadow: 0 0 0 2px var(--red); }

/* Present */
.proto { position: fixed; inset: 0; z-index: 80; background: #0e0e0d; color: #f0f0ec; display: none; flex-direction: column; }
.proto.on { display: flex; }
.proto .ptop { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 24px; color: #8a8a86; font-family: var(--mono); font-size: 12px; line-height: 16px; }
.proto .ptop button { color: #f0f0ec; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #2c2c29; }
.proto .stage { flex: 1; position: relative; overflow: hidden; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 24px 48px; opacity: 0; transform: translateX(40px); pointer-events: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.slide.on { opacity: 1; transform: none; pointer-events: auto; }
.slide.prev { transform: translateX(-40px); }
.slide .mono { color: #8a8a86; }
.slide h2 { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -.02em; margin-top: 12px; }
.slide .sl { font-size: 18px; line-height: 28px; color: #bdbdb8; margin-top: 16px; }
.slide .sn { display: flex; gap: 32px; margin: 32px 0; flex-wrap: wrap; }
.slide .sn b { display: block; font-size: 28px; line-height: 36px; font-weight: 500; }
.slide .sn span { font-size: 13px; line-height: 20px; color: #8a8a86; }
.slide .btn { background: #f0f0ec; color: #0e0e0d; }
.slide .sv { aspect-ratio: 320 / 208; border-radius: 16px; overflow: hidden; background: #1b1b1a; --card: #222220; --line: #3a3a36; --ink: #f0f0ec; --sunk: #1b1b1a; --muted: #7e7e79; }
.slide .sv svg { width: 100%; height: 100%; }
.slide .sv .phones { display: flex; justify-content: center; gap: 16px; padding-top: 32px; }
.slide .sv .phones img { width: 26%; height: auto; border-radius: 12px; }
.slide .sv .phones img:nth-child(2) { margin-top: 24px; }
.proto .pbot { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 24px; }
.proto .pbot button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2c2c29; color: #f0f0ec; font-size: 16px; }
.proto .pbot button:hover { background: #222220; }
.proto .bar2 { flex: 1; height: 4px; border-radius: 2px; background: #2c2c29; overflow: hidden; }
.proto .bar2 i { display: block; height: 100%; background: var(--red); transform-origin: left; transition: transform 400ms var(--ease); }
@media (max-width: 760px) { .slide { grid-template-columns: 1fr; gap: 24px; padding: 16px 24px; align-content: center; } .slide h2 { font-size: 28px; line-height: 36px; } .slide .sv { order: -1; } }

/* Playground + versions */
.toys { list-style: none; margin-top: 32px; display: grid; gap: 8px; }
.toys button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); text-align: left; color: var(--muted); transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.toys button:hover { border-color: var(--red); }
.toys button:active { transform: scale(.99); }
.toys b { color: var(--ink); font-weight: 500; display: block; }
.vers { list-style: none; margin-top: 32px; display: grid; gap: 24px; }
.ver { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.ver .vt { display: block; border-radius: var(--r-s); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ver .vt svg { width: 100%; height: auto; display: block; }
.ver b { display: block; color: var(--ink); font-weight: 600; }
.ver .vs { display: block; color: var(--muted); margin-top: 4px; }
.ver:first-child .vs { color: var(--red); }
.ver .vd { display: block; margin-top: 8px; color: var(--body); }
main[data-size="sm"] .ver { grid-template-columns: 1fr; gap: 12px; }

.ofr:focus-visible { outline: none; }
.ofr:focus-visible .th { box-shadow: 0 0 0 2px var(--red); }

/* ---------- v5.2 additions ---------- */
:root { --muted: #6f6f6b; }
:root[data-theme="dark"] { --muted: #8f8f89; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --muted: #8f8f89; } }

/* status + plugins */
.status { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
@media (max-width: 900px) { .status { display: none; } }
@media (max-width: 1100px) { .tool[data-tool="plugins"] .lbl { display: none; } .tool[data-tool="plugins"] { padding: 0 8px; } }
.cb-flag { outline: 2px dashed var(--red) !important; outline-offset: 2px; }

/* canvas wrapper, zoom, pan */
.cv-wrap { transform-origin: 50% 0; }
.zoom-pill { position: fixed; right: 16px; bottom: 16px; z-index: 39; height: 32px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); color: var(--body); font-family: var(--mono); font-size: 12px; line-height: 16px; display: inline-flex; align-items: center; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease); }
.zoom-pill.on { opacity: 1; pointer-events: auto; }
body.space, body.space * { cursor: grab !important; }
body.panning, body.panning * { cursor: grabbing !important; user-select: none; }


/* grid overlay */
main.grid::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; background-image: linear-gradient(to bottom, color-mix(in srgb, var(--red) 22%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--red) 8%, transparent) 1px, transparent 1px); background-size: 100% 16px, 100% 4px; }

/* measure */
.mline { position: fixed; background: var(--red); z-index: 36; pointer-events: none; }
.mtag { position: fixed; z-index: 36; background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 0 4px; border-radius: 4px; pointer-events: none; transform: translate(-50%, -50%); }

/* dev mode tabs in properties */
.props .tabs { display: flex; gap: 4px; padding: 8px 16px 0; }
.props .tabs button { height: 28px; padding: 0 12px; border-radius: var(--r-s); color: var(--muted); font-size: 13px; }
.props .tabs button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); }
.props pre { margin: 0; padding: 12px; background: var(--sunk); border-radius: var(--r-s); font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.props pre .k { color: var(--red); } .props pre .v { color: var(--muted); }
.props .vsel { display: grid; gap: 4px; }
.props .vsel button { text-align: left; height: 28px; padding: 0 8px; border-radius: var(--r-s); color: var(--body); }
.props .vsel button[aria-pressed="true"] { background: var(--red-soft); color: var(--ink); }

/* avatar variants */
.face[data-v="meeting"] { background: var(--muted); }
.face[data-v="shipping"] { background: var(--green); }
.face[data-v="vacation"] { background: #e0a400; color: #1b1405; }
.face { cursor: pointer; }

/* cursor chat */
.cchat { position: fixed; z-index: 75; display: none; align-items: center; gap: 8px; pointer-events: none; }
.cchat.on { display: flex; }
.cchat svg { width: 16px; height: 16px; flex: none; transform: translate(-4px, -8px); }
.cchat .cbox { pointer-events: auto; background: var(--red); color: #fff; border-radius: 4px 16px 16px 16px; padding: 8px 12px; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.cchat input { width: 240px; color: #fff; font-size: 14px; line-height: 20px; outline: none; }
.cchat input::placeholder { color: rgba(255,255,255,.72); }
.cchat .chint { display: block; font-family: var(--mono); font-size: 12px; line-height: 16px; opacity: .8; margin-top: 4px; }

/* Rufat's cursor */

/* boot loader */
.boot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background-color: var(--canvas); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 16px 16px; transition: opacity 300ms var(--ease); }
.boot.out { opacity: 0; pointer-events: none; }
.boot .bx2 { width: 280px; }
.boot .file2 { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.boot .file2 i { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 12px; }
.boot .pb { height: 4px; border-radius: 2px; background: var(--line); margin-top: 16px; overflow: hidden; }
.boot .pb i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform 1000ms cubic-bezier(.4, 0, .2, 1); }
.boot .msg { margin-top: 8px; color: var(--muted); }

/* prototype flows in overview */
.og { position: relative; }
.flows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flows path { fill: none; stroke: #2b59ff; stroke-width: 1.5; opacity: .8; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 900ms var(--ease) forwards; animation-delay: 300ms; }
.flows circle { fill: #2b59ff; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.overview .oh button { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.overview .oh button:hover { color: var(--ink); }
.overview.noflows .flows { display: none; }

/* shortcuts sheet */
.keys { position: fixed; inset: 0; z-index: 65; display: none; place-items: center; background: rgba(0,0,0,.24); padding: 16px; }
.keys.on { display: grid; }
.keys .dlg { width: min(480px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 24px 64px rgba(0,0,0,.24); padding: 20px; animation: pop 200ms var(--ease); }
.keys h3 { font-size: 16px; line-height: 24px; color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.keys ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.keys li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--body); }
.keys .kk { display: inline-flex; gap: 4px; }
@media (max-width: 480px) { .keys ul { grid-template-columns: 1fr; } }

/* languages */
.langs { display: inline-flex; gap: 4px; }
.langs button { font-family: var(--mono); font-size: 12px; line-height: 16px; height: 20px; padding: 0 4px; border-radius: 4px; color: var(--muted); }
.langs button[aria-pressed="true"] { color: var(--ink); background: var(--sunk); }
.xlate { margin-bottom: 24px; padding: 12px 16px; border-radius: var(--r-m); background: var(--sunk); font-size: 13px; line-height: 20px; color: var(--body); }

/* empty states */
.es { border: 1px dashed color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--r-l); padding: 20px; }
.thread .c-row { display: flex; gap: 12px; }
.thread .c-row + .c-row { margin-top: 16px; }
.thread .c-row.reply { margin-left: 44px; }
.c-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sunk); color: var(--muted); font-family: var(--mono); font-size: 12px; border: 1px dashed var(--muted); }
.c-av.me { background: var(--ink); color: var(--bg); border-style: solid; border-color: var(--ink); }
.thread b { color: var(--ink); font-weight: 500; }
.thread p { color: var(--body); margin-top: 4px; }
.thread .btn { margin-top: 20px; }
.decision, .ba-wrap { margin-top: 40px; }
.decision.es { position: relative; overflow: hidden; }
.dopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dopts > * { display: block; text-align: left; padding: 16px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); color: var(--body); font-size: 14px; line-height: 20px; }
.dopts b { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dopts.ghosted { filter: blur(4px); opacity: .6; }
.empty-msg { position: absolute; inset: 40px 0 0 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; padding: 0 24px; }
.empty-msg b { color: var(--ink); font-weight: 600; }
.empty-msg p { color: var(--body); max-width: 40ch; }
.empty-msg .btn { margin-top: 8px; }
.decision:not(.es) .dopts button:hover { border-color: var(--ink); }
.decision .dopts button.picked { border-color: var(--red); }
.decision .dopts button.right::after { content: "Rufat picked this"; display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--red); }
.dq { color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.dwhy { margin-top: 12px; color: var(--body); }
.ba { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); user-select: none; }
.ba-before, .ba-after { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ba-before { background: var(--sunk); }
.ba-before i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.ba-after { background: var(--card); clip-path: inset(0 0 0 var(--x)); gap: 16px; padding: 32px; }
.ba-after i { display: block; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.ba-after i.cta { position: absolute; left: 32px; bottom: 32px; width: 120px; height: 36px; border-radius: var(--r-s); background: var(--ink); }
.ba-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--bg); }
.ba-before .ba-tag { left: 12px; } .ba-after .ba-tag { right: 12px; }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--red); pointer-events: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.moving { text-align: center; padding: 32px 20px; }
.moving b { display: block; color: var(--ink); font-weight: 600; margin-top: 16px; }
.moving p { color: var(--body); margin-top: 4px; }
.box-row { display: flex; justify-content: center; gap: 12px; }
.bx { width: 40px; height: 32px; border-radius: 4px; background: #d9b98a; position: relative; box-shadow: inset 0 -8px 0 rgba(0,0,0,.06); animation: hop 1600ms var(--ease) infinite; }
.bx::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px; background: rgba(255,255,255,.35); }
.bx:nth-child(2) { animation-delay: 160ms; } .bx:nth-child(3) { animation-delay: 320ms; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-8px); } }

/* 404 */
.nf-art { margin: 40px 0; aspect-ratio: 3 / 2; border: 1px dashed color-mix(in srgb, var(--ink) 24%, transparent); display: grid; place-items: center; background-image: repeating-linear-gradient(45deg, transparent 0 8px, var(--sunk) 8px 16px); }
.nf-art span { font-family: var(--mono); font-size: 48px; line-height: 56px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .bx { animation: none; } .flows path { stroke-dashoffset: 0; } }

/* readable red for small labels (WCAG AA with white text) */
.face .size, .ix .tag, .mtag { background: #c8321c; }

.decision.es .dopts > * { min-height: 160px; }
.decision.es .empty-msg { inset: 36px 0 0 0; }

.cmdk li.it > span:nth-child(2) { white-space: nowrap; }
.cmdk li.it .sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) { .tool[data-tool="tokens"] { display: none; } .tools { gap: 4px; } }

/* Pages icon: filled and a little physical, readable on every theme and accent */
.tool.icon { width: 36px; }
.sb-ico { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.sb-body { fill: var(--sunk); }
.sb-gloss { fill: #fff; opacity: .16; }
.sb-rim { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1; }
.tool.icon[aria-pressed="true"] { border-color: var(--red); }
:root[data-theme="dark"] .sb-gloss { opacity: .08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-gloss { opacity: .08; } }

/* ---------- v5.3: project tokens, wide demos, marquee, guides, transitions ---------- */


/* Marquee selection */
.marquee { position: fixed; z-index: 60; pointer-events: none; border: 1px solid #2b8cff; background: rgba(43, 140, 255, .08); }
.msel { outline: 1px solid #2b8cff !important; outline-offset: 2px; }
.msel.mshake { animation: mshake 360ms var(--ease); }
@keyframes mshake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* Smart guides while resizing */
.sguide { position: fixed; top: 0; bottom: 0; width: 1px; z-index: 55; background: var(--red); pointer-events: none; opacity: 0; transition: opacity 120ms var(--ease); }
.sguide.on { opacity: 1; }
.stag { position: fixed; top: 56px; z-index: 56; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; line-height: 16px; pointer-events: none; opacity: 0; transition: opacity 120ms var(--ease); }
.stag.on { opacity: 1; }
main.snap { animation: snap 200ms var(--ease); }
@keyframes snap { 50% { box-shadow: 0 0 0 1px var(--red); } }

/* Page transitions: the frame slides like switching pages in a file */
@view-transition { navigation: auto; }
main { view-transition-name: frame; }
.frame-label { view-transition-name: flabel; }
.bar { view-transition-name: bar; }
.pages { view-transition-name: pages; }
::view-transition-group(frame), ::view-transition-group(flabel) { animation-duration: 320ms; animation-timing-function: var(--ease); }
::view-transition-old(frame) { animation: vt-out 200ms var(--ease) both; }
::view-transition-new(frame) { animation: vt-in 320ms var(--ease) 60ms both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px) scale(.99); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .msel.mshake, main.snap { animation: none; }
}

/* ---------- v5.4: footer meta, sticky label, mobile menu, cursor, tour ---------- */

/* Experience: years never wrap */
.xp .yr { white-space: nowrap; }
.xp.tl li { grid-template-columns: 144px 1fr; }
main[data-size="sm"] .xp.tl li { grid-template-columns: 1fr; }

/* Footer: Figma-style file meta */
footer .edited { display: inline-flex; align-items: center; gap: 8px; color: var(--body); }
footer .edited time { color: var(--ink); }
footer .av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 8px; line-height: 20px; font-style: normal; font-weight: 500; }
@media (hover: none) { footer .kh { display: none; } }

/* Sticky frame label with scroll progress */
.frame-label { position: sticky; top: 48px; z-index: 30; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.frame-label.stuck { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.frame-label .spct { color: var(--ink); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 200ms var(--ease); }
.frame-label.stuck .spct { opacity: 1; }
.frame-label .sbar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity 200ms var(--ease); }
.frame-label.stuck .sbar { opacity: 1; }

/* Mobile menu (sheet below 1100, menu button below 640) */
.tool.menu { display: none; }
.ps-head, .pm { display: none; }
.ps-scrim { position: fixed; inset: 0; z-index: 37; background: rgba(10, 10, 9, .4); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
@media (max-width: 1099px) {
  .pages-open .ps-scrim { opacity: 1; pointer-events: auto; }
  .pages { z-index: 45; padding: 0 12px 16px; touch-action: pan-y; }
  .pages.dragging { transition: none; }
  .ps-head, .pm { display: flex; }
  .ps-head { position: sticky; top: 0; z-index: 1; align-items: center; justify-content: space-between; height: 56px; margin: 0 -12px 4px; padding: 8px 12px 0 20px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink); touch-action: none; cursor: grab; }
  .ps-grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line); }
  .ps-x { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--body); background: var(--sunk); }
  .pages a { height: 48px; padding: 0 12px; font-size: 15px; line-height: 20px; }
  .pages .ph { padding: 16px 12px 4px; }
  .pages .pf { display: none; }
  .pa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 0 0; }
  .pa button, .pa a { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 20px; text-decoration: none; text-align: left; }
  .pa button:active, .pa a:active { background: var(--sunk); }
}
@media (max-width: 640px) {
  .file .tool.icon { display: none; }
  .tools > :not(.menu) { display: none; }
  .tool.menu { display: inline-flex; height: 36px; padding: 0 12px; gap: 8px; color: var(--ink); font-size: 14px; }
  .tool.menu svg { fill: currentColor; }
  .pages-open .tool.menu { border-color: var(--red); color: var(--red); }
}
html.sheet-lock, html.sheet-lock body { overflow: hidden; }

/* Onboarding tour */
.tr { position: fixed; inset: 0; z-index: 90; }
.tr-dim { position: fixed; inset: 0; background: rgba(10, 10, 9, .56); transition: clip-path 600ms cubic-bezier(.45, 0, .2, 1); }
.tr-spot { position: fixed; border-radius: 6px; outline: 2px solid var(--red); outline-offset: 0; pointer-events: none; transition: left 600ms cubic-bezier(.45, 0, .2, 1), top 600ms cubic-bezier(.45, 0, .2, 1), width 600ms cubic-bezier(.45, 0, .2, 1), height 600ms cubic-bezier(.45, 0, .2, 1), outline-color 200ms var(--ease); }
.tr-spot.none { outline-color: transparent; border-radius: 50%; }
.tr-spot::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--red); animation: spotpulse 1600ms var(--ease) infinite; }
.tr-spot.none::after { display: none; }
@keyframes spotpulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.15); } }
.tr-cur { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; transition: transform 900ms cubic-bezier(.45, 0, .2, 1), opacity 300ms var(--ease); }
.tr-cur.fast { transition-duration: 600ms; }
.tr-cur svg { width: 20px; height: 22px; display: block; overflow: visible; }
.tr-cur path { fill: #2b59ff; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.tr-cur .gn { display: inline-block; margin: 0 0 0 16px; background: #2b59ff; color: #fff; font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px 8px 8px 8px; white-space: nowrap; font-family: var(--mono); }
.tr-cur.click svg { animation: tclick 360ms var(--ease); }
.tr-cur .rip { position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #2b59ff; opacity: 0; }
.tr-cur.click .rip { animation: rip 500ms var(--ease); }
@keyframes tclick { 40% { transform: scale(.8); } }
.tr-card { position: fixed; z-index: 3; width: 320px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 24px 48px rgba(0, 0, 0, .24); color: var(--body); font-size: 14px; line-height: 20px; transition: left 600ms cubic-bezier(.45, 0, .2, 1), top 600ms cubic-bezier(.45, 0, .2, 1), opacity 200ms var(--ease); }
.tr-card.swap .tv, .tr-card.swap h3, .tr-card.swap p { opacity: 0; transform: translateY(4px); }
.tr-card .tv, .tr-card h3, .tr-card p { transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.tr-card h3 { margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.tr-card p { margin-top: 4px; color: var(--muted); }
.tr-card kbd { font-size: 12px; }
.tr-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tr-foot .tn { margin-right: auto; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.tr-foot button { height: 32px; padding: 0 12px; border-radius: var(--r-s); font-size: 13px; line-height: 20px; color: var(--body); }
.tr-foot button:hover { color: var(--ink); background: var(--sunk); }
.tr-foot .tnext { background: var(--ink); color: var(--bg); }
.tr-foot .tnext:hover { background: var(--ink); color: var(--bg); opacity: .88; }
.tr-dots { display: flex; gap: 4px; margin-right: auto; }
.tr-dots i { width: 4px; height: 4px; border-radius: 2px; background: var(--line); transition: width 300ms var(--ease), background-color 300ms var(--ease); }
.tr-dots i.on { width: 16px; background: var(--red); }

/* Tour visuals: tiny looping demos of each feature */
.tv { position: relative; height: 112px; border-radius: var(--r-m); background-color: var(--sunk); background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 8px 8px; overflow: hidden; }
.tv .mf { position: absolute; left: 50%; top: 16px; bottom: 0; width: 160px; transform: translateX(-50%); background: var(--bg); box-shadow: 0 0 0 1px var(--line); padding: 12px; border-radius: 4px 4px 0 0; }
.tv .mf i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.tv .mf i:nth-child(1) { width: 40%; background: var(--ink); }
.tv .mf i:nth-child(2) { width: 90%; } .tv .mf i:nth-child(3) { width: 70%; } .tv .mf i:nth-child(4) { width: 80%; }
.tv-hello .mf i { animation: grow 2400ms var(--ease) infinite both; }
.tv-hello .mf i:nth-child(2) { animation-delay: 150ms; } .tv-hello .mf i:nth-child(3) { animation-delay: 300ms; } .tv-hello .mf i:nth-child(4) { animation-delay: 450ms; }
@keyframes grow { 0% { transform: scaleX(0); transform-origin: 0 50%; } 30%, 100% { transform: scaleX(1); transform-origin: 0 50%; } }
.tv-hello .tag { position: absolute; left: calc(50% - 80px); top: 2px; font-family: var(--mono); font-size: 10px; line-height: 12px; color: var(--muted); }
.tv-resize .mf { animation: squeeze 2800ms cubic-bezier(.45, 0, .2, 1) infinite; }
.tv-resize .mf::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 2px; background: var(--red); }
.tv-resize .wtag { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; line-height: 12px; color: var(--red); }
.tv-resize .wtag b { font-weight: 400; }
.tv-resize .wtag b:nth-child(2) { position: absolute; left: 0; top: 0; }
@keyframes squeeze { 0%, 15%, 100% { width: 160px; } 45%, 70% { width: 88px; } }
.tv-resize .wtag b:first-child { animation: wa 2800ms steps(1) infinite; } .tv-resize .wtag b:nth-child(2) { animation: wb 2800ms steps(1) infinite; }
@keyframes wa { 0% { opacity: 1; } 45% { opacity: 0; } 71% { opacity: 1; } }
@keyframes wb { 0% { opacity: 0; } 45% { opacity: 1; } 71% { opacity: 0; } }
.tv-inspect .el { position: absolute; left: 72px; top: 32px; width: 144px; height: 48px; border-radius: 4px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.tv-inspect .el::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--red-soft) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--red) 18%, transparent), 0 0 0 1px var(--red); opacity: 0; animation: ixon 2600ms var(--ease) infinite; }
.tv-inspect .el i { position: absolute; left: 12px; right: 12px; top: 20px; height: 8px; border-radius: 4px; background: var(--ink); }
.tv-inspect .lab { position: absolute; left: 72px; top: 12px; padding: 0 4px; border-radius: 4px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 10px; line-height: 16px; opacity: 0; animation: ixon 2600ms var(--ease) infinite; }
@keyframes ixon { 0%, 35% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }
.tv .mc { position: absolute; width: 14px; height: 16px; animation: mcmove 2600ms cubic-bezier(.45, 0, .2, 1) infinite; }
.tv .mc path { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
@keyframes mcmove { 0% { left: 250px; top: 90px; } 35%, 100% { left: 150px; top: 56px; } }
.tv-cmdk .pal { position: absolute; left: 40px; right: 40px; top: 12px; border-radius: 8px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 8px 16px rgba(0, 0, 0, .08); overflow: hidden; }
.tv-cmdk .q { height: 28px; padding: 0 10px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink); }
.tv-cmdk .q span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: type 2800ms steps(4) infinite; }
.tv-cmdk .q::after { content: ""; width: 1px; height: 12px; background: var(--red); margin-left: 1px; animation: blink 800ms steps(1) infinite; }
@keyframes type { 0%, 10% { width: 0; } 45%, 100% { width: 4ch; } }
@keyframes blink { 50% { opacity: 0; } }
.tv-cmdk .r { height: 22px; margin: 4px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border-radius: 4px; font-size: 11px; color: var(--body); }
.tv-cmdk .r b { font-weight: 500; color: var(--ink); }
.tv-cmdk .r:first-of-type { animation: hl 2800ms var(--ease) infinite; }
.tv-cmdk .r:not(:first-of-type) { animation: fadeout 2800ms var(--ease) infinite; }
@keyframes hl { 0%, 45% { background: transparent; } 55%, 100% { background: var(--red-soft); } }
@keyframes fadeout { 0%, 35% { opacity: 1; } 50%, 100% { opacity: .25; } }
.tv-tokens .card { position: absolute; left: 50%; top: 20px; width: 168px; transform: translateX(-50%); padding: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); animation: rad 4000ms steps(1) infinite; }
.tv-tokens .card i { display: block; height: 6px; width: 70%; border-radius: 3px; background: var(--line); margin-bottom: 12px; }
.tv-tokens .card b { display: block; height: 24px; width: 88px; animation: acc 4000ms steps(1) infinite, rad 4000ms steps(1) infinite; }
.tv-tokens .sw { position: absolute; right: 12px; top: 20px; display: grid; gap: 4px; }
.tv-tokens .sw s { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
@keyframes acc { 0% { background: #f2462e; } 25% { background: #2b59ff; } 50% { background: #3f8f4a; } 75% { background: #e08a00; } }
@keyframes rad { 0% { border-radius: 8px; } 25% { border-radius: 0; } 50% { border-radius: 16px; } 75% { border-radius: 4px; } }
.tv-comments .mf i { background: var(--line) !important; }
.tv-comments .pin { position: absolute; width: 20px; height: 20px; border-radius: 10px 10px 10px 2px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 10px; line-height: 20px; text-align: center; transform: scale(0); animation: pop 3000ms cubic-bezier(.3, 1.6, .5, 1) infinite; }
.tv-comments .pin:nth-of-type(1) { left: 92px; top: 28px; } .tv-comments .pin:nth-of-type(2) { left: 196px; top: 52px; animation-delay: 300ms; } .tv-comments .pin:nth-of-type(3) { left: 120px; top: 76px; animation-delay: 600ms; }
.tv-comments .bub { position: absolute; left: 168px; top: 22px; padding: 4px 8px; border-radius: 4px 8px 8px 8px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .08); font-size: 10px; line-height: 14px; color: var(--ink); white-space: nowrap; opacity: 0; animation: ixon 3000ms var(--ease) infinite; animation-delay: 300ms; }
@keyframes pop { 0% { transform: scale(0); } 15%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.tv-present .strip { position: absolute; left: 0; top: 16px; display: flex; gap: 16px; padding-left: 64px; animation: slides 4500ms cubic-bezier(.65, 0, .35, 1) infinite; }
.tv-present .sl { width: 160px; height: 80px; flex: none; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); padding: 12px; }
.tv-present .sl i { display: block; height: 6px; width: 50%; border-radius: 3px; background: var(--ink); margin-bottom: 8px; }
.tv-present .sl s { display: block; height: 32px; border-radius: 4px; background: var(--red-soft); }
@keyframes slides { 0%, 25% { transform: translateX(0); } 33%, 58% { transform: translateX(-176px); } 66%, 92% { transform: translateX(-352px); } 100% { transform: translateX(0); } }
.tv-done .key { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -28px 0 0 -24px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--line); font-family: var(--mono); font-size: 20px; color: var(--ink); animation: press 1600ms var(--ease) infinite; }
@keyframes press { 0%, 60%, 100% { transform: translateY(0); box-shadow: 0 0 0 1px var(--line), 0 4px 0 var(--line); } 70%, 85% { transform: translateY(3px); box-shadow: 0 0 0 1px var(--line), 0 1px 0 var(--line); } }
@media (prefers-reduced-motion: reduce) {
  .tv *, .tv *::before, .tv *::after, .tr-spot::after { animation: none !important; }
  .tr-spot, .tr-card, .tr-cur, .tr-dim { transition: none; }
}
footer .edited { order: 0; } footer .kh { order: 1; } footer > span:not(.edited):not(.kh) { order: 2; flex-basis: 100%; }

/* ---------- v5.5: skeuomorphic cursor, calmer sticky label, animated sidebar icon, versions case study ---------- */

/* Cursor: a little physical. Arrow tracks 1:1, the tag springs behind */
html.cc, html.cc * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 150ms var(--ease); view-transition-name: cur; }
.cur.on, html.cc-pos .cur { opacity: 1; }
html:not(.cc) .cur { display: none; }
.cur .cp { position: absolute; left: 0; top: 0; transform: translate3d(calc(var(--cx, -100px) - 4px), calc(var(--cy, -100px) - 4px), 0); }
.cur .cg { display: block; transform-origin: 4px 4px; transition: transform 180ms cubic-bezier(.3, 1.6, .5, 1), filter 180ms var(--ease); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22)) drop-shadow(0 0 .5px rgba(0, 0, 0, .35)); }
.cur svg { display: block; overflow: visible; }
.cur .s1 { stop-color: color-mix(in srgb, var(--ink) 62%, #fff); transition: stop-color 150ms var(--ease); }
.cur .s2 { stop-color: var(--ink); transition: stop-color 150ms var(--ease); }
.cur .bd { fill: url(#cg-a); stroke: var(--bg); stroke-width: 1.6; stroke-linejoin: round; }
.cur .gl { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.cur.link .s1 { stop-color: color-mix(in srgb, var(--red) 55%, #fff); }
.cur.link .s2 { stop-color: var(--red); }
.cur.link .cg { transform: scale(1.1) rotate(-6deg); }
.cur.down .cg { transform: scale(.84); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)) drop-shadow(0 0 .5px rgba(0, 0, 0, .35)); }
.cur .c-alt { display: none; }
.cur.text .c-arrow, .cur.resize .c-arrow, .cur.grab .c-arrow { display: none; }
.cur.text .c-text, .cur.resize .c-rz, .cur.grab .c-grab { display: block; }
.cur .c-text { transform: translate(-3px, -9px); }
.cur .c-text path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; paint-order: stroke; }
.cur .c-rz { transform: translate(-12px, -7px); }
.cur .c-rz path { fill: var(--red); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.cur .c-grab { transform: translate(-8px, -8px); }
.cur .c-grab path { fill: var(--card); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.cur.grab.down .c-grab { transform: translate(-8px, -8px) scale(.9); }
.cur .c-busy, .cur .c-no { position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; border-radius: 50%; display: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cur .c-busy { border: 2px solid color-mix(in srgb, var(--ink) 18%, var(--card)); border-top-color: var(--red); background: var(--card); animation: cspin 700ms linear infinite; }
.cur.busy .c-busy { display: block; }
.cur .c-no { background: linear-gradient(#ff6a55, var(--red)); }
.cur .c-no::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; border-radius: 1px; background: #fff; transform: rotate(-45deg); }
.cur.no .c-no { display: block; }
.cur.no .s1 { stop-color: color-mix(in srgb, var(--ink) 40%, #fff); }
@keyframes cspin { to { transform: rotate(360deg); } }
.cur .ct { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 4px 8px 8px 8px; background: linear-gradient(color-mix(in srgb, var(--red) 82%, #fff), var(--red)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 .5px color-mix(in srgb, var(--red) 70%, #000), 0 3px 8px rgba(0, 0, 0, .2); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); font-family: var(--mono); font-size: 12px; line-height: 16px; white-space: nowrap; opacity: 0; transform-origin: 0 0; transition: opacity 150ms var(--ease); }
.cur .ct.on { opacity: 1; }
.cur .rip { position: absolute; left: -9px; top: -9px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--red); opacity: 0; }
.cur .rip.go { animation: rip 420ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .cur .cg { transition: none; } .cur .c-busy { animation-duration: 2s; } }

/* Sticky label: only name and progress once it sticks */
.frame-label .fr { transition: opacity 200ms var(--ease); }
.frame-label.stuck .fr { opacity: 0; pointer-events: none; }
.frame-label.stuck { color: var(--muted); }
.frame-label .spct { color: var(--muted); }

/* Sidebar icon: the side panel slides open and shut */
.sb-side, .sb-line { transform-box: view-box; }
.sb-side { fill: var(--ink); transform-origin: 1px 9px; transform: scaleX(.6); transition: transform 320ms cubic-bezier(.3, 1.4, .5, 1), fill 150ms var(--ease); }
.sb-line { fill: var(--bg); opacity: 0; transform: translateX(-3px); transition: opacity 200ms var(--ease), transform 320ms cubic-bezier(.3, 1.4, .5, 1); }
.sb-line:nth-of-type(2) { transition-delay: 30ms; } .sb-line:nth-of-type(3) { transition-delay: 60ms; }
.tool.icon:hover .sb-side { transform: scaleX(.75); fill: var(--red); }
.tool.icon[aria-pressed="true"] .sb-side { transform: scaleX(1); fill: var(--red); }
.tool.icon[aria-pressed="true"] .sb-line { opacity: .9; transform: none; }
.tool.icon:active .sb-ico { transform: scale(.92); }
.sb-ico { transition: transform 120ms var(--ease); }

/* Versions case study */
.vers .vl { display: block; margin-top: 8px; color: var(--body); font-size: 14px; line-height: 20px; }
.vers .vl i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--red); margin-right: 4px; }
.vnow { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; margin-top: 24px; padding: 16px; border-radius: var(--r-l); background: var(--red-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent); }
.vnow .vt svg { display: block; width: 100%; height: auto; border-radius: var(--r-s); }
.vnow b { display: block; color: var(--ink); font-weight: 600; }
.vnow .vs { display: block; font-size: 12px; line-height: 16px; color: var(--red); margin-top: 4px; }
.vnow p { margin-top: 8px; color: var(--body); font-size: 14px; line-height: 20px; }
main[data-size="sm"] .vnow { grid-template-columns: 1fr; }
.vlog { margin-top: 16px; border-left: 1px solid var(--line); margin-left: 8px; }
.vlog-i { position: relative; padding-left: 24px; }
.vlog-i::before { content: ""; position: absolute; left: -5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--muted); transition: box-shadow 150ms var(--ease); }
.vlog-i[open]::before, .vlog-i:first-child::before { box-shadow: inset 0 0 0 5px var(--red); }
.vlog-i summary { display: flex; align-items: center; gap: 12px; min-height: 36px; padding-block: 4px; list-style: none; border-radius: var(--r-s); }
.vlog-i summary::-webkit-details-marker { display: none; }
.vlog-i summary:hover b { color: var(--red); }
.vlog-i summary b { color: var(--ink); font-weight: 500; transition: color 150ms var(--ease); }
.vlog-i .vn { width: 40px; flex: none; font-size: 12px; line-height: 16px; color: var(--muted); }
.vlog-i .vdate { flex: 1; text-align: right; font-size: 12px; line-height: 16px; color: var(--muted); }
.vlog-i .vbody { padding: 0 0 16px 52px; color: var(--body); font-size: 14px; line-height: 20px; }
.vlog-i .vq { margin-top: 4px; color: var(--muted); font-style: italic; }
main[data-size="sm"] .vlog-i .vbody { padding-left: 0; }
.grave { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
.tomb { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 48px 48px var(--r-s) var(--r-s); background: linear-gradient(var(--card), var(--sunk)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px var(--line), 0 4px 0 var(--line); text-align: center; transition: transform 300ms var(--ease); }
.tomb .rip { font-size: 12px; line-height: 16px; color: var(--muted); letter-spacing: .1em; }
.tomb b { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; }
.tomb p { color: var(--muted); font-size: 13px; line-height: 20px; flex: 1; }
.tomb .respect { margin-top: 8px; height: 28px; border-radius: var(--r-s); font-size: 12px; line-height: 16px; color: var(--body); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.tomb .respect:hover { background: var(--bg); color: var(--ink); }
.tomb.paid { transform: translateY(2px); }
.tomb.paid .respect { color: var(--red); }
.tomb .flower { position: absolute; bottom: 8px; font-size: 16px; line-height: 16px; pointer-events: none; animation: flower 900ms var(--ease) forwards; }
@keyframes flower { from { opacity: 0; transform: translateY(-24px) rotate(-30deg); } to { opacity: 1; transform: none; } }

/* ---------- v5.6 ---------- */
/* Smaller hover preview */
.peek { width: 224px; height: 144px; }
.peek .phones { gap: 8px; padding-top: 12px; }
.peek .phones img { width: 60px; border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.peek .phones img:nth-child(2) { margin-top: 12px; }
.peek.on { transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }

/* Cursor: no stem, so the shadow and gloss sit on a compact pointer */
.cur .gl { stroke-opacity: .55; }

/* Tokens: Redline is the main token, the rest are alternatives */
.sw-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: var(--r-s); background: var(--bg); text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 150ms var(--ease); }
.sw-main i { width: 28px; height: 28px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 70%); box-shadow: inset 0 -1px 2px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.2); }
.sw-main > span { display: flex; flex-direction: column; flex: 1; }
.sw-main b { font-weight: 500; color: var(--ink); font-size: 13px; line-height: 20px; }
.sw-main .mono { font-size: 12px; line-height: 16px; color: var(--muted); }
.sw-main em { font-style: normal; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 0 8px; border-radius: 8px; color: #fff; background: #f2462e; }
.sw-main[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.sw-alt { margin: 12px 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.swatches { flex-wrap: wrap; }
.swatches button { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 70%); box-shadow: inset 0 -1px 2px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.18); }

/* Skeuomorphic controls, quietly: a top highlight, a bottom edge, a press */
:root { --sk-hi: rgba(255,255,255,.7); --sk-sheen: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); --sk-edge: rgba(0,0,0,.07); }
:root[data-theme="dark"] { --sk-hi: rgba(255,255,255,.07); --sk-sheen: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,0)); --sk-edge: rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sk-hi: rgba(255,255,255,.07); --sk-sheen: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,0)); --sk-edge: rgba(0,0,0,.5); } }
.tool, .btn.ghost, .pa button, .pa a, .tokens .reset, .tomb .respect, .tr-foot button:not(.tnext), .ps-x, .sw-main {
  background-image: var(--sk-sheen);
  box-shadow: inset 0 1px 0 var(--sk-hi), 0 1px 0 var(--sk-edge), 0 1px 2px rgba(0,0,0,.05);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.tomb .respect, .tr-foot button:not(.tnext) { box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line), 0 1px 0 var(--sk-edge); }
.sw-main { box-shadow: inset 0 1px 0 var(--sk-hi), inset 0 0 0 1px var(--line), 0 1px 0 var(--sk-edge); }
.sw-main[aria-pressed="true"] { box-shadow: inset 0 1px 0 var(--sk-hi), inset 0 0 0 2px var(--ink), 0 1px 0 var(--sk-edge); }
.btn:not(.ghost), .tool.play, .tr-foot .tnext {
  background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,0));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 .5px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
}
.tool:active, .btn:active, .pa button:active, .pa a:active, .tokens .reset:active, .tomb .respect:active, .tr-foot button:active, .ps-x:active, .sw-main:active {
  transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.seg button[aria-pressed="true"] { background-image: var(--sk-sheen); box-shadow: inset 0 1px 0 var(--sk-hi), 0 1px 2px rgba(0,0,0,.1), 0 0 0 .5px rgba(0,0,0,.06); }
.seg { box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
kbd { background-image: var(--sk-sheen); box-shadow: inset 0 1px 0 var(--sk-hi); }
@media (prefers-reduced-motion: reduce) { .tool:active, .btn:active { transform: none; } }

/* ---------- v5.7: the site talks ---------- */
/* Cursor: rounded pointer, one size up */
.cur .gl { stroke-opacity: .5; stroke-width: 1.3; }
.cchat svg { width: 22px; height: 22px; }

/* Work list: year turns into reading time on hover */
.work .yr { display: grid; justify-items: end; }
.work .yr > span { grid-area: 1 / 1; transition: opacity 150ms var(--ease), transform 150ms var(--ease); white-space: nowrap; }
.work .yr .m { opacity: 0; transform: translateY(4px); color: var(--red); }
.work a:hover .yr .y, .work a:focus-visible .yr .y { opacity: 0; transform: translateY(-4px); }
.work a:hover .yr .m, .work a:focus-visible .yr .m { opacity: 1; transform: none; }
.peek .vibe { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 0 8px; border-radius: 4px; background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: 0 0 0 1px var(--line); font-size: 12px; line-height: 20px; color: var(--ink); }

/* Welcome back */
.hello { display: flex; align-items: center; gap: 12px; margin: -24px 0 32px; padding: 8px 8px 8px 16px; border-radius: var(--r-m); background: var(--red-soft); color: var(--body); font-size: 14px; line-height: 20px; animation: hello 400ms var(--ease) both; }
.hello span { flex: 1; } .hello b { color: var(--ink); font-weight: 500; }
.hello a { color: var(--red); text-decoration: none; font-weight: 500; white-space: nowrap; }
.hello button { width: 28px; height: 28px; border-radius: var(--r-s); color: var(--muted); }
.hello button:hover { color: var(--ink); background: var(--bg); }
.hello.out { opacity: 0; transition: opacity 200ms var(--ease); }
@keyframes hello { from { opacity: 0; transform: translateY(-8px); } }
main[data-size="sm"] .hello { margin-top: 0; flex-wrap: wrap; }

/* Reading notes */
.pager-note { margin-top: 48px; color: var(--muted); font-size: 14px; line-height: 20px; text-align: center; animation: hello 400ms var(--ease) both; }
.pager-note + .pager { margin-top: 16px; }
.case h2 { position: relative; }
.mnote { display: block; width: fit-content; margin-top: 8px; padding: 8px 12px; border-radius: 4px; background: #fff3b0; color: #4a4320; font-size: 13px; line-height: 20px; font-weight: 400; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.08); transform: rotate(-1deg); animation: mnote 500ms cubic-bezier(.3, 1.5, .5, 1) both; }
@media (min-width: 1100px) { main[data-size="lg"] .mnote { position: absolute; left: calc(100% + 72px); top: -4px; width: 160px; margin: 0; } }
@keyframes mnote { from { opacity: 0; transform: rotate(-6deg) scale(.8); } }

/* End of the home page */
.fin { margin-top: var(--sec); padding: 32px 24px; border-radius: var(--r-l); text-align: center; background: var(--sunk); box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.fin p { color: var(--ink); font-size: 18px; line-height: 28px; font-weight: 500; margin-bottom: 16px; }

/* The typo */
.typo { text-decoration: underline wavy #e5484d; text-decoration-thickness: 1px; text-underline-offset: 4px; border-radius: 2px; transition: background-color 150ms var(--ease); }
.typo:hover { background: color-mix(in srgb, #e5484d 12%, transparent); }
.typo.fixed { text-decoration-color: transparent; background: color-mix(in srgb, var(--green, #2f9e6a) 18%, transparent); transition: background-color 1200ms var(--ease), text-decoration-color 300ms; }

/* Footer: Baku clock + seasons */
footer .baku { font-size: 12px; line-height: 20px; color: var(--muted); }
footer .season { display: inline-flex; align-items: center; gap: 8px; color: var(--body); }
footer .season i { width: 12px; height: 12px; border-radius: 50% 50% 2px 2px; background: linear-gradient(#7cc36b, #3f8f4a); }
footer .season[data-s="ny"] i { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9cc7ff); box-shadow: 0 0 0 1px var(--line); }
@media (prefers-reduced-motion: reduce) { .hello, .pager-note, .mnote { animation: none; } }

/* ---------- v5.8 ---------- */
/* 1. overlays open in one smooth move: scrim and dialog together */
.cmdk.on, .keys.on { animation: scrim 160ms var(--ease) both; }
.cmdk .dlg, .keys .dlg { animation: dlgin 200ms cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes scrim { from { background-color: rgba(0, 0, 0, 0); } }
@keyframes dlgin { from { opacity: 0; transform: translateY(6px) scale(.985); } }

/* 2. density tokens reach the inner pages */
:root { --g-xl: 40px; --g-l: 32px; --g-m: 16px; }
.back { margin-bottom: var(--g-xl); }
.facts { margin: var(--g-l) 0; }
.case h2 { margin: var(--g-xl) 0 8px; }
.nums, .decision, .ba-wrap { margin-top: var(--g-xl); }
.pager { margin-top: var(--sec); }
.demo, .toys, .vers { margin-top: var(--g-l); }
.prose p + p { margin-top: var(--g-m); }
.xp li { padding-block: var(--row); }

/* 3. avatar: vector monogram, editable */
.avatar { position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; outline: none; transform-origin: 0 0; transition: transform 320ms cubic-bezier(.3, 1.3, .5, 1), box-shadow 200ms var(--ease); z-index: 2; }
.avatar svg { display: block; width: 100%; height: 100%; overflow: visible; }
.av-bg { fill: var(--ink); }
.av-p { fill: none; stroke: var(--bg); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar:hover, .avatar:focus-visible { box-shadow: 0 0 0 1px var(--red), 0 0 0 4px var(--red-soft); }
.av-tag { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; background: #c8321c; color: #fff; font-size: 12px; line-height: 16px; white-space: nowrap; transition: opacity 150ms var(--ease); }
.avatar:not(.editing):not(:hover) .av-tag { opacity: 0; }
.avatar.editing { transform: scale(2.25); box-shadow: 0 0 0 .5px var(--red), 0 8px 24px rgba(0, 0, 0, .25); z-index: 20; }
.avatar.editing .av-tag { top: 52px; transform: translateX(-50%) scale(.45); transform-origin: 50% 0; font-size: 12px; }
.av-reset { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.av-h line { stroke: #6ea8ff; stroke-width: .35; }
.av-h circle { fill: var(--bg); stroke: #6ea8ff; stroke-width: .35; }
.av-n .hit { fill: transparent; }
.av-n rect { fill: var(--bg); stroke: #6ea8ff; stroke-width: .4; }
.av-n .nd.sel rect { fill: #6ea8ff; }
.avatar.editing .av-p { stroke-width: 3.6; }
@media (prefers-reduced-motion: reduce) { .avatar { transition: none; } }

/* 5. Rufat's bubble replaces the toast (the toast stays for screen readers) */
.toast { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.rbub { position: fixed; z-index: 95; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; opacity: 0; transform: translate(10px, 10px) scale(.96); transform-origin: 0 0; transition: opacity 180ms var(--ease), transform 260ms cubic-bezier(.3, 1.4, .5, 1); }
.rbub.on { opacity: 1; transform: none; }
.rbub .rb-ar { width: 20px; height: 20px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.rbub .rb-ar path { fill: #2b59ff; stroke: #fff; stroke-width: 1.5; }
.rbub .rb-box { margin-top: 14px; max-width: 320px; padding: 4px 12px 8px; border-radius: 4px 12px 12px 12px; background: linear-gradient(#3d68ff, #2b59ff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 .5px rgba(0, 0, 0, .25), 0 8px 24px rgba(20, 40, 120, .25); color: #fff; }
.rbub .rb-n { display: block; font-family: var(--mono); font-size: 12px; line-height: 16px; opacity: .75; }
.rbub .rb-t { display: none; font-size: 14px; line-height: 20px; }
.rbub .rb-dots { display: flex; gap: 4px; height: 20px; align-items: center; }
.rbub .rb-dots i { width: 4px; height: 4px; border-radius: 2px; background: #fff; opacity: .5; animation: dot 900ms var(--ease) infinite; }
.rbub .rb-dots i:nth-child(2) { animation-delay: 150ms; } .rbub .rb-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-2px); } }
.rbub.typed .rb-t { display: block; } .rbub.typed .rb-dots { display: none; }
.rbub.dock { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); top: auto; justify-content: center; }
.rbub.dock .rb-ar { display: none; }
.rbub.dock .rb-box { margin-top: 0; border-radius: 12px; }

/* 7. returning visitor: a quiet marker on the work list */
.work a.was-here { box-shadow: inset 2px 0 0 var(--red); }
.work .seen { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 12px; line-height: 20px; vertical-align: 1px; }

/* 8. presence in the toolbar */
.pres-wrap { position: relative; margin-left: auto; margin-right: 8px; }
.pres { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 16px; color: var(--body); font-size: 13px; line-height: 20px; transition: background-color 150ms var(--ease); }
.pres:hover, .pres[aria-expanded="true"] { background: var(--card); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); }
.pav { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2b59ff; color: #fff; font-size: 10px; line-height: 24px; font-weight: 500; box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3px #2b59ff; }
.pdot { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--green, #2f9e6a); box-shadow: 0 0 0 2px var(--canvas); }
.pdot[data-s="busy"] { background: #e0a400; }
.pdot[data-s="away"] { background: var(--muted); }
.pdot[data-s="on"]::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2400ms var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.ptime { font-size: 12px; line-height: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ppop { position: absolute; right: 0; top: 40px; z-index: 47; width: 272px; padding: 16px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .16); display: none; flex-direction: column; gap: 12px; }
.ppop.on { display: flex; animation: dlgin 180ms var(--ease) both; }
.pp-h { display: flex; align-items: center; gap: 12px; }
.pp-h .pav { width: 32px; height: 32px; font-size: 12px; line-height: 32px; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px #2b59ff; }
.pp-h b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 20px; }
.pp-t { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.pp-m { color: var(--body); font-size: 14px; line-height: 20px; }
.pp-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-a .btn { height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 640px) { .pres { padding-right: 4px; } .ptime { display: none; } .pres-wrap { margin-right: 4px; } .ppop { position: fixed; left: 16px; right: 16px; top: 56px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .pdot::after { animation: none; } }

/* IKT Lab: coming soon */
.work .soon a { color: var(--muted); }
.work .soon b { color: var(--body); }
.tag-soon { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 8px; font-size: 12px; line-height: 20px; color: #6b5300; background: repeating-linear-gradient(-45deg, #f5c400 0 6px, #ffd84d 6px 12px); vertical-align: 1px; }

/* ---------- v5.9 ---------- */
/* Tokens: quips live in the panel */
.tk-note { margin-top: 16px; padding: 8px 12px; border-radius: var(--r-s); background: var(--sunk); color: var(--body); font-size: 13px; line-height: 20px; box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.tk-note.pop { animation: tkpop 260ms cubic-bezier(.3, 1.4, .5, 1); }
@keyframes tkpop { from { opacity: .3; transform: translateY(4px); } }
.tokens .reset { margin-top: 8px; }

/* Sidebar icon: the current page's glyph lives in the empty right half */
.sb-pg { fill: var(--ink); transform-box: view-box; transform-origin: 13.5px 9px; transform: scale(1.35); animation: sbpg 520ms cubic-bezier(.3, 1.6, .5, 1) 200ms both; transition: transform 300ms cubic-bezier(.3, 1.4, .5, 1), opacity 200ms var(--ease); }
.sb-pg-s { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.sb-pg-s circle[r=".3"] { fill: var(--ink); }
@keyframes sbpg { from { opacity: 0; transform: scale(.3) rotate(-40deg); } }
.tool.icon:hover .sb-pg { transform: scale(1.55) rotate(-8deg); }
.tool.icon[aria-pressed="true"] .sb-pg { transform: translateX(1.4px) scale(1.15); }
@media (prefers-reduced-motion: reduce) { .sb-pg { animation: none; } }

/* Secrets */
.secrets { margin: 16px 0 0; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px var(--line); background-image: var(--sk-sheen); }
.sc-h { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 12px; color: var(--body); font-size: 12px; line-height: 16px; }
.sc-dots { display: flex; gap: 4px; margin-left: auto; }
.sc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.sc-dots i.on { background: var(--red); transform: scale(1.15); }
.sc-n { color: var(--muted); font-size: 12px; }
.secrets.bump .sc-dots { animation: hop 500ms var(--ease); }
.secrets.all { box-shadow: inset 0 0 0 1px var(--red); }
.sc-list { list-style: none; padding: 0 12px 8px; display: grid; gap: 8px; }
.sc-list li { display: grid; gap: 0; font-size: 12px; line-height: 16px; }
.sc-list b { color: var(--muted); font-weight: 500; font-family: var(--mono); }
.sc-list span { color: var(--muted); }
.sc-list li.on b { color: var(--ink); } .sc-list li.on span { color: var(--red); }

/* IKT Lab timeline */
.stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.stages::before { content: ""; position: absolute; left: 10%; right: 10%; top: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.stages button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 32px 4px 8px; border-radius: var(--r-s); text-align: center; transition: background-color 150ms var(--ease); }
.stages button::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.stages .now button::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: ping2 1800ms var(--ease) infinite; }
@keyframes ping2 { 50% { box-shadow: 0 0 0 8px transparent; } }
.stages button:hover, .stages .picked button { background: var(--card); }
.stages b { color: var(--ink); font-weight: 500; font-size: 13px; line-height: 20px; }
.stages span { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.stages .now span { color: var(--red); }
main[data-size="sm"] .stages { grid-template-columns: 1fr; }
main[data-size="sm"] .stages::before { display: none; }
main[data-size="sm"] .stages button { flex-direction: row; justify-content: space-between; padding: 8px 12px 8px 32px; }
main[data-size="sm"] .stages button::before { top: 50%; left: 16px; margin: -7px 0 0 -7px; }
@media (prefers-reduced-motion: reduce) { .stages .now button::before { animation: none; } }
.sc-list[hidden] { display: none; }

/* ---------- v5.10 ---------- */
.tool.icon { width: 44px; }
.sb-pg { font-family: var(--mono); font-size: 9.5px; font-weight: 500; fill: var(--ink); transform-origin: 17.5px 9px; transform: none; }
.tool.icon:hover .sb-pg { transform: scale(1.15) rotate(-6deg); }
.tool.icon[aria-pressed="true"] .sb-pg { transform: translateX(1px) scale(1.05); }
/* last read: a quiet note, not a highlight */
.work a.was-here { box-shadow: none; }
.work .seen { margin-left: 8px; padding: 0; background: none; color: var(--muted); font-size: 12px; line-height: 20px; vertical-align: 0; }
.work .seen::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); vertical-align: 1px; }

/* ---------- v5.11 ---------- */
.tool.icon { width: 36px; }
/* zoomed or panned: no sticky label, no frosted strip */
.cv-wrap.zoomed .frame-label { position: relative; top: auto; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cv-wrap.zoomed .frame-label .fr { opacity: 1; pointer-events: auto; }
.cv-wrap.zoomed .frame-label .spct, .cv-wrap.zoomed .frame-label .sbar { display: none; }
/* bubble with an action */
.rbub.act { pointer-events: auto; }
.rb-act { display: block; margin-top: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: #fff; color: #2b59ff; font-size: 13px; line-height: 20px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.rb-act:hover { background: #eef2ff; }
.rbub:not(.typed) .rb-act { display: none; }
/* presence: status + email */
.pp-open { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 0 8px; border-radius: 12px; background: color-mix(in srgb, var(--green, #2f9e6a) 14%, transparent); color: var(--ink); font-size: 12px; line-height: 24px; }
.pp-open i { width: 6px; height: 6px; border-radius: 50%; background: var(--green, #2f9e6a); }
.pp-mail { text-align: left; color: var(--body); font-size: 12px; line-height: 16px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.pp-mail:hover { color: var(--ink); text-decoration-color: currentColor; }
/* TL;DR */
.tldr { margin-top: var(--g-l); padding: 16px; border-radius: var(--r-m); background: var(--sunk); box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.tl-h { display: block; font-size: 12px; line-height: 16px; color: var(--red); margin-bottom: 8px; }
.tldr dl { display: grid; gap: 8px; }
.tldr dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.tldr dt { font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--muted); }
.tldr dd { color: var(--ink); font-size: 14px; line-height: 20px; }
main[data-size="sm"] .tldr dl > div { grid-template-columns: 1fr; gap: 0; }
.tldr + .facts { margin-top: var(--g-m); }

/* ---------- OneRouteX case ---------- */
/* XPulse simulator */
.xp-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
main[data-size="sm"] .xp-wrap, main[data-size="md"] .xp-wrap { grid-template-columns: 1fr; }
.xp-ctl { display: grid; gap: 8px; }
.xp-l { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.xp-l b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.xp-ctl input[type="range"] { width: 100%; height: 20px; accent-color: #b9f227; }
.xp-pre { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xp-pre .btn { height: 32px; padding: 0 12px; font-size: 13px; }

/* Market switcher */
.mkt { margin-top: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.mkt-tabs { margin-bottom: 16px; }
.mkt-row { display: grid; grid-template-columns: 1fr 120px 48px; gap: 12px; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--body); }
.mkt-row:first-child { grid-template-columns: 1fr 48px; }
.mkt-row b { font-family: var(--mono); font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.mkt-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mkt-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--red); transition: width 500ms cubic-bezier(.3, 1.2, .5, 1); }
.mkt-q { margin-top: 12px; color: var(--ink); font-size: 14px; line-height: 20px; }
main[data-size="sm"] .mkt-row { grid-template-columns: 1fr 48px; } main[data-size="sm"] .mkt-bar { grid-column: 1 / -1; order: 3; }

/* Onboarding logic */
.onb { margin-top: 16px; display: grid; gap: 12px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.onb-q { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.onb-q > span { font-size: 12px; line-height: 16px; color: var(--muted); }
.onb-out { margin-top: 4px; padding: 12px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); display: grid; gap: 4px; }
.onb-out .mono { font-size: 12px; line-height: 16px; color: var(--muted); }
.onb-plan { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 24px; }
.onb-why { color: var(--red); font-size: 13px; line-height: 20px; }
main[data-size="sm"] .onb-q { grid-template-columns: 1fr; gap: 4px; }

/* Three screens */
.shots3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.shots3 figure { margin: 0; }
.shots3 img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.16); transition: transform 300ms var(--ease); }
.shots3 img:hover { transform: translateY(-4px); }
.shots3 figcaption { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* Dark / light slider with real screens */
.ba.ba-img { aspect-ratio: auto; height: 480px; }
.ba.ba-img .ba-before, .ba.ba-img .ba-after { padding: 24px 0 0; align-items: center; }
.ba.ba-img .ba-before { background: #0b0b0a; }
.ba.ba-img .ba-after { background: #f2f2ee; }
.ba.ba-img img { width: 240px; height: auto; border-radius: 24px 24px 0 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* App icon picker */
.icons { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; margin-top: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.ic-phone { padding: 16px; border-radius: 32px; background: linear-gradient(160deg, #3a4a1a, #10140a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.ic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ic-grid i { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.12); }
.ic-app { position: relative; display: grid; justify-items: center; gap: 4px; }
.ic-app img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.ic-app em { position: absolute; top: 100%; font-style: normal; font-size: 8px; line-height: 12px; color: #fff; white-space: nowrap; }
.ic-app.bounce img { animation: icb 420ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes icb { 40% { transform: scale(.86); } }
.ic-pick .mono { font-size: 12px; line-height: 16px; color: var(--muted); }
.ic-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.ic-row button { width: 48px; height: 48px; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.ic-row button img { width: 100%; height: 100%; display: block; }
.ic-row button:hover { transform: translateY(-2px); }
.ic-row button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--red); }
.ic-note { color: var(--body); font-size: 14px; line-height: 20px; }
main[data-size="sm"] .icons { grid-template-columns: 1fr; } main[data-size="sm"] .ic-phone { max-width: 200px; }
@media (prefers-reduced-motion: reduce) { .ic-app.bounce img { animation: none; } .mkt-bar i { transition: none; } }

/* ---------- v5.12 ---------- */
/* zoomed: the in-frame label steps aside for a label that never scales */
.frame-label.hid { visibility: hidden; }
.flabel-float { position: fixed; z-index: 31; display: none; justify-content: space-between; gap: 12px; height: 24px; padding: 4px; color: var(--muted); font-size: 12px; line-height: 16px; pointer-events: none; transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.flabel-float.on { display: flex; }
.flabel-float.stuck { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.flabel-float .ffz { color: var(--red); white-space: nowrap; }
.flabel-float .ffn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* smooth reset of zoom and pan */
.cv-wrap.easing { transition: transform 500ms cubic-bezier(.3, .9, .3, 1); }
/* theme and token changes fade */
html.theming, html.theming * { transition: background-color 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease), fill 360ms var(--ease), stroke 360ms var(--ease), box-shadow 360ms var(--ease), border-radius 360ms var(--ease), padding 360ms var(--ease) !important; }
/* overlays fade out too, not just in */
.cmdk, .keys { opacity: 0; transition: opacity 160ms var(--ease), display 160ms allow-discrete, overlay 160ms allow-discrete; }
.cmdk.on, .keys.on { opacity: 1; }
@starting-style { .cmdk.on, .keys.on { opacity: 0; } }
/* presence: one button, the address slides in on hover */
.ppop .pp-a { display: none; }
.pp-mail-btn { position: relative; display: block; width: 100%; height: 40px; overflow: hidden; border-radius: var(--r-s); background: var(--ink); color: var(--bg); background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,0)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 .5px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2); font-size: 14px; line-height: 20px; font-weight: 500; transition: transform 120ms var(--ease); }
.pp-mail-btn > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 320ms cubic-bezier(.3, 1.3, .5, 1), opacity 200ms var(--ease); }
.pp-mail-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.pp-mail-btn .pm-b { transform: translateY(100%); opacity: 0; font-size: 13px; font-weight: 400; }
.pp-mail-btn .pm-c { transform: translateY(100%); opacity: 0; color: #7ee2a8; }
.pp-mail-btn:hover .pm-a, .pp-mail-btn:focus-visible .pm-a { transform: translateY(-100%); opacity: 0; }
.pp-mail-btn:hover .pm-b, .pp-mail-btn:focus-visible .pm-b { transform: none; opacity: 1; }
.pp-mail-btn.done .pm-a, .pp-mail-btn.done .pm-b { transform: translateY(-100%); opacity: 0; }
.pp-mail-btn.done .pm-c { transform: none; opacity: 1; }
.pp-mail-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .cv-wrap.easing, .pp-mail-btn > span { transition: none; } html.theming * { transition: none !important; } }

/* secrets: smooth expand */
.sc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(.3, .9, .3, 1); }
.secrets.open .sc-body { grid-template-rows: 1fr; }
.sc-body > .sc-list { min-height: 0; overflow: hidden; padding-bottom: 0; transition: padding-bottom 320ms cubic-bezier(.3, .9, .3, 1); }
.secrets.open .sc-list { padding-bottom: 8px; }
.sc-list li { opacity: 0; transform: translateY(-4px); transition: opacity 200ms var(--ease), transform 260ms var(--ease); }
.secrets.open .sc-list li { opacity: 1; transform: none; }
.secrets.open .sc-list li:nth-child(1) { transition-delay: 70ms; }
.secrets.open .sc-list li:nth-child(2) { transition-delay: 100ms; }
.secrets.open .sc-list li:nth-child(3) { transition-delay: 130ms; }
.secrets.open .sc-list li:nth-child(4) { transition-delay: 160ms; }
.secrets.open .sc-list li:nth-child(5) { transition-delay: 190ms; }
.secrets.open .sc-list li:nth-child(6) { transition-delay: 220ms; }
.secrets.open .sc-list li:nth-child(7) { transition-delay: 250ms; }
.secrets.open .sc-list li:nth-child(8) { transition-delay: 280ms; }

.sc-chev { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 300ms cubic-bezier(.3, 1.4, .5, 1); }
.secrets.open .sc-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .sc-body, .sc-list, .sc-list li, .sc-chev { transition: none; } }

/* float label matches the sticky label exactly: 32px tall, flush under the toolbar */
.flabel-float { height: 36px; padding: 8px 4px; box-sizing: border-box; align-items: center; transition: none; }
.flabel-float.stuck { transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }

.flabel-float .ffbar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity 200ms var(--ease); }
.flabel-float.stuck .ffbar { opacity: 1; }

/* secrets: slower, staged reveal; content travels down with the panel */
.sc-body { transition: grid-template-rows 440ms cubic-bezier(.25, .8, .25, 1); }
.sc-body > .sc-list { transform: translateY(-8px); transition: padding-bottom 440ms cubic-bezier(.25, .8, .25, 1), transform 440ms cubic-bezier(.25, .8, .25, 1); }
.secrets.open .sc-body > .sc-list { transform: none; }
.sc-list li { transform: translateY(-6px); transition: opacity 320ms var(--ease), transform 380ms cubic-bezier(.25, .8, .25, 1); }
.secrets.open .sc-list li:nth-child(1) { transition-delay: 135ms; }
.secrets.open .sc-list li:nth-child(2) { transition-delay: 180ms; }
.secrets.open .sc-list li:nth-child(3) { transition-delay: 225ms; }
.secrets.open .sc-list li:nth-child(4) { transition-delay: 270ms; }
.secrets.open .sc-list li:nth-child(5) { transition-delay: 315ms; }
.secrets.open .sc-list li:nth-child(6) { transition-delay: 360ms; }
.secrets.open .sc-list li:nth-child(7) { transition-delay: 405ms; }
.secrets.open .sc-list li:nth-child(8) { transition-delay: 450ms; }

.secrets:not(.open) .sc-list li { transition-duration: 160ms; transition-delay: 0ms; }
.sc-body { transition: grid-template-rows 460ms cubic-bezier(.45, 0, .2, 1); }

/* copied state: same ink, a check that draws itself */
.pp-mail-btn .pm-c { color: inherit; }
.pp-mail-btn .pm-c svg { stroke-width: 1.8; stroke-linecap: round; }
.pm-ck { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 360ms cubic-bezier(.3, .9, .3, 1) 120ms; }
.pp-mail-btn.done .pm-ck { stroke-dashoffset: 0; }

/* crisp cursor: vector re-rasterised at every scale, snapped to device pixels */
.cur svg { shape-rendering: geometricPrecision; }

/* ---------- v5.14 ---------- */
/* case studies still being written */
.tag-wip { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 8px; font-size: 12px; line-height: 18px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--line) 45%, transparent) 4px 5px); vertical-align: 1px; white-space: nowrap; }
.work a:hover .tag-wip { color: var(--body); }
/* last read: the # becomes a reading-progress ring */
.work .seen { display: none; }
.work a.was-here .ico { display: inline-flex; align-self: center; }
.work .rd { width: 16px; height: 16px; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.work .rd circle { stroke: var(--line); }
.work .rd .rd-a { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 900ms cubic-bezier(.3, .8, .3, 1) 500ms; }
.work a.rd-on .rd .rd-a { stroke-dashoffset: calc(100 - var(--rd)); }
.work a.was-here:hover .rd .rd-a { stroke: var(--red); }
@media (prefers-reduced-motion: reduce) { .work .rd .rd-a { transition: none; } }

/* case status under the lead */
.case-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 20px; }
.case-status .tag-wip { margin-left: 0; }
.case-status + .tldr { margin-top: 16px; }

/* in-progress cases: a little scroll, then the frame blurs out */
.wip-wrap { position: relative; max-height: 720px; overflow: hidden; margin-top: var(--g-l); }
.wip-in { user-select: none; position: relative; z-index: 0; isolation: isolate; }
.wip-veil { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 48px; pointer-events: auto; background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent) 0, color-mix(in srgb, var(--bg) 55%, transparent) 280px, var(--bg) 100%); }
.wip-card { display: grid; justify-items: center; gap: 8px; max-width: 400px; padding: 24px; text-align: center; border-radius: var(--r-m); background: var(--card, var(--bg)); box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.08); }
.wip-card .tag-wip { margin: 0; }
.wip-card h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.wip-card p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.wip-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.wip-wrap + .pager { margin-top: var(--g-l); }

.wip-in > :not(.prose), .wip-in .prose > :nth-child(n+3) { filter: blur(6px); opacity: .7; }
.wip-in .prose > :nth-child(2) { -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }

/* OneRouteX screen tour */
.tour { margin-top: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.tour-tabs { display: flex; flex-wrap: wrap; background: var(--line); }
.tour-tabs button { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
main[data-size="sm"] .tour-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tour-h { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted); }
.tour-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tour-row figure { margin: 0; }
.tour-row img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 812; object-fit: cover; object-position: top; border-radius: 16px; background: #000; box-shadow: 0 4px 16px rgba(0,0,0,.16); transition: transform 300ms var(--ease); }
.tour-row img:hover { transform: translateY(-4px); }
.tour-row figcaption { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--body); }
.tour-p.in .tour-row figure { animation: tourin 360ms var(--ease) both; }
.tour-p.in .tour-row figure:nth-child(2) { animation-delay: 60ms; }
.tour-p.in .tour-row figure:nth-child(3) { animation-delay: 120ms; }
@keyframes tourin { from { opacity: 0; transform: translateY(8px); } }
.tour-c { margin-top: 12px; }
main[data-size="sm"] .tour-row { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
main[data-size="sm"] .tour-row figure { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .tour-p.in .tour-row figure { animation: none; } }

/* ---------- case outline (layers) ---------- */
.toc { position: fixed; top: 96px; z-index: 20; display: none; flex-direction: column; width: max-content; }
.toc.on { display: flex; animation: tocin 320ms var(--ease) both; }
@keyframes tocin { from { opacity: 0; transform: translateX(-4px); } }
.toc-h { padding: 0 8px 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.toc-i { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 8px; border-radius: 6px; text-align: left; font-size: 13px; line-height: 20px; color: var(--muted); opacity: .8; transition: color 240ms var(--ease), opacity 240ms var(--ease), background-color 240ms var(--ease); }
.toc-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-i i { flex: none; width: 6px; height: 6px; border-radius: 1px; box-shadow: inset 0 0 0 1px currentColor; transition: background-color 240ms var(--ease), transform 240ms var(--ease); }
.toc-i:hover { opacity: 1; color: var(--body); }
.toc-i.past { opacity: .5; }
.toc-i.on { opacity: 1; color: var(--ink); background: var(--red-soft); }
.toc-i.on i { background: var(--red); box-shadow: none; transform: rotate(45deg); }
.toc-i.locked { opacity: .45; cursor: default; }
.toc-i.locked span { filter: blur(2.5px); }
@media (prefers-reduced-motion: reduce) { .toc.on { animation: none; } }
@media print { .toc { display: none !important; } }

/* XPulse on small screens: phone first, shorter, so the first sliders stay in view */
.tour-credit { color: var(--red); }

/* ---------- OneRouteX: RTL x theme ---------- */
.rtl { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; margin-top: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.rtl-ph { width: 240px; padding: 8px; border-radius: 40px; background: #050505; box-shadow: inset 0 0 0 2px #2a2a28, 0 12px 32px rgba(0,0,0,.25); }
.rtl-scr { aspect-ratio: 375 / 812; border-radius: 32px; overflow: hidden; background: #000; }
.rtl-scr img { display: block; width: 100%; height: 100%; object-fit: cover; animation: prfade 300ms var(--ease) both; }
.rtl-side { display: grid; gap: 8px; align-content: start; }
.rtl-l { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.rtl-l:first-child { margin-top: 0; }
.rtl-type { display: grid; gap: 4px; margin-top: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); }
.rtl-tok, .rtl-font { font-size: 12px; line-height: 16px; color: var(--muted); }
.rtl-sample { font-family: "Plus Jakarta Sans", var(--sans); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--ink); }
.rtl.is-ar .rtl-sample { font-family: "IBM Plex Sans Arabic", var(--sans); text-align: right; }
.rtl-flip { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.rtl-flip li { display: flex; gap: 8px; color: var(--body); font-size: 14px; line-height: 20px; }
.rtl-flip i { width: 16px; font-style: normal; color: var(--red); transition: transform 300ms var(--ease); }
.rtl.is-ar .rtl-flip i { transform: scaleX(1); }
main[data-size="sm"] .rtl { grid-template-columns: 1fr; }
main[data-size="sm"] .rtl-ph { justify-self: center; }

/* ---------- OneRouteX: design system explorer ---------- */
.ds { display: grid; gap: 12px; margin-top: 16px; }
.ds-b { padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.ds-h { margin-bottom: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.ds-ramp { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.ds-ramp button { height: 48px; padding: 4px; border-radius: 8px; background: var(--c); display: flex; align-items: flex-end; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.ds-ramp button span { font-size: 10px; line-height: 12px; color: #0a0d12; }
.ds-ramp button:nth-child(n+8) span { color: #fff; }
.ds-ramp button:hover { transform: translateY(-2px); }
.ds-ramp button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.ds-out { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--body); }
.ds-out b { color: var(--ink); font-weight: 500; }
.ds-ct { flex-basis: 100%; }
.ds-btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.ds-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; font-family: "Plus Jakarta Sans", var(--sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .005em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.ds-meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.ds-chain { display: grid; gap: 8px; margin-top: 16px; }
.ds-chain div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 20px; }
.ds-chain .mono { width: 32px; font-size: 12px; color: var(--muted); }
.ds-chain code { padding: 0 8px; border-radius: 4px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-family: var(--mono); font-size: 12px; line-height: 24px; color: var(--ink); }
.ds-chain i { font-style: normal; color: var(--red); }
.ds-b > .note { margin-top: 12px; }
.ds-anat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--mono); font-size: 18px; line-height: 28px; color: var(--muted); }
.ds-seg { padding: 4px 8px; border-radius: 4px; background: var(--card); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); color: var(--ink); font: inherit; transition: box-shadow 150ms var(--ease), color 150ms var(--ease); }
.ds-seg:hover, .ds-seg:focus-visible { color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.ds-why { margin-top: 12px; min-height: 20px; color: var(--body); font-size: 14px; line-height: 20px; }
.ds-sp { display: grid; gap: 4px; }
.ds-sp div { display: grid; grid-template-columns: 120px 1fr 40px; gap: 12px; align-items: center; font-size: 12px; line-height: 16px; color: var(--muted); }
.ds-sp i { display: block; height: 8px; border-radius: 2px; background: var(--line); max-width: 100%; }
.ds-sp b { font-weight: 500; text-align: right; color: var(--ink); }
.ds-sp .xmd { color: var(--ink); }
.ds-sp .xmd i { background: var(--red); }
main[data-size="sm"] .ds-ramp { grid-template-columns: repeat(6, 1fr); }
main[data-size="sm"] .ds-sp div { grid-template-columns: 96px 1fr 32px; }

/* tour: four per row now that there are 35 */
.tour-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rtl-scr img[hidden] { display: none; }
.ds-b { min-width: 0; }
.ds-sp div { grid-template-columns: 120px minmax(0, 1fr) 40px; }
main[data-size="sm"] .ds-sp div { grid-template-columns: 96px minmax(0, 1fr) 32px; }
.ds-chain code { overflow-wrap: anywhere; }

/* ---------- XPulse simulator: a real iPhone. Inner screen is built at 375×812 and scaled ---------- */
.xq-phone { justify-self: center; width: 256px; padding: 8px; border-radius: 44px; background: #050505; box-shadow: inset 0 0 0 2px #2a2a28, 0 12px 32px rgba(0,0,0,.25); }
.xq-scr { position: relative; width: 240px; height: 520px; border-radius: 36px; overflow: hidden; background: #000; }
.xq-in { position: absolute; left: 0; top: 0; width: 375px; height: 812px; transform: scale(.64); transform-origin: 0 0; font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.xq-wall, .xq-app { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms var(--ease); }
.xq-app { opacity: 0; }
.xq-in[data-mode="app"] .xq-app { opacity: 1; }
.xq-in[data-mode="app"] .xq-wall, .xq-in[data-mode="app"] .xq-lockui { opacity: 0; }
.xq-in[data-mode="app"]::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); pointer-events: none; }
.xq-island { position: absolute; z-index: 5; left: 50%; top: 11px; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.xq-sb { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 32px 0 40px; font-weight: 600; font-size: 17px; letter-spacing: -.4px; }
.xq-sb img { display: block; }
.xq-in[data-mode="lock"] .xq-sbt { visibility: hidden; }
.xq-lockui { position: absolute; inset: 0; transition: opacity 300ms var(--ease); }
.xq-padlock { position: absolute; left: 50%; top: 60px; width: 16px; height: 22px; margin-left: -8px; }
.xq-date { position: absolute; left: 0; right: 0; top: 92px; text-align: center; font-size: 20px; line-height: 24px; font-weight: 600; color: rgba(255,255,255,.85); }
.xq-clock { position: absolute; left: 0; right: 0; top: 112px; text-align: center; font-size: 96px; line-height: 112px; font-weight: 700; letter-spacing: -2px; color: rgba(255,255,255,.92); font-variant-numeric: tabular-nums; }
.xq-qa { position: absolute; bottom: 48px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.xq-qa.l { left: 46px; } .xq-qa.r { right: 46px; }
.xq-qa svg { width: 22px; height: 22px; }
.xq-hi { position: absolute; z-index: 6; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #fff; }
/* iOS notifications on the lock screen */
.xq-stack { position: absolute; left: 8px; right: 8px; bottom: 116px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; max-height: 440px; overflow: hidden; }
.xq-in[data-mode="app"] .xq-stack { display: none; }
.xq-n { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 22px; background: rgba(40,40,40,.55); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
.xq-n > img { width: 38px; height: 38px; border-radius: 9px; }
.xq-nb { min-width: 0; }
.xq-ts { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 1px; }
.xq-ts::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #ffcc00; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.xq-row { display: flex; align-items: baseline; gap: 8px; }
.xq-t { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xq-tm { font-size: 13px; line-height: 20px; color: rgba(255,255,255,.55); }
.xq-b { font-size: 15px; line-height: 20px; color: rgba(255,255,255,.92); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xq-n.new { animation: xqin 420ms cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes xqin { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.xq-grp { cursor: pointer; }
.xq-grp::before, .xq-grp::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 12px; border-radius: 0 0 18px 18px; background: rgba(40,40,40,.42); z-index: -1; }
.xq-grp::after { left: 24px; right: 24px; bottom: -11px; background: rgba(40,40,40,.28); }
.xq-grp .xq-b { -webkit-line-clamp: 1; }
.xq-more { color: rgba(255,255,255,.55); font-size: 13px; line-height: 18px; }
.xq-quiet { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; font-size: 13px; line-height: 18px; color: rgba(255,255,255,.6); }
.xq-in[data-mode="app"] .xq-quiet { display: none; }
/* In the app: the real OneRouteX toaster (Figma node 7982:75067) */
.xq-toasts { position: absolute; z-index: 3; left: 16px; right: 16px; top: 54px; display: none; flex-direction: column; gap: 8px; font-family: "Plus Jakarta Sans", var(--sans); }
.xq-in[data-mode="app"] .xq-toasts { display: flex; }
.xq-toast { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #181d27; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.xq-toast.new { animation: xqdrop 420ms cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes xqdrop { from { opacity: 0; transform: translateY(-24px); } }
.xq-av { position: relative; flex: none; padding: 8px; border-radius: 54px; background: rgba(164,167,174,.15); }
.xq-av img { display: block; width: 24px; height: 24px; }
.xq-av.dot::after { content: ""; position: absolute; left: 32px; top: 0; width: 8px; height: 8px; border-radius: 999px; background: #f04438; }
.xq-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xq-tx b { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .07px; color: #fdfdfd; }
.xq-tx span { font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #a4a7ae; }
.xq-btn { flex: none; padding: 10px 16px; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .07px; color: #fdfdfd; white-space: nowrap; }
.xq-toast.loud .xq-btn { background: #c2f526; border-color: transparent; color: #0a0d12; }
.xq-tmore { align-self: center; padding: 4px 12px; border-radius: 12px; background: rgba(24,29,39,.9); font-size: 12px; line-height: 18px; color: #a4a7ae; }
.xp-mode { margin-bottom: 4px; }
main[data-size="sm"] .xq-phone, main[data-size="md"] .xq-phone { order: -1; }
@media (prefers-reduced-motion: reduce) { .xq-n.new, .xq-toast.new { animation: none; } }

/* ---------- OneRouteX: meal-logging flow, coded from Figma (inner screen is 375×812, scaled) ---------- */
.nf { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; margin-top: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.nf-phone { width: 280px; padding: 8px; border-radius: 44px; background: #050505; box-shadow: inset 0 0 0 2px #2a2a28, 0 12px 32px rgba(0,0,0,.25); }
.nf-scr { position: relative; width: 264px; height: 572px; border-radius: 36px; overflow: hidden; background: #000; }
.nf-in { position: absolute; left: 0; top: 0; width: 375px; height: 812px; transform: scale(.704); transform-origin: 0 0; overflow: hidden; background: #000; color: #fdfdfd; font-family: "Plus Jakarta Sans", var(--sans); -webkit-font-smoothing: antialiased; }
.nf-in img { display: block; max-width: none; }
.nf-in button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.nf-sb { position: absolute; z-index: 9; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 37px; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.4px; pointer-events: none; }
.nf-hi { position: absolute; z-index: 9; left: 50%; bottom: 8px; width: 144px; height: 5px; margin-left: -72px; border-radius: 100px; background: #fff; pointer-events: none; }
.nf-v { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 320ms var(--ease), transform 420ms cubic-bezier(.2, .8, .2, 1), visibility 0s 420ms; }
.nf-v.on { visibility: visible; opacity: 1; transform: none; transition: opacity 320ms var(--ease), transform 420ms cubic-bezier(.2, .8, .2, 1); }
.nf-cam, .nf-food { transform: translateY(48px); }
.nf-home { transform: scale(.97); }

/* Nutrition */
.nf-hs { height: 100%; overflow-y: auto; padding: 44px 0 120px; scrollbar-width: none; }
.nf-hs::-webkit-scrollbar { display: none; }
.nf-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.nf-ava { width: 40px; height: 40px; border-radius: 24px; background: #c2f526; display: grid; place-items: center; }
.nf-hr { display: flex; gap: 8px; }
.nf-ib { position: relative; display: grid; place-items: center; padding: 10px; border-radius: 8px; background: #111318; }
.nf-bell { padding: 8px; }
.nf-bell i { position: absolute; left: 22px; top: 4px; width: 14px; border-radius: 999px; background: #f04438; color: #fffbfa; font-style: normal; font-size: 10px; line-height: 14px; font-weight: 600; text-align: center; }
.nf-wk { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .07px; color: #a4a7ae; text-align: center; }
.nf-wk::before, .nf-wk::after { content: ""; position: absolute; top: 0; bottom: 0; width: 82px; pointer-events: none; }
.nf-wk::before { left: 0; background: linear-gradient(90deg, #000, transparent); }
.nf-wk::after { right: 0; background: linear-gradient(270deg, #000, transparent); }
.nf-wk span { width: 36px; }
.nf-wk .on { position: relative; width: 40px; padding: 16px 4px 8px; border-radius: 8px; background: #111318; color: #fdfdfd; font-weight: 600; }
.nf-wk .on::before { content: ""; position: absolute; left: 50%; top: 6px; width: 16px; height: 4px; margin-left: -8px; border-radius: 99px; background: #a3db07; box-shadow: 0 0 8px 2px rgba(163,219,7,.5); }
.nf-cards { display: flex; flex-direction: column; gap: 16px; width: 343px; margin: 0 auto; padding-bottom: 16px; }
.nf-c { border-radius: 12px; background: #111318; }
.nf-empty { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 16px; overflow: hidden; transition: opacity 300ms var(--ease), margin 400ms var(--ease), max-height 400ms var(--ease), padding 400ms var(--ease); max-height: 120px; }
.nf-ei { flex: none; width: 48px; height: 48px; border-radius: 99px; background: rgba(194,245,38,.1); display: grid; place-items: center; }
.nf-et { display: flex; flex-direction: column; gap: 8px; }
.nf-et b { font-size: 16px; line-height: 20px; font-weight: 600; }
.nf-et span { font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #a4a7ae; }
.nf-union { position: absolute; left: 157px; top: -22px; pointer-events: none; }
.nf-in.logged .nf-empty { opacity: 0; max-height: 0; padding-block: 0; margin-bottom: -16px; }
.nf-calc { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; }
.nf-calc > div:first-child { display: flex; flex-direction: column; gap: 24px; }
.nf-lab { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .065px; }
.nf-big { display: flex; gap: 4px; align-items: center; margin: 0; }
.nf-big b { font-size: 32px; line-height: 40px; font-weight: 400; letter-spacing: -.16px; font-variant-numeric: tabular-nums; }
.nf-big span { font-size: 13px; line-height: 16px; font-weight: 500; color: #a4a7ae; }
.nf-ring { position: relative; flex: none; }
.nf-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.nf-ring circle { fill: none; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1200ms cubic-bezier(.2, .8, .2, 1) 200ms; }
.nf-mac { display: flex; gap: 12px; }
.nf-mac .nf-c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; }
.nf-mac p, .nf-mac > div > span { align-self: stretch; margin: 0; }
.nf-mac p b { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nf-mac small { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #717680; }
.nf-mac > div > span { margin-bottom: 8px; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .12px; color: #a4a7ae; }
.nf-div { height: 4px; background: #181d27; }
.nf-meals { width: 343px; margin: 0 auto; padding: 16px 0; display: none; }
.nf-in.logged .nf-meals { display: block; }
.nf-mh { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; font-size: 16px; line-height: 20px; font-weight: 600; }
.nf-bd { display: inline-flex; gap: 4px; align-items: center; padding: 4px 8px; border-radius: 999px; background: #252b37; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #fdfdfd; white-space: nowrap; }
.nf-meal { display: flex; gap: 16px; align-items: center; padding: 8px 16px 12px 8px; border-radius: 12px; background: #111318; }
.nf-in.logged .nf-meal { animation: nfmeal 600ms cubic-bezier(.2, 1.2, .4, 1) 150ms both; }
@keyframes nfmeal { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.nf-mi { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; }
.nf-mi img { width: 96px; height: 120px; margin-top: -7px; object-fit: cover; }
.nf-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nf-mt small { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .12px; }
.nf-mn { display: flex; gap: 12px; align-items: center; }
.nf-mn b { flex: 1; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .07px; }
.nf-dots { display: flex; justify-content: space-between; margin-top: 4px; }
.nf-dots i { display: flex; gap: 6px; align-items: center; font-style: normal; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #717680; }
.nf-dots i::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--d); }
.nf-fab, .nf-orb { position: absolute; right: 12px; width: 56px; height: 56px; border-radius: 99px; overflow: hidden; background: #252b37; box-shadow: inset 0 0 2px rgba(255,255,255,.17), inset 2px 3px 8px rgba(255,255,255,.1); }
.nf-fab { bottom: 182px; display: grid !important; place-items: center; }
.nf-orb { bottom: 110px; }
.nf-orb > img, .nf-or { position: absolute; }
.nf-or { display: flex; align-items: center; justify-content: center; }
.nf-or i { position: relative; flex: none; }
.nf-or img { position: absolute; }
.nf-orbg { position: absolute; inset: 31.67% 32.7% 31.79% 33.33%; mix-blend-mode: overlay; }
.nf-orbg img { width: 100%; height: 100%; }
.nf-in[data-s="home"]:not(.logged) .nf-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(194,245,38,.6); animation: nfpulse 1800ms var(--ease) infinite; }
@keyframes nfpulse { 0% { box-shadow: inset 0 0 0 2px rgba(194,245,38,.9), 0 0 0 0 rgba(194,245,38,.5); } 100% { box-shadow: inset 0 0 0 2px rgba(194,245,38,0), 0 0 0 0 rgba(194,245,38,0); } }
.nf-tab { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 16px 34px; display: flex; gap: 8px; border-top: 1px solid #252b37; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.nf-tab span { flex: 1; display: grid; place-items: center; padding: 12px 8px; }

/* Camera */
.nf-cam { background: #000; }
.nf-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 752px; border-radius: 16px 16px 0 0; overflow: hidden; }
.nf-feed { position: absolute; left: -82px; top: 0; width: 539px; height: 765px; object-fit: cover; animation: nfdrift 6s ease-in-out infinite alternate; }
@keyframes nfdrift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.08) translate(-8px, 6px); } }
.nf-glass { position: absolute; display: inline-flex; gap: 4px; align-items: center; justify-content: center; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.04); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nf-x { left: 16px; top: 24px; }
.nf-torch { left: 40px; top: 634px; }
.nf-tiles { position: absolute; left: 16px; top: 524px; width: 343px; display: flex; gap: 16px; }
.nf-tiles span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.7); color: #0a0d12; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .07px; }
.nf-shut { position: absolute; left: 156px; top: 684px; border-radius: 50%; transition: transform 150ms var(--ease); }
.nf-shut:active { transform: scale(.9); }
.nf-in[data-s="cam"] .nf-shut::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; animation: nfpulse 1800ms var(--ease) infinite; }
.nf-flash { position: absolute; inset: 0; z-index: 8; background: #fff; opacity: 0; pointer-events: none; }
.nf-flash.go { animation: nfflash 380ms ease-out; }
@keyframes nfflash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* Analysing */
.nf-lc { position: absolute; left: 40px; top: 50%; width: 295px; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.nf-spin { position: relative; width: 100px; height: 100px; display: grid; place-items: center; }
.nf-grid { position: absolute; left: 50%; top: 50%; width: 259px; height: 259px; margin: -129px 0 0 -129.5px; }
.nf-arc { position: absolute; inset: 0; width: 100px; height: 100px; }
.nf-in[data-s="load"] .nf-arc { animation: nfspin 1100ms linear infinite; }
@keyframes nfspin { to { transform: rotate(360deg); } }
.nf-dot3 { position: relative; width: 48px; height: 48px; border-radius: 99px; background: #252b37; display: grid; place-items: center; }
.nf-in[data-s="load"] .nf-dot3 img { animation: nfbob 900ms ease-in-out infinite alternate; }
@keyframes nfbob { from { transform: translateY(1px); opacity: .6; } to { transform: translateY(-1px); opacity: 1; } }
.nf-lt { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.nf-lb { margin: -12px 0 0; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #a4a7ae; }

/* Food info */
.nf-fs { height: 100%; overflow-y: auto; scrollbar-width: none; }
.nf-fs::-webkit-scrollbar { display: none; }
.nf-photo { width: 375px; height: 300px; margin-top: 100px; object-fit: cover; }
.nf-sh { position: relative; margin-top: -24px; padding: 24px 16px 140px; border-radius: 16px 16px 0 0; background: #000; display: flex; flex-direction: column; gap: 24px; }
.nf-tt { display: flex; gap: 24px; align-items: flex-start; padding-right: 8px; }
.nf-tt > div { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nf-tt h4 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: #fdfdfd; }
.nf-sv { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .07px; color: #a4a7ae; }
.nf-por { display: inline-flex !important; gap: 4px; align-items: center; padding: 8px 12px !important; border-radius: 8px; background: #111318 !important; color: #fdfdfd !important; font-size: 14px !important; line-height: 20px !important; font-weight: 500 !important; letter-spacing: .07px; }
.nf-av { flex: none; display: grid; place-items: center; padding: 12px; border-radius: 24px; background: var(--a); }
.nf-av.s { padding: 8px; }
.nf-kc, .nf-m3 > div { display: flex; gap: 8px; align-items: center; padding: 12px 8px; border-radius: 12px; background: #111318; margin-top: -12px; }
.nf-kc { margin-top: 0; }
.nf-kc > span:last-child, .nf-m3 > div > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.nf-kc small, .nf-m3 small { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #a4a7ae; }
.nf-kc b { font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nf-m3 { display: flex; justify-content: space-between; }
.nf-m3 > div { width: 106px; margin: 0; }
.nf-m3 b { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .07px; font-variant-numeric: tabular-nums; }
.nf-div2 { height: 2px; background: #181d27; }
.nf-sh .nf-mh { margin: 0 0 -8px; }
.nf-ing { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nf-ing li { display: flex; gap: 8px; align-items: center; height: 52px; padding: 8px; border-radius: 12px; background: #111318; }
.nf-ing li > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nf-ing b { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .12px; }
.nf-ing small { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #a4a7ae; }
.nf-in[data-s="food"] .nf-sh > * { animation: nfup 500ms cubic-bezier(.2, .8, .2, 1) both; }
.nf-in[data-s="food"] .nf-sh > :nth-child(2) { animation-delay: 60ms; } .nf-in[data-s="food"] .nf-sh > :nth-child(3) { animation-delay: 120ms; }
.nf-in[data-s="food"] .nf-sh > :nth-child(4) { animation-delay: 180ms; } .nf-in[data-s="food"] .nf-sh > :nth-child(n+5) { animation-delay: 240ms; }
@keyframes nfup { from { opacity: 0; transform: translateY(16px); } }
.nf-fix { position: relative; align-self: center; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .07px; }
.nf-top { position: absolute; left: 0; right: 0; top: 0; padding: 0 16px 16px; background: #000; }
.nf-sbpad { height: 44px; }
.nf-nav { display: flex; align-items: center; justify-content: space-between; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -.4px; }
.nf-toast { position: absolute; z-index: 4; left: 50%; top: 60px; display: flex; gap: 8px; align-items: center; padding: 12px 16px 12px 8px; border-radius: 16px; background: #181d27; box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 14px; line-height: 18px; letter-spacing: .07px; opacity: 0; transform: translate(-50%, -96px); transition: transform 420ms cubic-bezier(.2, 1.2, .4, 1), opacity 200ms var(--ease); }
.nf-toast .nf-av { padding: 8px; border-radius: 54px; }
.nf-in.saved .nf-toast { opacity: 1; transform: translate(-50%, 0); }
.nf-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 50px; border-top: 1px solid #252b37; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.nf-log { width: 100%; display: flex !important; gap: 8px; align-items: center; justify-content: center; padding: 16px 24px !important; border-radius: 12px; background: #c2f526 !important; color: #0a0d12 !important; font-size: 16px !important; line-height: 24px !important; font-weight: 600 !important; transition: background-color 250ms var(--ease), color 250ms var(--ease); }
.nf-log img { display: none !important; }
.nf-log:hover { background: #a3db07 !important; }
.nf-in.saved .nf-log { background: #111318 !important; color: #fdfdfd !important; font-weight: 500 !important; }
.nf-in.saved .nf-log img { display: block !important; }

/* side */
.nf-side { display: grid; gap: 16px; align-content: start; }
.nf-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: nf; }
.nf-steps li { position: relative; display: grid; gap: 2px; padding: 8px 12px 8px 40px; border-radius: var(--r-m); color: var(--muted); font-size: 13px; line-height: 20px; counter-increment: nf; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.nf-steps li::before { content: counter(nf); position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 10px; line-height: 16px; text-align: center; }
.nf-steps b { font-weight: 500; color: var(--body); font-size: 14px; }
.nf-steps li > span { display: none; }
.nf-steps li.on { background: var(--card); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); color: var(--body); }
.nf-steps li.on b { color: var(--ink); }
.nf-steps li.on > span { display: block; }
.nf-steps li.on::before { background: #c2f526; color: #0a0d12; box-shadow: none; }
.nf-steps li.done::before { content: "✓"; background: var(--line); box-shadow: none; }
main[data-size="sm"] .nf, main[data-size="md"] .nf { grid-template-columns: 1fr; }
main[data-size="sm"] .nf-phone, main[data-size="md"] .nf-phone { justify-self: center; }
@media (prefers-reduced-motion: reduce) { .nf-v, .nf-ring circle, .nf-toast { transition: none; } .nf-feed, .nf-arc, .nf-fab::after, .nf-shut::after, .nf-sh > *, .nf-meal { animation: none !important; } }

/* XPulse: one day, five rules */
.xm-l { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.xm-list { display: grid; gap: 4px; }
.xm-list button { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; height: 40px; padding: 0 12px; border-radius: var(--r-m); background: transparent; color: var(--body); font-size: 14px; line-height: 20px; text-align: left; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.xm-list button:hover { color: var(--ink); background: var(--card); }
.xm-list button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); }
.xm-list .mono { font-size: 12px; color: var(--muted); }
.xm-list b { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xm-list i { font-style: normal; font-size: 12px; color: var(--muted); }
.xm-why { min-height: 60px; margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--body); }
.xm-why b { color: var(--ink); font-weight: 500; }
.xq-n.old { opacity: .82; }
.nf .nf-in p { color: #fdfdfd; max-width: none; }
.nf .nf-in .nf-lb { color: #a4a7ae; }

/* ---------- v72: tour as a pages list ---------- */
.tour { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 16px; align-items: start; }
.tour-nav { position: sticky; top: 72px; display: grid; gap: 2px; }
.tour-nl { margin: 0 0 4px; padding: 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.tour-nav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 8px; border-radius: 6px; background: transparent; color: var(--body); font-size: 13px; line-height: 20px; text-align: left; transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.tour-nav button i { font-style: normal; font-size: 11px; color: var(--muted); }
.tour-nav button:hover { background: var(--card); color: var(--ink); }
.tour-nav button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 1px 0 var(--sk-hi), 0 0 0 1px var(--line); }
.tour-nav button[aria-pressed="true"]::before { content: ""; width: 4px; height: 4px; margin-right: -4px; border-radius: 50%; background: var(--red); order: 2; }
.tour-main .tour-h { margin-top: 0; }
.tour .tour-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tour-open { display: block; width: 100%; padding: 0; border-radius: 16px; background: none; cursor: zoom-in; }
.tour-open:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
main[data-size="sm"] .tour, main[data-size="md"] .tour { grid-template-columns: 1fr; }
main[data-size="sm"] .tour-nav, main[data-size="md"] .tour-nav { position: static; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
main[data-size="sm"] .tour-nl, main[data-size="md"] .tour-nl { display: none; }
main[data-size="sm"] .tour-nav button, main[data-size="md"] .tour-nav button { flex: none; }
main[data-size="sm"] .tour .tour-row { grid-template-columns: repeat(3, 72%); }

/* ---------- v72: lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 96; display: none; place-items: center; padding: 24px; background: rgba(12,12,11,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #f0f0ec; }
.lb.on { display: grid; animation: lbin 200ms var(--ease) both; }
@keyframes lbin { from { opacity: 0; } }
html.lb-lock { overflow: hidden; }
.lb-in { display: grid; grid-template-columns: 48px auto 48px 280px; gap: 16px; align-items: center; }
.lb-shot { --h: min(calc(100vh - 64px), 812px); width: calc(var(--h) * 375 / 812 + 16px); height: calc(var(--h) + 16px); padding: 8px; border-radius: 44px; background: #050505; box-shadow: inset 0 0 0 2px #2a2a28, 0 24px 64px rgba(0,0,0,.5); overflow-y: auto; scrollbar-width: none; }
.lb-shot::-webkit-scrollbar { display: none; }
.lb-shot img { display: block; width: 100%; height: auto; border-radius: 36px; }
.lb-shot.sw img { animation: lbsw 280ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lbsw { from { opacity: 0; transform: translateX(var(--dx)); } }
.lb-nav, .lb-x { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); color: #f0f0ec; font-size: 20px; line-height: 1; transition: background-color 150ms var(--ease); }
.lb-nav:hover, .lb-x:hover { background: rgba(255,255,255,.16); }
.lb-nav:focus-visible, .lb-x:focus-visible { outline: 2px solid #b9f227; outline-offset: 2px; }
.lb-x { position: absolute; top: 16px; right: 16px; font-size: 28px; }
.lb-txt { display: grid; gap: 8px; align-content: center; }
.lb-txt p, .lb-txt h3 { margin: 0; }
.lb-where { font-size: 12px; line-height: 16px; color: #8a8a86; }
.lb-t { font-size: 20px; line-height: 28px; font-weight: 500; color: #f0f0ec; }
.lb-q { font-size: 16px; line-height: 24px; color: #c8c8c2; }
.lb-by { font-size: 12px; line-height: 16px; color: #b9f227; }
.lb-by:empty { display: none; }
.lb-n, .lb-keys { font-size: 12px; line-height: 16px; color: #8a8a86; }
.lb-n { margin-top: 16px !important; }
@media (max-width: 900px) {
  .lb { padding: 56px 16px 16px; align-items: start; overflow-y: auto; }
  .lb-in { grid-template-columns: 40px 1fr 40px; gap: 8px; }
  .lb-shot { --h: min(calc(100vh - 260px), 812px); justify-self: center; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-txt { grid-column: 1 / -1; text-align: center; }
  .lb-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lb.on, .lb-shot.sw img { animation: none; } }

/* ---------- v72: design system, calmer ---------- */
.ds-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: stretch; }
.ds-stage { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 200px; border-radius: 12px; background: #000; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 12px 12px; }
.ds-stage .ds-btn { height: 48px; padding: 0 24px; font-size: 16px; cursor: default; }
.ds-stage .ds-meta { color: #8a8a86; }
.ds-flow { display: grid; gap: 12px; align-content: start; }
.ds .ds-chain { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ds .ds-chain li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 32px; font-size: 13px; line-height: 20px; }
.ds .ds-chain li + li { position: relative; }
.ds .ds-chain .mono { width: auto; font-size: 12px; color: var(--muted); }
.ds-tok { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ds-sw { flex: none; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: background-color 250ms var(--ease); }
.ds .ds-chain code { overflow-wrap: anywhere; }
.ds .ds-chain code.hit { animation: dshit 500ms var(--ease); }
@keyframes dshit { 0% { box-shadow: 0 0 0 2px #b9f227; } 100% { box-shadow: 0 0 0 1px var(--line); } }
.ds-say { margin: 0; font-size: 14px; line-height: 20px; color: var(--body); }
.ds-say code, .ds-facts code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ds-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ds-facts div { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.ds-facts b { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--ink); }
.ds-facts span { font-size: 13px; line-height: 20px; color: var(--body); }
main[data-size="sm"] .ds-main, main[data-size="md"] .ds-main, main[data-size="sm"] .ds-facts { grid-template-columns: 1fr; }
.ds-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.ds-stage { align-self: start; min-height: 168px; padding: 16px; }
.ds-stage .ds-meta { text-align: center; }
.ds-tok { flex-wrap: wrap; }
.ds .ds-chain .ds-v { font-size: 12px; color: var(--muted); }
.tour-nav button[aria-pressed="true"]::before { content: none; }

/* ---------- v73: highlights, cover, thumbnails ---------- */
.tourw { margin-top: 16px; display: grid; gap: 16px; }
.tourw .tour { margin-top: 0; }
.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: var(--r-l); background: var(--sunk); }
.hl-f { margin: 0; display: grid; gap: 12px; align-content: start; }
.hl-shot { position: relative; }
.hl-shot .tour-open img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 812; object-fit: cover; object-position: top; border-radius: 16px; background: #000; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.hl-pin { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #b9f227; color: #0a0d12; font-family: var(--mono); font-size: 11px; line-height: 1; font-weight: 600; box-shadow: 0 0 0 3px rgba(185,242,39,.3), 0 2px 6px rgba(0,0,0,.4); cursor: default; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
.hl-pin.hot { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(185,242,39,.35), 0 2px 6px rgba(0,0,0,.4); }
.hl-f figcaption b { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.hl-f ol { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: hl; }
.hl-f li { position: relative; padding-left: 24px; font-size: 13px; line-height: 18px; color: var(--body); counter-increment: hl; transition: color 150ms var(--ease); }
.hl-f li::before { content: counter(hl); position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--line); color: var(--ink); font-family: var(--mono); font-size: 10px; line-height: 16px; text-align: center; transition: background-color 150ms var(--ease); }
.hl-f li.hot { color: var(--ink); }
.hl-f li.hot::before { background: #b9f227; color: #0a0d12; }
main[data-size="sm"] .hl { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
main[data-size="sm"] .hl-f { scroll-snap-align: start; }
.case .cover { margin: 24px 0 0; border-radius: var(--r-l); overflow: hidden; background: #0a0c0f; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12); }
.case .cover img { display: block; width: 100%; height: auto; }
.peek .thumb, .ofr .th .thumb, .slide .sv .thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide .sv .thumb { border-radius: var(--r-l); }
.case > .nums { margin-top: 24px; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
main[data-size="sm"].case > .nums, main[data-size="sm"] .case > .nums { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- v5.17: theme switch in the toolbar ---------- */
.thm-i { width: 20px; height: 20px; overflow: visible; }
.thm-core { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform 520ms cubic-bezier(.3, 1.4, .5, 1); }
.thm-cut { transform-box: view-box; transition: transform 520ms cubic-bezier(.45, 0, .2, 1); transform: translate(6px, -6px); }
.thm-rays { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transform-box: view-box; transform-origin: 10px 10px; transition: transform 520ms cubic-bezier(.45, 0, .2, 1), opacity 300ms var(--ease); }
.thm:hover .thm-rays { transform: rotate(22.5deg); }
html[data-theme="dark"] .thm-core { transform: scale(1.6); }
html[data-theme="dark"] .thm-cut { transform: translate(-3px, 2px); }
html[data-theme="dark"] .thm-rays { transform: rotate(90deg) scale(.4); opacity: 0; }
html[data-theme="dark"] .thm:hover .thm-core { transform: scale(1.6) rotate(-12deg); }
.thm[aria-pressed="true"] { border-color: transparent; }
/* the circular reveal: only the root snapshot animates */
html.vt-theme main, html.vt-theme .frame-label, html.vt-theme .bar, html.vt-theme .pages, html.vt-theme .cur { view-transition-name: none; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
@media (max-width: 480px) { .tool.thm { display: inline-flex; } }

/* ---------- v5.18: memoji avatar ---------- */
.avatar { --lx: 0; --ly: 0; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.avatar:hover, .avatar:focus-visible { box-shadow: none; }
.av-tile { position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(160deg, var(--red-soft), color-mix(in srgb, var(--red) 22%, var(--bg))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 18%, transparent); transition: box-shadow 200ms var(--ease), transform 320ms cubic-bezier(.3, 1.4, .5, 1); }
.avatar:hover .av-tile, .avatar:focus-visible .av-tile { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px var(--red-soft); }
/* clipped by the frame at rest; hover turns "clip content" off and I lean out */
.av-face { position: absolute; inset: 0; display: block; clip-path: inset(-60% 0 0 0 round 0 0 12px 12px); transform-origin: 50% 100%; transition: clip-path 360ms cubic-bezier(.3, 1.2, .5, 1), transform 420ms cubic-bezier(.3, 1.4, .5, 1); }
.av-face img { display: block; width: 100%; height: 100%; transform: translate(calc(var(--lx) * 2.5px), calc(var(--ly) * 1.5px + 3px)) rotate(calc(var(--lx) * 7deg)) scale(1.12); transform-origin: 50% 80%; transition: transform 500ms cubic-bezier(.2, .8, .3, 1); user-select: none; -webkit-user-drag: none; }
.avatar:hover .av-face, .avatar:focus-visible .av-face { clip-path: inset(-60% -60% -60% -60% round 0); transform: translateY(-3px) scale(1.14); }
.avatar.bump .av-face { animation: avbump 420ms cubic-bezier(.3, 1.4, .5, 1); }
.avatar.bump .av-tile { animation: avshake 320ms ease-out; }
@keyframes avbump { 0% { transform: translateY(-3px) scale(1.14); } 35% { transform: translate(-5px, 2px) scale(1.42) rotate(-7deg); } 100% { transform: translateY(-3px) scale(1.14); } }
@keyframes avshake { 0%, 100% { transform: none; } 30% { transform: translateX(-2px) rotate(-2deg); } 60% { transform: translateX(1.5px) rotate(1deg); } }
.av-fx { position: absolute; left: 8px; top: 34px; width: 0; height: 0; pointer-events: none; z-index: 3; }
.av-fx i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--red); opacity: 0; animation: avring 620ms cubic-bezier(.2, .8, .3, 1); }
@keyframes avring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.avatar .av-tag { top: 60px; z-index: 4; }
.avatar:not(:hover):not(:focus-visible) .av-tag { opacity: 0; }
@media (hover: none) { .av-face { clip-path: inset(-60% -60% -60% -60% round 0); } }
@media (prefers-reduced-motion: reduce) { .av-face, .av-face img, .av-tile { transition: none; } .avatar.bump .av-face, .avatar.bump .av-tile { animation: none; } }

/* ---------- v5.19: the paywall ---------- */
.wip-veil { cursor: zoom-in; }
.wip-card { cursor: auto; }
.pw { position: fixed; inset: 0; margin: auto; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-l); background: var(--bg); color: var(--body); box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(0,0,0,.25); overflow: auto; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity 220ms var(--ease), transform 320ms cubic-bezier(.3, 1.3, .5, 1), display 220ms allow-discrete, overlay 220ms allow-discrete; }
.pw[open] { opacity: 1; transform: none; }
@starting-style { .pw[open] { opacity: 0; transform: translateY(8px) scale(.98); } }
.pw::backdrop { background: rgba(10,10,9,.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 220ms var(--ease), display 220ms allow-discrete, overlay 220ms allow-discrete; }
.pw[open]::backdrop { opacity: 1; }
@starting-style { .pw[open]::backdrop { opacity: 0; } }
.pw-box { position: relative; padding: 32px; }
.pw-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 8px; font-size: 20px; line-height: 32px; color: var(--muted); }
.pw-x:hover { background: var(--sunk); color: var(--ink); }
.pw-k { display: block; font-size: 12px; line-height: 16px; color: var(--red); }
.pw h2 { margin: 8px 0 0; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); }
.pw-s { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.pw-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pw-p { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
.pw-p.best { box-shadow: inset 0 0 0 1.5px var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
.pw-tag { position: absolute; top: -10px; right: 12px; padding: 0 8px; border-radius: 8px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; }
.pw-n { font-size: 13px; line-height: 20px; color: var(--muted); }
.pw-p b { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.pw-p ul { flex: 1; margin: 8px 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; align-content: start; }
.pw-p li { position: relative; padding-left: 20px; font-size: 13px; line-height: 20px; color: var(--body); }
.pw-p li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 4px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }
.pw-p .btn { justify-content: center; text-align: center; }
.pw-f { margin: 16px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .pw-box { padding: 24px 16px; } .pw-plans { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pw, .pw::backdrop { transition: none; } }

/* paywall as a non-modal layer under the custom cursor and Rufat's bubble */
.pw { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; display: grid; place-items: center; padding: 16px; border-radius: 0; background: rgba(10,10,9,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: none; transform: none; }
.pw:not([open]) { display: none; }
.pw[open] { transform: none; }
@starting-style { .pw[open] { opacity: 0; transform: none; } }
.pw-box { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r-l); background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(0,0,0,.25); transition: transform 320ms cubic-bezier(.3, 1.3, .5, 1); }
@starting-style { .pw[open] .pw-box { transform: translateY(8px) scale(.98); } }
.pw .btn { text-decoration: none; }
.rbub { z-index: 96; }

/* ---------- v5.21: avatar sits on the accent colour, nothing else ---------- */
.av-tile { background: var(--red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.18); transition: background-color 360ms var(--ease), box-shadow 200ms var(--ease), transform 320ms cubic-bezier(.3, 1.4, .5, 1); }
.avatar:hover .av-tile, .avatar:focus-visible .av-tile { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 0 0 4px var(--red-soft); }


/* ---------- UI: OneRouteX home screen (from Figma 4329:20000) ---------- */
.ux-hero { display: grid; justify-items: start; }
.ux-k { font-size: 12px; line-height: 16px; color: var(--red); }
.ux-hero h1 { margin-top: 8px; }
.ox-stage { display: grid; justify-items: center; gap: 24px; margin-top: 40px; }
.ox-holder { --s: 1; width: calc(399px * var(--s)); height: calc(836px * var(--s)); }
.ox-phone { width: 399px; height: 836px; padding: 12px; border-radius: 56px; background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 5px #0d0d0e, 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); transform: scale(var(--s)); transform-origin: 0 0; }
.ox-scr { position: relative; width: 375px; height: 812px; overflow: hidden; border-radius: 44px; background: #000; color: #fdfdfd; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; isolation: isolate; }
.ox-scr button { font: inherit; color: inherit; }
.ox-scr img { display: block; max-width: none; }
.ox-fill { position: absolute; display: block; }
.ox-fill img { width: 100%; height: 100%; }
.ox-status { position: absolute; left: 0; top: 0; z-index: 6; width: 375px; height: 44px; background: #000; }
.ox-time { position: absolute; left: calc(16.67% - 10.5px); top: 15px; width: 54px; transform: translateX(-50%); font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; text-align: center; color: #fff; }
.ox-sr { position: absolute; left: calc(83.33% + .2px); top: 19px; width: 77.401px; height: 13px; transform: translateX(-50%); }
.ox-scroll { position: absolute; inset: 44px 0 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 110px; outline: none; }
.ox-scroll::-webkit-scrollbar { display: none; }
/* header sticks; the week sticks under it and tucks away on scroll */
.ox-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 16px 16px 12px; background: #000; box-shadow: 0 1px 0 transparent; transition: box-shadow 240ms ease; }
.ox-scroll.tucked .ox-top { box-shadow: 0 1px 0 #181d27; }
.ox-me { display: flex; align-items: center; gap: 12px; }
.ox-av { position: relative; width: 40px; height: 40px; overflow: hidden; border-radius: 24px; background: #fff; }
.ox-av-img { position: absolute; left: -4.52%; top: -5.78%; width: 110.82%; height: 110.82%; }
.ox-brand { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 6px; background: #c2f526; }
.ox-brand img { width: 14px; height: 15.064px; margin-top: -.94px; }
.ox-date { font-size: 16px; line-height: 20px; font-weight: 500; color: #717680; white-space: nowrap; }
.ox-acts { display: flex; gap: 8px; }
.ox-ib { display: flex; padding: 8px; border-radius: 8px; background: #111318; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 120ms ease; }
.ox-ib:active { transform: scale(.94); }
.ox-cal { position: relative; display: block; width: 24px; height: 24px; overflow: hidden; }
.ox-cal-i { position: absolute; inset: 8.33% 12.5%; }
.ox-cal b { position: absolute; left: 50%; top: 25%; bottom: 16.67%; width: 12px; transform: translateX(-50%); font-size: 10px; line-height: 14px; font-weight: 800; letter-spacing: .1px; text-align: center; color: #fff; }
.ox-hi { display: flex; gap: 8px; margin: 12px 0 0; padding: 0 16px 12px; font-size: 22px; line-height: 28px; font-weight: 600; white-space: nowrap; }
.ox-hi span + span { color: #717680; }
.ox-week { position: sticky; top: 68px; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 90px; padding: 12px 16px; background: #000; transition: transform 360ms cubic-bezier(.3, .8, .3, 1), opacity 260ms ease; will-change: auto; }
.ox-scroll.tucked .ox-week { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.ox-d { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 35px; padding: 0; font-size: 14px !important; line-height: 20px; font-weight: 500 !important; letter-spacing: .07px; color: #a4a7ae !important; text-align: center; transition: color 200ms ease; }
.ox-d:nth-of-type(2), .ox-d:nth-of-type(4), .ox-d:nth-of-type(5), .ox-d:nth-of-type(6) { width: 36px; }
.ox-d.today, .ox-d.on, .ox-d:nth-of-type(6) { font-weight: 600 !important; }
.ox-d.today::before { content: ""; position: absolute; left: 50%; top: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 99px; background: #717680; }
.ox-d.on { color: #fdfdfd !important; }
.ox-sep { width: .5px; height: 40px; background: #181d27; }
.ox-pill { position: absolute; left: 0; top: 12px; z-index: 0; width: 40px; height: 66px; border-radius: 8px; background: #111318; overflow: hidden; transition: transform 420ms cubic-bezier(.3, 1.25, .45, 1); }
.ox-glow { position: absolute; left: 50%; top: 6px; width: 24px; height: 6px; margin-left: -12px; border-radius: 99px; background: rgba(163,219,7,.7); filter: blur(8px); opacity: .7; }
.ox-bar { position: absolute; left: 50%; top: 6px; width: 16px; height: 4px; margin-left: -8px; border-radius: 99px; background: #a3db07; }
.ox-fade { position: absolute; top: 0; z-index: 2; width: 82px; height: 90px; pointer-events: none; }
.ox-fade.l { left: 0; background: linear-gradient(90deg, #000, rgba(0,0,0,0)); }
.ox-fade.r { right: 0; background: linear-gradient(270deg, #000, rgba(0,0,0,0)); }
/* sections */
.ox-sec { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.ox-sec.ox-first { gap: 12px; padding-top: 0; }
.ox-rule { display: block; height: 4px; background: #181d27; }
.ox-card { position: relative; border-radius: 12px; background: #111318; }
.ox-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px; background: #252b37; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #fdfdfd; white-space: nowrap; }
.ox-badge.dk { background: #22262f; }
.ox-caret16 { width: 16px; height: 16px; }
.ox-h { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.ox-sub { color: #a4a7ae; }
.ox-hrow { display: flex; align-items: center; justify-content: space-between; }
.ox-hrow .ox-h { gap: 8px; }
/* streak + daily target */
.ox-streak { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 224px; padding: 8px; overflow: hidden; }
.ox-sbar { position: relative; width: 331px; height: 40px; flex: none; overflow: hidden; border-radius: 8px; background: #0c0e12; }
.ox-sglow { position: absolute; left: calc(50% - 146.5px); top: 50%; width: 126px; height: 126px; transform: translate(-50%, -50%); transition: transform 600ms cubic-bezier(.3, 1.3, .5, 1), filter 400ms ease; }
.ox-light { position: absolute; left: 12px; top: 8px; width: 24px; height: 24px; transition: transform 500ms cubic-bezier(.3, 1.6, .5, 1); }
.ox-streaked .ox-light { transform: scale(1.25) rotate(-8deg); }
.ox-streaked .ox-sglow { transform: translate(-50%, -50%) scale(1.5); filter: brightness(1.4); }
.ox-sbar p { position: absolute; left: 44px; top: 11px; margin: 0; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .07px; color: #717680; white-space: nowrap; }
.ox-sbar b { font-weight: 500; color: #fdfdfd; }
.ox-sbar .ox-caret16 { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.ox-target { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 0 8px 8px; }
.ox-th { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #252b37; font-size: 16px; line-height: 20px; font-weight: 600; }
.ox-todo { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ox-todo button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; text-align: left; font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: .07px; }
.ox-chk { position: relative; flex: none; width: 20px; height: 20px; }
.ox-chk img { width: 20px; height: 20px; transition: opacity 160ms ease; }
.ox-chk::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: #c2f526 no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5 4.5 8 11 1' fill='none' stroke='%230a0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transform: scale(0); transition: transform 320ms cubic-bezier(.3, 1.6, .5, 1); }
.ox-todo .done .ox-chk::after { transform: scale(1); }
.ox-todo .done .ox-chk img { opacity: 0; }
.ox-todo button > span:last-child { transition: color 200ms ease; }
.ox-todo .done > span:last-child { color: #717680; }
.ox-tip { height: 154px; overflow: hidden; padding: 16px; }
.ox-tip .ox-badge { position: relative; z-index: 1; }
.ox-tip p { position: relative; z-index: 1; width: 311px; margin: 12px 0 0; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.16px; }
.ox-tipbg { position: absolute; left: calc(50% + 99px); top: calc(50% + 5.5px); width: 199px; height: 199px; transform: translate(-50%, -50%); }
/* daily summary */
.ox-two { display: flex; justify-content: space-between; }
.ox-stat { width: 166px; height: 132px; padding: 16px; overflow: hidden; }
.ox-stat + .ox-stat { width: 165px; }
.ox-ch { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.ox-ch > span { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .065px; }
.ox-ch > span.g8 { gap: 8px; }
.ox-ch > span img { width: 20px; height: 20px; }
.ox-stat b, .ox-cal-row b { display: block; margin-top: 16px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.16px; font-variant-numeric: tabular-nums; }
.ox-stat small, .ox-cal-row small { display: block; margin-top: 4px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .065px; color: #a4a7ae; }
.ox-cal-card { display: flex; flex-direction: column; gap: 24px; height: 304px; padding: 16px; overflow: hidden; }
.ox-cal-top { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #181d27; }
.ox-cal-row { display: flex; align-items: center; justify-content: space-between; }
.ox-cal-row > div { width: 144px; }
.ox-cal-row b { margin-top: 0; }
.ox-ring60 { width: 60px; height: 60px; }
.ox-macros { display: flex; gap: 24px; }
.ox-macros > div { display: flex; flex-direction: column; gap: 8px; width: 88px; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .12px; }
.ox-macros > div:nth-child(2) { width: 87px; }
.ox-macros i { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 99px; background: #252b37; }
.ox-macros > div + div i { background: #22262f; }
.ox-macros em { position: absolute; left: 0; top: 0; height: 4px; }
.ox-macros s { text-decoration: none; color: #94979c; }
.ox-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; padding: 10px 16px; border-radius: 8px; background: #22262f; font-size: 14px !important; line-height: 20px; font-weight: 500 !important; letter-spacing: .07px; transition: transform 120ms ease, background-color 200ms ease, color 200ms ease; }
.ox-btn:active { transform: scale(.97); }
.ox-btn.done { background: #1d2a0c; color: #c2f526 !important; }
.ox-btn.lime { background: #c2f526; color: #0a0d12 !important; }
.ox-btn.lime.live { background: #a3db07; }
.ox-steps { height: 199px; padding: 16px; overflow: hidden; }
.ox-steps-row { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.ox-sv { display: flex; flex-direction: column; gap: 20px; width: 144px; }
.ox-sv small { display: block; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .065px; color: #a4a7ae; }
.ox-sv b { display: block; margin-top: 4px; font-size: 24px; line-height: 30px; font-weight: 600; }
.ox-ring100 { position: relative; width: 100px; height: 100px; }
.ox-ring100 > img { width: 100px; height: 100px; }
.ox-ring100 > span { position: absolute; left: 45px; top: 0; width: 55px; height: 55px; overflow: hidden; }
.ox-ring100 > span img { position: absolute; right: 0; top: 0; width: 100px; height: 100px; }
/* today's activity */
.ox-act { display: flex; align-items: center; gap: 12px; height: 200px; padding: 16px 16px 16px 12px; overflow: hidden; }
.ox-actglow { position: absolute; left: -39px; top: 0; width: 200px; height: 200px; }
.ox-body { position: relative; flex: none; width: 98px; height: 168px; overflow: hidden; }
.ox-info { position: relative; display: flex; flex-direction: column; width: 205px; }
.ox-it { display: flex; align-items: center; justify-content: space-between; }
.ox-t12 { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .12px; }
.ox-wt { margin-top: 8px; overflow: hidden; font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ox-ws { margin-top: 4px; font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #a4a7ae; }
.ox-meta { display: flex; gap: 16px; margin-top: 12px; }
.ox-meta span { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .11px; }
.ox-meta img { width: 16px; height: 16px; }
.ox-info .ox-btn { margin-top: 24px; }
/* today's meal carousel */
.ox-meals { display: flex; gap: 9px; margin: 0 -16px; padding: 0 25.5px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ox-meals::-webkit-scrollbar { display: none; }
.ox-meal { display: flex; align-items: center; justify-content: space-between; flex: none; width: 324px; padding: 16px; scroll-snap-align: center; }
.ox-meal > div { display: flex; flex-direction: column; width: 144px; margin: 0 auto 0 12px; }
.ox-meal:first-child > div { width: 155px; }
.ox-mi { position: relative; flex: none; align-self: flex-start; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: #252b37; }
.ox-mi img { position: absolute; left: 0; top: 0; width: 56px; height: 56px; object-fit: cover; }
.ox-meal small { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #a4a7ae; }
.ox-meal b { margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; }
.ox-meal b.clip, .ox-meal:last-child b { height: 40px; overflow: hidden; }
.ox-mm { display: flex; gap: 16px; margin-top: 12px; }
.ox-mm i { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #717680; white-space: nowrap; }
.ox-mm img { width: 10px; height: 10px; }
.ox-meal .ox-badge { flex: none; }
/* AI orb + tab bar */
.ox-orb { position: absolute; right: 12px; bottom: 118px; z-index: 5; width: 60px; height: 60px; padding: 0; overflow: hidden; border-radius: 99px; background: #252b37; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ox-orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 2px 0 rgba(255,255,255,.17), inset 2px 3px 8px 0 rgba(255,255,255,.1); pointer-events: none; }
.ox-orb > img, .ox-o { position: absolute; display: block; }
.ox-o.c { display: flex; align-items: center; justify-content: center; }
.ox-o.c > span { position: relative; flex: none; display: block; }
.ox-og { left: 33.33%; top: 31.67%; right: 32.7%; bottom: 31.79%; width: calc(100% - 33.33% - 32.7%); height: calc(100% - 31.67% - 31.79%); mix-blend-mode: overlay; }
.ox-orb.pop { animation: oxpop 520ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes oxpop { 30% { transform: scale(.88); } 65% { transform: scale(1.08); } }
.ox-tabs { position: absolute; left: 0; bottom: 0; z-index: 5; width: 375px; border-top: 1px solid #252b37; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px); }
.ox-tabrow { display: flex; gap: 8px; padding: 4px 16px; }
.ox-tabrow button { flex: 1; display: flex; justify-content: center; padding: 12px 8px; transition: transform 120ms ease; }
.ox-tabrow button:active { transform: scale(.9); }
.ox-tabrow img { width: 28px; height: 28px; }
.ox-hind { position: relative; height: 34px; }
.ox-hind i { position: absolute; left: calc(50% + .5px); bottom: 8px; width: 144px; height: 5px; margin-left: -72px; border-radius: 100px; background: #fff; }
/* the note */
.ox-note { max-width: 400px; padding: 16px; border-radius: var(--r-m); background: var(--sunk); }
.ox-note .mono { display: block; font-size: 12px; line-height: 16px; color: var(--red); }
.ox-note p { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--body); }
@media (prefers-reduced-motion: reduce) { .ox-week, .ox-pill, .ox-chk::after, .ox-sglow, .ox-light { transition: none; } .ox-orb.pop { animation: none; } }

/* calendar docking: two states, transform-only, so it stays smooth at any scroll speed */
.ox-week { z-index: 5; display: block; padding: 12px 0; transition: background-color 240ms ease; }
.ox-wk { position: relative; display: flex; align-items: center; justify-content: space-between; width: 343px; height: 66px; margin-left: 16px; transform-origin: 50% 50%; transition: transform 460ms cubic-bezier(.32, .9, .28, 1); }
.ox-pill { top: 50%; }
.ox-fade { transition: opacity 180ms ease; }
.ox-date, .ox-acts .ox-ib:first-child { transition: opacity 200ms ease, transform 300ms cubic-bezier(.32, .9, .28, 1); }
.ox-scroll.docked .ox-week { background-color: transparent; pointer-events: none; }
.ox-scroll.docked .ox-wk { pointer-events: auto; transform: translateY(-77px) scale(.7); }
.ox-scroll.docked .ox-fade { opacity: 0; }
.ox-scroll.docked .ox-date { opacity: 0; transform: translateX(-8px); }
.ox-scroll.docked .ox-acts .ox-ib:first-child { opacity: 0; transform: scale(.8); pointer-events: none; }
.ox-scroll.docked .ox-top { box-shadow: 0 1px 0 #181d27; }
@media (prefers-reduced-motion: reduce) { .ox-wk, .ox-date, .ox-acts .ox-ib:first-child { transition-duration: 1ms; } }
/* XPulse simulator, in the app: the live status bar covers the one baked into the screenshot */
.xq-sb { transition: background-color 400ms var(--ease); }
.xq-in[data-mode="app"] .xq-sb { background: #000; }

/* ---------- OX screens ---------- */
.ox-screen { position: absolute; inset: 0; }
.ox-screen:not(.on) { display: none; }
.ox-screen.ox-in { animation: oxin 380ms cubic-bezier(.3, .9, .3, 1); }
.ox-screen.ox-back { animation: oxback 340ms cubic-bezier(.3, .9, .3, 1); }
@keyframes oxin { from { transform: translateX(40%); opacity: 0; } }
@keyframes oxback { from { transform: translateX(-24%); opacity: 0; } }
.ox-scroll-y { scrollbar-width: none; } .ox-scroll-y::-webkit-scrollbar { display: none; }

/* the home status bar already sits under the XPulse dim */
.xc-screen .xc-status { display: none; }

/* ---------- FLOW food ---------- */
/* OneRouteX — food scan flow (Figma section 2380:17304). Everything scoped under .fs-s */
.fs-s { position: absolute; inset: 0; overflow: hidden; background: #000; color: #fdfdfd; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:where(.fs-s), :where(.fs-s) *, :where(.fs-s) *::before, :where(.fs-s) *::after { box-sizing: border-box; }
:where(.fs-s) button { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.fs-s) p, :where(.fs-s) h1, :where(.fs-s) h2, :where(.fs-s) h3 { margin: 0; font: inherit; }
:where(.fs-s) img { display: block; max-width: none; }
:where(.fs-s) i, :where(.fs-s) small, :where(.fs-s) b { font-style: normal; font-weight: inherit; font-size: inherit; }
.fs-s .fs-press { transition: transform 120ms ease; }
.fs-s .fs-press:active { transform: scale(.97); }
.fs-s .fs-fill { position: absolute; display: block; }
.fs-s .fs-fill > img { width: 100%; height: 100%; }

/* status bar + home indicator */
.fs-s .fs-sb { position: absolute; left: 0; top: 0; z-index: 30; width: 375px; height: 44px; pointer-events: none; }
.fs-s .fs-sb-solid { background: #000; }
.fs-s .fs-time { position: absolute; left: calc(16.67% - 10.5px); top: 15px; width: 54px; transform: translateX(-50%); font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; text-align: center; color: #fff; }
.fs-s .fs-sr { position: absolute; left: calc(83.33% + .2px); top: 19px; width: 77.401px; height: 13px; transform: translateX(-50%); }
.fs-s .fs-hind { position: relative; width: 100%; height: 34px; pointer-events: none; }
.fs-s .fs-hind > i { position: absolute; left: calc(50% + .5px); bottom: 8px; width: 144px; height: 5px; transform: translateX(-50%); border-radius: 100px; background: #fff; }
.fs-s .fs-hind-abs { position: absolute; left: 0; bottom: 0; width: 375px; z-index: 25; }

/* shared bits */
.fs-s .fs-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #252b37; font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #fdfdfd; white-space: nowrap; flex: none; }
.fs-s .fs-ib { display: flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; background: #111318; }
.fs-s .fs-ib10 { padding: 10px; }
.fs-s .fs-ib8 { padding: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fs-s .fs-glass { display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.04); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fs-s .fs-av { display: flex; align-items: center; flex: none; }
.fs-s .fs-av8 { padding: 8px; border-radius: 20.211px; }
.fs-s .fs-av12 { padding: 12px; border-radius: 24px; }
.fs-s .fs-av16 { padding: 16px; border-radius: 54px; }
.fs-s .fs-h3 { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; line-height: 20px; color: #fdfdfd; white-space: nowrap; }
.fs-s .fs-bigbtn { flex: 1 0 0; min-width: 1px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; border-radius: 12px; font-weight: 500; font-size: 16px; line-height: 24px; white-space: nowrap; }
.fs-s .fs-bigbtn > span { padding: 0 2px; }
.fs-s .fs-bigbtn-lime { background: #c2f526; color: #0a0d12; }
.fs-s .fs-bigbtn-dk { background: #111318; color: #fdfdfd; }
.fs-s .fs-below { position: absolute; left: 0; bottom: 0; z-index: 20; width: 375px; display: flex; flex-direction: column; border-top: 1px solid #252b37; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.fs-s .fs-below-b { display: flex; gap: 8px; padding: 16px; }

/* ---------- nutrition page (empty + done) ---------- */
.fs-s .fs-body { position: absolute; left: 0; top: 44px; width: 375px; display: flex; flex-direction: column; align-items: center; }
.fs-s .fs-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.fs-s .fs-scroll::-webkit-scrollbar { display: none; }
.fs-s .fs-scroll-done { display: flex; flex-direction: column; align-items: center; padding: 44px 0 241px; }
.fs-s .fs-nh { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.fs-s .fs-brandav { position: relative; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 24px; background: #fff; }
.fs-s .fs-brandsq { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #c2f526; }
.fs-s .fs-brandsq img { width: 16.38px; height: 17.624px; transform: translate(.19px,-.19px); }
.fs-s .fs-nh-acts { display: flex; align-items: center; gap: 8px; }
.fs-s .fs-bell { position: relative; display: block; }
.fs-s .fs-bell b { position: absolute; left: 14px; top: -4px; width: 14px; border-radius: 999px; background: #f04438; font-weight: 600; font-size: 10px; line-height: 14px; letter-spacing: .1px; text-align: center; color: #fffbfa; }

.fs-s .fs-week { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.fs-s .fs-day { position: relative; width: 35px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .07px; text-align: center; color: #a4a7ae; }
.fs-s .fs-day:nth-child(2), .fs-s .fs-day:nth-child(6) { width: 36px; }
.fs-s .fs-day-on { width: 40px; overflow: hidden; padding: 16px 4px 8px; border-radius: 8px; background: #111318; font-weight: 600; color: #fdfdfd; }
.fs-s .fs-dglow { position: absolute; left: 50%; top: 6px; width: 24px; height: 6px; transform: translateX(-50%); border-radius: 99px; background: rgba(163,219,7,.7); filter: blur(8px); opacity: .7; }
.fs-s .fs-dbar { position: absolute; left: 50%; top: 6px; width: 16px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: #a3db07; }
.fs-s .fs-wfade { position: absolute; top: 50%; width: 82px; height: 90px; margin-top: -45px; pointer-events: none; }
.fs-s .fs-wfade-l { left: 0; top: calc(50% + 1px); height: 89px; background: linear-gradient(to right, #000, rgba(0,0,0,0)); }
.fs-s .fs-wfade-r { right: 0; background: linear-gradient(to left, #000, rgba(0,0,0,0)); }

.fs-s .fs-cards { width: 343px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }
.fs-s .fs-scancard { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 10px; overflow: hidden; padding: 16px; border-radius: 12px; background: #111318; }
.fs-s .fs-scan-av { position: relative; flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 84.857px; background: rgba(194,245,38,.1); }
.fs-s .fs-scan-av img { width: 27.429px; height: 27.429px; }
.fs-s .fs-scan-t { position: relative; z-index: 1; flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 8px; }
.fs-s .fs-scan-t b { font-weight: 600; font-size: 16px; line-height: 20px; color: #fdfdfd; }
.fs-s .fs-scan-t span { font-weight: 400; font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #a4a7ae; }
.fs-s .fs-scan-grid { position: absolute; left: 157px; top: -22px; width: 199px; height: 199px; pointer-events: none; }

.fs-s .fs-cal { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; padding: 16px; border-radius: 12px; background: #111318; }
.fs-s .fs-cal-l { display: flex; flex-direction: column; gap: 24px; }
.fs-s .fs-cal-h { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: .065px; white-space: nowrap; }
.fs-s .fs-cal-v { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.fs-s .fs-cal-v b { font-weight: 400; font-size: 32px; line-height: 40px; letter-spacing: -.16px; }
.fs-s .fs-cal-v span { font-weight: 500; font-size: 13px; line-height: 16px; letter-spacing: .065px; color: #a4a7ae; }
.fs-s .fs-macs { width: 100%; display: flex; align-items: center; gap: 12px; }
.fs-s .fs-mac { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px; border-radius: 12px; background: #111318; }
.fs-s .fs-mac-t { width: 100%; display: flex; flex-direction: column; gap: 8px; font-weight: 600; white-space: nowrap; }
.fs-s .fs-mac-v { font-size: 18px; line-height: 24px; color: #fdfdfd; }
.fs-s .fs-mac-v small { font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #717680; }
.fs-s .fs-mac-l { font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #a4a7ae; }
.fs-s .fs-rule { display: block; flex: none; width: 375px; height: 4px; background: #181d27; }

.fs-s .fs-meals { width: 343px; display: flex; flex-direction: column; gap: 16px; padding: 16px 0; }
.fs-s .fs-meal { width: 345px; display: flex; align-items: center; gap: 16px; padding: 8px 16px 12px 8px; border-radius: 12px; background: #111318; }
.fs-s .fs-meal-img { position: relative; flex: none; width: 96px; height: 96px; overflow: hidden; border-radius: 8px; }
.fs-s .fs-meal-img img { position: absolute; left: 0; top: -7px; width: 96px; height: 120px; object-fit: cover; }
.fs-s .fs-meal-c { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 12px; }
.fs-s .fs-meal-a { display: flex; flex-direction: column; gap: 8px; }
.fs-s .fs-meal-a small { font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #fdfdfd; }
.fs-s .fs-meal-r { display: flex; align-items: center; gap: 12px; }
.fs-s .fs-meal-r b { flex: 1 0 0; min-width: 1px; height: 36px; overflow: hidden; font-weight: 500; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #fdfdfd; }
.fs-s .fs-meal-m { width: 209px; display: flex; align-items: center; justify-content: space-between; }
.fs-s .fs-meal-m i { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #717680; white-space: nowrap; }

.fs-s .fs-fab, .fs-s .fs-orb { position: absolute; right: 12px; z-index: 15; width: 56px; height: 56px; overflow: hidden; border-radius: 99px; background: #252b37; }
.fs-s .fs-fab { bottom: 182px; display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fs-s .fs-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 2px 0 rgba(255,255,255,.17), inset 2px 3px 8px 0 rgba(255,255,255,.1); pointer-events: none; }
.fs-s .fs-orb { bottom: 110px; border-radius: 92.4px; -webkit-backdrop-filter: blur(11.2px); backdrop-filter: blur(11.2px); }
.fs-s .fs-orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 1.867px 0 rgba(255,255,255,.17), inset 1.867px 2.8px 7.467px 0 rgba(255,255,255,.1); pointer-events: none; }
.fs-s .fs-o { position: absolute; display: block; }
.fs-s .fs-oc { display: flex; align-items: center; justify-content: center; }
.fs-s .fs-oc > span { position: relative; flex: none; display: block; }
.fs-s .fs-og { inset: 31.67% 32.7% 31.79% 33.33%; mix-blend-mode: overlay; }

.fs-s .fs-tabs { position: absolute; left: 0; bottom: 0; z-index: 20; width: 375px; border-top: 1px solid #252b37; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.fs-s .fs-tabrow { display: flex; align-items: center; gap: 8px; padding: 4px 16px; }
.fs-s .fs-tabrow button { flex: 1 0 0; min-width: 1px; display: flex; justify-content: center; padding: 12px 8px; }

/* ---------- camera / confirm / error ---------- */
.fs-s .fs-cam { position: absolute; right: 0; bottom: 0; width: 375px; height: 752px; overflow: hidden; border-radius: 16px 16px 0 0; background: #000; }
.fs-s .fs-cam-confirm { bottom: 158px; height: 594px; border-radius: 0; }
.fs-s .fs-cam-photo { position: absolute; left: -82px; top: 0; width: 539px; height: 765px; object-fit: cover; pointer-events: none; }
.fs-s .fs-cam-x, .fs-s .fs-cam-fl { position: absolute; padding: 10px; border-radius: 8px; overflow: hidden; }
.fs-s .fs-cam-x { left: 16px; top: 24px; }
.fs-s .fs-cam-fl { left: 40px; top: 634px; }
.fs-s .fs-qa { position: absolute; left: 50%; top: 524px; width: 343px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; }
.fs-s .fs-qa-b { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.7); font-weight: 500; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #0a0d12; white-space: nowrap; }
.fs-s .fs-shutter { position: absolute; left: 156px; top: 684px; width: 64px; height: 64px; border-radius: 50%; }
.fs-s .fs-cbtns { position: absolute; left: 0; top: 690px; width: 375px; display: flex; align-items: flex-start; gap: 8px; padding: 16px; }

.fs-s .fs-under { position: absolute; inset: 0; pointer-events: none; }
.fs-s .fs-modal-bg { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.7); }
.fs-s .fs-modal { position: absolute; left: 0; bottom: 0; width: 375px; height: 360px; overflow: hidden; border-radius: 24px; background: #111318; }
.fs-s .fs-grab { position: absolute; left: calc(50% + .5px); top: 6px; width: 40px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: #a4a7ae; }
.fs-s .fs-modal-c { position: absolute; left: 50%; top: 40px; width: 295px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.fs-s .fs-modal-t { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fs-s .fs-modal-t h2 { font-weight: 600; font-size: 20px; line-height: 26px; color: #fdfdfd; }
.fs-s .fs-modal-t p { font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #a4a7ae; }
.fs-s .fs-below-modal { background: none; }
.fs-s .fs-below-modal .fs-bigbtn { flex: none; width: 343px; color: #fdfdfd; }
.fs-s.fs-error .fs-modal { animation: fs-sheet 360ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes fs-sheet { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- loading ---------- */
.fs-s .fs-load { position: absolute; left: 50%; top: 50%; width: 295px; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.fs-s .fs-load-ring { position: relative; display: flex; align-items: center; padding: 26px; }
.fs-s .fs-load-bg { position: absolute; left: 50%; top: calc(50% + .5px); width: 259px; height: 259px; transform: translate(-50%,-50%); pointer-events: none; }
.fs-s .fs-load-c { position: relative; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 99px; background: #252b37; }
.fs-s .fs-load-c img { position: absolute; left: 12.5px; top: 12px; }
.fs-s .fs-load-arc { position: absolute; left: 0; top: 0; width: 100px; height: 100px; animation: fs-spin 1.1s linear infinite; }
.fs-s .fs-load-t { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.fs-s .fs-load-t h2 { width: 100%; font-weight: 600; font-size: 18px; line-height: 24px; color: #fdfdfd; }
.fs-s .fs-load-t p { width: 100%; font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #a4a7ae; }
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* ---------- food info / logged ---------- */
.fs-s .fs-scroll-info { padding: 100px 0 123px; }
.fs-s .fs-hero { width: 375px; height: 300px; display: flex; align-items: center; justify-content: center; }
.fs-s .fs-hero > div { position: relative; flex: none; width: 300px; height: 375px; transform: rotate(-90deg); }
.fs-s .fs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-s .fs-sheet { position: relative; margin-top: -24px; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 24px 16px 40px; border-radius: 16px 16px 0 0; background: #000; }
.fs-s .fs-sheet-top { width: 343px; display: flex; flex-direction: column; gap: 24px; }
.fs-s .fs-ttl { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; padding-right: 8px; }
.fs-s .fs-ttl-l { width: 186px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fs-s .fs-ttl-l h2 { width: 100%; font-weight: 600; font-size: 20px; line-height: 26px; color: #fdfdfd; }
.fs-s .fs-ttl-logged { justify-content: flex-start; gap: 24px; }
.fs-s .fs-ttl-logged .fs-ttl-l { width: auto; flex: 1 0 0; min-width: 1px; }
.fs-s .fs-serv { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.fs-s .fs-serv > span { font-weight: 500; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #a4a7ae; white-space: nowrap; }
.fs-s .fs-serv-b { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 12px; border-radius: 8px; background: #111318; font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .07px; color: #fdfdfd; white-space: nowrap; }
.fs-s .fs-serv-b > span { padding: 0 2px; }
.fs-s .fs-nut { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.fs-s .fs-kc { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 12px; background: #111318; }
.fs-s .fs-kc > div { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 4px; }
.fs-s .fs-kc small, .fs-s .fs-nc small { font-weight: 500; font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #a4a7ae; white-space: nowrap; }
.fs-s .fs-kc b { font-weight: 600; font-size: 20px; line-height: 26px; color: #fdfdfd; }
.fs-s .fs-nrow { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.fs-s .fs-nc { width: 106px; display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 12px; background: #111318; }
.fs-s .fs-nc > div { width: 50.333px; display: flex; flex-direction: column; gap: 4px; }
.fs-s .fs-nc b { font-weight: 600; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #fdfdfd; white-space: nowrap; }
.fs-s .fs-div2 { display: block; width: 100%; height: 2px; background: #181d27; }
.fs-s .fs-ings { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.fs-s .fs-ing-list { display: flex; flex-direction: column; gap: 12px; }
.fs-s .fs-ing { height: 52px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #111318; }
.fs-s .fs-ing > div { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.fs-s .fs-ing p { font-size: 12px; line-height: 18px; letter-spacing: .12px; color: #fdfdfd; }
.fs-s .fs-ing small { font-size: 11px; line-height: 14px; letter-spacing: .11px; color: #a4a7ae; white-space: nowrap; }
.fs-s .fs-fix { width: 131px; gap: 4px; padding: 10px 16px; border-radius: 8px; overflow: hidden; font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .07px; color: #fdfdfd; white-space: nowrap; }
.fs-s .fs-fix > span { padding: 0 2px; }

.fs-s .fs-topbar { position: absolute; left: 0; top: 0; z-index: 20; width: 375px; height: 100px; background: #000; }
.fs-s .fs-tb-row { position: absolute; left: 16px; top: 60px; width: 343px; display: flex; align-items: center; justify-content: space-between; }
.fs-s .fs-tb-row h1 { font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; color: #fdfdfd; text-align: center; white-space: nowrap; }
.fs-s .fs-tb-ic { display: block; width: 24px; height: 24px; }
.fs-s .fs-toast { position: absolute; left: 107.5px; top: 60px; display: flex; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 16px; background: #181d27; }
.fs-s .fs-toast b { width: 85px; font-weight: 600; font-size: 14px; line-height: 18px; letter-spacing: .07px; color: #fdfdfd; }
.fs-s .fs-toast.fs-in { animation: fs-toast 420ms cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes fs-toast { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fs-s .fs-press, .fs-s .fs-press:active { transition: none; transform: none; }
  .fs-s .fs-load-arc, .fs-s .fs-toast.fs-in, .fs-s.fs-error .fs-modal { animation: none; }
}

/* ---------- /FLOW food ---------- */

/* ---------- OX autoplay ---------- */
.ox-finger { position: absolute; left: -22px; top: -22px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.28); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 6px 16px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: transform 560ms cubic-bezier(.45, 0, .2, 1), opacity 240ms ease; }
.ox-finger.on { opacity: 1; }
.ox-finger.down { background: rgba(255,255,255,.5); box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.35); }
.ox-finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.8); opacity: 0; }
.ox-finger.down::after { animation: oxtap 420ms ease-out; }
@keyframes oxtap { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ox-ctl { display: grid; justify-items: center; gap: 8px; max-width: 400px; text-align: center; }
.ox-play { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--ink); color: var(--bg); font-size: 14px; line-height: 20px; font-weight: 500; transition: transform 150ms var(--ease); }
.ox-play:active { transform: scale(.96); }
.ox-play svg { width: 16px; height: 16px; fill: currentColor; }
.ox-play .pa { display: none; } .ox-play[aria-pressed="true"] .pa { display: inline; } .ox-play[aria-pressed="true"] .pl { display: none; }
.ox-cap { min-height: 40px; margin: 0; font-size: 14px; line-height: 20px; color: var(--body); }
.ox-cap.in { animation: oxcap 360ms var(--ease); }
@keyframes oxcap { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ox-finger { transition: opacity 200ms ease; } .ox-cap.in, .ox-finger.down::after { animation: none; } }

/* ---------- FLOW xq ---------- */
/* XPulse — AI coach bottom sheet (Figma: XPulse - Prompt, 4652:26503) */
.xc-screen { position: absolute; inset: 0; z-index: 20; overflow: hidden; font-family: 'Plus Jakarta Sans', sans-serif; color: #fdfdfd; -webkit-font-smoothing: antialiased; }
.xc-screen *, .xc-screen *::before, .xc-screen *::after { box-sizing: border-box; }
.xc-screen button, .xc-screen textarea { margin: 0; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.xc-screen button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xc-screen img { display: block; max-width: none; }

/* status bar + dim (home shows through the dim) */
.xc-status { position: absolute; left: 0; top: 0; z-index: 1; width: 375px; height: 44px; pointer-events: none; }
.xc-time { position: absolute; left: calc(16.67% - 10.5px); top: 15px; width: 54px; transform: translateX(-50%); font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; text-align: center; color: #fff; }
.xc-sr { position: absolute; left: calc(83.33% + .2px); top: 19px; width: 77.401px; height: 13px; transform: translateX(-50%); }
.xc-dim { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; background: rgba(0,0,0,.7) !important; cursor: default !important; transition: opacity 320ms ease; }

/* sheet */
.xc-sheet { position: absolute; left: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; width: 375px; height: 720px; overflow: hidden; border-radius: 24px 24px 0 0; background: #111318; transition: transform 420ms cubic-bezier(.32,.72,0,1); }
.xc-screen.is-off .xc-sheet { transform: translateY(100%); }
.xc-screen.is-off .xc-dim { opacity: 0; }
.xc-grab { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: 22px; }
.xc-grab i { position: absolute; left: calc(50% + .5px); top: 6px; width: 40px; height: 4px; transform: translateX(-50%); border-radius: 99px; background: #a4a7ae; }

/* header */
.xc-top { position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; width: 375px; height: 88px; padding: 0 16px 16px; pointer-events: none; }
.xc-screen.is-chat .xc-top { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.xc-top > * { pointer-events: auto; }
.xc-top-empty { position: relative; display: flex; align-items: center; height: 28px; margin-bottom: -4px; }
.xc-glass { display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,.04) !important; border-radius: 10px; background: rgba(255,255,255,.12) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 120ms ease, background-color 160ms ease; }
.xc-glass:active { transform: scale(.94); }
.xc-hist { padding: 3px !important; }
.xc-title { position: absolute; left: calc(50% - .5px); top: 50%; display: flex; align-items: center; gap: 6px; margin: 0; transform: translate(-50%, -50%); }
.xc-title span { font-size: 16px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.xc-beta { display: flex; align-items: center; padding: 2px 7px; border: 1px solid #535862; border-radius: 34px; background: #717680; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #252b37; }
.xc-top-chat { display: none; margin: 0; height: 24px; font-size: 18px; line-height: 24px; font-weight: 600; text-align: center; }
.xc-screen.is-chat .xc-top-empty { display: none; }
.xc-screen.is-chat .xc-top-chat { display: block; }

/* empty state orb */
.xc-empty { position: absolute; left: calc(50% - .5px); top: 261px; width: 60px; height: 60px; transform: translateX(-50%); transition: opacity 240ms ease; }
.xc-screen.is-chat .xc-empty { opacity: 0; pointer-events: none; }
.xc-orb { position: relative; width: 60px; height: 60px; overflow: hidden; border-radius: 99px; opacity: .6; background: #252b37; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: xc-breathe 3.2s ease-in-out infinite; }
.xc-orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 2px 0 rgba(255,255,255,.17), inset 2px 3px 8px 0 rgba(255,255,255,.1); pointer-events: none; }
.xc-orb > img, .xc-o { position: absolute; display: block; }
.xc-o.c { display: flex; align-items: center; justify-content: center; }
.xc-o.c > span { position: relative; flex: none; display: block; }
.xc-fill { position: absolute; display: block; }
.xc-fill img { width: 100%; height: 100%; }
.xc-og { left: 33.33%; top: 31.67%; width: 33.97%; height: 36.54%; mix-blend-mode: overlay; }
@keyframes xc-breathe { 50% { transform: scale(1.04); opacity: .72; } }

/* message list */
.xc-list { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 118px 16px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.xc-list::-webkit-scrollbar { display: none; }
.xc-msg + .xc-msg { margin-top: 40px; }
.xc-user { align-self: flex-end; max-width: 280px; padding: 10px; border-radius: 16px; background: #007aff; color: #fff; font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: .07px; overflow-wrap: anywhere; white-space: pre-wrap; transition: background-color 280ms ease; animation: xc-in 260ms cubic-bezier(.2,.8,.2,1); }
.xc-user.is-pending { background: #252b37; }
.xc-ai { display: flex; align-items: center; gap: 8px; animation: xc-in 260ms cubic-bezier(.2,.8,.2,1); }
.xc-ai-b { width: 315px; padding: 10px; border-radius: 16px; background: #181d27; }
.xc-ai-b p { margin: 0; font-size: 14px; line-height: 24px; font-weight: 500; letter-spacing: .07px; color: #fdfdfd; overflow-wrap: anywhere; }
.xc-copy { flex: none; width: 20px; height: 20px; opacity: 0; transition: opacity 200ms ease, transform 120ms ease; }
.xc-ai.is-done .xc-copy { opacity: 1; }
.xc-copy:active { transform: scale(.88); }
.xc-copy.is-ok { opacity: .45 !important; }
.xc-think { position: relative; width: 24px; height: 24px; animation: xc-in 200ms ease; }
.xc-think img { position: absolute; left: -6.12px; top: -7.92px; width: 34.735px; height: 34.735px; animation: xc-spin 1.6s linear infinite, xc-pulse 1.2s ease-in-out infinite; }
@keyframes xc-spin { to { rotate: 360deg; } }
@keyframes xc-pulse { 50% { scale: 1.18; opacity: .7; } }
@keyframes xc-in { from { opacity: 0; transform: translateY(8px); } }

/* dock: quick action, chips, input */
.xc-dock { position: relative; z-index: 2; flex: none; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 16px 50px; }
.xc-qa { display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 7px 11px !important; border: 1px solid rgba(255,255,255,.04) !important; border-radius: 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color 160ms ease; }
.xc-qa:hover { background: rgba(255,255,255,.04) !important; }
.xc-qa-caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 240ms ease; }
.xc-qa[aria-expanded="true"] .xc-qa-caret { transform: rotate(-90deg); }
.xc-qa span { padding: 0 2px; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; white-space: nowrap; }
.xc-chips { align-self: stretch; display: flex; gap: 16px; height: 0; margin: -16px -16px 0 0; padding-right: 16px; overflow-x: auto; overflow-y: hidden; opacity: 0; visibility: hidden; scrollbar-width: none; transition: height 280ms cubic-bezier(.2,.8,.2,1), margin-top 280ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease, visibility 0s 280ms; }
.xc-chips::-webkit-scrollbar { display: none; }
.xc-dock.is-open .xc-chips { height: 64px; margin-top: 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.xc-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px !important; border-radius: 12px; background: #181d27 !important; text-align: left; white-space: nowrap; transition: background-color 160ms ease, transform 120ms ease; }
.xc-chip:hover { background: #1f2531 !important; }
.xc-chip:active { transform: scale(.97); }
.xc-chip b { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .07px; color: #fdfdfd; }
.xc-chip span { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .12px; color: #a4a7ae; }
.xc-input { position: relative; align-self: stretch; height: 96px; margin: 0; overflow: hidden; border: 1px solid #252b37; border-radius: 16px; background: #181d27; transition: border-color 160ms ease; }
.xc-input:focus-within { border-color: #343b4a; }
.xc-field { position: absolute; left: 0; top: 0; width: 100%; height: 50px; padding: 17px 15px 0 !important; resize: none; outline: none; font-size: 14px !important; line-height: 18px !important; font-weight: 500 !important; letter-spacing: .07px; color: #fdfdfd !important; scrollbar-width: none; }
.xc-field::placeholder { color: #717680; opacity: 1; }
.xc-field:disabled::placeholder { text-decoration: line-through; }
.xc-send { position: absolute; right: 7px; bottom: 7px; padding: 7px !important; }
.xc-i-stop { display: none !important; }
.xc-screen.is-busy .xc-i-send { display: none !important; }
.xc-screen.is-busy .xc-i-stop { display: block !important; }

.xc-hind { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 34px; pointer-events: none; }
.xc-hind i { position: absolute; left: calc(50% + .5px); bottom: 8px; width: 144px; height: 5px; transform: translateX(-50%); border-radius: 100px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .xc-sheet, .xc-dim, .xc-chips, .xc-qa-caret, .xc-user, .xc-empty { transition: none; }
  .xc-orb, .xc-user, .xc-ai, .xc-think, .xc-think img { animation: none; }
}

/* ---------- /FLOW xq ---------- */

/* the prototype inside a case study ignores the prose typography */
.prose .ox-stage { margin-top: 32px; }
.prose .ox-scr h2, .prose .ox-scr h3, .prose .ox-scr p, .prose .ox-scr ul { margin-top: 0; }

/* ---------- FLOW notif ---------- */
/* ---------- FLOW notifs ---------- */
/* OneRouteX — notifications (Figma section 7983:82480). Page scoped under .no-s, overlays under .no-banner / .no-sheet */
.no-s { position: absolute; inset: 0; overflow: hidden; background: #000; color: #fdfdfd; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:where(.no-s, .no-banner, .no-sheet), :where(.no-s, .no-banner, .no-sheet) *, :where(.no-s, .no-banner, .no-sheet) *::before, :where(.no-s, .no-banner, .no-sheet) *::after { box-sizing: border-box; }
:where(.no-s, .no-banner, .no-sheet) button { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.no-s, .no-banner, .no-sheet) :is(p, h2, h3, ul) { margin: 0; padding: 0; font: inherit; }
:where(.no-s, .no-banner, .no-sheet) img { display: block; max-width: none; }
:where(.no-s, .no-banner, .no-sheet) :is(b, i, time) { font-style: normal; font-weight: inherit; }
.no-s .no-items { list-style: none; }

/* top bar: status + back / title / mark-all */
.no-s .no-top { position: absolute; left: 0; top: 0; z-index: 3; width: 375px; display: flex; flex-direction: column; gap: 16px; padding: 0 16px 16px; background: #111318; }
.no-s .no-sb { position: relative; width: 375px; height: 44px; margin: 0 -16px; flex: none; }
.no-s .no-time { position: absolute; left: calc(16.67% - 10.5px); top: 15px; width: 54px; transform: translateX(-50%); font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; text-align: center; color: #fff; }
.no-s .no-sr { position: absolute; left: calc(83.33% + .2px); top: 19px; width: 77.401px; height: 13px; transform: translateX(-50%); }
.no-s .no-bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 24px; }
.no-s .no-title { margin: 0; padding: 0; letter-spacing: 0; position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-size: 18px; line-height: 24px; font-weight: 500; color: #fdfdfd; white-space: nowrap; }
.no-s .no-icb { position: relative; display: block; width: 24px; height: 24px; transition: transform 120ms ease, opacity 200ms ease; }
.no-s .no-icb::before { content: ""; position: absolute; inset: -10px; }
.no-s .no-icb:active { transform: scale(.88); }

/* Unread / All segmented tabs */
.no-s .no-tabwrap { position: absolute; left: 0; top: 100px; z-index: 2; width: 375px; padding: 16px; border-radius: 0 0 12px 12px; background: #111318; }
.no-s .no-tabs { position: relative; display: flex; padding: 2px; border-radius: 20px; background: #0c0e12; }
.no-s .no-thumb { position: absolute; left: 2px; top: 2px; width: calc(50% - 2px); height: 32px; border-radius: 100px; background: #181d27; filter: drop-shadow(0 2px 8px rgba(0,0,0,.08)); transition: transform 320ms cubic-bezier(.3, 1.2, .45, 1); }
.no-s.no-all .no-thumb { transform: translateX(100%); }
.no-s .no-tabs button { position: relative; flex: 1 0 0; height: 32px; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: .065px; text-align: center; color: #a4a7ae; transition: color 200ms ease; }
.no-s .no-tabs button[aria-selected="true"] { color: #fdfdfd; }

/* list */
.no-s .no-scroll { position: absolute; inset: 100px 0 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 68px 0 34px; }
.no-s .no-items { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px; }
.no-s .no-it { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 12px 8px; border-radius: 12px; background: #000; cursor: pointer; outline: none; transition: background-color 240ms ease, opacity 240ms ease, transform 280ms cubic-bezier(.3, .9, .3, 1); }
.no-s .no-it.unread { background: #111318; }
.no-s .no-it[hidden] { display: none; }
.no-s .no-it:focus-visible { box-shadow: 0 0 0 2px #c2f526; }
.no-s .no-it:active { transform: scale(.985); }
.no-s .no-it.no-gone { opacity: 0; transform: translateX(-24px); }
.no-s .no-row { display: flex; align-items: flex-start; gap: 8px; }
.no-s .no-av { position: relative; flex: none; display: flex; padding: 8px; border-radius: 54px; background: rgba(164,167,174,.15); }
.no-s .no-av i { position: absolute; left: 32px; top: 0; width: 8px; height: 8px; border-radius: 999px; background: #f04438; transform: scale(0); transition: transform 260ms cubic-bezier(.3, 1.5, .5, 1); }
.no-s .no-it.unread .no-av i { transform: scale(1); }
.no-s .no-tx { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 4px; }
.no-s .no-tx b { display: block; font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .07px; color: #fdfdfd; }
.no-s .no-tx p { margin: 0; font-size: 11px; line-height: 14px; font-weight: 400; letter-spacing: .11px; color: #a4a7ae; }
.no-s time { flex: none; margin-left: 16px; padding: 2px 0; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .11px; color: #a4a7ae; white-space: nowrap; }
.no-s .no-it:first-child time { width: 46px; margin-left: 0; text-align: right; }
.no-s .no-acts { display: flex; gap: 4px; padding-left: 48px; }
.no-s .no-gb { flex: 1 0 0; min-width: 1px; display: flex; align-items: center; justify-content: center; padding: 6px 14px; border: 1px solid rgba(255,255,255,.04); border-radius: 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .12px; color: #fdfdfd; white-space: nowrap; transition: transform 120ms ease, background-color 200ms ease; }
.no-s .no-gb-fill { background: rgba(255,255,255,.12); }
.no-s .no-gb:active { transform: scale(.96); }

/* empty state */
.no-s .no-empty { position: absolute; left: 32px; top: 263px; width: 311px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.no-s .no-empty[hidden], .no-s .no-items[hidden] { display: none; }
.no-s .no-fade { animation: nofade 280ms ease; }
@keyframes nofade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- bottom sheets (mark-all inside the page; weekly progress on home) ---------- */
:is(.no-s .no-ask, .no-sheet) { position: absolute; inset: 0; z-index: 40; }
:is(.no-s .no-ask, .no-sheet)[hidden] { display: none; }
:is(.no-s .no-ask, .no-sheet) .no-dim { position: absolute; inset: 0; width: 100%; background: rgba(0,0,0,.7); opacity: 0; transition: opacity 260ms ease; }
:is(.no-s .no-ask, .no-sheet) .no-pan { position: absolute; left: 0; bottom: 0; width: 375px; height: 405px; overflow: hidden; border-radius: 24px; background: #111318; transform: translateY(100%); transition: transform 380ms cubic-bezier(.3, .9, .3, 1); }
:is(.no-s .no-ask, .no-sheet).no-on .no-dim { opacity: 1; }
:is(.no-s .no-ask, .no-sheet).no-on .no-pan { transform: none; }
:is(.no-s .no-ask, .no-sheet).no-out .no-pan { transition-duration: 260ms; transition-timing-function: ease-in; }

/* shared sheet / empty-state pieces (Figma modal 7657:2324, 7981:61187) */
:is(.no-s, .no-sheet) .no-pic { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 16px; border-radius: 54px; background: rgba(164,167,174,.15); }
:is(.no-s, .no-sheet) .no-pic img { width: 32px; height: 32px; }
:is(.no-s, .no-sheet) :is(.no-empty, .no-pan-b) h3 { margin: 0; letter-spacing: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: #fdfdfd; }
:is(.no-s, .no-sheet) :is(.no-empty, .no-pan-b) p { margin: 12px 0 0; font-size: 14px; line-height: 18px; font-weight: 400; letter-spacing: .07px; color: #a4a7ae; }
:is(.no-s, .no-sheet) .no-empty h3 { white-space: nowrap; }
:is(.no-s, .no-sheet) .no-grab { position: absolute; left: calc(50% + .5px); top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: #a4a7ae; }
:is(.no-s, .no-sheet) .no-pan-b { position: absolute; left: 32px; top: 40px; width: 311px; display: flex; flex-direction: column; align-items: center; text-align: center; }
:is(.no-s, .no-sheet) :is(.no-pan-b, .no-empty) .no-pic { margin-bottom: 24px; }
:is(.no-s, .no-sheet) .no-pan-b h3 { width: 100%; }
:is(.no-s, .no-sheet) .no-pan-f { position: absolute; left: 1px; bottom: 0; width: 375px; display: flex; flex-direction: column; border-top: 1px solid #252b37; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
:is(.no-s, .no-sheet) .no-pan-btns { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
:is(.no-s, .no-sheet) :is(.no-lime, .no-plain) { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 22px; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 500; white-space: nowrap; transition: transform 120ms ease, background-color 200ms ease; }
:is(.no-s, .no-sheet) .no-lime { background: #c2f526; color: #0a0d12; }
:is(.no-s, .no-sheet) .no-lime:active { background: #a3db07; transform: scale(.98); }
:is(.no-s, .no-sheet) .no-plain { background: #111318; color: #fdfdfd; }
:is(.no-s, .no-sheet) .no-plain:active { transform: scale(.98); }
:is(.no-s, .no-sheet) .no-hind { position: relative; display: block; height: 34px; }
:is(.no-s, .no-sheet) .no-hind::after { content: ""; position: absolute; left: calc(50% + .5px); bottom: 8px; width: 144px; height: 5px; margin-left: -72px; border-radius: 100px; background: #fff; }
:is(.no-s, .no-sheet) :is(button, [tabindex]):focus-visible { outline: 2px solid #c2f526; outline-offset: 2px; }

/* ---------- in-app banner ---------- */
.no-banner { position: absolute; left: 16px; top: 60px; z-index: 45; width: 343px; touch-action: none; transform: translateY(calc(-100% - 64px)); transition: transform 460ms cubic-bezier(.2, 1.2, .4, 1); }
.no-banner[hidden] { display: none; }
.no-banner.no-on { transform: translateY(var(--dy, 0px)); }
.no-banner.no-out { transform: translateY(calc(-100% - 64px)); transition: transform 260ms ease-in; }
.no-banner.no-drag { transition: none; }

.no-banner .no-bn { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #181d27; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: grab; user-select: none; -webkit-user-select: none; }
.no-banner .no-bn-ic { flex: none; display: flex; padding: 8px; border-radius: 54px; background: rgba(164,167,174,.15); }
.no-banner .no-bn-ic img { width: 24px; height: 24px; }
.no-banner .no-bn-tx { flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; gap: 2px; margin-left: -4px; }
.no-banner .no-bn-tx b { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .07px; color: #fdfdfd; }
.no-banner .no-bn-tx p { margin: 0; font-size: 11px; line-height: 14px; font-weight: 400; letter-spacing: .11px; color: #a4a7ae; }
.no-banner .no-bn-btn { flex: none; display: flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid rgba(255,255,255,.04); border-radius: 8px; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .07px; color: #fdfdfd; white-space: nowrap; transition: transform 120ms ease, background-color 200ms ease; }
.no-banner .no-bn-btn:active { transform: scale(.95); background: rgba(255,255,255,.18); }

/* home bell badge */
.ox-screen .no-bell { position: relative; }
.ox-screen .no-bell .no-badge { position: absolute; left: 22px; top: 4px; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #f04438; font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .1px; text-align: center; color: #fffbfa; font-style: normal; pointer-events: none; transform: scale(0); transition: transform 320ms cubic-bezier(.3, 1.6, .5, 1); }
.ox-screen .no-bell .no-badge.no-on { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .no-s .no-thumb, .no-s .no-it, .no-s .no-av i, .no-banner, .no-banner.no-out, :is(.no-s .no-ask, .no-sheet) .no-pan, :is(.no-s .no-ask, .no-sheet) .no-dim, .ox-screen .no-bell .no-badge { transition-duration: 1ms !important; }
  .no-s .no-fade { animation: none; }
}
/* ---------- /FLOW notifs ---------- */

/* ---------- /FLOW notif ---------- */

/* site section spacing must not reach the screens inside the phone */
.ox-scr > .ox-screen { margin: 0 !important; }

/* OX flow picker */
.ox-ctl { order: -1; }
.ox-flows { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunk); }
.ox-flows button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; line-height: 20px; color: var(--muted); transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease); }
.ox-flows button:hover { color: var(--ink); }
.ox-flows button[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.08); }
.ox-flows button.next { color: var(--ink); animation: oxnext 1.6s ease-in-out 3; }
@keyframes oxnext { 50% { box-shadow: 0 0 0 2px var(--red); } }
.ox-play { height: 32px; padding: 0 12px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ox-flows button.next { animation: none; box-shadow: 0 0 0 1.5px var(--red); } }

/* ---------- Ingress demo ---------- */
.ing .cap a { color: var(--red); text-decoration: none; }
.ing .cap a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ing-seg { margin: 0 auto 16px; width: fit-content; display: flex; }
.ing-view { display: grid; justify-items: center; }
.ing-browser { width: 100%; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(0,0,0,.25); }
.ing-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f3f3f1; border-bottom: 1px solid #e6e6e3; }
.ing-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d9d6; }
.ing-bar i:nth-child(1) { background: #ff5f57; } .ing-bar i:nth-child(2) { background: #febc2e; } .ing-bar i:nth-child(3) { background: #28c840; }
.ing-bar span { margin: 0 auto; padding: 2px 12px; border-radius: 6px; background: #fff; font-size: 11px; line-height: 16px; color: #6b6b66; }
.ing-scroll { display: block; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; outline: none; background: #fff; }
.ing-scroll::-webkit-scrollbar { display: none; }
.ing-browser .ing-scroll { aspect-ratio: 1440 / 900; }
.ing-scroll img { display: block; width: 100%; height: auto; }
.ing-phone { width: min(300px, 100%); padding: 10px; border-radius: 44px; background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 24px 48px -20px rgba(0,0,0,.45); }
.ing-phone .ing-scroll { aspect-ratio: 390 / 844; border-radius: 34px; }
.ing-phone[hidden], .ing-browser[hidden] { display: none; }
.pk-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.ing-seg { gap: 2px; padding: 2px; border-radius: 8px; background: var(--sunk); }
.ing-seg button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; line-height: 20px; color: var(--muted); }
.ing-seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.08); }



/* ---------- FP: flow players ---------- */
.fp { display: grid; justify-items: center; gap: 12px; margin: var(--g-l) 0; }
.fp-device { position: relative; pointer-events: none; user-select: none; -webkit-user-select: none; }
.fp-device * { cursor: default !important; }
.fp-ui { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(400px, 100%); }
.fp-play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform 150ms var(--ease); }
.fp-play:active { transform: scale(.92); }
.fp-play svg { width: 14px; height: 14px; fill: currentColor; }
.fp-play .pa { display: none; } .fp-play[aria-pressed="true"] .pa { display: inline; } .fp-play[aria-pressed="true"] .pl { display: none; }
.fp-prog { position: relative; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.fp-prog i { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform 700ms var(--ease); }
.fp-step { font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-cap { width: min(400px, 100%); min-height: 40px; margin: 0; font-size: 14px; line-height: 20px; color: var(--body); text-align: center; }
.fp-cap.in { animation: fpcap 360ms var(--ease); }
@keyframes fpcap { from { opacity: 0; transform: translateY(4px); } }
.fp-finger { position: absolute; left: -22px; top: -22px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.3); box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 6px 16px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: transform 520ms cubic-bezier(.45, 0, .2, 1), opacity 220ms ease; }
.fp-finger.on { opacity: 1; }
.fp-finger.down { background: rgba(255,255,255,.55); }
.fp-finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); opacity: 0; }
.fp-finger.down::after { animation: fptap 420ms ease-out; }
@keyframes fptap { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fp-cap.in, .fp-finger.down::after { animation: none; } .fp-finger { transition: opacity 200ms ease; } }

/* FP: devices take the full column */
.fp > .fp-device { width: 100%; display: grid; justify-items: center; }
.fp .ox-stage { margin-top: 0; gap: 0; }

/* auto widgets */
.auto-w button, .auto-w input, .auto-w a { pointer-events: none; }
.auto-w { user-select: none; -webkit-user-select: none; }



/* ---------- FPAPP ayna ---------- */
/* AYNA permit dashboard: flow-player prototype (coded from Figma jHFOUY6haV7gJVlDzxm9Ug)
   Every selector is scoped under .ay-stage. Design canvas 1440x1024, scaled by --s. */

/* ---------- stage + browser frame ---------- */
.fp .ay-dev { width: 100%; max-width: 640px; }
.ay-stage { --s: .4444; display: grid; justify-items: center; width: 100%; margin: 0; }
.ay-stage .ay-browser { width: 100%; max-width: 640px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(16,24,40,.1), 0 24px 48px -16px rgba(16,24,40,.28), 0 4px 10px -4px rgba(16,24,40,.08); }
.ay-stage .ay-chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 12px; background: #eef2f6; border-bottom: 1px solid #e3e8ef; }
.ay-stage .ay-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.ay-stage .ay-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cdd5df; }
.ay-stage .ay-dots i:first-child { background: #ff6159; } .ay-stage .ay-dots i:nth-child(2) { background: #ffbd2e; } .ay-stage .ay-dots i:nth-child(3) { background: #28c941; }
.ay-stage .ay-dots.ay-ghost { visibility: hidden; }
.ay-stage .ay-url { min-width: 0; overflow: hidden; padding: 3px 14px; border-radius: 99px; background: #fff; font: 500 11px/16px Inter, system-ui, sans-serif; color: #4b5565; letter-spacing: .1px; white-space: nowrap; text-overflow: ellipsis; }
.ay-stage .ay-vp { position: relative; width: 100%; height: calc(1024px * var(--s)); overflow: hidden; background: #fff; touch-action: pan-y; }
.ay-stage .ay-scale { position: absolute; left: 0; top: 0; width: 1440px; height: 1024px; transform: scale(var(--s)); transform-origin: 0 0; }
.ay-stage .ay-lens { width: 1440px; height: 1024px; transform-origin: 0 0; transition: transform 600ms cubic-bezier(.45, 0, .2, 1); will-change: transform; }

/* ---------- app reset ---------- */
.ay-stage .ay-app { position: relative; display: flex; width: 1440px; height: 1024px; overflow: hidden; background: #fff; color: #121926; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; text-align: left; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ay-stage .ay-app *, .ay-stage .ay-app *::before, .ay-stage .ay-app *::after { box-sizing: border-box; }
.ay-stage .ay-app :where(h3, h4, h5, p, ol, li, small, b, em, i) { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; list-style: none; border: 0; }
.ay-stage .ay-app :where(img) { display: block; max-width: none; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.ay-stage .ay-app :where(button) { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; letter-spacing: inherit; cursor: pointer; border-radius: 0; box-shadow: none; text-transform: none; -webkit-appearance: none; appearance: none; }
.ay-stage .ay-app :where(input, textarea) { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: #121926; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; min-width: 0; }
.ay-stage .ay-app input::placeholder, .ay-stage .ay-app textarea::placeholder { color: #9aa4b2; opacity: 1; }
.ay-stage .ay-app [hidden] { display: none !important; }
.ay-stage .ay-app :focus-visible { outline: 3px solid rgba(46,144,250,.45); outline-offset: 2px; }
.ay-stage .ay-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- sidebar ---------- */
.ay-stage .ay-nav { position: relative; display: flex; flex-direction: column; flex: 0 0 292px; width: 292px; height: 1024px; background: #194185; color: #fff; }
.ay-stage .ay-brand { display: flex; align-items: center; gap: 12px; padding: 24px 20px; border-bottom: 1px solid #175cd3; }
.ay-stage .ay-logo { position: relative; display: block; flex: 0 0 140px; width: 140px; height: 60px; overflow: hidden; }
.ay-stage .ay-logo img { position: absolute; }
.ay-stage .ay-logo .ay-logo-mark { left: .54%; top: 1.67%; width: 41.65%; height: 97.18%; }
.ay-stage .ay-logo .ay-logo-sub { left: 47.73%; top: 54.78%; width: 51.73%; height: 24.13%; }
.ay-stage .ay-logo .ay-logo-word { left: 47.73%; top: 21.57%; width: 51.73%; height: 28.74%; }
.ay-stage .ay-vline { position: relative; flex: 0 0 0; width: 0; height: 40px; }
.ay-stage .ay-vline img { position: absolute; left: -20px; top: 19.5px; width: 40px; height: 1px; transform: rotate(90deg); }
.ay-stage .ay-brand-t { width: 53px; font-weight: 500; font-size: 14px; line-height: 20px; }
.ay-stage .ay-menu { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 0; }
.ay-stage .ay-mi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border-radius: 12px; background: #194185; font-weight: 500; color: #fff; transition: background-color 160ms ease; }
.ay-stage .ay-mi span { flex: 1 1 0; }
.ay-stage .ay-mi-open { background: #1849a9; }
.ay-stage .ay-mi:not(.ay-mi-open):hover { background: #1b4a97; }
.ay-stage .ay-sub { display: flex; flex-direction: column; }
.ay-stage .ay-sbi { display: flex; align-items: center; width: 100%; padding-left: 14px; border-radius: 12px; font-weight: 500; color: #fff; }
.ay-stage .ay-sbi span { flex: 1 1 0; padding: 14px 16px; border-radius: 12px; transition: background-color 160ms ease; }
.ay-stage .ay-sbi:hover span { background: #1b4a97; }
.ay-stage .ay-sbi.ay-on span { background: #175cd3; font-weight: 600; }
.ay-stage .ay-mini { position: absolute; right: 0; bottom: 48px; display: grid; place-items: center; width: 16px; height: 66px; border-radius: 18px 0 0 18px; background: #2e90fa; }
.ay-stage .ay-mini img { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- main column + header ---------- */
.ay-stage .ay-main { position: relative; display: flex; flex-direction: column; flex: 0 0 1148px; width: 1148px; height: 1024px; background: #fff; }
.ay-stage .ay-hdr { display: flex; align-items: center; gap: 12px; flex: 0 0 108px; height: 108px; padding: 28px 32px; background: #fff; border-bottom: 1px solid #e3e8ef; }
.ay-stage .ay-hd { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.ay-stage .ay-h1 { font-size: 24px; line-height: 32px; font-weight: 700; color: #121926; white-space: nowrap; }
.ay-stage .ay-crumbs { display: flex; align-items: center; gap: 2px; font-size: 14px; line-height: 20px; color: #697586; white-space: nowrap; }
.ay-stage .ay-cr { display: flex; align-items: center; gap: 2px; }
.ay-stage .ay-cr img { width: 16px; height: 16px; }
.ay-stage .ay-cr button { color: #697586; }
.ay-stage .ay-cr button:hover { color: #1570ef; }
.ay-stage .ay-crumbs > :last-child, .ay-stage .ay-crumbs > :last-child button { color: #2e90fa; }
.ay-stage .ay-app[data-view="list"] .ay-cr-flow { display: none; }
.ay-stage .ay-app[data-view="list"] .ay-cr-list button { color: #2e90fa; cursor: default; }
.ay-stage .ay-app[data-view="flow"] .ay-cr-step { color: #2e90fa; }
.ay-stage .ay-bellw { position: relative; flex: 0 0 auto; }
.ay-stage .ay-bell { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; }
.ay-stage .ay-bell img { width: 24px; height: 24px; }
.ay-stage .ay-bell-n { position: absolute; left: 34px; top: -4px; width: 26px; padding: 4px; border-radius: 40px; background: #d92d20; color: #fff; font-size: 12px; line-height: 18px; font-weight: 700; text-align: center; }
.ay-stage .ay-me { display: flex; align-items: center; gap: 8px; width: 232px; height: 56px; padding: 16px 8px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; }
.ay-stage .ay-av { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 32px; background: #d1e9ff; color: #1849a9; font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .2px; }
.ay-stage .ay-me-t { display: flex; flex-direction: column; white-space: nowrap; }
.ay-stage .ay-me-t b { font-size: 14px; line-height: 20px; font-weight: 500; color: #121926; }
.ay-stage .ay-me-t small { font-size: 12px; line-height: 18px; color: #697586; }

/* ---------- views ---------- */
.ay-stage .ay-view { display: none; flex: 1 1 0; margin: 0; flex-direction: column; min-height: 0; }
.ay-stage .ay-app[data-view="list"] .ay-v-list, .ay-stage .ay-app[data-view="flow"] .ay-v-flow { display: flex; animation: ayview 320ms ease both; }
@keyframes ayview { from { opacity: 0; } }
.ay-stage .ay-body { position: relative; flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 32px; scrollbar-width: thin; }

/* ---------- buttons ---------- */
.ay-stage .ay-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 12px 18px; border: 1px solid #e3e8ef; border-radius: 14px; background: #fff; font-size: 16px; line-height: 24px; font-weight: 600; color: #0d121c; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease; }
.ay-stage .ay-btn > span { padding: 0 2px; }
.ay-stage .ay-btn img { width: 20px; height: 20px; }
.ay-stage .ay-btn-o:hover { background: #f8fafc; }
.ay-stage .ay-btn-p { border-color: #1570ef; background: #1570ef; color: #fff; }
.ay-stage .ay-btn-p:hover { border-color: #175cd3; background: #175cd3; }
.ay-stage .ay-btn:active, .ay-stage .ay-bl:active { transform: scale(.98); }
.ay-stage .ay-xls { position: relative; display: block; width: 20px; height: 20px; overflow: hidden; }
.ay-stage .ay-xls img { position: absolute; left: 0; top: 6.25%; width: 100%; height: 87.5%; }
.ay-stage .ay-filt[aria-expanded="true"] { border-color: #84caff; background: #eff8ff; }
.ay-stage .ay-fcount { display: grid; place-items: center; min-width: 22px; height: 22px; margin-left: 2px; padding: 0 6px; border-radius: 11px; background: #1570ef; color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; }
.ay-stage .ay-bl { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 14px 22px; border: 1px solid transparent; border-radius: 16px; font-size: 18px; line-height: 28px; font-weight: 600; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 120ms ease; }
.ay-stage .ay-bl > span { padding: 0 2px; }
.ay-stage .ay-bl img { width: 24px; height: 24px; }
.ay-stage .ay-bl-s { background: #eef2f6; color: #0d121c; }
.ay-stage .ay-bl-s:hover { background: #e3e8ef; }
.ay-stage .ay-bl-p { border-color: #1570ef; background: #1570ef; color: #fff; }
.ay-stage .ay-bl-p:hover { border-color: #175cd3; background: #175cd3; }
.ay-stage .ay-bl-p[aria-disabled="true"] { border-color: #b2ddff; background: #b2ddff; cursor: not-allowed; }
.ay-stage .ay-bl-t { border-color: #eff8ff; background: #eff8ff; color: #1570ef; }
.ay-stage .ay-bl-t:hover { border-color: #d1e9ff; background: #d1e9ff; }
.ay-stage .ay-x { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #e3e8ef; border-radius: 12px; background: #fff; }
.ay-stage .ay-x.ay-x-s { width: 36px; height: 36px; border-radius: 8px; }
.ay-stage .ay-x img { width: 20px; height: 20px; }
.ay-stage .ay-x:hover { background: #f8fafc; }

/* ---------- list: toolbar ---------- */
.ay-stage .ay-ctx { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ay-stage .ay-tools { display: flex; align-items: center; justify-content: space-between; }
.ay-stage .ay-tl, .ay-stage .ay-tright { display: flex; align-items: center; }
.ay-stage .ay-tl { gap: 12px; } .ay-stage .ay-tright { gap: 8px; }
.ay-stage .ay-search { display: flex; align-items: center; gap: 8px; width: 320px; height: 48px; padding: 8px 16px; border: 1px solid #e3e8ef; border-radius: 14px; background: #fff; cursor: text; transition: border-color 160ms ease, box-shadow 160ms ease; }
.ay-stage .ay-search img { width: 20px; height: 20px; }
.ay-stage .ay-search input { flex: 1 1 0; height: 24px; font-size: 16px; line-height: 24px; }
.ay-stage .ay-search:focus-within, .ay-stage .ay-search.ay-focus { border-color: #84caff; box-shadow: 0 0 0 4px #eff8ff; }

/* ---------- cards + tables ---------- */
.ay-stage .ay-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #eef2f6; border-radius: 16px; background: #fff; }
.ay-stage .ay-card-2 { border-color: #e3e8ef; }
.ay-stage .ay-card-h { display: flex; align-items: center; gap: 16px; padding: 12px; }
.ay-stage .ay-card-h h4 { font-size: 20px; line-height: 30px; font-weight: 700; color: #101828; white-space: nowrap; }
.ay-stage .ay-badge { padding: 2px 8px; border: 1px solid #b2ddff; border-radius: 16px; background: #eff8ff; color: #1570ef; font-size: 12px; line-height: 18px; font-weight: 500; text-align: center; white-space: nowrap; transition: transform 200ms ease; }
.ay-stage .ay-badge.ay-bump { animation: aybump 420ms cubic-bezier(.3, 1.4, .5, 1); }
@keyframes aybump { 40% { transform: scale(1.35); } }
.ay-stage .ay-tbl { display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: #fff; }
.ay-stage .ay-tr { display: grid; align-items: center; }
.ay-stage .ay-th { height: 56px; background: #f8fafc; }
.ay-stage .ay-th > span { padding: 16px; white-space: nowrap; font-size: 12px; line-height: 18px; font-weight: 600; color: #4b5565; }
.ay-stage .ay-tb > .ay-tr { position: relative; height: 64px; background: #fff; transition: background-color 400ms ease; }
.ay-stage .ay-tb > .ay-tr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #e3e8ef; }
.ay-stage .ay-tb > .ay-tr:last-child::after { display: none; }
.ay-stage .ay-tb > .ay-tr > span { min-width: 0; padding: 18px 16px; overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 500; color: #121926; white-space: nowrap; text-overflow: ellipsis; }
.ay-stage .ay-tbl .ay-c { display: flex; justify-content: center; text-align: center; }
.ay-stage .ay-tbl .ay-r { display: flex; justify-content: flex-end; gap: 10px; text-align: right; }
.ay-stage .ay-tb > .ay-tr > .ay-acts { padding: 13px 16px; overflow: visible; }
.ay-stage .ay-tbl-list .ay-tr { grid-template-columns: minmax(0, 1fr) 128px 84px 108px 120px 104px 152px 150px; }
.ay-stage .ay-tbl-list .ay-tr > .ay-acts { padding-left: 0; }
.ay-stage .ay-tbl-dmg .ay-tr { grid-template-columns: 140px 140px 140px 200px minmax(0, 1fr) 72px; }
.ay-stage .ay-tbl-sum .ay-tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ay-stage .ay-tb > .ay-tr > .ay-why-w { padding: 12px 16px; }
.ay-stage .ay-why { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ay-stage .ay-empty { display: grid; place-items: center; height: 128px; color: #697586; font-size: 14px; line-height: 20px; font-weight: 500; }
.ay-stage .ay-tb > .ay-tr.ay-new { background: #eff8ff; }
.ay-stage .ay-tb > .ay-tr.ay-rin { animation: ayrin 520ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ayrin { from { opacity: 0; height: 0; transform: translateY(-10px); } to { opacity: 1; height: 64px; transform: none; } }
.ay-stage .ay-tb > .ay-tr.ay-rout { animation: ayrout 320ms ease forwards; overflow: hidden; }
@keyframes ayrout { to { opacity: 0; height: 0; transform: translateX(24px); } }
.ay-stage .ay-tb > .ay-tr.ay-hot { background: #fffbfa; }

/* status chips (table) */
.ay-stage .ay-stt { display: inline-flex; align-items: center; justify-content: center; width: 120px; padding: 4px 16px; border-radius: 6px; font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.ay-stage .ay-st-q { background: #eef2f6; color: #4b5565; }
.ay-stage .ay-st-g { background: #f4f3ff; color: #6938ef; }
.ay-stage .ay-st-r { background: #fffaeb; color: #dc6803; }
.ay-stage .ay-st-a { background: #ecfdf3; color: #079455; }

/* icon buttons in rows */
.ay-stage .ay-ib { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 8px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; transition: background-color 160ms ease, border-color 160ms ease; }
.ay-stage .ay-ib img { width: 20px; height: 20px; transition: filter 160ms ease; }
.ay-stage .ay-ib:hover { background: #f8fafc; }
.ay-stage .ay-ib-edit { border-color: #fffaeb; background: #fffaeb; }
.ay-stage .ay-ib-edit:hover { border-color: #fef0c7; background: #fef0c7; }
.ay-stage .ay-ib-del { border-color: #fef3f2; background: #fef3f2; }
.ay-stage .ay-ib-del:hover { border-color: #d92d20; background: #d92d20; }
.ay-stage .ay-ib-del:hover img { filter: brightness(0) invert(1); }

/* pagination */
.ay-stage .ay-pager { display: flex; align-items: center; justify-content: space-between; }
.ay-stage .ay-pages { display: flex; align-items: center; gap: 24px; }
.ay-stage .ay-pg { display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fff; }
.ay-stage .ay-pg img { width: 20px; height: 20px; }
.ay-stage .ay-pn { display: flex; align-items: center; }
.ay-stage .ay-pn b { display: grid; place-items: center; width: 36px; height: 38px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: #0d121c; }
.ay-stage .ay-pn b.ay-on { background: #eff8ff; color: #1570ef; }
.ay-stage .ay-show { display: flex; align-items: center; gap: 16px; }
.ay-stage .ay-show-t { font-size: 12px; line-height: 18px; font-weight: 600; color: #4b5565; white-space: nowrap; }
.ay-stage .ay-size { display: flex; align-items: center; gap: 8px; width: 96px; height: 42px; padding: 8px 12px; border: 1px solid #cdd5df; border-radius: 10px; font-size: 16px; line-height: 24px; color: #121926; }
.ay-stage .ay-size span { flex: 1 1 0; }
.ay-stage .ay-size img { width: 20px; height: 20px; }

/* ---------- fields (shared) ---------- */
.ay-stage .ay-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ay-stage .ay-lab { display: flex; gap: 6px; height: 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: #364152; white-space: nowrap; }
.ay-stage .ay-lab em { font-style: normal; color: #f04438; }
.ay-stage .ay-in { display: flex; align-items: center; gap: 8px; width: 100%; height: 56px; padding: 8px 20px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; font-size: 16px; line-height: 24px; color: #121926; text-align: left; cursor: text; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.ay-stage .ay-in input { flex: 1 1 0; height: 24px; font-size: 16px; line-height: 24px; }
.ay-stage .ay-in img { flex: 0 0 24px; width: 24px; height: 24px; }
.ay-stage .ay-in:focus-within, .ay-stage .ay-in.ay-focus, .ay-stage .ay-dd.ay-open .ay-dd-btn { border-color: #84caff; box-shadow: 0 0 0 4px #eff8ff; }
.ay-stage .ay-in.ay-bad, .ay-stage .ay-dd.ay-bad .ay-dd-btn, .ay-stage .ay-ta.ay-bad { border-color: #fda29b; box-shadow: 0 0 0 4px #fef3f2; }
.ay-stage .ay-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ay-stage .ay-ta { width: 100%; height: 132px; padding: 12px 14px; border: 1px solid #d0d5dd; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); font-size: 16px; line-height: 24px; resize: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.ay-stage .ay-ta:focus, .ay-stage .ay-ta.ay-focus { border-color: #84caff; box-shadow: 0 0 0 4px #eff8ff; }

/* dropdown */
.ay-stage .ay-dd { position: relative; }
.ay-stage .ay-dd-btn { cursor: pointer; }
.ay-stage .ay-dd-v { flex: 1 1 0; overflow: hidden; color: #9aa4b2; white-space: nowrap; text-overflow: ellipsis; }
.ay-stage .ay-dd.ay-has .ay-dd-v { color: #121926; }
.ay-stage .ay-dd-btn img { transition: transform 200ms ease; }
.ay-stage .ay-dd.ay-open .ay-dd-btn img { transform: rotate(180deg); }
.ay-stage .ay-menu-l { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03); opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms; }
.ay-stage .ay-dd-up .ay-menu-l { top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.ay-stage .ay-dd.ay-open .ay-menu-l { opacity: 1; transform: none; visibility: visible; transition: opacity 160ms ease, transform 160ms ease; }
.ay-stage .ay-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 10px; font-size: 16px; line-height: 24px; color: #121926; }
.ay-stage .ay-opt small { font-size: 14px; line-height: 20px; color: #697586; }
.ay-stage .ay-opt:hover { background: #f8fafc; }
.ay-stage .ay-opt[aria-selected="true"] { background: #eff8ff; color: #1570ef; }

/* checkbox */
.ay-stage .ay-cbx-i { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ay-stage .ay-cbx { position: relative; display: block; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #cdd5df; border-radius: 6px; background: #fff; transition: background-color 160ms ease, border-color 160ms ease; }
.ay-stage .ay-cbx img { position: absolute; inset: calc(15% - .7px); width: auto; height: auto; opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 200ms cubic-bezier(.3, 1.4, .5, 1); }
.ay-stage .ay-cbx-i:checked + .ay-cbx { border-color: #1570ef; background: #1570ef; }
.ay-stage .ay-cbx-i:checked + .ay-cbx img { opacity: 1; transform: none; }
.ay-stage .ay-cbx-i:focus-visible + .ay-cbx { box-shadow: 0 0 0 4px #d1e9ff; }

/* ---------- filter popover ---------- */
.ay-stage .ay-pop { position: absolute; left: 160px; top: 64px; z-index: 12; display: flex; flex-direction: column; gap: 24px; width: 480px; padding: 24px; border: 1px solid #e3e8ef; border-radius: 24px; background: #fff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03); transform-origin: 30% 0; animation: aypop 220ms cubic-bezier(.2, .8, .2, 1); }
@keyframes aypop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.ay-stage .ay-pop-h { display: flex; align-items: center; justify-content: space-between; }
.ay-stage .ay-pop-h h4 { font-size: 24px; line-height: 32px; font-weight: 600; color: #101828; }
.ay-stage .ay-pop-b { display: flex; flex-direction: column; gap: 24px; }
.ay-stage .ay-pop-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ay-stage .ay-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ay-stage .ay-chip { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 8px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; font-size: 12px; line-height: 18px; font-weight: 700; color: #4b5565; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.ay-stage .ay-chip:hover { background: #f8fafc; }
.ay-stage .ay-chip[aria-pressed="true"][data-st="q"] { border-color: #cdd5df; background: #eef2f6; color: #4b5565; }
.ay-stage .ay-chip[aria-pressed="true"][data-st="g"] { border-color: #d9d6fe; background: #f4f3ff; color: #6938ef; }
.ay-stage .ay-chip[aria-pressed="true"][data-st="r"] { border-color: #fedf89; background: #fffaeb; color: #dc6803; }
.ay-stage .ay-chip[aria-pressed="true"][data-st="a"] { border-color: #abefc6; background: #ecfdf3; color: #079455; }

/* ---------- flow: stepper ---------- */
.ay-stage .ay-fbody { display: flex; flex-direction: column; gap: 24px; }
.ay-stage .ay-app[data-step="3"] .ay-fbody { gap: 16px; }
.ay-stage .ay-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ay-stage .ay-sp { display: flex; flex-direction: column; min-width: 0; }
.ay-stage .ay-sp i { position: relative; display: block; height: 8px; margin-bottom: 12px; overflow: hidden; border-radius: 34px; background: #e3e8ef; transition: background-color 400ms ease; }
.ay-stage .ay-sp i b { position: absolute; inset: 0; border-radius: inherit; background: #1570ef; transform: scaleX(0); transform-origin: 0 50%; transition: transform 520ms cubic-bezier(.45, 0, .2, 1), background-color 400ms ease; }
.ay-stage .ay-sp small { font-size: 12px; line-height: 18px; color: #9aa4b2; transition: color 300ms ease; }
.ay-stage .ay-sp span { font-size: 16px; line-height: 24px; font-weight: 500; color: #9aa4b2; transition: color 300ms ease; }
.ay-stage .ay-sp.ay-cur i b { transform: scaleX(1); }
.ay-stage .ay-sp.ay-done i b { transform: scaleX(1); background: #b2ddff; }
.ay-stage .ay-sp.ay-cur small { color: #2e90fa; } .ay-stage .ay-app[data-step="1"] .ay-sp.ay-cur small { color: #697586; }
.ay-stage .ay-sp.ay-done small { color: #2e90fa; }
.ay-stage .ay-sp.ay-cur span, .ay-stage .ay-sp.ay-done span { color: #121926; }

/* panes */
.ay-stage .ay-pane { display: none; flex-direction: column; gap: 24px; }
.ay-stage .ay-app[data-step="3"] .ay-pane { gap: 16px; }
.ay-stage .ay-pane.ay-act { display: flex; animation: aypane 360ms cubic-bezier(.2, .8, .2, 1) both; }
.ay-stage .ay-pane.ay-act.ay-rev { animation-name: aypaner; }
@keyframes aypane { from { opacity: 0; transform: translateX(28px); } }
@keyframes aypaner { from { opacity: 0; transform: translateX(-28px); } }

/* step 1 */
.ay-stage .ay-form { display: flex; flex-direction: column; gap: 24px; width: 530px; }
.ay-stage .ay-form > .ay-field { margin-top: 0; }
.ay-stage .ay-warn { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: #fffaeb; font-size: 14px; line-height: 20px; font-weight: 500; color: #dc6803; }
.ay-stage .ay-warn img { width: 24px; height: 24px; }
.ay-stage .ay-warn.ay-shake { animation: ayshake 420ms ease; }
@keyframes ayshake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ay-stage .ay-form .ay-field + .ay-res { margin-top: -4px; }
.ay-stage .ay-res { display: grid; grid-template-columns: 259px 259px; gap: 12px; }
.ay-stage .ay-ri { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-radius: 16px; background: #eef2f6; white-space: nowrap; }
.ay-stage .ay-ri small { font-size: 14px; line-height: 20px; font-weight: 500; color: #9aa4b2; }
.ay-stage .ay-ri b { font-size: 16px; line-height: 24px; font-weight: 600; color: #182230; }
.ay-stage .ay-ri b.ay-fill { animation: ayfill 520ms ease both; }
@keyframes ayfill { from { opacity: 0; transform: translateY(6px); } }
.ay-stage .ay-dd-code .ay-opt b { font-weight: 600; }

/* step 2 */
.ay-stage .ay-addbar { display: flex; align-items: center; gap: 32px; padding: 12px 12px 12px 24px; border: 1px dashed #e3e8ef; border-radius: 24px; background: #f8fafc; transition: border-color 200ms ease, background-color 200ms ease; }
.ay-stage .ay-addbar.ay-bad { border-color: #fda29b; background: #fef3f2; }
.ay-stage .ay-addbar h4 { flex: 1 1 0; font-size: 20px; line-height: 30px; font-weight: 600; color: #121926; }

/* step 3 */
.ay-stage .ay-sum { display: flex; flex-direction: column; gap: 16px; width: 640px; padding: 24px; border: 1px solid #e3e8ef; border-radius: 16px; background: #fff; }
.ay-stage .ay-sum-h { display: flex; align-items: baseline; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid #e3e8ef; color: #202939; }
.ay-stage .ay-sum-h > b { width: 335px; font-size: 18px; line-height: 28px; font-weight: 600; }
.ay-stage .ay-sum-h > span { flex: 1 1 0; font-size: 14px; line-height: 20px; text-align: right; }
.ay-stage .ay-sum-b { display: flex; flex-direction: column; gap: 12px; }
.ay-stage .ay-sum-b h5 { font-size: 16px; line-height: 24px; font-weight: 600; color: #202939; }
.ay-stage .ay-kv { display: flex; gap: 8px; }
.ay-stage .ay-kv span { flex: 1 1 0; font-size: 16px; line-height: 24px; color: #697586; }
.ay-stage .ay-kv b { flex: 1 1 0; font-size: 15px; line-height: 22px; font-weight: 500; color: #202939; text-align: right; }
.ay-stage .ay-sepi { width: 592px; height: 16px; }
.ay-stage .ay-tbl-sum .ay-tf { height: 48px; border-top: 1px solid #e3e8ef; background: #f8fafc; }
.ay-stage .ay-tbl-sum .ay-tf > span { padding: 12px 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: #121926; }
.ay-stage .ay-attest { position: relative; display: flex; align-items: center; gap: 12px; width: 640px; padding: 12px; border: 1px dashed #b2ddff; border-radius: 12px; background: #eff8ff; font-size: 14px; line-height: 20px; font-weight: 500; color: #121926; cursor: pointer; transition: border-color 200ms ease; }
.ay-stage .ay-attest.ay-bad { border-color: #fda29b; animation: ayshake 420ms ease; }

/* footer */
.ay-stage .ay-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; flex: 0 0 104px; height: 104px; padding: 24px 32px; background: #fff; box-shadow: 0 -4px 8px rgba(0,0,0,.04); }
.ay-stage .ay-foot-l { display: flex; flex: 1 1 0; gap: 12px; }
.ay-stage .ay-foot .ay-bl { width: 240px; }
.ay-stage .ay-i-l, .ay-stage .ay-i-c { display: none; }
.ay-stage .ay-app:not([data-step="1"]) .ay-i-x { display: none; }
.ay-stage .ay-app:not([data-step="1"]) .ay-i-l { display: block; }
.ay-stage .ay-app[data-step="3"] .ay-i-r { display: none; }
.ay-stage .ay-app[data-step="3"] .ay-i-c { display: block; }

/* ---------- toast ---------- */
.ay-stage .ay-toast { position: absolute; right: 40px; bottom: 40px; z-index: 15; display: flex; align-items: center; gap: 48px; padding: 8px 16px; border-left: 4px solid #2e90fa; border-radius: 12px; background: #eff8ff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03); animation: aytoast 380ms cubic-bezier(.2, .8, .2, 1); }
.ay-stage .ay-app[data-view="flow"] .ay-toast { bottom: 128px; }
.ay-stage .ay-toast-c { display: flex; align-items: center; gap: 12px; }
.ay-stage .ay-toast-c img { width: 40px; height: 40px; }
.ay-stage .ay-toast-t { font-size: 14px; line-height: 20px; font-weight: 600; color: #121926; white-space: nowrap; }
.ay-stage .ay-toast-x img { width: 20px; height: 20px; }
.ay-stage .ay-toast.ay-bye { animation: aytoastout 260ms ease forwards; }
@keyframes aytoast { from { opacity: 0; transform: translateY(16px); } }
@keyframes aytoastout { to { opacity: 0; transform: translateY(16px); } }

/* ---------- modals ---------- */
.ay-stage .ay-ov { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(16,42,86,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: ayov 240ms ease both; }
@keyframes ayov { from { opacity: 0; } }
.ay-stage .ay-modal { display: flex; flex-direction: column; gap: 48px; width: 480px; padding: 24px 32px 32px; overflow: hidden; border-radius: 24px; background: #fff; animation: aymod 300ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes aymod { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ay-stage .ay-mh { display: flex; align-items: flex-start; gap: 24px; }
.ay-stage .ay-mh > div { display: flex; flex: 1 1 0; flex-direction: column; gap: 4px; }
.ay-stage .ay-mh h4 { font-size: 24px; line-height: 32px; font-weight: 600; color: #121926; }
.ay-stage .ay-mh > div > div { font-size: 16px; line-height: 24px; color: #667085; }
.ay-stage .ay-mb { display: flex; flex-direction: column; gap: 12px; }
.ay-stage .ay-check { position: relative; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #121926; cursor: pointer; }
.ay-stage .ay-endw { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 280ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease; }
.ay-stage .ay-endw > * { min-height: 0; overflow: hidden; }
.ay-stage .ay-endw.ay-shut { grid-template-rows: 0fr; opacity: 0; margin-top: -12px; }
.ay-stage .ay-ri-w { flex-direction: row; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; }
.ay-stage .ay-ri-w b { min-width: 40px; text-align: right; }
.ay-stage .ay-ri-w b.ay-tick { animation: aybump 380ms cubic-bezier(.3, 1.4, .5, 1); }
.ay-stage .ay-err-t { margin-top: -4px; font-size: 14px; line-height: 20px; font-weight: 500; color: #d92d20; }
.ay-stage .ay-mf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ay-stage .ay-modal-ok { gap: 12px; }
.ay-stage .ay-ok-h { display: flex; justify-content: flex-end; }
.ay-stage .ay-ok-b { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 36px; text-align: center; }
.ay-stage .ay-ok-ic { position: relative; width: 136px; height: 136px; margin-bottom: 12px; }
.ay-stage .ay-rings { position: absolute; left: -112px; top: -112px; width: 360px; height: 360px; -webkit-mask-position: -60px 35px; mask-position: -60px 35px; -webkit-mask-size: 480px 259px; mask-size: 480px 259px; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.ay-stage .ay-rings img { width: 360px; height: 360px; }
.ay-stage .ay-callout { position: absolute; left: 0; top: 0; width: 136px; height: 136px; animation: ayok 520ms 120ms cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes ayok { from { transform: scale(.6); opacity: 0; } }
.ay-stage .ay-ok-b h4 { width: 100%; font-size: 24px; line-height: 32px; font-weight: 600; color: #121926; }
.ay-stage .ay-ok-p { width: 100%; font-size: 16px; line-height: 24px; color: #667085; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ay-stage .ay-lens { transition: none; }
  .ay-stage .ay-app *, .ay-stage .ay-app *::before, .ay-stage .ay-app *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
.ay-stage .ay-tb > .ay-tr:has(.ay-ib-del:hover) { background: #fef3f2; }
.ay-stage .ay-app[data-step="1"] .ay-save { display: none; }

/* ---------- /FPAPP ayna ---------- */

/* ---------- FPAPP apptech ---------- */
/* ---------- Apptech: practice tests and exam prep, live in a phone (Figma lBNiZwqefgc0Tn5lW9gRaf, Main Page UI) ---------- */
/* every selector is scoped under .ap-stage or .ap-ba; :is() keeps it at two-class specificity */
.ap-stage, .ap-ba { display: grid; justify-items: center; gap: 24px; margin-top: 40px; }
:is(.ap-stage, .ap-ba) .ap-holder { --s: 1; width: calc(399px * var(--s)); height: calc(836px * var(--s)); }
:is(.ap-stage, .ap-ba) .ap-phone { width: 399px; height: 836px; padding: 12px; border-radius: 56px; background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 5px #0d0d0e, 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); transform: scale(var(--s)); transform-origin: 0 0; }
:is(.ap-stage, .ap-ba) .ap-scr { --lime: #C3E754; --tint: #F9FDEE; --ink: #101112; --ink2: #191B1E; --n9: #2D3035; --n8: #3B3F46; --n7: #4D525A; --n6: #626974; --n5: #6C737F; --n4: #898F99; --n3: #9DA1A9; --n1: #D1D4D7; --n05: #F0F1F2; --ok: #12B76A; --err: #D92D20;
  position: relative; width: 375px; height: 812px; overflow: hidden; border-radius: 44px; background: #fff; color: var(--ink2); text-align: left;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 24px; font-variation-settings: "opsz" 14; font-optical-sizing: none; -webkit-font-smoothing: antialiased; isolation: isolate; }
:is(.ap-stage, .ap-ba) .ap-scr *, :is(.ap-stage, .ap-ba) .ap-scr *::before, :is(.ap-stage, .ap-ba) .ap-scr *::after { box-sizing: border-box; }
:where(.ap-stage, .ap-ba) .ap-scr :where(div, span, form, hr, label, section) { margin: 0; padding: 0; }
:where(.ap-stage, .ap-ba) .ap-scr :where(button, input, textarea) { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; text-align: inherit; -webkit-tap-highlight-color: transparent; }
:where(.ap-stage, .ap-ba) .ap-scr :where(button) { cursor: pointer; }
:is(.ap-stage, .ap-ba) .ap-scr img { display: block; max-width: none; }
:where(.ap-stage, .ap-ba) .ap-scr :where(b, s, i, u) { font-style: normal; }
:is(.ap-stage, .ap-ba) .ap-scr :focus-visible { outline: 2px solid #191B1E; outline-offset: 2px; }

/* status bar + header (shared chrome, Figma hedear 328:4147) */
:is(.ap-stage, .ap-ba) .ap-status { position: absolute; left: 0; top: 0; z-index: 8; width: 375px; height: 47px; background: #fff; }
:is(.ap-stage, .ap-ba) .ap-time { position: absolute; left: 27px; top: 14px; width: 54px; font: 600 17px/22px -apple-system, 'SF Pro Text', system-ui, sans-serif; letter-spacing: -.408px; text-align: center; color: #000; }
:is(.ap-stage, .ap-ba) .ap-sr { position: absolute; right: 26px; top: 19px; }
:is(.ap-stage, .ap-ba) .ap-head { position: absolute; left: 0; top: 47px; z-index: 7; display: flex; align-items: center; justify-content: space-between; width: 375px; height: 60px; padding: 0 17px 0 16px; background: #fff; box-shadow: 0 4px 19.5px rgba(0,0,0,.05); }
:is(.ap-stage, .ap-ba) .ap-logo { display: block; width: 160px; height: 40px; padding: 3px 0 0 8px; }
:is(.ap-stage, .ap-ba) .ap-head-r { display: flex; gap: 8px; }
:is(.ap-stage, .ap-ba) .ap-ib { display: grid; place-items: center; width: 32px; height: 32px; }

/* screens + router */
:is(.ap-stage, .ap-ba) .ap-screens { position: absolute; inset: 107px 0 0; overflow: hidden; }
:is(.ap-stage, .ap-ba) .ap-screen { position: absolute; inset: 0; margin: 0; background: #fff; }
:is(.ap-stage, .ap-ba) .ap-screen:not(.on) { display: none; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-in { animation: apin 380ms cubic-bezier(.3, .9, .3, 1); }
:is(.ap-stage, .ap-ba) .ap-screen.ap-back { animation: apback 340ms cubic-bezier(.3, .9, .3, 1); }
@keyframes apin { from { transform: translateX(40%); opacity: 0; } }
@keyframes apback { from { transform: translateX(-24%); opacity: 0; } }
:is(.ap-stage, .ap-ba) .ap-scroll-y { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
:is(.ap-stage, .ap-ba) .ap-scroll-y::-webkit-scrollbar { display: none; }

/* type */
:is(.ap-stage, .ap-ba) .ap-h32 { font: 700 32px/40px 'Space Grotesk', sans-serif; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-h28 { font: 700 28px/36px 'Space Grotesk', sans-serif; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-h24 { font: 700 24px/32px 'Space Grotesk', sans-serif; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-h20 { font-size: 20px; line-height: 32px; font-weight: 700; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-h16 { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-body { font-size: 16px; line-height: 24px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-sub14 { font-size: 14px; line-height: 24px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-sub16 { font-size: 16px; line-height: 24px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-c { text-align: center; }

/* buttons (Master Button) */
:is(.ap-stage, .ap-ba) .ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 2px; font: 700 16px/20px 'Space Grotesk', sans-serif; color: var(--n9); text-align: center; white-space: nowrap; transition: transform 150ms ease, background-color 150ms ease, opacity 200ms ease; }
:is(.ap-stage, .ap-ba) .ap-btn:active { transform: scale(.98); }
:is(.ap-stage, .ap-ba) .ap-btn-lime { padding: 16px 20px; background: var(--lime); }
:is(.ap-stage, .ap-ba) .ap-btn-dark { padding: 16px 24px; background: var(--ink2); color: var(--n05); }
:is(.ap-stage, .ap-ba) .ap-btn-line { background: #fff; }
:is(.ap-stage, .ap-ba) .ap-btn-w { width: 100%; }
:is(.ap-stage, .ap-ba) .ap-btn-xl { width: 100%; padding: 20px 24px; }
:is(.ap-stage, .ap-ba) .ap-arr { width: 16.5px; height: 15.6px; margin: 0 1.75px; }

/* provider marks: fictional monograms drawn in the brand style */
:is(.ap-stage, .ap-ba) .ap-mk { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--z); height: var(--z); background: #191B1E; color: #C3E754; overflow: hidden; }
:is(.ap-stage, .ap-ba) .ap-mk b { position: relative; z-index: 1; font: 700 calc(var(--z) * .42)/1 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
:is(.ap-stage, .ap-ba) .ap-mk::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26%; height: 26%; background: #C3E754; }
:is(.ap-stage, .ap-ba) .ap-mk-st { background: #C3E754; color: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-mk-st::after { width: 100%; height: 12%; background: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-mk-vx { background: #fff; color: #191B1E; box-shadow: inset 0 0 0 max(1px, calc(var(--z) * .04)) #191B1E; }
:is(.ap-stage, .ap-ba) .ap-mk-vx::after { width: 34%; height: 34%; right: -17%; bottom: auto; top: -17%; transform: rotate(45deg); background: #C3E754; }
:is(.ap-stage, .ap-ba) .ap-mk-px { background: #2D3035; color: #F9FDEE; }
:is(.ap-stage, .ap-ba) .ap-mk-px::after { width: 18%; height: 18%; right: 10%; bottom: 10%; box-shadow: calc(var(--z) * -.2) 0 0 #C3E754; }
:is(.ap-stage, .ap-ba) .ap-mk-hs { background: #F9FDEE; color: #191B1E; box-shadow: inset 0 0 0 max(1px, calc(var(--z) * .04)) #191B1E; }
:is(.ap-stage, .ap-ba) .ap-mk-hs::after { width: 100%; height: 26%; background: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-mk-hs b { transform: translateY(-12%); }
:is(.ap-stage, .ap-ba) .ap-lock { display: inline-flex; align-items: center; gap: 12px; font: 700 22px/28px 'Space Grotesk', sans-serif; color: #191B1E; letter-spacing: -.01em; }
:is(.ap-stage, .ap-ba) .ap-lock span:last-child { max-width: 150px; }

/* certification badge (stands in for the vendor badges) */
:is(.ap-stage, .ap-ba) .ap-badge { display: grid; grid-template-rows: 30px 1fr 26px; width: 132px; height: 148px; border: 1.5px solid #191B1E; background: #fff; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-badge i { display: grid; place-items: center; background: #191B1E; color: #C3E754; font: 700 10px/1 'Space Grotesk', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
:is(.ap-stage, .ap-ba) .ap-badge b { display: grid; place-items: center; padding: 0 10px; font: 700 13px/16px 'Space Grotesk', sans-serif; color: #191B1E; text-transform: uppercase; letter-spacing: .01em; }
:is(.ap-stage, .ap-ba) .ap-badge s { display: grid; place-items: center; background: #C3E754; border-top: 1.5px solid #191B1E; font: 700 10px/1 'Space Grotesk', sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-badge-st i { background: #C3E754; color: #191B1E; border-bottom: 1.5px solid #191B1E; }
:is(.ap-stage, .ap-ba) .ap-badge-st s { background: #191B1E; color: #C3E754; }
:is(.ap-stage, .ap-ba) .ap-badge-px i { background: #2D3035; color: #F9FDEE; }
:is(.ap-stage, .ap-ba) .ap-badge-hs { background: #F9FDEE; }

/* home */
:is(.ap-stage, .ap-ba) .ap-hero { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 48px 16px; background: #191B1E; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-hero-t { font: 700 32px/40px 'Space Grotesk', sans-serif; color: var(--n05); }
:is(.ap-stage, .ap-ba) .ap-hero-p { margin-top: -20px; font-size: 16px; line-height: 24px; color: var(--n1); }
:is(.ap-stage, .ap-ba) .ap-sec { padding: 48px 16px 0; }
:is(.ap-stage, .ap-ba) .ap-sec-c { display: flex; flex-direction: column; gap: 24px; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-sec-c .ap-sub16 { margin-top: -8px; }
:is(.ap-stage, .ap-ba) .ap-rail { display: flex; gap: 24px; margin-top: 64px; padding: 0 16px; overflow-x: auto; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
:is(.ap-stage, .ap-ba) .ap-rail::-webkit-scrollbar { display: none; }
:is(.ap-stage, .ap-ba) .ap-rail-snap { scroll-snap-type: x mandatory; }
:is(.ap-stage, .ap-ba) .ap-rail-snap > * { scroll-snap-align: start; }
:is(.ap-stage, .ap-ba) .ap-sec-btn { display: flex; justify-content: center; padding: 64px 16px 0; }
:is(.ap-stage, .ap-ba) .ap-card { display: flex; flex-direction: column; flex: none; width: 260px; height: 280px; border: 1px solid var(--n3); border-radius: 2px; background: #fff; transition: border-color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-card:hover { border-color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-card-i { display: grid; place-items: center; flex: 1; border-bottom: 1px solid var(--n3); }
:is(.ap-stage, .ap-ba) .ap-card-l { display: flex; align-items: center; gap: 4px; padding-left: 16px; }
:is(.ap-stage, .ap-ba) .ap-card-n { flex: 1; font-size: 20px; line-height: 32px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-card-a { display: grid; place-items: center; width: 52px; height: 52px; }
:is(.ap-stage, .ap-ba) .ap-card-t { height: 340px; }
:is(.ap-stage, .ap-ba) .ap-card-t .ap-card-i { flex: none; height: 220px; }
:is(.ap-stage, .ap-ba) .ap-card-t .ap-card-l { align-items: flex-start; height: 120px; padding: 12px 0 12px 16px; }
:is(.ap-stage, .ap-ba) .ap-card-tx { display: flex; flex-direction: column; gap: 4px; flex: 1; }
:is(.ap-stage, .ap-ba) .ap-card-s { font-size: 14px; line-height: 20px; color: var(--n7); }
:is(.ap-stage, .ap-ba) .ap-card-t .ap-card-a { margin-top: -8px; }
:is(.ap-stage, .ap-ba) .ap-why { padding-bottom: 48px; }
:is(.ap-stage, .ap-ba) .ap-metrics { display: grid; justify-items: center; gap: 24px; margin-top: 40px; }
:is(.ap-stage, .ap-ba) .ap-metric { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 288px; height: 160px; padding: 24px; border: 1px solid var(--n3); border-radius: 2px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-metric b { font: 700 40px/48px 'Space Grotesk', sans-serif; }
:is(.ap-stage, .ap-ba) .ap-metric span { font-size: 24px; line-height: 32px; font-weight: 700; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-svc { display: flex; flex-direction: column; gap: 16px; padding: 48px 16px; }
:is(.ap-stage, .ap-ba) .ap-svc-i { align-self: center; margin-bottom: 24px; }
:is(.ap-stage, .ap-ba) .ap-svc .ap-btn { margin-top: 24px; }

/* footer */
:is(.ap-stage, .ap-ba) .ap-foot { display: flex; flex-direction: column; align-items: center; padding: 64px 16px 48px; background: #191B1E; color: #9795B5; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-foot-logo { margin-bottom: 40px; }
:is(.ap-stage, .ap-ba) .ap-foot-nav { display: flex; flex-direction: column; align-items: center; gap: 24px; }
:is(.ap-stage, .ap-ba) .ap-foot-nav button { font-size: 16px; line-height: 24px; transition: color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-foot-nav button:hover { color: var(--n05); }
:is(.ap-stage, .ap-ba) .ap-foot-legal { gap: 40px; margin-top: 24px; }
:is(.ap-stage, .ap-ba) .ap-social { display: flex; align-items: center; gap: 40px; height: 24px; margin-top: 40px; padding: 0 12px; }
:is(.ap-stage, .ap-ba) .ap-foot-c { align-self: stretch; margin-top: 64px; padding-top: 16px; border-top: 1px solid #3B3F46; font-size: 14px; line-height: 20px; }

/* breadcrumbs */
:is(.ap-stage, .ap-ba) .ap-crumbs { display: flex; align-items: center; gap: 4px; padding: 24px 18px 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--n5); white-space: nowrap; }
:is(.ap-stage, .ap-ba) .ap-crumbs button:hover { color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-crumb-cur { color: var(--ink2); }

/* search + typeahead */
:is(.ap-stage, .ap-ba) .ap-search { display: flex; align-items: center; gap: 10px; height: 52px; margin: 20px 16px 0; padding: 0 8px 0 20px; border: 1px solid var(--n3); border-radius: 26px; background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(195,231,84,.55); }
:is(.ap-stage, .ap-ba) .ap-q { flex: 1; min-width: 0; height: 100%; font-size: 16px; line-height: 20px; color: var(--ink); outline: none; }
:is(.ap-stage, .ap-ba) .ap-q::placeholder { color: var(--n6); }
:is(.ap-stage, .ap-ba) .ap-q::-webkit-search-cancel-button { display: none; }
:is(.ap-stage, .ap-ba) .ap-q-x { display: grid; place-items: center; width: 36px; height: 36px; font-size: 22px; line-height: 1; color: var(--n6); }
:is(.ap-stage, .ap-ba) .ap-q-x[hidden] { display: none; }
:is(.ap-stage, .ap-ba) .ap-res-h { padding: 28px 16px 0; font: 700 28px/36px 'Space Grotesk', sans-serif; color: var(--ink); overflow-wrap: anywhere; }
:is(.ap-stage, .ap-ba) .ap-lhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; margin-top: 24px; padding: 0 16px; }
:is(.ap-stage, .ap-ba) .ap-sort { display: flex; align-items: center; gap: 2px; font-size: 14px; line-height: 24px; color: var(--ink2); flex: none; }
:is(.ap-stage, .ap-ba) .ap-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-bottom: 48px; }
:is(.ap-stage, .ap-ba) .ap-row { display: flex; align-items: center; gap: 8px; width: 375px; min-height: 88px; padding: 16px; border-bottom: 1px solid var(--n3); background: #fff; transition: background-color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-row:hover, :is(.ap-stage, .ap-ba) .ap-row.ap-hov, :is(.ap-stage, .ap-ba) .ap-row[aria-selected="true"] { background: var(--n05); }
:is(.ap-stage, .ap-ba) .ap-row-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
:is(.ap-stage, .ap-ba) .ap-row-t b { font-size: 14px; line-height: 20px; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-row-t span { font-size: 12px; line-height: 16px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-row mark { background: rgba(195,231,84,.6); color: inherit; }
:is(.ap-stage, .ap-ba) .ap-rates { display: flex; gap: 16px; flex: none; }
:is(.ap-stage, .ap-ba) .ap-rate { position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 24px; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-rate::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 8px 12px; border-radius: 2px; background: #191B1E; color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; transition: opacity 150ms ease, transform 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-row:hover .ap-rate:first-child::after { opacity: 1; transform: translate(-50%, 0); }
:is(.ap-stage, .ap-ba) .ap-row-pv .ap-row-t b { font-size: 16px; line-height: 24px; }
:is(.ap-stage, .ap-ba) .ap-row-pv { background: var(--tint); }
:is(.ap-stage, .ap-ba) .ap-row-pv:hover, :is(.ap-stage, .ap-ba) .ap-row-pv.ap-hov { background: #EEF6D2; }
:is(.ap-stage, .ap-ba) .ap-tag { flex: none; padding: 2px 8px; border: 1px solid var(--ink); font-size: 12px; line-height: 16px; font-weight: 500; }
:is(.ap-stage, .ap-ba) .ap-empty { padding: 32px 16px; font-size: 16px; line-height: 24px; color: var(--n7); }

/* provider */
:is(.ap-stage, .ap-ba) .ap-pv-top { display: flex; flex-direction: column; gap: 16px; }
:is(.ap-stage, .ap-ba) .ap-pv-t { font-size: 28px; line-height: 36px; }
:is(.ap-stage, .ap-ba) .ap-pv-h { margin-top: 32px; }
:is(.ap-stage, .ap-ba) .ap-pv-top + .ap-rail { margin-top: 34px; }
:is(.ap-stage, .ap-ba) .ap-pv-lh { margin-top: 48px; }

/* product (328:4459) */
:is(.ap-stage, .ap-ba) .ap-prod { display: flex; flex-direction: column; gap: 24px; margin: 32px 16px 0; padding: 24px; border: 1px solid #959595; background: var(--tint); }
:is(.ap-stage, .ap-ba) .ap-pic { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 240px; background: #191B1E; color: #C3E754; font: 700 20px/24px 'Space Grotesk', sans-serif; letter-spacing: .04em; }
:is(.ap-stage, .ap-ba) .ap-pic::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 24px); }
:is(.ap-stage, .ap-ba) .ap-pic > * { position: relative; }
:is(.ap-stage, .ap-ba) .ap-pic .ap-mk { box-shadow: 0 0 0 1px rgba(195,231,84,.5); }
:is(.ap-stage, .ap-ba) .ap-pic-st, :is(.ap-stage, .ap-ba) .ap-pic-vx { background: #C3E754; color: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-pic-st::before, :is(.ap-stage, .ap-ba) .ap-pic-vx::before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 24px), repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 24px); }
:is(.ap-stage, .ap-ba) .ap-prod-l { display: flex; flex-direction: column; align-items: flex-start; }
:is(.ap-stage, .ap-ba) .ap-chip { padding: 2px 8px; border: 1px solid var(--ink); background: #fff; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; }
:is(.ap-stage, .ap-ba) .ap-prod-t { margin-top: 12px; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-prod-s { margin: 4px 0 24px; font-size: 16px; line-height: 24px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-outl { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-outl + .ap-outl { margin-top: 14px; }
:is(.ap-stage, .ap-ba) .ap-price { display: flex; align-items: baseline; gap: 16px; margin: 32px 0; font-weight: 700; }
:is(.ap-stage, .ap-ba) .ap-price b { font-size: 32px; line-height: 40px; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-price s { font-size: 20px; line-height: 32px; color: var(--n4); text-decoration: line-through; }
:is(.ap-stage, .ap-ba) .ap-details { padding-bottom: 48px; }
:is(.ap-stage, .ap-ba) .ap-details .ap-body { margin-top: 16px; }
:is(.ap-stage, .ap-ba) .ap-revs { display: flex; flex-direction: column; padding-bottom: 48px; }
:is(.ap-stage, .ap-ba) .ap-revs .ap-lhead { margin: 0 0 24px; }
:is(.ap-stage, .ap-ba) .ap-rev { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-bottom: 1px solid #D9D9D9; }
:is(.ap-stage, .ap-ba) .ap-rev[hidden] { display: none; }
:is(.ap-stage, .ap-ba) .ap-rev.ap-new { animation: apfade 360ms ease; }
:is(.ap-stage, .ap-ba) .ap-rev b { font-size: 16px; line-height: 24px; color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-rev > span { font-size: 14px; line-height: 20px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-rev .ap-rev-d { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
:is(.ap-stage, .ap-ba) .ap-more-rev { align-self: center; width: 208px; height: 52px; margin-top: 32px; }
:is(.ap-stage, .ap-ba) .ap-form { display: flex; flex-direction: column; gap: 24px; margin: 0 16px 48px; padding: 24px 16px; border: 1px solid var(--n3); background: var(--tint); }
:is(.ap-stage, .ap-ba) .ap-fl { display: flex; flex-direction: column; gap: 10px; }
:is(.ap-stage, .ap-ba) .ap-fl > span, :is(.ap-stage, .ap-ba) .ap-lbl { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-fl small { font-size: 14px; line-height: 20px; color: var(--n7); }
:is(.ap-stage, .ap-ba) .ap-inp { height: 52px; padding: 0 14px; border: 1px solid var(--n3); border-radius: 2px; background: #fff; font-size: 16px; line-height: 20px; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.05); outline: none; }
:is(.ap-stage, .ap-ba) .ap-inp:focus { border-color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-inp::placeholder { color: var(--n6); }
:is(.ap-stage, .ap-ba) .ap-ta { height: 112px; padding: 14px; resize: none; }

/* checkout (328:4594, instalments from 1363:5422) */
:is(.ap-stage, .ap-ba) .ap-co { display: flex; flex-direction: column; padding: 32px 16px 48px; }
:is(.ap-stage, .ap-ba) .ap-co-sub { margin-top: 14px; }
:is(.ap-stage, .ap-ba) .ap-co-h { margin: 32px 0; }
:is(.ap-stage, .ap-ba) .ap-order { display: flex; align-items: center; gap: 12px; min-height: 120px; padding: 16px; border: 1px solid var(--n6); }
:is(.ap-stage, .ap-ba) .ap-order-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
:is(.ap-stage, .ap-ba) .ap-order-t b { font-size: 16px; line-height: 24px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-order-t > span { font-size: 12px; line-height: 20px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-order-p { flex: none; font-size: 16px; line-height: 24px; font-weight: 500; }
:is(.ap-stage, .ap-ba) .ap-promo { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
:is(.ap-stage, .ap-ba) .ap-promo-r { display: flex; }
:is(.ap-stage, .ap-ba) .ap-promo-in { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 52px; padding: 0 12px; border: 1px solid var(--n3); border-right: 0; border-radius: 2px 0 0 2px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-promo-in img { margin: 0 1.5px; }
:is(.ap-stage, .ap-ba) .ap-promo-in:focus-within { border-color: var(--ink); }
:is(.ap-stage, .ap-ba) .ap-pc { flex: 1; min-width: 0; height: 100%; font-size: 16px; line-height: 20px; color: var(--ink); text-transform: uppercase; outline: none; }
:is(.ap-stage, .ap-ba) .ap-pc::placeholder { color: var(--n6); text-transform: none; }
:is(.ap-stage, .ap-ba) .ap-pc-b { flex: none; height: 52px; min-width: 113px; border-radius: 0 2px 2px 0; }
:is(.ap-stage, .ap-ba) .ap-hint { min-height: 20px; font-size: 14px; line-height: 20px; }
:is(.ap-stage, .ap-ba) .ap-promo.is-ok .ap-promo-in { border-color: var(--ok); }
:is(.ap-stage, .ap-ba) .ap-promo.is-ok .ap-hint { color: var(--ok); }
:is(.ap-stage, .ap-ba) .ap-promo.is-ok .ap-pc-b { background: #fff; color: var(--n9); }
:is(.ap-stage, .ap-ba) .ap-promo.is-err .ap-promo-in { border-color: var(--err); }
:is(.ap-stage, .ap-ba) .ap-promo.is-err .ap-hint { color: var(--err); }
:is(.ap-stage, .ap-ba) .ap-promo.is-err .ap-promo-in { animation: apshake 320ms ease; }
@keyframes apshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
:is(.ap-stage, .ap-ba) .ap-hr { height: 1px; margin: 32px 0; border: 0; background: var(--n1); }
:is(.ap-stage, .ap-ba) .ap-promo + .ap-hr { margin-top: 22px; }
:is(.ap-stage, .ap-ba) .ap-inst-h { display: flex; align-items: center; justify-content: space-between; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink2); cursor: pointer; }
:is(.ap-stage, .ap-ba) .ap-cb { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink2); border-radius: 2px; background: #fff; cursor: pointer; transition: background-color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-cb::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg) scale(.4); opacity: 0; transition: transform 180ms ease, opacity 120ms ease; }
:is(.ap-stage, .ap-ba) .ap-cb:checked { background: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-cb:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); opacity: 1; }
:is(.ap-stage, .ap-ba) .ap-chips { display: flex; gap: 12px; margin-top: 16px; }
:is(.ap-stage, .ap-ba) .ap-chip-b { flex: 1; height: 48px; border: 1px solid var(--ink); border-radius: 2px; font: 700 16px/20px 'Space Grotesk', sans-serif; color: var(--n9); text-align: center; transition: background-color 150ms ease, color 150ms ease, opacity 200ms ease; }
:is(.ap-stage, .ap-ba) .ap-chip-b[aria-checked="true"] { background: var(--ink2); color: #fff; }
:is(.ap-stage, .ap-ba) .ap-inst:not(.is-on) .ap-chip-b { opacity: .35; }
:is(.ap-stage, .ap-ba) .ap-inst-n { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--n7); }
:is(.ap-stage, .ap-ba) .ap-sum { display: flex; flex-direction: column; gap: 16px; }
:is(.ap-stage, .ap-ba) .ap-sum-r, :is(.ap-stage, .ap-ba) .ap-total { display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; color: var(--n8); }
:is(.ap-stage, .ap-ba) .ap-sum-r b { color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-disc { display: grid; grid-template-columns: 1fr auto; max-height: 0; margin-top: -16px; overflow: hidden; opacity: 0; transition: max-height 300ms ease, margin-top 300ms ease, opacity 300ms ease; }
:is(.ap-stage, .ap-ba) .ap-disc.on { max-height: 24px; margin-top: 0; opacity: 1; }
:is(.ap-stage, .ap-ba) .ap-disc b { color: var(--ok); }
:is(.ap-stage, .ap-ba) .ap-total { font-size: 20px; line-height: 32px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-total b { font-weight: 700; }
:is(.ap-stage, .ap-ba) .ap-tot.ap-bump { animation: apbump 360ms ease; }
@keyframes apbump { 40% { transform: scale(1.08); color: #12B76A; } }
:is(.ap-stage, .ap-ba) .ap-tot { display: inline-block; transform-origin: right center; }
:is(.ap-stage, .ap-ba) .ap-tc { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 14px; line-height: 24px; color: var(--n6); cursor: pointer; }
:is(.ap-stage, .ap-ba) .ap-tc .ap-cb { width: 20px; height: 20px; border-width: 1.5px; border-color: var(--n6); }
:is(.ap-stage, .ap-ba) .ap-tc .ap-cb:checked { border-color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-tc .ap-cb::after { width: 10px; height: 6px; }
:is(.ap-stage, .ap-ba) .ap-tc u { color: var(--n7); text-decoration: underline; text-underline-offset: 3px; }
:is(.ap-stage, .ap-ba) .ap-pay { width: 100%; margin-top: 24px; padding: 14px 20px; }
:is(.ap-stage, .ap-ba) .ap-pay[aria-disabled="true"] { background: var(--n05); border-color: var(--n3); color: var(--n4); cursor: not-allowed; }
:is(.ap-stage, .ap-ba) .ap-pay.is-busy::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: apspin 700ms linear infinite; }
@keyframes apspin { to { transform: rotate(360deg); } }

/* success (328:4704) */
:is(.ap-stage, .ap-ba) .ap-ok { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 62px 16px 48px; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-ok-i { position: relative; margin-bottom: 18px; }
:is(.ap-stage, .ap-ba) .ap-stamp { position: absolute; right: 54px; top: -6px; display: grid; place-items: center; width: 44px; height: 44px; background: #191B1E; box-shadow: 0 0 0 3px #fff; }
:is(.ap-stage, .ap-ba) .ap-ok-t { font-family: 'DM Sans', sans-serif; }
:is(.ap-stage, .ap-ba) .ap-ok-p { margin-bottom: 18px; }
:is(.ap-stage, .ap-ba) .ap-ok .ap-btn { height: 52px; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok-i > img { animation: appop 620ms cubic-bezier(.3, 1.4, .5, 1) both; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-stamp { animation: apstamp 460ms 420ms cubic-bezier(.3, 1.5, .5, 1) both; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok > :not(.ap-ok-i) { animation: apup 420ms ease both; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok > :nth-child(3) { animation-delay: 80ms; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok > :nth-child(4) { animation-delay: 160ms; }
:is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok > :nth-child(5) { animation-delay: 220ms; }
@keyframes appop { from { transform: scale(.86) translateY(10px); opacity: 0; } }
@keyframes apstamp { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } }
@keyframes apup { from { transform: translateY(10px); opacity: 0; } }
@keyframes apfade { from { opacity: 0; } }

/* menu (328:4325) */
:is(.ap-stage, .ap-ba) .ap-menu { position: absolute; inset: 107px 0 0; z-index: 6; background: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-menu[hidden] { display: none; }
:is(.ap-stage, .ap-ba) .ap-menu.ap-open { animation: apdrop 300ms cubic-bezier(.3, .9, .3, 1); }
@keyframes apdrop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
:is(.ap-stage, .ap-ba) .ap-menu-in { display: flex; flex-direction: column; gap: 14px; padding: 80px 16px 0; }
:is(.ap-stage, .ap-ba) .ap-menu-x { position: absolute; left: 319px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; }
:is(.ap-stage, .ap-ba) .ap-mi { display: flex; align-items: center; gap: 8px; width: 343px; padding: 16px 24px; border: 1px solid #191B1E; background: #2D3035; font: 700 16px/20px 'Space Grotesk', sans-serif; color: #fff; transition: background-color 150ms ease; }
:is(.ap-stage, .ap-ba) .ap-mi:hover, :is(.ap-stage, .ap-ba) .ap-mi.ap-hov { background: #3B3F46; }
:is(.ap-stage, .ap-ba) .ap-lang-b[aria-expanded="true"] .ap-arr { transform: rotate(90deg); }
:is(.ap-stage, .ap-ba) .ap-mi .ap-arr { transition: transform 200ms ease; }
:is(.ap-stage, .ap-ba) .ap-langs { display: flex; flex-direction: column; margin-top: -14px; border: 1px solid #2D3035; border-top: 0; }
:is(.ap-stage, .ap-ba) .ap-langs[hidden] { display: none; }
:is(.ap-stage, .ap-ba) .ap-langs button { padding: 12px 24px; font-size: 16px; line-height: 24px; color: #9795B5; }
:is(.ap-stage, .ap-ba) .ap-langs button.on { color: #C3E754; }

/* how it works modal (234:3818 / 328:4431) */
:is(.ap-stage, .ap-ba) .ap-modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(16,17,18,.6); }
:is(.ap-stage, .ap-ba) .ap-modal[hidden] { display: none; }
:is(.ap-stage, .ap-ba) .ap-modal.ap-open { animation: apfade 240ms ease; }
:is(.ap-stage, .ap-ba) .ap-modal.ap-open .ap-modal-p { animation: apsheet 360ms cubic-bezier(.3, .9, .3, 1); }
@keyframes apsheet { from { transform: translateY(40%); } }
:is(.ap-stage, .ap-ba) .ap-modal-p { position: relative; width: 100%; height: calc(100% - 96px); background: #fff; }
:is(.ap-stage, .ap-ba) .ap-modal-sc { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 32px 16px 56px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
:is(.ap-stage, .ap-ba) .ap-modal-sc::-webkit-scrollbar { display: none; }
:is(.ap-stage, .ap-ba) .ap-modal-x { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; background: #191B1E; }
:is(.ap-stage, .ap-ba) .ap-modal-x img { width: 24px; height: 24px; }
:is(.ap-stage, .ap-ba) .ap-modal-sc > .ap-h28 { margin-top: 40px; }
:is(.ap-stage, .ap-ba) .ap-steps { display: flex; flex-direction: column; align-items: center; gap: 24px; margin: 24px 0 32px; }
:is(.ap-stage, .ap-ba) .ap-step { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 288px; padding: 40px 16px; border: 1px solid var(--n9); border-radius: 2px; text-align: center; }
:is(.ap-stage, .ap-ba) .ap-step-i { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; }
:is(.ap-stage, .ap-ba) .ap-step b { font-size: 24px; line-height: 32px; color: var(--ink2); }
:is(.ap-stage, .ap-ba) .ap-step > span:last-child { font-size: 16px; line-height: 24px; color: var(--n8); }

/* toast */
:is(.ap-stage, .ap-ba) .ap-toast { position: absolute; left: 16px; right: 16px; bottom: 28px; z-index: 30; padding: 14px 16px; border-radius: 2px; background: #191B1E; color: #F0F1F2; font-size: 14px; line-height: 20px; transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform 240ms ease, opacity 240ms ease; }
:is(.ap-stage, .ap-ba) .ap-toast.on { transform: none; opacity: 1; }
/* before / after */
.ap-ba .ap-cmp { background: #fff; }
.ap-ba .ap-cmp-sc { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.ap-ba .ap-cmp-sc::-webkit-scrollbar { display: none; }
.ap-ba .ap-cmp-in { display: grid; width: 375px; }
.ap-ba .ap-cmp-in > * { grid-area: 1 / 1; }
.ap-ba .ap-cmp-old { width: 375px; height: auto; }
.ap-ba .ap-cmp-new { position: relative; min-height: 100%; background: #fff; clip-path: inset(0 0 0 var(--x, 50%)); }
.ap-ba .ap-cmp-new .ap-status, .ap-ba .ap-cmp-new .ap-head { position: relative; top: 0; }
.ap-ba .ap-cmp-new .ap-head { margin-top: 14px; }
.ap-ba .ap-cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); z-index: 10; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; outline: none; }
.ap-ba .ap-cmp-h::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #191B1E; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.ap-ba .ap-cmp-h i { position: absolute; left: 0; top: 50%; width: 44px; height: 44px; margin-top: -22px; background: #C3E754; border: 1.5px solid #191B1E; transition: transform 150ms ease; }
.ap-ba .ap-cmp-h i::before, .ap-ba .ap-cmp-h i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ap-ba .ap-cmp-h i::before { left: 4px; border-right-color: #191B1E; }
.ap-ba .ap-cmp-h i::after { right: 4px; border-left-color: #191B1E; }
.ap-ba .ap-cmp-h:focus-visible i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #191B1E; }
.ap-ba .ap-cmp-h.drag i { transform: scale(1.1); }
.ap-ba .ap-cmp-l { position: absolute; bottom: 24px; z-index: 9; padding: 4px 10px; font: 700 14px/20px 'Space Grotesk', sans-serif; pointer-events: none; }
.ap-ba .ap-cmp-l1 { left: 20px; background: #191B1E; color: #F0F1F2; }
.ap-ba .ap-cmp-l2 { right: 20px; background: #C3E754; color: #191B1E; border: 1px solid #191B1E; }

@media (prefers-reduced-motion: reduce) {
  :is(.ap-stage, .ap-ba) .ap-screen.ap-in, :is(.ap-stage, .ap-ba) .ap-screen.ap-back, :is(.ap-stage, .ap-ba) .ap-menu.ap-open, :is(.ap-stage, .ap-ba) .ap-modal.ap-open, :is(.ap-stage, .ap-ba) .ap-modal.ap-open .ap-modal-p,
  :is(.ap-stage, .ap-ba) .ap-screen.ap-done .ap-ok *, :is(.ap-stage, .ap-ba) .ap-rev.ap-new, :is(.ap-stage, .ap-ba) .ap-tot.ap-bump, :is(.ap-stage, .ap-ba) .ap-promo.is-err .ap-promo-in { animation: none; }
  :is(.ap-stage, .ap-ba) .ap-disc, :is(.ap-stage, .ap-ba) .ap-cb::after, :is(.ap-stage, .ap-ba) .ap-toast { transition-duration: 1ms; }
  :is(.ap-stage, .ap-ba) .ap-rail-snap { scroll-behavior: auto; }
}

/* ---------- flow players: each device sits in a .fp player ---------- */
.fp .ap-stage { display: block; margin: 0; }
.fp .ap-m .ap-holder { margin: 0 auto; }

/* ---------- desktop (Homepage 66:1473, Search Result 116:52145, Product 135:7285), 1440 wide, scaled + lens ---------- */
.ap-stage .ap-dk { --s: 1; position: relative; width: calc(1440px * var(--s)); height: calc(956px * var(--s)); }
.ap-stage .ap-dk-f { position: absolute; left: 0; top: 0; width: 1440px; height: 956px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(16,17,18,.14), 0 30px 60px -24px rgba(0,0,0,.35); transform: scale(var(--s)); transform-origin: 0 0; font-family: 'DM Sans', system-ui, sans-serif; font-variation-settings: "opsz" 14; font-optical-sizing: none; -webkit-font-smoothing: antialiased; color: #191B1E; text-align: left;
  --lime: #C3E754; --tint: #F9FDEE; --ink: #101112; --ink2: #191B1E; --n9: #2D3035; --n8: #3B3F46; --n7: #4D525A; --n6: #626974; --n5: #6C737F; --n4: #898F99; --n3: #9DA1A9; --n1: #D1D4D7; --n05: #F0F1F2; --ok: #12B76A; }
.ap-stage .ap-dk-f *, .ap-stage .ap-dk-f *::before, .ap-stage .ap-dk-f *::after { box-sizing: border-box; }
:where(.ap-stage) .ap-dk-f :where(button, input) { appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; text-align: inherit; }
:where(.ap-stage) .ap-dk-f :where(div, span, label, section) { margin: 0; padding: 0; }
.ap-stage .ap-dk-f img { display: block; max-width: none; }
.ap-stage .ap-dk-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px; background: #F0F1F2; border-bottom: 1px solid #D1D4D7; }
.ap-stage .ap-dk-bar i { width: 14px; height: 14px; border-radius: 50%; background: #D1D4D7; }
.ap-stage .ap-dk-url { position: absolute; left: 50%; top: 12px; width: 560px; height: 32px; margin-left: -280px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 32px; color: #4D525A; text-align: center; }
.ap-stage .ap-dk-vp { position: relative; height: 900px; overflow: hidden; }
.ap-stage .ap-dk-lens { position: absolute; left: 0; top: 0; width: 1440px; transform-origin: 0 0; transition: transform 1000ms cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.ap-stage .ap-dk-lens.ap-still { transition: none; }
.ap-stage .ap-dscreen { position: relative; margin: 0; }
.ap-stage .ap-dscreen:not(.on) { display: none; }

/* header (Headers V3 116:52410) */
.ap-stage .ap-dh { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; height: 112px; padding: 0 32px; background: #fff; box-shadow: 0 4px 19.5px rgba(0,0,0,.05); }
.ap-stage .ap-dh-logo { width: 160px; height: 40px; padding: 3px 0 0 8px; flex: none; }
.ap-stage .ap-dh-s { position: relative; flex: 1; min-width: 0; }
.ap-stage .ap-dh-pill { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 23px; border: 1px solid var(--n3); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.ap-stage .ap-dq { flex: 1; min-width: 0; height: 100%; font-size: 16px; line-height: 20px; color: var(--ink); outline: none; }
.ap-stage .ap-dq::placeholder { color: var(--n6); }
.ap-stage .ap-dh-nav { display: flex; align-items: center; gap: 16px; flex: none; }
.ap-stage .ap-dh-t { padding: 16px 24px; font: 700 16px/20px 'Space Grotesk', sans-serif; color: var(--n9); }
.ap-stage .ap-dh-nav .ap-btn { padding: 16px 24px; }
.ap-stage .ap-dh-g { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 2px; }
/* the typeahead under the header search (new: the 2023 file had no desktop typeahead) */
.ap-stage .ap-dd { position: absolute; left: 0; right: 0; top: 60px; z-index: 5; display: flex; flex-direction: column; padding: 8px 0; border: 1px solid var(--n3); border-radius: 2px; background: #fff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03); animation: apfade 200ms ease; }
.ap-stage .ap-dd[hidden] { display: none; }
.ap-stage .ap-ddrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.ap-stage .ap-ddrow-pv { background: var(--tint); }
.ap-stage .ap-ddrow .ap-tag { margin-left: auto; }
.ap-stage .ap-drow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-stage .ap-drow-t b { font-size: 16px; line-height: 24px; color: var(--ink2); }
.ap-stage .ap-drow-t span { font-size: 14px; line-height: 20px; color: var(--n8); }
.ap-stage .ap-ddall { display: flex; align-items: center; gap: 8px; margin: 8px 16px 4px; padding-top: 12px; border-top: 1px solid var(--n1); font: 700 15px/20px 'Space Grotesk', sans-serif; color: var(--n9); }
.ap-stage .ap-ddnone { padding: 12px 16px; font-size: 14px; color: var(--n7); }
.ap-stage .ap-dk-f mark { background: rgba(195,231,84,.6); color: inherit; }

/* home */
.ap-stage .ap-dhero { display: flex; flex-direction: column; align-items: center; height: 472px; padding-top: 96px; background: #191B1E; text-align: center; }
.ap-stage .ap-dhero-t { width: 760px; font: 700 52px/64px 'Space Grotesk', sans-serif; color: var(--n05); }
.ap-stage .ap-dhero-p { width: 574px; margin-top: 16px; font-size: 16px; line-height: 24px; color: var(--n1); }
.ap-stage .ap-dhero-b { width: 390px; margin-top: 36px; padding: 16px 20px; }
.ap-stage .ap-dsec { display: flex; flex-direction: column; align-items: center; padding: 96px 0 0; text-align: center; }
.ap-stage .ap-dsec-t { width: 560px; font: 700 36px/48px 'Space Grotesk', sans-serif; color: var(--ink); }
.ap-stage .ap-dsec-p { width: 614px; margin-top: 24px; font-size: 16px; line-height: 24px; color: var(--n8); }
.ap-stage .ap-drail { display: flex; align-items: center; gap: 36px; width: 1344px; margin-top: 64px; }
.ap-stage .ap-drail-in { display: flex; gap: 24px; flex: 1; min-width: 0; overflow: hidden; }
.ap-stage .ap-drail-in > * { text-align: left; }
.ap-stage .ap-dchev-l { transform: scaleX(-1); }
.ap-stage .ap-dmore { margin-top: 64px; }

/* search results */
.ap-stage .ap-dwrap { width: 1224px; margin: 0 auto; padding: 20px 0 96px 1px; }
.ap-stage .ap-dcr { display: flex; align-items: center; gap: 12px; height: 20px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--n5); }
.ap-stage .ap-dcr-c { color: var(--ink2); }
.ap-stage .ap-dres-h { width: fit-content; margin-top: 55px; font: 700 40px/48px 'Space Grotesk', sans-serif; color: var(--ink); }
.ap-stage .ap-dres-lh { display: flex; align-items: center; justify-content: space-between; width: 911px; height: 44px; margin-top: 32px; font: 700 24px/36px 'Space Grotesk', sans-serif; color: var(--ink); }
.ap-stage .ap-dres-lh .ap-sort { font: 400 16px/24px 'DM Sans', sans-serif; }
.ap-stage .ap-drows { display: flex; flex-direction: column; gap: 12px; width: 911px; margin-top: 20px; }
.ap-stage .ap-drow { display: flex; align-items: center; gap: 12px; width: 911px; height: 80px; padding: 16px; border-radius: 2px; background: #fff; }
.ap-stage .ap-drow-pv { background: var(--tint); }
.ap-stage .ap-drow .ap-tag { margin-left: auto; }
.ap-stage .ap-drates { display: flex; gap: 40px; margin-left: auto; }
.ap-stage .ap-drates .ap-rate { font-size: 16px; color: #000; }
.ap-stage .ap-drows .ap-drow:nth-child(2) .ap-rate:first-child::after { opacity: 1; transform: translate(-50%, 0); }

/* product */
.ap-stage .ap-dprod { display: flex; gap: 24px; width: 912px; margin-top: 88px; padding: 24px; border: 1px solid var(--n3); background: var(--tint); }
.ap-stage .ap-dpic { flex: none; width: 288px; height: 288px; }
.ap-stage .ap-dprod-l { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.ap-stage .ap-dprod-top { display: flex; flex-direction: column; align-items: flex-start; }
.ap-stage .ap-dprod .ap-prod-s { margin-bottom: 20px; }
.ap-stage .ap-dprice { display: flex; align-items: center; justify-content: space-between; }
.ap-stage .ap-dprice .ap-price { margin: 0; }
.ap-stage .ap-dprice .ap-price b { font-size: 36px; line-height: 48px; }
.ap-stage .ap-denroll { width: 264px; padding: 20px 24px; }
.ap-stage .ap-ddet { width: 704px; margin-top: 61px; }
.ap-stage .ap-ddet .ap-body { margin-top: 16px; }
.ap-stage .ap-drevs { display: flex; flex-direction: column; width: 912px; margin-top: 79px; }
.ap-stage .ap-drevs .ap-dres-lh { width: 912px; margin: 0 0 32px; font: 700 20px/32px 'DM Sans', sans-serif; }
.ap-stage .ap-drev { display: flex; align-items: center; gap: 24px; padding: 16px; border-bottom: 1px solid #D9D9D9; }
.ap-stage .ap-drev + .ap-drev { margin-top: 16px; }
.ap-stage .ap-drev-t { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ap-stage .ap-drev-t b { font-size: 16px; line-height: 24px; }
.ap-stage .ap-drev-t span { font-size: 14px; line-height: 20px; color: var(--n8); }
.ap-stage .ap-drev-d { display: flex; align-items: center; gap: 8px; flex: none; font-size: 16px; line-height: 24px; color: var(--n7); }
.ap-stage .ap-dmore-r { align-self: flex-start; width: 208px; height: 52px; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .ap-stage .ap-dk-lens { transition: none; } .ap-stage .ap-dd { animation: none; } }

/* ---------- /FPAPP apptech ---------- */

/* ---------- FPAPP nolorem ---------- */
/* ---------- Nolorem (2022) — desktop site rebuilt at 1440px inside a scaled browser frame ---------- */
/* needs Inter 500 (Google Fonts) */
.nl-dev.nl-dev { --ink: #151515; --g: #9e9e9e; --g2: #d6d6d6; --bg2: #f5f5f5; --green: #55cc95; --e: cubic-bezier(.22, 1, .36, 1); --e2: cubic-bezier(.65, 0, .35, 1);
  --s: .444; position: relative; width: 100%; max-width: 640px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 40px -18px rgba(0,0,0,.35); font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500; color: var(--ink); -webkit-font-smoothing: antialiased; text-align: left; line-height: normal; }
.nl-dev .nl-chrome { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; background: #ececea; border-bottom: 1px solid #deded9; }
.nl-dev .nl-chrome > i { width: 8px; height: 8px; border-radius: 50%; background: #d0d0cb; flex: none; }
.nl-dev .nl-url { flex: 1; display: flex; justify-content: center; min-width: 0; margin-right: 34px; }
.nl-dev .nl-url-t { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 12px; border-radius: 6px; background: #fff; font: 500 11px/14px "Inter", system-ui, sans-serif; color: #6b6b67; letter-spacing: 0; transition: opacity .3s; }
.nl-dev .nl-vpw { position: relative; overflow: hidden; height: calc(900px * var(--s)); }
.nl-dev .nl-vp { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform: scale(var(--s)); transform-origin: 0 0; overflow: hidden; background: #fff; }
.nl-dev .nl-lens { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1000ms var(--e2); will-change: transform; }
.nl-dev .nl-sc { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.nl-dev .nl-sc::-webkit-scrollbar { display: none; }
.nl-dev .nl-page { position: relative; background: #fff; }
.nl-dev .nl-page[hidden] { display: none; }
.nl-dev .nl-page > section, .nl-dev .nl-page > header { margin: 0; }
.nl-dev .nl-img { display: block; max-width: none; border: 0; border-radius: 0; margin: 0; }
.nl-dev .nl-g { color: var(--g); }
.nl-dev .nl-green { color: var(--green); }

/* type (Figma 1920 x .75) */
.nl-dev .nl-h1 { margin: 0; font: inherit; font-size: 72px; line-height: 82px; letter-spacing: -.05em; }
.nl-dev .nl-h2 { font-size: 45px; line-height: 50px; letter-spacing: -.05em; }
.nl-dev .nl-h3 { font-size: 30px; line-height: 34px; letter-spacing: -.05em; }
.nl-dev .nl-ln { display: block; overflow: hidden; padding-bottom: 4px; }
.nl-dev .nl-li { display: block; }
.nl-dev .nl-mask { display: block; overflow: hidden; padding-bottom: 3px; }
.nl-dev .nl-mi { display: block; transform: translateY(105%); transition: transform 900ms var(--e) var(--d, 0ms); }
.nl-dev .nl-mask.is-in .nl-mi { transform: none; }
.nl-dev .nl-lbl { position: relative; padding-left: 19px; font-size: 15px; line-height: 18px; letter-spacing: -.05em; text-transform: uppercase; }
.nl-dev .nl-dot { position: absolute; left: 0; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.nl-dev .nl-lbl-inv { color: #fff; }

/* generic reveal */
.nl-dev [data-rv]:not(.nl-mask) { opacity: 0; transform: translateY(40px); transition: opacity 800ms var(--e) var(--d, 0ms), transform 1000ms var(--e) var(--d, 0ms); }
.nl-dev [data-rv].is-in:not(.nl-mask) { opacity: 1; transform: none; }

/* pill button: fill rises from below on hover */
.nl-dev .nl-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; border: 2px solid var(--ink); border-radius: 50px; padding: 11px 24px; font-size: 18px; line-height: 18px; letter-spacing: -.05em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: color 450ms var(--e); }
.nl-dev .nl-btn-bg { position: absolute; left: -2px; right: -2px; top: 0; height: 100%; z-index: -1; border-radius: 50% 50% 0 0 / 60% 60% 0 0; background: var(--ink); transform: translateY(102%); transition: transform 550ms var(--e), border-radius 550ms var(--e); }
.nl-dev .nl-btn.is-hover { color: #fff; }
.nl-dev .nl-btn.is-hover .nl-btn-bg { transform: none; border-radius: 0; }
.nl-dev .nl-btn-t { position: relative; display: block; }
.nl-dev .nl-btn.is-press { transform: scale(.96); transition: transform 150ms ease, color 450ms var(--e); }

/* header */
.nl-dev .nl-hd { position: sticky; top: 0; z-index: 20; padding: 30px 75px 0; height: 95px; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transition: transform 900ms var(--e), color 400ms ease; }
.nl-dev .nl-hd-in { display: flex; align-items: center; height: 44px; }
.nl-dev .nl-logo { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.nl-dev .nl-logo-w { display: grid; gap: 3px; }
.nl-dev .nl-nav { display: flex; gap: 23px; font-size: 15px; line-height: 20px; letter-spacing: -.05em; }
.nl-dev .nl-nl { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nl-dev .nl-nl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 500ms var(--e); }
.nl-dev .nl-nl.is-hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nl-dev .nl-caret { transform: scaleY(-1); width: 9px; height: 10px; }
.nl-dev .nl-lang { margin: 0 32px 0 72px; font-size: 15px; letter-spacing: -.05em; }
.nl-dev .nl-hd.is-inv { color: #fff; background: rgba(21,21,21,.12); }
.nl-dev .nl-hd.is-inv .nl-logo, .nl-dev .nl-hd.is-inv .nl-caret { filter: invert(1); }
.nl-dev .nl-hd.is-inv .nl-btn { color: #fff; border-color: #fff; }
.nl-dev .nl-hd.is-inv .nl-btn-bg { background: #fff; }
.nl-dev .nl-hd.is-inv .nl-btn.is-hover { color: var(--ink); }

/* hero */
.nl-dev .nl-hero { padding-top: 150px; }
.nl-dev .nl-hero-top { display: flex; justify-content: space-between; padding: 0 75px; }
.nl-dev .nl-hero-top .nl-h1 { width: 903px; }
.nl-dev .nl-hero-side { width: 320px; margin-right: 3px; font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; }
.nl-dev .nl-media { position: relative; height: 600px; margin-top: 45px; overflow: hidden; }
.nl-dev .nl-media-in { position: absolute; inset: 0; clip-path: inset(var(--ci-y, 14%) var(--ci-x, 24%) round var(--ci-r, 14px)); }
.nl-dev .nl-media-img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--mz, 1.12)); animation: nlreel 14s ease-in-out infinite alternate; }
@keyframes nlreel { from { object-position: 50% 40%; } to { object-position: 50% 60%; } }
.nl-dev .nl-reel { position: absolute; left: 50%; bottom: calc(var(--ci-y, 14%) + 24px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; letter-spacing: -.03em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nl-dev .nl-reel i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a43; animation: nlblink 1.2s steps(2) infinite; }
@keyframes nlblink { 50% { opacity: .2; } }

/* page intro (load) */
.nl-dev .is-pre .nl-hd[data-intro] { transform: translateY(-100%); }
.nl-dev [data-intro] { transition: transform 1100ms var(--e) var(--d, 0ms), opacity 900ms var(--e) var(--d, 0ms); }
.nl-dev .is-pre .nl-li[data-intro] { transform: translateY(110%); }
.nl-dev .is-pre [data-intro]:not(.nl-li):not(.nl-hd) { opacity: 0; transform: translateY(30px); }

/* services */
.nl-dev .nl-svc { padding: 60px 75px; }
.nl-dev .nl-svc-top { display: flex; justify-content: space-between; }
.nl-dev .nl-circ { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; text-align: center; flex: none; }
.nl-dev .nl-svc-txt { width: 645px; }
.nl-dev .nl-svc-a, .nl-dev .nl-svc-b { line-height: 48px; }
.nl-dev .nl-svc-k { margin: 12px 0; }
.nl-dev .nl-kw { display: inline-block; transition: color 600ms ease; }
.nl-dev .nl-svc-k.is-in .nl-kw { animation: nlkw 2.4s ease 1 both; }
.nl-dev .nl-svc-k.is-in .nl-kw:nth-child(2) { animation-delay: .35s; }
.nl-dev .nl-svc-k.is-in .nl-kw:nth-child(3) { animation-delay: .7s; }
@keyframes nlkw { 0%, 100% { color: var(--g); } 30%, 55% { color: var(--ink); } }
.nl-dev .nl-cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.nl-dev .nl-col-ls { display: grid; gap: 3px; margin-top: 18px; font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; }
.nl-dev .nl-col-n { height: 76px; margin-top: 52px; overflow: hidden; }
.nl-dev .nl-col-nn { display: block; font-size: 72px; line-height: 76px; letter-spacing: -.05em; transform: translateY(100%); transition: transform 1000ms var(--e) calc(var(--d, 0ms) + 250ms); }
.nl-dev .nl-col.is-in .nl-col-nn { transform: none; }

/* agency */
.nl-dev .nl-bg2 { background: var(--bg2); }
.nl-dev .nl-agc { position: relative; padding: 120px 75px; }
.nl-dev .nl-agc .nl-lbl { position: absolute; top: 124px; left: 75px; }
.nl-dev .nl-fill { text-indent: 645px; line-height: 52px; }
.nl-dev .nl-w { color: var(--g2); transition: color 300ms ease; }
.nl-dev .nl-w.is-on { color: var(--ink); }
.nl-dev .nl-w.nl-wg.is-on { color: var(--g); }
.nl-dev .nl-agc-row { display: flex; margin-top: 110px; }
.nl-dev .nl-circ-sm { margin-top: 54px; }
.nl-dev .nl-agc-r { margin-left: 146px; flex: 1; }
.nl-dev .nl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 90px; }
.nl-dev .nl-stat { display: grid; gap: 15px; align-content: start; }
.nl-dev .nl-stat-n { font-size: 72px; line-height: 82px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.nl-dev .nl-stat-l { font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; }
.nl-dev .nl-agc-q { width: 840px; margin: 46px 0; font-size: 30px; line-height: 34px; letter-spacing: -.05em; }

/* office + marquees */
.nl-dev .nl-office { position: relative; height: 600px; overflow: hidden; }
.nl-dev .nl-office-ph { position: absolute; left: 0; right: 0; top: -90px; height: 780px; will-change: transform; }
.nl-dev .nl-office-img { width: 100%; height: 100%; object-fit: cover; }
.nl-dev .nl-mq { position: relative; overflow: hidden; white-space: nowrap; font-size: 45px; line-height: 50px; letter-spacing: -.05em; }
.nl-dev .nl-mq-t { display: inline-flex; animation: nlmq 38s linear infinite; }
.nl-dev .nl-mq-t > span { padding-right: 12px; }
@keyframes nlmq { to { transform: translateX(-50%); } }
.nl-dev .nl-office .nl-mq { position: absolute; left: 0; right: 0; color: #fff; }
.nl-dev .nl-mq-a { top: 240px; }
.nl-dev .nl-mq-b { top: 305px; }
.nl-dev .nl-mq-b .nl-mq-t { animation-direction: reverse; animation-duration: 44s; }

/* guidelines */
.nl-dev .nl-dark { background: var(--ink); color: #fff; }
.nl-dev .nl-gd { position: relative; padding: 120px 75px; min-height: 747px; }
.nl-dev .nl-gd .nl-lbl { position: absolute; top: 124px; left: 75px; }
.nl-dev .nl-gd-ls { margin-left: 645px; display: grid; gap: 60px; }
.nl-dev .nl-gd-i { position: relative; width: 300px; }
.nl-dev .nl-gd-n { position: absolute; left: -12px; top: -2px; font-size: 13px; line-height: 15px; vertical-align: baseline; }
.nl-dev .nl-gd-p { margin-top: 14px; font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; }
.nl-dev .nl-lnk { position: absolute; right: 75px; top: 120px; display: inline-flex; gap: 8px; align-items: flex-start; color: var(--green); font-size: 15px; line-height: 18px; letter-spacing: -.05em; text-transform: uppercase; border-bottom: 1px solid var(--green); padding-bottom: 2px; }

/* customers */
.nl-dev .nl-cus { position: relative; padding: 120px 0 105px; }
.nl-dev .nl-cus .nl-lbl { position: absolute; top: 124px; left: 75px; }
.nl-dev .nl-cus-c { position: absolute; right: 75px; top: 124px; font-size: 15px; letter-spacing: -.05em; }
.nl-dev .nl-cus-h { margin-left: 720px; line-height: 56px; }
.nl-dev .nl-cls { margin-top: 128px; overflow: hidden; }
.nl-dev .nl-cls-t { display: flex; width: max-content; animation: nlmq 34s linear infinite; }
.nl-dev .nl-cl { display: grid; place-items: center; width: 336px; height: 336px; margin-right: -14px; border: 1px solid rgba(21,21,21,.25); border-radius: 50%; flex: none; transition: background-color 400ms ease; }
.nl-dev .nl-ltxt { position: relative; display: block; width: 32px; height: 32px; overflow: hidden; }
.nl-dev .nl-ltxt-g { position: absolute; left: -41px; top: -29px; width: 76px; height: 112px; }
.nl-dev .nl-tst-row { display: flex; gap: 0; margin-top: 90px; padding-left: 75px; }
.nl-dev .nl-tst-row > .nl-btn { flex: none; align-self: flex-start; }
.nl-dev .nl-tst-vp { margin-left: 75px; overflow: hidden; flex: 1; }
.nl-dev .nl-tst { display: flex; gap: 60px; will-change: transform; }
.nl-dev .nl-tq { position: relative; width: 585px; flex: none; }
.nl-dev .nl-tq-img { width: 306px; height: 210px; object-fit: cover; }
.nl-dev .nl-tq-q { position: absolute; left: 322px; top: 132px; width: 20px; height: 20px; }
.nl-dev .nl-tq-h { position: absolute; left: 322px; top: 152px; width: 260px; font-size: 30px; line-height: 33px; letter-spacing: -.05em; }
.nl-dev .nl-tq-p { margin-top: 18px; font-size: 30px; line-height: 33px; letter-spacing: -.05em; }
.nl-dev .nl-tq-h + .nl-tq-p { margin-top: 0; padding-top: 2px; }
.nl-dev .nl-tq-n { margin-top: 26px; font-size: 15px; line-height: 18px; letter-spacing: -.05em; text-transform: uppercase; }
.nl-dev .nl-tq-r { font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; color: var(--g); }

/* works */
.nl-dev .nl-wks { padding: 120px 0 90px; }
.nl-dev .nl-wks > .nl-lbl { margin-left: 75px; }
.nl-dev .nl-mq-ink { margin-top: 32px; color: var(--ink); }
.nl-dev .nl-mq-ink .nl-mq-t { animation-duration: 30s; }
.nl-dev .nl-wks-cta { display: flex; justify-content: center; margin-top: 30px; }
.nl-dev .nl-wkl { margin: 45px 75px 0; }
.nl-dev .nl-wk { position: relative; display: grid; grid-template-columns: 1fr 645px; padding: 30px 0; border-top: 1px solid rgba(21,21,21,.3); }
.nl-dev .nl-wk:last-child { border-bottom: 1px solid rgba(21,21,21,.3); }
.nl-dev .nl-wk-l { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 40px; }
.nl-dev .nl-wk-n { font-size: 15px; line-height: 18px; }
.nl-dev .nl-wk-t { margin-top: 140px; font-size: 30px; line-height: 36px; letter-spacing: -.05em; }
.nl-dev .nl-wk-mac { margin-top: 26px; width: 150px; height: 187px; overflow: hidden; }
.nl-dev .nl-wk-mac-img { width: 150px; height: 187px; object-fit: cover; transition: transform 900ms var(--e); }
.nl-dev .nl-wk-d { width: 330px; margin-top: 30px; font-size: 15px; line-height: 19.5px; letter-spacing: -.05em; }
.nl-dev .nl-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: auto; }
.nl-dev .nl-tag { padding: 4px 12px; border: 1px solid var(--ink); border-radius: 40px; font-size: 12px; line-height: 14px; letter-spacing: -.05em; text-transform: uppercase; }
.nl-dev .nl-wk-r { width: 645px; height: 645px; overflow: hidden; background: #f3f3f3; }
.nl-dev .nl-wk-img { width: 645px; height: 645px; object-fit: cover; transition: transform 1200ms var(--e); }
.nl-dev .nl-wk-go { position: absolute; left: calc(100% - 645px - 56px); top: 270px; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--ink); transform: scale(.85); transition: transform 700ms var(--e); }
.nl-dev .nl-wk-ar { width: 26px; height: 26px; transition: transform 700ms var(--e); }
.nl-dev .nl-wk.is-hover .nl-wk-go { transform: scale(1.12); }
.nl-dev .nl-wk.is-hover .nl-wk-ar { transform: rotate(45deg); }
.nl-dev .nl-wk.is-hover .nl-wk-img { transform: scale(1.07); }
.nl-dev .nl-wk.is-hover .nl-wk-mac-img { transform: scale(1.12); }
.nl-dev .nl-wks-all { margin-top: 30px; }

/* inner page heads */
.nl-dev .nl-ph { padding: 18px 75px 90px; }
.nl-dev .nl-crumb { font-size: 11px; line-height: 14px; letter-spacing: -.03em; }
.nl-dev .nl-ph-h { margin-top: 60px; }
.nl-dev .nl-sup { font-size: 13px; line-height: 13px; vertical-align: top; margin-left: 6px; letter-spacing: 0; position: relative; top: 4px; }
.nl-dev .nl-ph-p { width: 600px; margin: 70px 0 0 645px; line-height: 48px; }
.nl-dev .nl-flt { display: flex; gap: 22px; margin: 48px 0 0; padding: 0 0 26px 4px; font-size: 15px; letter-spacing: -.05em; color: var(--g); }
.nl-dev .nl-fl.is-on { color: var(--green); }
.nl-dev .nl-ph .nl-wkl { margin: 0; }

/* contact */
.nl-dev .nl-ct { padding: 18px 75px 40px; }
.nl-dev .nl-ct-grid { display: grid; grid-template-columns: 645px 1fr; margin-top: 60px; }
.nl-dev .nl-ct-img { width: 306px; height: 210px; object-fit: cover; }
.nl-dev .nl-ct-h { line-height: 82px; }
.nl-dev .nl-form { position: relative; margin-top: 48px; }
.nl-dev .nl-fd { position: relative; display: block; height: 70px; margin: 0; cursor: default; }
.nl-dev .nl-fd-ta { height: 176px; }
.nl-dev .nl-fd-l { position: absolute; left: 0; top: 22px; font-size: 21px; line-height: 24px; letter-spacing: -.05em; transform-origin: 0 0; transition: transform 500ms var(--e), color 300ms; white-space: nowrap; }
.nl-dev .nl-fd-note { font-size: 15px; color: var(--g); }
.nl-dev .nl-fd.is-filled .nl-fd-l, .nl-dev .nl-fd.is-active .nl-fd-l { transform: translateY(-17px) scale(.62); }
.nl-dev .nl-in { position: absolute; left: 0; right: 0; top: 28px; height: 32px; padding: 0; border: 0; background: none; outline: 0; font: 500 21px/32px "Inter", system-ui, sans-serif; letter-spacing: -.04em; color: var(--ink); resize: none; }
.nl-dev .nl-ta { height: 130px; }
.nl-dev .nl-fd-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(21,21,21,.3); }
.nl-dev .nl-fd-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--e); }
.nl-dev .nl-fd.is-active .nl-fd-line::after, .nl-dev .nl-fd.is-filled .nl-fd-line::after { transform: scaleX(1); }
.nl-dev .nl-chk { display: flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 15px; letter-spacing: -.05em; }
.nl-dev .nl-chk-b { position: relative; width: 19px; height: 19px; border: 1px solid rgba(21,21,21,.3); border-radius: 2px; margin-right: 4px; transition: background-color 300ms, border-color 300ms; }
.nl-dev .nl-chk-b svg { position: absolute; inset: 1px; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 400ms var(--e) 120ms; }
.nl-dev .nl-chk.is-on .nl-chk-b { background: var(--ink); border-color: var(--ink); }
.nl-dev .nl-chk.is-on .nl-chk-b svg { stroke-dashoffset: 0; }
.nl-dev .nl-send { margin-top: 26px; padding-left: 50px; padding-right: 50px; }
.nl-dev .nl-send.is-sending { color: #fff; }
.nl-dev .nl-send.is-sending .nl-btn-bg { transform: none; border-radius: 0; }
.nl-dev .nl-sent { position: absolute; left: 0; right: 0; bottom: -6px; display: grid; gap: 4px; opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--e), transform 800ms var(--e); pointer-events: none; }
.nl-dev .nl-sent-h { font-size: 45px; line-height: 50px; letter-spacing: -.05em; }
.nl-dev .nl-sent-p { font-size: 15px; color: var(--g); letter-spacing: -.04em; }
.nl-dev .nl-form > .nl-fd, .nl-dev .nl-form > .nl-chk, .nl-dev .nl-form > .nl-btn { transition: opacity 500ms var(--e), transform 700ms var(--e); }
.nl-dev .nl-form.is-sent > .nl-fd, .nl-dev .nl-form.is-sent > .nl-chk, .nl-dev .nl-form.is-sent > .nl-btn { opacity: .12; }
.nl-dev .nl-form.is-sent .nl-sent { opacity: 1; transform: none; }
.nl-dev .nl-mq-dive { margin: 70px -75px 0; }
.nl-dev .nl-ct-foot { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 70px; }
.nl-dev .nl-clock { display: grid; justify-items: end; font-size: 15px; line-height: 18px; letter-spacing: -.04em; }
.nl-dev .nl-clock-t { color: var(--green); font-variant-numeric: tabular-nums; }
.nl-dev .nl-clock-l { color: var(--g); }

/* page transition curtain */
.nl-dev .nl-curtain { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--ink); color: #fff; transform: translateY(100%); pointer-events: none; }
.nl-dev .nl-curtain.is-cover { transform: none; transition: transform 650ms var(--e2); }
.nl-dev .nl-curtain.is-leave { transform: translateY(-100%); transition: transform 750ms var(--e2); }
.nl-dev .nl-curtain-t { font-size: 96px; line-height: 100px; letter-spacing: -.05em; overflow: hidden; }
.nl-dev .nl-curtain-t > span { display: block; transform: translateY(105%); transition: transform 600ms var(--e) 200ms; }
.nl-dev .nl-curtain.is-cover .nl-curtain-t > span { transform: none; }

/* instant state changes during reset */
.nl-dev.nl-noanim *, .nl-dev.nl-noanim *::before, .nl-dev.nl-noanim *::after { transition: none !important; }

@media (max-width: 480px) { .nl-dev.nl-dev { border-radius: 8px; } .nl-dev .nl-chrome { height: 22px; } .nl-dev .nl-chrome > i { width: 6px; height: 6px; } .nl-dev .nl-url-t { font-size: 9px; line-height: 12px; padding: 1px 8px; } }

@media (prefers-reduced-motion: reduce) {
  .nl-dev .nl-mq-t, .nl-dev .nl-cls-t, .nl-dev .nl-media-img, .nl-dev .nl-reel i, .nl-dev .nl-svc-k.is-in .nl-kw { animation: none; }
  .nl-dev .nl-lens { transition-duration: 300ms; }
  .nl-dev [data-rv], .nl-dev .nl-mi, .nl-dev [data-intro], .nl-dev .nl-col-nn, .nl-dev .nl-curtain, .nl-dev .nl-curtain-t > span { transition-duration: 200ms !important; transition-delay: 0ms !important; }
}

/* ---------- /FPAPP nolorem ---------- */

/* ---------- peeks as tiny trailers: real frames from each case, crossfading on the project's colour ---------- */
.pk-tr { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 100% at 50% 115%, var(--pk2), var(--pk) 70%); }
.pk-tr img { position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 84%; max-height: 86%; opacity: 0; transform: translate(-50%, -44%) scale(.95); filter: drop-shadow(0 10px 18px rgba(0,0,0,.28)); animation: pktr 4.8s cubic-bezier(.3, .7, .3, 1) infinite; will-change: auto; }
.pk-tr img:nth-child(2) { animation-delay: 1.6s; }
.pk-tr img:nth-child(3) { animation-delay: 3.2s; }
@keyframes pktr { 0% { opacity: 0; transform: translate(-50%, -42%) scale(.94); } 7%, 31% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 40%, 100% { opacity: 0; transform: translate(-50%, -57%) scale(1.02); } }
.th .pk-tr { position: relative; display: block; width: 100%; height: 100%; min-height: 64px; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { .pk-tr img { animation: none; } .pk-tr img:first-child { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- FPAPP concepts ---------- */
/* ---------- Concepts: Petsy (.pt-) + BreakIt (.qs-) watch-only phones ---------- */
/* Fonts (Google): both apps use Bricolage Grotesque 700/800 (display) + Plus Jakarta Sans 500/600/700/800 (body, tabular numbers) */

/* shared bezel: 390×844 screen in a 414×868 body, scaled by --s (set per instance in app.js) */
.fp-device:is(.pt-dev, .qs-dev) { --s: 1; width: calc(414px * var(--s)); height: calc(868px * var(--s)); }
:is(.pt-holder, .qs-holder) :is(.pt-phone, .qs-phone) { width: 414px; height: 868px; padding: 12px; border-radius: 56px; background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 5px #0d0d0e, 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); transform: scale(var(--s)); transform-origin: 0 0; }
:is(.pt-holder, .qs-holder) :is(.pt-scr-wrap, .qs-scr-wrap) { position: relative; width: 390px; height: 844px; overflow: hidden; border-radius: 44px; background: #fff; isolation: isolate; -webkit-font-smoothing: antialiased; text-align: left; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(button, input) { font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; text-align: inherit; appearance: none; -webkit-appearance: none; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(h2, h3, p, ul) { margin: 0; padding: 0; }
:is(.pt-scr-wrap, .qs-scr-wrap) img { display: block; max-width: none; }
:is(.pt-scr-wrap, .qs-scr-wrap) svg { display: block; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-island, .qs-island) { position: absolute; z-index: 30; left: 50%; top: 11px; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-status, .qs-status) { position: absolute; z-index: 29; inset: 0 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 34px; pointer-events: none; }
:is(.pt-status, .qs-status) :is(.pt-time, .qs-time) { font: 600 16px/20px -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.3px; color: #000; }
:is(.pt-status, .qs-status) img { filter: brightness(0); }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-ind, .qs-ind) { position: absolute; z-index: 40; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111322; pointer-events: none; }

/* screens + push transitions (same for both apps) */
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-scr, .qs-scr) { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-scr, .qs-scr):not(.on) { display: none; }
:is(.pt-scr, .qs-scr).cx-in { animation: cxin 420ms cubic-bezier(.3, .9, .3, 1) both; z-index: 2; }
:is(.pt-scr, .qs-scr).cx-out { display: flex !important; animation: cxout 420ms cubic-bezier(.3, .9, .3, 1) both; z-index: 1; }
:is(.pt-scr, .qs-scr).cx-inb { animation: cxinb 380ms cubic-bezier(.3, .9, .3, 1) both; z-index: 1; }
:is(.pt-scr, .qs-scr).cx-outb { display: flex !important; animation: cxoutb 380ms cubic-bezier(.3, .9, .3, 1) both; z-index: 2; }
:is(.pt-scr, .qs-scr).cx-stay { display: flex !important; z-index: 1; }
:is(.pt-scr, .qs-scr).cx-up { animation: cxup 440ms cubic-bezier(.3, .9, .3, 1) both; z-index: 2; }
:is(.pt-scr, .qs-scr).cx-down { display: flex !important; animation: cxdown 360ms cubic-bezier(.4, 0, .6, 1) both; z-index: 2; }
@keyframes cxin { from { transform: translateX(100%); } }
@keyframes cxout { to { transform: translateX(-28%); filter: brightness(.94); } }
@keyframes cxinb { from { transform: translateX(-28%); filter: brightness(.94); } }
@keyframes cxoutb { to { transform: translateX(100%); } }
@keyframes cxup { from { transform: translateY(100%); } }
@keyframes cxdown { to { transform: translateY(100%); } }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-body, .qs-body) { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
:is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-body, .qs-body)::-webkit-scrollbar { display: none; }

/* ================= PETSY (redesign) ================= */
/* palette: brand #FF5A36 (surfaces, blobs) · action #D63A1E (white text 4.7:1) · sun #FFC83D · mint #5FD3A9 · ink #1B1512 · body #5B524D · muted #6E645F */
.pt-holder .pt-scr-wrap { --red: #FF5A36; --act: #D63A1E; --act-d: #B92E15; --sun: #FFC83D; --mint: #5FD3A9; --ink: #1B1512; --bd: #5B524D; --mu: #6E645F; --sf: #FFF6F1; --ln: #F1E8E3; --spring: cubic-bezier(.3, 1.5, .5, 1); font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); font-size: 14px; line-height: 20px; }
.pt-scr-wrap .pt-pad { padding-left: 20px; padding-right: 20px; }
.pt-scr-wrap .pt-d1 { font: 800 38px/40px "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing: -1.4px; color: var(--ink); text-wrap: balance; }
.pt-scr-wrap .pt-d2 { font: 800 32px/36px "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing: -1px; color: var(--ink); text-wrap: balance; }
.pt-scr-wrap .pt-h3 { font: 700 22px/28px "Bricolage Grotesque", sans-serif; letter-spacing: -.5px; color: var(--ink); }
.pt-scr-wrap .pt-h5 { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; font: 700 15px/20px "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.pt-scr-wrap .pt-hint { font-weight: 600; font-size: 12px; color: var(--act); }
.pt-scr-wrap .pt-lead { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--bd); }
.pt-scr-wrap .pt-p { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--bd); }
.pt-scr-wrap .pt-label { display: block; margin: 20px 0 8px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink); }
.pt-scr-wrap .pt-tiny { font-size: 12px; line-height: 18px; color: var(--mu); text-align: center; }
.pt-scr-wrap .pt-tiny a { color: var(--act); font-weight: 600; }
.pt-scr-wrap .pt-tiny.pt-l { text-align: left; margin-top: 16px; }
.pt-scr-wrap .pt-top { display: flex; align-items: center; justify-content: space-between; padding: 60px 20px 8px; flex: none; }
.pt-scr-wrap .pt-top { position: relative; z-index: 2; background: #fff; }
.pt-addrem .pt-ar-head .pt-top { background: none; }
.pt-scr-wrap .pt-back, .pt-scr-wrap .pt-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 4px 12px rgba(27,21,18,.06); flex: none; }
.pt-scr-wrap .pt-back svg, .pt-scr-wrap .pt-iconbtn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pt-scr-wrap .pt-iconbtn i { position: absolute; right: 10px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.pt-scr-wrap .pt-stepchip { padding: 6px 12px; border-radius: 99px; background: var(--sf); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--bd); }
.pt-scr-wrap .pt-wordmark { display: inline-flex; align-items: center; gap: 8px; font: 800 20px/24px "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; color: var(--ink); }
.pt-scr-wrap .pt-wordmark img { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--red); box-sizing: border-box; }

/* buttons: solid, inner highlight, coloured drop */
.pt-scr-wrap .pt-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 18px; background: var(--act); color: #fff; font-weight: 700; font-size: 16px; line-height: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.12), 0 8px 18px -8px rgba(214,58,30,.7); transition: background-color 200ms, box-shadow 200ms, transform 220ms var(--spring); }
.pt-scr-wrap .pt-btn:active, .pt-scr-wrap .pt-btn.press { transform: scale(.96); }
.pt-scr-wrap .pt-btn:disabled { background: #EFE7E2; color: #6E645F; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.pt-scr-wrap .pt-btn.pt-ink { background: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 18px -8px rgba(27,21,18,.6); }
.pt-scr-wrap .pt-btn.pt-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ln), 0 2px 6px rgba(27,21,18,.04); }
.pt-scr-wrap .pt-btn.pt-wide { width: 100%; }
.pt-scr-wrap .pt-btn .pt-ic, .pt-scr-wrap .pt-arr { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pt-scr-wrap .pt-foot { flex: none; padding: 12px 20px 42px; background: linear-gradient(rgba(255,255,255,0), #fff 18px); }
.pt-scr-wrap .pt-spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: ptspin 700ms linear infinite; }
.pt-scr-wrap .pt-btn.busy span { display: none; } .pt-scr-wrap .pt-btn.busy .pt-spin { display: block; }
@keyframes ptspin { to { transform: rotate(360deg); } }

/* stickers */
.pt-scr-wrap .pt-sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; background: var(--sun); color: var(--ink); font: 800 14px/18px "Bricolage Grotesque", sans-serif; letter-spacing: -.2px; white-space: nowrap; transform: rotate(var(--r, -4deg)); box-shadow: 0 0 0 3px #fff, 0 10px 20px -8px rgba(27,21,18,.35); }
.pt-scr-wrap .pt-sticker.pt-st-w { background: #fff; box-shadow: 0 10px 24px -8px rgba(27,21,18,.3), 0 0 0 1px var(--ln); }
.pt-scr-wrap .pt-sticker.pt-st-r { background: var(--act); color: #fff; }
.pt-scr-wrap .pt-sticker svg { width: 16px; height: 16px; }
.pt-scr-wrap .pt-star { fill: #F5A300; }

/* intro */
.pt-intro .pt-intro-top { position: absolute; z-index: 5; left: 20px; right: 20px; top: 58px; display: flex; justify-content: space-between; align-items: center; }
.pt-intro .pt-skip { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.85); font-weight: 700; font-size: 14px; color: var(--ink); box-shadow: 0 0 0 1px var(--ln); }
.pt-intro .pt-stage { position: absolute; left: 0; right: 0; top: 96px; height: 420px; overflow: hidden; }
.pt-intro .pt-track, .pt-intro .pt-track2 { display: flex; transition: transform 640ms cubic-bezier(.3, .9, .3, 1); }
.pt-intro[data-slide="1"] :is(.pt-track, .pt-track2) { transform: translateX(-390px); }
.pt-intro[data-slide="2"] :is(.pt-track, .pt-track2) { transform: translateX(-780px); }
.pt-intro .pt-slide { position: relative; width: 390px; height: 420px; flex: none; }
.pt-intro .pt-blob { position: absolute; left: 45px; top: 40px; width: 300px; height: 330px; background: var(--blob); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: inset 0 -16px 32px rgba(0,0,0,.08), inset 0 10px 24px rgba(255,255,255,.25); }
.pt-intro .pt-cut { position: absolute; left: 50%; bottom: 30px; height: 360px; width: auto; transform: translateX(-50%); filter: drop-shadow(0 18px 16px rgba(27,21,18,.18)); }
.pt-intro .pt-slide .pt-sticker { transform: rotate(var(--r)) scale(.4); opacity: 0; transition: transform 520ms var(--spring) 260ms, opacity 200ms 260ms; }
.pt-intro[data-slide="0"] .pt-slide:nth-child(1) .pt-sticker, .pt-intro[data-slide="1"] .pt-slide:nth-child(2) .pt-sticker, .pt-intro[data-slide="2"] .pt-slide:nth-child(3) .pt-sticker { transform: rotate(var(--r)); opacity: 1; }
.pt-intro .pt-copy { position: absolute; left: 0; right: 0; top: 528px; overflow: hidden; }
.pt-intro .pt-ct { width: 390px; flex: none; padding: 0 24px; box-sizing: border-box; }
.pt-intro .pt-intro-foot { position: absolute; left: 24px; right: 24px; bottom: 48px; display: flex; justify-content: space-between; align-items: center; }
.pt-intro .pt-dots { display: flex; gap: 6px; }
.pt-intro .pt-dots i { width: 8px; height: 8px; border-radius: 4px; background: #E6DCD6; transition: width 300ms var(--spring), background-color 300ms; }
.pt-intro[data-slide="0"] .pt-dots i:nth-child(1), .pt-intro[data-slide="1"] .pt-dots i:nth-child(2), .pt-intro[data-slide="2"] .pt-dots i:nth-child(3) { width: 28px; background: var(--act); }
.pt-intro .pt-next { padding: 0 20px 0 26px; white-space: nowrap; }

/* add pet */
.pt-addpet .pt-body { padding-top: 12px; padding-bottom: 16px; }
.pt-addpet .pt-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.pt-addpet .pt-kind { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 0 10px; border-radius: 20px; background: var(--sf); transition: background-color 220ms, transform 380ms var(--spring), box-shadow 220ms; }
.pt-addpet .pt-kind img { width: 42px; height: 42px; transform: scaleY(-1); transition: transform 380ms var(--spring); }
.pt-addpet .pt-kind span { font-size: 13px; line-height: 16px; font-weight: 700; color: var(--bd); }
.pt-addpet .pt-kind.on { background: var(--sun); transform: translateY(-4px) rotate(-3deg); box-shadow: 0 12px 20px -10px rgba(180,120,0,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.pt-addpet .pt-kind.on img { transform: scaleY(-1) scale(1.12); }
.pt-addpet .pt-kind.on span { color: var(--ink); }
.pt-scr-wrap .pt-field { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 56px; padding: 0 18px; border-radius: 18px; border: 0 !important; background: var(--sf) !important; font-size: 16px; font-weight: 600; color: var(--ink); box-sizing: border-box; outline: 0; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms, background-color 200ms; }
.pt-scr-wrap .pt-field::placeholder, .pt-scr-wrap .pt-field .pt-ph { color: #8A7F79; font-weight: 500; }
.pt-scr-wrap .pt-field svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pt-scr-wrap .pt-field.focus { background: #fff !important; box-shadow: inset 0 0 0 2px var(--act), 0 0 0 4px #FFE3DA; }
.pt-addpet .pt-namew { position: relative; }
.pt-addpet .pt-paw-ic { position: absolute; right: 18px; top: 18px; width: 20px; height: 20px; fill: #E6DCD6; transition: fill 200ms, transform 380ms var(--spring); }
.pt-addpet .pt-name.focus + .pt-paw-ic { fill: var(--red); transform: rotate(-14deg) scale(1.15); }
.pt-addpet .pt-drop { position: relative; z-index: 3; }
.pt-addpet .pt-menu { position: absolute; left: 0; right: 0; top: 62px; list-style: none; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(27,21,18,.16), 0 0 0 1px var(--ln); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 50% 0; visibility: hidden; transition: opacity 180ms, transform 260ms var(--spring), visibility 0s 260ms; }
.pt-addpet .pt-drop.open .pt-menu { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms, transform 260ms var(--spring); }
.pt-addpet .pt-menu button { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.pt-addpet .pt-menu button.hl { background: #FFEDE6; color: var(--act-d); }
.pt-addpet .pt-row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.pt-scr-wrap .pt-seg { display: flex; padding: 4px; border-radius: 16px; background: var(--sf); }
.pt-scr-wrap .pt-seg span { flex: 1; padding: 10px 0; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; color: var(--mu); }
.pt-scr-wrap .pt-seg span.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(27,21,18,.08); }

/* register */
.pt-reg .pt-reg-hero { position: relative; height: 470px; border-radius: 0 0 44px 44px; background: radial-gradient(120% 80% at 70% 10%, #FF7A4F, var(--red) 60%); overflow: hidden; box-shadow: inset 0 -20px 40px rgba(0,0,0,.08); }
.pt-reg .pt-wm-w { position: absolute; left: 24px; top: 62px; color: #fff; }
.pt-reg .pt-wm-w img { background: var(--act); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.pt-reg .pt-reg-ring { position: absolute; left: 50%; top: 120px; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 -14px 30px rgba(0,0,0,.08); }
.pt-reg .pt-reg-cut { position: absolute; left: 50%; bottom: -6px; height: 340px; transform: translateX(-50%); filter: drop-shadow(0 16px 16px rgba(27,21,18,.2)); }
.pt-reg .pt-reg-pet { left: 24px; top: 150px; }
.pt-reg .pt-reg-pet svg { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-reg .pt-reg-body { padding: 28px 24px 0; }
.pt-reg .pt-reg-actions { position: absolute; left: 20px; right: 20px; bottom: 40px; display: grid; gap: 12px; }
.pt-reg .pt-dim { position: absolute; inset: 0; z-index: 5; background: rgba(27,21,18,.42); opacity: 0; visibility: hidden; transition: opacity 260ms, visibility 0s 260ms; }
.pt-reg .pt-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6; display: grid; gap: 10px; padding: 12px 16px 36px; border-radius: 36px; background: #fff; transform: translateY(110%); transition: transform 460ms var(--spring); }
.pt-reg.sheet .pt-dim { opacity: 1; visibility: visible; transition: opacity 260ms; }
.pt-reg.sheet .pt-sheet { transform: none; }
.pt-reg .pt-grab { justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: #E6DCD6; }
.pt-reg .pt-sheet-h { margin: 8px 0 6px; text-align: center; font: 800 20px/24px "Bricolage Grotesque", sans-serif; letter-spacing: -.4px; }
.pt-reg .pt-soc { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; border-radius: 18px; background: var(--sf) !important; font-size: 15px; font-weight: 700; transition: background-color 150ms, transform 260ms var(--spring); }
.pt-reg .pt-soc.hl { background: #FFE3DA !important; transform: scale(.97); }

/* home */
.pt-home::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 54px; background: linear-gradient(#fff 70%, rgba(255,255,255,0)); pointer-events: none; }
.pt-home .pt-home-in { padding-top: 60px; padding-bottom: 120px; }
.pt-home .pt-home-top { display: flex; align-items: center; gap: 12px; }
.pt-home .pt-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--sun); overflow: hidden; flex: none; box-shadow: inset 0 -4px 8px rgba(0,0,0,.06); }
.pt-home .pt-ava img { width: 48px; height: auto; margin-top: 4px; }
.pt-home .pt-hello { flex: 1; display: grid; }
.pt-home .pt-hello small { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--mu); }
.pt-home .pt-hello b { font: 800 22px/26px "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; }
.pt-home .pt-hero { position: relative; height: 176px; margin-top: 20px; border-radius: 28px; background: var(--act); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 30px -18px rgba(214,58,30,.8); }
.pt-home .pt-hero-tx { position: relative; z-index: 2; padding: 22px 0 0 22px; color: #fff; }
.pt-home .pt-hero-tx small { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; opacity: .9; }
.pt-home .pt-hero-tx h3 { margin-top: 4px; font: 800 28px/30px "Bricolage Grotesque", sans-serif; letter-spacing: -.9px; }
.pt-home .pt-hero-tx p { margin-top: 6px; font-size: 14px; font-weight: 600; }
.pt-home .pt-hero-tx .pt-sticker { position: relative; margin-top: 14px; }
.pt-home .pt-hero-blob { position: absolute; right: -40px; top: -30px; width: 210px; height: 230px; border-radius: 50%; background: var(--red); }
.pt-home .pt-hero-cut { position: absolute; right: 6px; bottom: -14px; height: 190px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.pt-home .pt-sec { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 0; }
.pt-home .pt-secsub { margin: 2px 0 14px; font-size: 13px; color: var(--mu); }
.pt-home .pt-sec + .pt-vrail { margin-top: 14px; }
.pt-home .pt-add { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); transition: transform 260ms var(--spring); }
.pt-home .pt-add svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.pt-home .pt-seeall { font-size: 14px; font-weight: 700; color: var(--act); }
.pt-home .pt-rems { display: grid; gap: 10px; }
.pt-scr-wrap .pt-rem { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 6px 16px -10px rgba(27,21,18,.18); }
.pt-scr-wrap .pt-rem > div { flex: 1; display: grid; }
.pt-scr-wrap .pt-rem b { font-weight: 700; font-size: 16px; line-height: 22px; }
.pt-scr-wrap .pt-rem span { font-size: 13px; line-height: 18px; color: var(--mu); }
.pt-scr-wrap .pt-rico { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); position: relative; flex: none; }
.pt-scr-wrap .pt-rico::after { content: ""; position: absolute; inset: 14px; background: var(--ic); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.pt-scr-wrap .pt-badge { font-style: normal; padding: 4px 10px; border-radius: 99px; background: var(--sf); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--bd); white-space: nowrap; }
.pt-scr-wrap .pt-badge.pt-now { background: var(--act); color: #fff; transform: rotate(-4deg); box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(214,58,30,.7); }
.pt-scr-wrap .pt-badge.pt-tmr { background: var(--sun); color: var(--ink); transform: rotate(3deg); box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgba(180,120,0,.6); }
.pt-home .pt-rem.new { animation: ptnew 900ms var(--spring) both; }
@keyframes ptnew { from { opacity: 0; transform: translateY(-16px) scale(.9) rotate(-2deg); } }
.pt-home .pt-vrail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-home .pt-vcard { display: grid; padding: 10px 10px 14px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 8px 20px -12px rgba(27,21,18,.2); }
.pt-home .pt-vblob { height: 120px; border-radius: 18px; background: var(--blob); overflow: hidden; margin-bottom: 10px; }
.pt-home .pt-vblob img { width: 200px; height: auto; margin: 2px 0 0 -18px; }
.pt-home .pt-vcard b { font-size: 14px; line-height: 18px; font-weight: 700; }
.pt-home .pt-vcard span { font-size: 12px; color: var(--mu); }
.pt-home .pt-club { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding: 16px 4px 16px 20px; border-radius: 24px; background: #E3F8EF; }
.pt-home .pt-club div { display: grid; gap: 4px; }
.pt-home .pt-club b { font: 800 18px/22px "Bricolage Grotesque", sans-serif; letter-spacing: -.4px; }
.pt-home .pt-club span { font-size: 13px; line-height: 18px; color: #0B5E43; }
.pt-home .pt-club img { width: 120px; height: auto; transform: scaleX(-1); }
.pt-home .pt-tabs { position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 4; display: flex; justify-content: space-between; height: 64px; padding: 0 10px; align-items: center; border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 0 0 1px var(--ln), 0 14px 30px -10px rgba(27,21,18,.25); }
.pt-home .pt-tab { display: grid; justify-items: center; gap: 2px; width: 72px; font-size: 12px; line-height: 14px; font-weight: 700; color: var(--mu); }
.pt-home .pt-tab i { width: 24px; height: 24px; background: var(--mu); -webkit-mask: var(--m) center / 21px 21px no-repeat; mask: var(--m) center / 21px 21px no-repeat; }
.pt-home .pt-tab.on { color: var(--act); } .pt-home .pt-tab.on i { background: var(--act); }
.pt-scr-wrap .pt-toast { position: absolute; z-index: 8; left: 50%; top: 56px; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; line-height: 20px; font-weight: 700; white-space: nowrap; opacity: 0; transform: translate(-50%, -140px); transition: transform 520ms var(--spring), opacity 200ms; }
.pt-scr-wrap .pt-toast svg { width: 18px; height: 18px; fill: var(--sun); }
.pt-scr-wrap .pt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* bursts (paws + hearts) */
.pt-scr-wrap .pt-burst { position: absolute; z-index: 50; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; }
.pt-scr-wrap .pt-burst svg { width: 100%; height: 100%; }

/* add reminder */
.pt-addrem .pt-ar-head { position: relative; height: 300px; background: radial-gradient(90% 80% at 80% 100%, #FFD866, var(--sun)); border-radius: 0 0 40px 40px; overflow: hidden; }
.pt-addrem .pt-ar-head .pt-top { position: relative; z-index: 2; }
.pt-addrem .pt-ar-title, .pt-addrem .pt-ar-sub { position: relative; z-index: 2; padding: 0 20px; }
.pt-addrem .pt-ar-title { margin-top: 8px; }
.pt-addrem .pt-ar-sub { margin-top: 4px; font-size: 14px; font-weight: 600; color: #5A4300; }
.pt-addrem .pt-mug { position: absolute; right: -14px; bottom: -18px; width: 210px; height: 210px; }
.pt-addrem .pt-ar-title.pop { animation: ptpop 420ms var(--spring); }
@keyframes ptpop { from { transform: scale(.85) rotate(-2deg); opacity: .4; } }
.pt-addrem .pt-ar { padding-bottom: 24px; }
.pt-addrem .pt-pets { display: flex; gap: 10px; }
.pt-addrem .pt-pet { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 6px; border-radius: 99px; background: var(--sf) !important; font-size: 14px; font-weight: 700; color: var(--bd); transition: background-color 200ms, color 200ms, transform 380ms var(--spring), box-shadow 200ms; }
.pt-addrem .pt-pet span { width: 36px; height: 36px; border-radius: 50%; background: var(--b); overflow: hidden; }
.pt-addrem .pt-pet img { width: 36px; height: auto; margin-top: 3px; }
.pt-addrem .pt-pet.on { background: var(--ink) !important; color: #fff; transform: scale(1.04); box-shadow: 0 8px 16px -8px rgba(27,21,18,.6); }
.pt-addrem .pt-cats { display: flex; justify-content: space-between; }
.pt-addrem .pt-cat { display: grid; justify-items: center; gap: 8px; width: 62px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--bd); }
.pt-addrem .pt-cat i { width: 60px; height: 60px; border-radius: 20px; background: var(--sf); position: relative; transition: background-color 200ms, box-shadow 200ms, transform 420ms var(--spring); }
.pt-addrem .pt-cat i::after { content: ""; position: absolute; inset: 18px; background: var(--bd); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color 200ms; }
.pt-addrem .pt-cat.on { color: var(--ink); }
.pt-addrem .pt-cat.on i { background: var(--act); transform: translateY(-4px) rotate(-6deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 18px -8px rgba(214,58,30,.7); }
.pt-addrem .pt-cat.on i::after { background: #fff; }
.pt-addrem .pt-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pt-addrem .pt-day { display: grid; justify-items: center; padding: 10px 0; border-radius: 18px; background: var(--sf); transition: background-color 200ms, color 200ms, transform 380ms var(--spring); }
.pt-addrem .pt-day small { font-size: 12px; font-weight: 700; color: var(--mu); }
.pt-addrem .pt-day b { font: 800 22px/26px "Bricolage Grotesque", sans-serif; }
.pt-addrem .pt-day span { font-size: 12px; font-weight: 600; color: var(--mu); }
.pt-addrem .pt-day.on { background: var(--ink); color: #fff; transform: translateY(-2px); }
.pt-addrem .pt-day.on :is(small, span) { color: rgba(255,255,255,.8); }
.pt-addrem .pt-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pt-addrem .pt-tm { height: 44px; border-radius: 14px; background: var(--sf) !important; text-align: center; font-size: 14px; font-weight: 700; color: var(--bd); transition: background-color 200ms, color 200ms, transform 380ms var(--spring); }
.pt-addrem .pt-tm.on { background: var(--act) !important; color: #fff; transform: scale(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 14px -6px rgba(214,58,30,.6); }
.pt-addrem .pt-notify { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 16px; border-radius: 20px; background: #E3F8EF; }
.pt-addrem .pt-notify div { display: grid; }
.pt-addrem .pt-notify b { font-size: 14px; font-weight: 700; }
.pt-addrem .pt-notify span:not(.pt-tog) { font-size: 12px; color: #0B5E43; }
.pt-addrem .pt-tog { width: 48px; height: 28px; border-radius: 14px; background: #138A63; position: relative; flex: none; }
.pt-addrem .pt-tog i { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.pt-addrem .pt-note { padding: 14px 16px; border-radius: 18px; background: var(--sf); font-size: 14px; line-height: 22px; color: var(--bd); }

/* vets */
.pt-vets .pt-fchips { display: flex; gap: 8px; margin: 20px -20px 16px 0; overflow: hidden; }
.pt-vets .pt-fchips span { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--sf); font-size: 13px; font-weight: 700; color: var(--bd); }
.pt-vets .pt-fchips span.on { background: var(--ink); color: #fff; }
.pt-vets .pt-vlist { display: grid; gap: 12px; padding-bottom: 40px; }
.pt-scr-wrap .pt-v { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 8px 20px -12px rgba(27,21,18,.2); transition: transform 260ms var(--spring); }
.pt-scr-wrap .pt-v.press { transform: scale(.97); }
.pt-scr-wrap .pt-vpic { width: 72px; height: 72px; border-radius: 20px; background: var(--b); overflow: hidden; flex: none; }
.pt-scr-wrap .pt-vpic img { width: 124px; height: auto; margin: 4px 0 0 -26px; }
.pt-scr-wrap .pt-vtx { display: grid; flex: 1; }
.pt-scr-wrap .pt-vtx b { font-weight: 700; font-size: 15px; line-height: 20px; }
.pt-scr-wrap .pt-vtx > span { font-size: 12px; line-height: 18px; color: var(--mu); }
.pt-scr-wrap .pt-vtx .pt-vm { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; color: var(--bd); }
.pt-scr-wrap .pt-on, .pt-scr-wrap .pt-off { width: 8px; height: 8px; border-radius: 50%; background: #17B27E; box-shadow: 0 0 0 3px #D7F5E8; }
.pt-scr-wrap .pt-off { background: #C9BEB8; box-shadow: 0 0 0 3px var(--sf); }
.pt-scr-wrap .pt-rate { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 4px; padding: 4px 8px; border-radius: 10px; background: var(--sun); font: 800 13px/16px "Bricolage Grotesque", sans-serif; font-style: normal; transform: rotate(4deg); box-shadow: 0 0 0 2px #fff, 0 4px 8px -4px rgba(180,120,0,.6); }
.pt-scr-wrap .pt-rate svg { width: 12px; height: 12px; fill: var(--ink); }
.pt-vets .pt-skel { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ln); }
.pt-vets .pt-skel i, .pt-vets .pt-skel b { display: block; border-radius: 8px; background: linear-gradient(90deg, #F6EEEA 25%, #FFF7F3 50%, #F6EEEA 75%) 0 0 / 300% 100%; animation: ptsk 1.2s linear infinite; }
.pt-vets .pt-skel i { width: 72px; height: 72px; border-radius: 20px; }
.pt-vets .pt-skel span { display: grid; gap: 8px; flex: 1; }
.pt-vets .pt-skel b { height: 12px; width: 70%; } .pt-vets .pt-skel b + b { width: 45%; }
.pt-vets .pt-vlist.loading .pt-v { display: none; }
.pt-vets .pt-vlist:not(.loading) .pt-skel { display: none; }
.pt-vets .pt-vlist:not(.loading) .pt-v { animation: ptrise 520ms var(--spring) both; }
.pt-vets .pt-vlist:not(.loading) .pt-v:nth-child(2) { animation-delay: 70ms; } .pt-vets .pt-vlist:not(.loading) .pt-v:nth-child(3) { animation-delay: 140ms; }
@keyframes ptrise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ptsk { to { background-position: -300% 0; } }

/* vet profile */
.pt-vet .pt-vhero { position: relative; height: 380px; background: #fff; overflow: hidden; }
.pt-vet .pt-vhero-blob { position: absolute; left: -40px; right: -40px; top: -60px; height: 420px; border-radius: 0 0 50% 50%; background: radial-gradient(90% 70% at 50% 30%, #8BE3C3, var(--mint)); }
.pt-vet .pt-vhero img { position: absolute; left: -100px; top: 70px; width: 560px; height: auto; }
.pt-vet .pt-back-w { position: absolute; left: 20px; top: 60px; }
.pt-vet .pt-vh-st { right: 22px; top: 130px; }
.pt-vet .pt-vinfo { padding-top: 16px; padding-bottom: 24px; }
.pt-vet .pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.pt-vet .pt-stats div { display: grid; padding: 12px 14px; border-radius: 20px; background: var(--sf); }
.pt-vet .pt-stats div:first-child { background: var(--sun); }
.pt-vet .pt-stats b { font: 800 26px/30px "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; }
.pt-vet .pt-stats span { font-size: 12px; font-weight: 600; color: var(--bd); }
.pt-vet .pt-irow { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.pt-vet .pt-irow > div { display: grid; }
.pt-vet .pt-irow b { font-weight: 700; font-size: 15px; }
.pt-vet .pt-irow span { font-size: 13px; color: var(--mu); }
.pt-vet .pt-iic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: #FFEDE6; flex: none; }
.pt-vet .pt-iic svg { width: 20px; height: 20px; fill: none; stroke: var(--act); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-vet .pt-review { display: grid; gap: 8px; margin-bottom: 10px; padding: 16px; border-radius: 22px; background: var(--sf); }
.pt-vet .pt-review b { font: 700 16px/22px "Bricolage Grotesque", sans-serif; letter-spacing: -.2px; }
.pt-vet .pt-review span { font-size: 12px; font-weight: 600; color: var(--mu); }

/* appointment + review */
.pt-scr-wrap .pt-vmini { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 24px; background: var(--sf); }
.pt-scr-wrap .pt-vmini > div { display: grid; }
.pt-scr-wrap .pt-vmini b { font-weight: 700; font-size: 16px; }
.pt-scr-wrap .pt-vmini span:not(.pt-vpic) { font-size: 13px; color: var(--mu); }
.pt-scr-wrap .pt-vmini .pt-vpic { width: 56px; height: 56px; border-radius: 18px; }
.pt-scr-wrap .pt-vmini .pt-vpic img { width: 100px; margin-left: -22px; }
.pt-appt .pt-body { padding-top: 8px; padding-bottom: 24px; }
.pt-appt .pt-dates { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pt-appt .pt-dt { display: grid; justify-items: center; padding: 8px 0 10px; border-radius: 18px; background: var(--sf); transition: background-color 200ms, transform 380ms var(--spring); }
.pt-appt .pt-dt small { font-size: 12px; font-weight: 700; color: var(--mu); }
.pt-appt .pt-dt b { font: 800 22px/26px "Bricolage Grotesque", sans-serif; color: var(--ink); }
.pt-appt .pt-dt:disabled { opacity: .45; }
.pt-appt .pt-dt.on { background: var(--act); transform: translateY(-3px) rotate(-3deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 16px -8px rgba(214,58,30,.7); }
.pt-appt .pt-dt.on :is(small, b) { color: #fff; }
.pt-appt .pt-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-appt .pt-sl { height: 46px; border-radius: 16px; background: var(--sf) !important; text-align: center; font-size: 15px; font-weight: 700; transition: background-color 200ms, color 200ms, transform 380ms var(--spring); }
.pt-appt .pt-sl:disabled { color: #9E928B; text-decoration: line-through; background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--ln); }
.pt-appt .pt-sl.on { background: var(--ink) !important; color: #fff; transform: scale(1.06); }
.pt-scr-wrap .pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-scr-wrap .pt-chips > * { padding: 10px 16px; border-radius: 99px; background: var(--sf) !important; font-size: 13px; font-weight: 700; color: var(--bd); transition: background-color 200ms, color 200ms, transform 380ms var(--spring); }
.pt-scr-wrap .pt-chips > .on { background: var(--sun) !important; color: var(--ink); transform: rotate(-2deg) scale(1.05); box-shadow: 0 6px 12px -6px rgba(180,120,0,.6); }
.pt-appt .pt-vt > .on { background: var(--ink) !important; color: #fff; box-shadow: none; }
.pt-appt .pt-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-appt .pt-pm { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 22px; background: var(--sf) !important; transition: box-shadow 200ms, transform 380ms var(--spring); }
.pt-appt .pt-pm svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 10px; }
.pt-appt .pt-pm b { font-weight: 700; font-size: 14px; }
.pt-appt .pt-pm span { font-size: 12px; color: var(--mu); }
.pt-appt .pt-pm.on { background: #fff !important; box-shadow: inset 0 0 0 2px var(--act), 0 10px 20px -12px rgba(214,58,30,.6); transform: translateY(-2px); }
.pt-appt .pt-foot-tot { display: flex; align-items: center; gap: 16px; }
.pt-appt .pt-foot-tot .pt-btn { flex: 1; }
.pt-scr-wrap .pt-total { display: grid; }
.pt-scr-wrap .pt-total b, .pt-rev .pt-sumtot b { font: 800 26px/28px "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; color: var(--ink); }
.pt-scr-wrap .pt-total span, .pt-rev .pt-sumtot span { font-size: 12px; font-weight: 600; color: var(--mu); }
.pt-rev .pt-body { padding-top: 12px; }
.pt-rev .pt-ticket { position: relative; padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 20px 40px -20px rgba(27,21,18,.3); }
.pt-rev .pt-tk-top { display: flex; align-items: center; gap: 14px; }
.pt-rev .pt-tk-top div { display: grid; } .pt-rev .pt-tk-top b { font-size: 16px; font-weight: 700; } .pt-rev .pt-tk-top span:not(.pt-vpic) { font-size: 13px; color: var(--mu); }
.pt-rev .pt-tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pt-rev .pt-tk-grid div { display: grid; gap: 2px; }
.pt-rev .pt-tk-grid small { font-size: 12px; font-weight: 700; color: var(--mu); }
.pt-rev .pt-tk-grid b { font: 800 19px/24px "Bricolage Grotesque", sans-serif; letter-spacing: -.3px; }
.pt-rev .pt-tk-cut { position: relative; height: 2px; margin: 20px -18px 16px; background: radial-gradient(circle, var(--ln) 1.5px, transparent 2px) 0 0 / 10px 2px repeat-x; }
.pt-rev .pt-tk-cut::before, .pt-rev .pt-tk-cut::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--ln); }
.pt-rev .pt-tk-cut::before { left: -12px; clip-path: inset(0 0 0 50%); } .pt-rev .pt-tk-cut::after { right: -12px; clip-path: inset(0 50% 0 0); }
.pt-rev .pt-sumtot { display: flex; align-items: baseline; gap: 8px; }
.pt-rev .pt-done { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 0 32px 80px; text-align: center; background: #fff; opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 0s 300ms; }
.pt-rev .pt-done .pt-btn { position: absolute; left: 20px; right: 20px; bottom: 42px; width: auto; }
.pt-rev .pt-done-p { margin-top: 12px; }
.pt-rev.ok .pt-done { opacity: 1; visibility: visible; transition: opacity 300ms; }
.pt-rev .pt-done-ic { position: relative; display: grid; place-items: end center; width: 200px; height: 200px; border-radius: 50%; background: var(--sun); margin-bottom: 24px; overflow: visible; transform: scale(.5); transition: transform 600ms var(--spring) 100ms; }
.pt-rev .pt-done-ic img { height: 210px; width: auto; border-radius: 0 0 100px 100px; }
.pt-rev .pt-done-ic i { position: absolute; right: 4px; top: 10px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--act); box-shadow: 0 0 0 4px #fff, 0 10px 18px -6px rgba(214,58,30,.7); transform: scale(0) rotate(-30deg); transition: transform 500ms var(--spring) 420ms; }
.pt-rev .pt-done-ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pt-rev.ok .pt-done-ic { transform: none; } .pt-rev.ok .pt-done-ic i { transform: none; }

/* ================= BREAKIT (redesign) ================= */
/* palette: rose #FF4F79 (surfaces) · action #DB2A5A (white 4.7:1) · rose text #B8174A · sky #6C8CFF / text #3446C7 on #EAF0FF · mint text #0E7A5A on #E2F7EF · ink #161B2E · body #4A5068 · muted #5E6480 */
.qs-holder .qs-scr-wrap { --rose: #FF4F79; --act: #DB2A5A; --rose-t: #B8174A; --rose-l: #FFE8EE; --sky: #6C8CFF; --sky-t: #3446C7; --sky-l: #EAF0FF; --mint: #2BC08C; --ink: #161B2E; --bd: #4A5068; --mu: #5E6480; --sf: #F5F6FB; --ln: #E9EBF3; --spring: cubic-bezier(.3, 1.5, .5, 1); font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); font-size: 15px; line-height: 22px; }
.qs-scr-wrap .qs-pad { padding: 0 20px; }
.qs-scr-wrap .qs-h1 { font: 800 34px/38px "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing: -1.1px; color: var(--ink); text-wrap: balance; }
.qs-scr-wrap .qs-h2 { font: 800 26px/30px "Bricolage Grotesque", sans-serif; letter-spacing: -.7px; color: var(--ink); text-wrap: balance; }
.qs-scr-wrap .qs-h3 { font: 800 22px/26px "Bricolage Grotesque", sans-serif; letter-spacing: -.5px; color: var(--ink); }
.qs-scr-wrap .qs-h4 { font: 800 18px/22px "Bricolage Grotesque", sans-serif; letter-spacing: -.3px; color: var(--ink); }
.qs-scr-wrap .qs-p { margin-top: 10px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--bd); }
.qs-scr-wrap .qs-tiny { margin-top: 20px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--mu); }
.qs-scr-wrap .qs-mt { margin-top: 56px; }
.qs-scr-wrap .qs-c { text-align: center; }
.qs-scr-wrap .qs-top { position: relative; z-index: 2; flex: none; display: flex; justify-content: space-between; align-items: center; height: 44px; margin: 60px 20px 20px; }
.qs-scr-wrap .qs-txtbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 4px 12px rgba(22,27,46,.06); }
.qs-scr-wrap .qs-txtbtn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qs-scr-wrap .qs-steps { display: flex; gap: 6px; }
.qs-scr-wrap .qs-steps i { width: 24px; height: 6px; border-radius: 3px; background: var(--ln); }
.qs-scr-wrap .qs-steps i.on { background: var(--act); }
.qs-scr-wrap .qs-foot { margin-top: auto; flex: none; padding: 12px 20px 42px; }
.qs-scr-wrap .qs-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; border-radius: 20px; background: var(--act); color: #fff; font: 700 17px/24px "Plus Jakarta Sans", sans-serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.12), 0 10px 20px -10px rgba(219,42,90,.8); transition: background-color 200ms, transform 240ms var(--spring), box-shadow 200ms; }
.qs-scr-wrap .qs-btn:disabled { background: #ECEDF3; color: #5E6480; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.qs-scr-wrap .qs-col { display: flex; flex-direction: column; align-items: center; }
.qs-scr-wrap .qs-card { border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 10px 24px -16px rgba(22,27,46,.25); }
.qs-scr-wrap .qs-sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 14px; background: #FFD25E; color: var(--ink); font: 800 14px/18px "Bricolage Grotesque", sans-serif; white-space: nowrap; transform: rotate(var(--r, -4deg)); box-shadow: 0 0 0 3px #fff, 0 8px 18px -8px rgba(22,27,46,.35); }
.qs-scr-wrap .qs-sticker.qs-st-w { position: static; background: #fff; color: var(--rose-t); box-shadow: 0 6px 14px -8px rgba(184,23,74,.5); --r: 3deg; }
.qs-scr-wrap .qs-sticker.qs-st-sky { background: var(--sky-l); color: var(--sky-t); }
.qs-scr-wrap .qs-tabs { position: absolute; left: 16px; right: 16px; bottom: 26px; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 68px; padding: 0 14px; border-radius: 28px; background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--ln), 0 14px 30px -10px rgba(22,27,46,.28); }
.qs-scr-wrap .qs-tab { display: grid; justify-items: center; gap: 2px; width: 52px; font: 700 12px/14px "Plus Jakarta Sans", sans-serif; color: var(--mu); }
.qs-scr-wrap .qs-tab i { width: 24px; height: 24px; background: var(--mu); -webkit-mask: var(--m) center / 22px 22px no-repeat; mask: var(--m) center / 22px 22px no-repeat; }
.qs-scr-wrap .qs-tab.on { color: var(--act); } .qs-scr-wrap .qs-tab.on i { background: var(--act); }
.qs-scr-wrap .qs-plus { display: grid; place-items: center; width: 58px; height: 58px; margin-top: -30px; border-radius: 22px; background: linear-gradient(160deg, #FF6B8E, var(--act)); box-shadow: 0 0 0 5px #fff, inset 0 1px 0 rgba(255,255,255,.4), 0 12px 22px -8px rgba(219,42,90,.8); transform: rotate(-6deg); transition: transform 300ms var(--spring); }
.qs-scr-wrap .qs-plus img { transform: rotate(6deg); }
.qs-scr-wrap .qs-plus.qs-press { transform: rotate(-6deg) scale(.9); }

/* home */
.qs-home::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 54px; background: linear-gradient(#fff 70%, rgba(255,255,255,0)); pointer-events: none; }
.qs-home .qs-body .qs-pad { padding-top: 60px; padding-bottom: 128px; }
.qs-home .qs-hdr { display: flex; align-items: center; gap: 12px; }
.qs-home .qs-ava { width: 48px; height: 48px; border-radius: 50%; background: #FFD25E; }
.qs-home .qs-hello { flex: 1; display: grid; }
.qs-home .qs-hello small { font-size: 13px; line-height: 16px; font-weight: 700; color: var(--mu); }
.qs-home .qs-hello b { font: 800 24px/28px "Bricolage Grotesque", sans-serif; letter-spacing: -.6px; }
.qs-scr-wrap .qs-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 4px 12px rgba(22,27,46,.06); }
.qs-home .qs-hero { position: relative; margin-top: 18px; padding: 18px 20px 20px; border-radius: 30px; background: radial-gradient(120% 120% at 100% 0%, #FFD6C2 0%, rgba(255,214,194,0) 55%), linear-gradient(160deg, #FFE3EA, #FFF3EC); box-shadow: inset 0 1px 0 #fff, 0 16px 30px -20px rgba(219,42,90,.6); overflow: hidden; }
.qs-home .qs-hero-top { display: flex; justify-content: space-between; align-items: center; }
.qs-home .qs-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--rose-t); }
.qs-home .qs-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--act); box-shadow: 0 0 0 4px rgba(219,42,90,.18); animation: qslive 2s ease-in-out infinite; }
@keyframes qslive { 50% { box-shadow: 0 0 0 7px rgba(219,42,90,0); } }
.qs-home .qs-tn { display: flex; align-items: flex-start; gap: 4px; margin-top: 10px; }
.qs-home .qs-tn div { display: grid; justify-items: start; }
.qs-home .qs-tn b { font: 800 64px/64px "Plus Jakarta Sans", sans-serif; letter-spacing: -2.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qs-home .qs-tn span { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--bd); }
.qs-home .qs-tn em { font: 800 52px/60px "Plus Jakarta Sans", sans-serif; font-style: normal; color: #F2A4B8; margin: 0 2px; }
.qs-home .qs-ss { display: inline-block; min-width: 76px; }
.qs-home .qs-bar { position: relative; height: 12px; margin-top: 16px; border-radius: 6px; background: rgba(255,255,255,.8); box-shadow: inset 0 1px 2px rgba(22,27,46,.08); overflow: hidden; }
.qs-home .qs-bar-f { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, .9) * 100%); border-radius: 6px; background: linear-gradient(90deg, #FF8FA9, var(--act)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); transition: width 900ms ease; }
.qs-home .qs-next { margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--bd); }
.qs-home .qs-next .qs-left { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.qs-home .qs-ask { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 24px; background: var(--sky-l) !important; transition: opacity 300ms, transform 260ms var(--spring); }
.qs-home .qs-ask-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; box-shadow: 0 4px 10px -4px rgba(52,70,199,.35); }
.qs-home .qs-ask-ic img { filter: brightness(0) saturate(100%) invert(24%) sepia(84%) saturate(2400%) hue-rotate(228deg); }
.qs-home .qs-ask-tx { flex: 1; display: grid; text-align: left; }
.qs-home .qs-ask-tx b { font: 800 18px/22px "Bricolage Grotesque", sans-serif; color: var(--sky-t); }
.qs-home .qs-ask-tx small { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--sky-t); }
.qs-home .qs-ask svg { width: 22px; height: 22px; fill: none; stroke: var(--sky-t); stroke-width: 2.4; stroke-linecap: round; }
.qs-home .qs-ask.done { background: #E2F7EF !important; }
.qs-home .qs-ask.done :is(.qs-ask-tx b, .qs-ask-tx small) { color: #0E7A5A; }
.qs-home .qs-ask.done svg { stroke: #0E7A5A; }
.qs-home .qs-week { margin-top: 14px; padding: 16px 0 14px; }
.qs-home .qs-week-h { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.qs-home .qs-streak { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 14px; background: #FFF4D6; transform: rotate(-3deg); box-shadow: 0 0 0 2px #fff, 0 6px 12px -6px rgba(183,110,0,.5); }
.qs-home .qs-streak b { font: 800 16px/20px "Bricolage Grotesque", sans-serif; color: #8A5300; display: inline-block; }
.qs-home .qs-streak em { font-size: 13px; line-height: 16px; font-weight: 700; font-style: normal; color: #8A5300; }
.qs-home .qs-streak.bump b { animation: qsbump 700ms var(--spring); }
.qs-home .qs-streak.bump img { animation: qsflame 900ms ease-in-out; }
@keyframes qsbump { 0% { transform: translateY(10px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes qsflame { 30% { transform: scale(1.7) rotate(-10deg); } 60% { transform: scale(.95); } }
.qs-home .qs-days { display: flex; justify-content: space-between; margin-top: 16px; padding: 0 12px; }
.qs-home .qs-d { display: grid; justify-items: center; gap: 6px; width: 42px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--mu); }
.qs-home .qs-d i { width: 38px; height: 38px; border-radius: 50%; background: var(--sf); position: relative; }
.qs-home .qs-d.today { color: var(--ink); }
.qs-home .qs-d.today:not(.done) i { background: #fff; box-shadow: inset 0 0 0 2px var(--sky); }
.qs-home .qs-d.today:not(.done) i::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--sky); animation: qslive 2s ease-in-out infinite; }
.qs-home .qs-d.done i { background: var(--sky-l); }
.qs-home .qs-d.done i::after { content: ""; position: absolute; inset: 1px; background: var(--sky-t); -webkit-mask: var(--m) center / 36px 36px no-repeat; mask: var(--m) center / 36px 36px no-repeat; }
.qs-home .qs-d.today.done i { background: #FFD25E; } .qs-home .qs-d.today.done i::after { background: var(--ink); }
.qs-home .qs-d.pop i { animation: qspop 650ms var(--spring); }
@keyframes qspop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
.qs-home .qs-sec { margin: 28px 0 12px; }
.qs-home .qs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qs-home .qs-tile { position: relative; display: grid; gap: 2px; padding: 14px 16px 16px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ln), 0 10px 22px -16px rgba(22,27,46,.25); overflow: hidden; }
.qs-home .qs-tic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 14px; background: var(--t); }
.qs-home .qs-tile > span:not(.qs-tic):not(.qs-lungfill) { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--bd); }
.qs-home .qs-tile b { font: 800 28px/32px "Plus Jakarta Sans", sans-serif; letter-spacing: -.8px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-home .qs-tile b em { font-style: normal; }
.qs-home .qs-tile small { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--bd); }
.qs-home .qs-pips { position: absolute; right: 14px; top: 18px; display: grid; grid-template-columns: repeat(5, 7px); gap: 4px; }
.qs-home .qs-pips i { width: 7px; height: 7px; border-radius: 2px; background: var(--rose-l); }
.qs-home .qs-pips i.on { background: var(--rose); }
.qs-home .qs-lungfill { position: relative; display: block; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 14px; background: var(--t); }
.qs-home .qs-lungfill i { position: absolute; inset: 7px; background: linear-gradient(to top, var(--mint) calc(var(--f, .6) * 100%), #B9E8D6 calc(var(--f, .6) * 100%)); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background 800ms; }
.qs-home .qs-note { margin-top: 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--mu); }
.qs-home .qs-miles { display: flex; gap: 10px; margin-right: -20px; overflow: hidden; padding: 4px 0 8px; }
.qs-home .qs-mile { flex: none; display: grid; padding: 12px 14px; border-radius: 20px; background: var(--sf); font: 800 18px/22px "Bricolage Grotesque", sans-serif; color: var(--mu); }
.qs-home .qs-mile small { font: 700 13px/18px "Plus Jakarta Sans", sans-serif; }
.qs-home .qs-mile.done { background: #E2F7EF; color: #0E7A5A; transform: rotate(-2deg); }
.qs-home .qs-mile.now { background: #fff; color: var(--rose-t); box-shadow: inset 0 0 0 2px var(--rose), 0 8px 16px -10px rgba(219,42,90,.6); transform: rotate(2deg); }
.qs-scr-wrap .qs-toast { position: absolute; z-index: 8; left: 50%; top: 56px; display: flex; align-items: center; gap: 8px; padding: 11px 18px 11px 12px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 14px/20px "Plus Jakarta Sans", sans-serif; white-space: nowrap; opacity: 0; transform: translate(-50%, -140px); transition: transform 520ms var(--spring), opacity 200ms; }
.qs-scr-wrap .qs-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* bursts */
.qs-scr-wrap .qs-burst { position: absolute; z-index: 50; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; }
.qs-scr-wrap .qs-burst.sq { border-radius: 4px; }

/* check-in */
.qs-reach .qs-reach-art { position: relative; height: 330px; margin: -10px 0 10px; }
.qs-reach .qs-blob { position: absolute; left: 50px; top: 10px; width: 290px; height: 290px; border-radius: 48% 52% 44% 56% / 54% 44% 56% 46%; background: radial-gradient(80% 80% at 30% 20%, #C7D4FF, #9FB4FF); box-shadow: inset 0 -14px 30px rgba(52,70,199,.15); }
.qs-reach .qs-cat { position: absolute; left: 70px; top: 50px; width: 250px; height: auto; }
.qs-scr-wrap .qs-emos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.qs-scr-wrap :is(.qs-emo, .qs-f) { display: grid; justify-items: center; gap: 8px; padding: 18px 0 14px; border-radius: 24px; background: var(--sf) !important; font: 700 15px/20px "Plus Jakarta Sans", sans-serif; color: var(--bd); transition: background-color 200ms, color 200ms, transform 420ms var(--spring), box-shadow 200ms; }
.qs-scr-wrap :is(.qs-emo, .qs-f) i { width: 56px; height: 56px; background: #8D93AB; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color 200ms, transform 420ms var(--spring); }
.qs-scr-wrap :is(.qs-emo, .qs-f).on { background: var(--rose-l) !important; color: var(--rose-t); transform: translateY(-4px) rotate(-2deg); box-shadow: inset 0 0 0 2px var(--rose), 0 14px 22px -14px rgba(219,42,90,.7); }
.qs-scr-wrap :is(.qs-emo, .qs-f).on i { background: var(--act); transform: scale(1.12); }
.qs-scr-wrap .qs-cnt { margin-left: 4px; padding: 2px 10px; border-radius: 99px; background: var(--rose-l); color: var(--rose-t); font-weight: 800; font-size: 14px; }
.qs-scr-wrap .qs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.qs-scr-wrap .qs-chips button { height: 48px; padding: 0 18px; border-radius: 99px; background: var(--sf) !important; font: 700 15px/20px "Plus Jakarta Sans", sans-serif; color: var(--bd); transition: background-color 200ms, color 200ms, transform 420ms var(--spring), box-shadow 200ms; }
.qs-scr-wrap .qs-chips button.on { background: var(--act) !important; color: #fff; transform: rotate(-2deg) scale(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 16px -8px rgba(219,42,90,.7); }

/* confidence sky */
.qs-conf .qs-sky { --v: .2; position: relative; height: 300px; margin-top: 24px; border-radius: 32px; overflow: hidden; --n: clamp(0%, calc((1 - var(--v) * 1.35) * 100%), 100%); background: linear-gradient(180deg, color-mix(in srgb, #1D2552 var(--n), #8EC5FF), color-mix(in srgb, #3A3F8F var(--n), #C9E2FF) 55%, color-mix(in srgb, #5B4A9E var(--n), #FFE1C4)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 30px -20px rgba(29,37,82,.6); }
.qs-conf .qs-sun { position: absolute; left: 50%; width: 76px; height: 76px; margin-left: -38px; top: calc(220px - var(--v) * 150px); border-radius: 50%; background: radial-gradient(circle at 38% 36%, #FFF8D6, #FFD25E 55%, #FF9F5A); box-shadow: 0 0 0 calc(var(--v) * 18px) rgba(255,210,94,.25), 0 0 0 calc(var(--v) * 38px) rgba(255,210,94,.12); }
.qs-conf .qs-cloud { position: absolute; left: calc(30px + var(--v) * 60px); top: 120px; width: 110px; height: 36px; border-radius: 20px; background: color-mix(in srgb, #2A3166 clamp(0%, calc((1 - var(--v) * 1.35) * 100%), 100%), #fff); opacity: .95; }
.qs-conf .qs-cloud::before { content: ""; position: absolute; left: 24px; top: -22px; width: 48px; height: 48px; border-radius: 50%; background: inherit; }
.qs-conf .qs-cloud2 { left: auto; right: calc(20px + var(--v) * 50px); top: 70px; width: 80px; height: 28px; }
.qs-conf .qs-cloud2::before { left: 16px; top: -16px; width: 34px; height: 34px; }
.qs-conf .qs-hill { position: absolute; left: -40px; right: 80px; bottom: -70px; height: 150px; border-radius: 50%; background: color-mix(in srgb, #141A3D clamp(0%, calc((1 - var(--v) * 1.35) * 100%), 100%), #6CC9A0); }
.qs-conf .qs-hill2 { left: 120px; right: -60px; bottom: -90px; height: 160px; background: color-mix(in srgb, #0E1330 clamp(0%, calc((1 - var(--v) * 1.35) * 100%), 100%), #3FAF84); }
.qs-conf .qs-st { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: calc(1 - var(--v) * 1.7); box-shadow: 0 0 6px #fff; }
.qs-conf .qs-conf-l { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(-2deg); z-index: 2; padding: 8px 16px; border-radius: 16px; background: #fff; font: 800 18px/22px "Bricolage Grotesque", sans-serif; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.qs-scr-wrap .qs-slider { --v: .2; position: relative; height: 14px; margin: 36px 14px 0; border-radius: 7px; background: var(--sf); box-shadow: inset 0 1px 3px rgba(22,27,46,.12); }
.qs-scr-wrap .qs-slider .qs-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 7px; background: linear-gradient(90deg, #9FB4FF, var(--sky)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.qs-scr-wrap .qs-slider .qs-knob { position: absolute; top: -9px; left: calc(var(--v) * 100% - 16px); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(#fff, #F1F3FA); box-shadow: inset 0 0 0 3px var(--sky), 0 6px 12px -4px rgba(22,27,46,.3); }
.qs-scr-wrap .qs-slider.qs-heat .qs-fill { background: linear-gradient(90deg, #FFC2D0, var(--act)); }
.qs-scr-wrap .qs-slider.qs-heat .qs-knob { box-shadow: inset 0 0 0 3px var(--act), 0 6px 12px -4px rgba(22,27,46,.3); }
.qs-scr-wrap .qs-slider .qs-knob em { position: absolute; left: 50%; top: 42px; transform: translateX(-50%) rotate(-3deg); padding: 4px 10px; border-radius: 10px; background: var(--rose-l); font: 800 15px/18px "Bricolage Grotesque", sans-serif; font-style: normal; color: var(--rose-t); white-space: nowrap; }
.qs-conf .qs-sl-ends { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--mu); }

/* plus menu + craving */
.qs-menu .qs-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.qs-menu .qs-m { display: grid; align-content: space-between; justify-items: start; height: 104px; padding: 16px; border-radius: 24px; background: var(--t) !important; color: var(--c); text-align: left; transition: transform 300ms var(--spring); }
.qs-menu .qs-m b { font: 800 17px/20px "Bricolage Grotesque", sans-serif; letter-spacing: -.2px; }
.qs-menu .qs-m-big { grid-column: 1 / -1; position: relative; height: 140px; padding: 20px; background: linear-gradient(150deg, #FF6B8E, var(--act)) !important; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 26px -14px rgba(219,42,90,.8); overflow: hidden; }
.qs-menu .qs-m-big b { font-size: 26px; line-height: 28px; letter-spacing: -.6px; }
.qs-menu .qs-m-big > span:last-child { font-size: 14px; font-weight: 600; }
.qs-menu .qs-m-ic { position: absolute; right: -20px; top: -20px; width: 140px; height: 140px; }
.qs-menu .qs-m-ic i { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.16); animation: qsbr 6s ease-in-out infinite; }
.qs-menu .qs-m-ic i + i { inset: 30px; background: rgba(255,255,255,.22); animation-delay: -.4s; }
.qs-scr-wrap .qs-press { transform: scale(.96); }
.qs-c1 .qs-slider { margin-top: 32px; }
.qs-c1 .qs-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.qs-c1 .qs-f { padding: 12px 0 10px; gap: 6px; font-size: 13px; line-height: 16px; border-radius: 20px; }
.qs-c1 .qs-f i { width: 44px; height: 44px; }
.qs-ride .qs-cdw { padding: 8px 14px; border-radius: 99px; background: var(--sf); font-size: 13px; font-weight: 700; color: var(--bd); }
.qs-ride .qs-cdw b { margin-left: 4px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.qs-ride .qs-breath { position: relative; display: grid; place-items: center; width: 290px; height: 290px; margin: 0 0 28px; }
.qs-ride .qs-breath i { position: absolute; border-radius: 50%; }
.qs-ride .qs-b1 { inset: 0; background: radial-gradient(circle, rgba(108,140,255,.0) 40%, rgba(108,140,255,.16)); animation: qsbr 10s ease-in-out infinite; }
.qs-ride .qs-b2 { inset: 30px; background: radial-gradient(circle at 40% 35%, #DCE4FF, #B3C3FF); animation: qsbr 10s ease-in-out infinite; animation-delay: -.15s; }
.qs-ride .qs-b3 { inset: 78px; background: radial-gradient(circle at 40% 35%, #fff, #E6ECFF); box-shadow: 0 10px 30px -10px rgba(52,70,199,.5), inset 0 1px 0 #fff; animation: qsbr 10s ease-in-out infinite; animation-delay: -.3s; }
.qs-ride .qs-bl { position: relative; font: 800 24px/28px "Bricolage Grotesque", sans-serif; color: var(--sky-t); }
@keyframes qsbr { 0%, 100% { transform: scale(.66); } 40% { transform: scale(1); } }
.qs-ride .qs-h2 { margin-top: 4px; }
.qs-done .qs-col { padding-top: 70px; }
.qs-done .qs-medal { position: relative; display: grid; place-items: center; width: 168px; height: 168px; margin-bottom: 28px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF6D6, #FFD25E); box-shadow: 0 0 0 10px #FFF4D6, 0 24px 40px -18px rgba(183,110,0,.7), inset 0 2px 0 #fff; transform: scale(.4) rotate(-30deg); opacity: 0; transition: transform 700ms var(--spring), opacity 200ms; }
.qs-done .qs-medal-r { position: absolute; inset: -22px; border-radius: 50%; border: 3px dashed #FFD25E; opacity: .7; }
.qs-done.lit .qs-medal { transform: none; opacity: 1; }
.qs-done.lit .qs-medal-r { animation: qsspin 14s linear infinite; }
@keyframes qsspin { to { transform: rotate(360deg); } }
.qs-done .qs-wins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: stretch; margin-top: 28px; }
.qs-done .qs-wins div { display: grid; justify-items: center; padding: 14px; border-radius: 22px; background: var(--sf); }
.qs-done .qs-wins b { font: 800 30px/34px "Bricolage Grotesque", sans-serif; }
.qs-done .qs-wins span { font-size: 13px; font-weight: 700; color: var(--bd); }

@media (prefers-reduced-motion: reduce) {
  :is(.pt-scr, .qs-scr):is(.cx-in, .cx-out, .cx-inb, .cx-outb, .cx-up, .cx-down) { animation-duration: 1ms !important; }
  :is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-track, .pt-track2, .pt-sticker, .pt-toast, .qs-toast, .pt-sheet, .qs-medal, .pt-done-ic, .pt-done-ic i, .pt-kind, .pt-cat i, .pt-tm, .pt-dt, .pt-sl, .pt-chips > *, .pt-pet, .pt-btn, .qs-btn, .qs-emo, .qs-f, .qs-emo i, .qs-f i, .qs-chips button, .qs-plus, .qs-m, .qs-bar-f, .qs-ask) { transition-duration: 1ms !important; transition-delay: 0s !important; }
  :is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-spin, .pt-skel i, .pt-skel b, .pt-rem.new, .pt-v, .pt-ar-title, .qs-breath i, .qs-m-ic i, .qs-kicker i, .qs-d i, .qs-d i::after, .qs-streak b, .qs-streak img, .qs-medal-r) { animation: none !important; }
  :is(.pt-scr-wrap, .qs-scr-wrap) :is(.pt-burst, .qs-burst) { display: none; }
}

/* ---------- /FPAPP concepts ---------- */

/* Ingress players: watch-only, no scrollbars, no user scroll */
.fp .ing-dev { display: grid; justify-items: center; }
.fp .ing-scroll { overflow: hidden !important; }
.fp .ing-browser { width: 100%; }


/* ---------- phones in case studies: a calmer size (about 5/8 of real) ---------- */
.fp > .fp-device:has(.ox-phone), .fp > .fp-device:has(.ap-stage.ap-m), .fp > .fp-device.wf-mob, .fp > .fp-device.pt-dev, .fp > .fp-device.qs-dev, .fp > .fp-device:has(.ing-phone) { width: 250px; max-width: 100%; margin-inline: auto; }
.fp .ing-phone { width: 100%; }
.fp .ox-stage { width: 100%; }
.fp > .fp-device { grid-template-columns: minmax(0, 1fr); }
.fp > .fp-device > * { min-width: 0; max-width: 100%; }
/* agent-built phones keep fixed sizes: scale them down from the outside */
.fp > .fp-device.pt-dev, .fp > .fp-device.qs-dev { height: 524px; overflow: visible; }
.fp > .fp-device.pt-dev > :not(.fp-finger), .fp > .fp-device.qs-dev > :not(.fp-finger) { width: 414px !important; max-width: none !important; transform: scale(.6039) !important; transform-origin: 50% 0; }
.fp > .fp-device.wf-mob, .fp > .fp-device:has(.ap-stage.ap-m) { height: 524px; overflow: visible; }
.fp > .fp-device.wf-mob > :not(.fp-finger), .fp > .fp-device:has(.ap-stage.ap-m) > :not(.fp-finger) { width: 399px !important; max-width: none !important; transform: scale(.6266) !important; transform-origin: 50% 0; }

/* ---------- FPAPP wuf ---------- */
/* ---------- WUF13 map: live phone ---------- */
.wf-stage.wf-mob { --s: 1; width: calc(399px * var(--s)); height: calc(836px * var(--s)); }
.wf-stage .wf-phone { width: 399px; height: 836px; padding: 12px; border-radius: 56px; background: #1c1c1e; box-shadow: inset 0 0 0 1.5px #3a3a3c, inset 0 0 0 5px #0d0d0e, 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); transform: scale(var(--s)); transform-origin: 0 0; }
.wf-stage .wf-scr {
  --blue: #155dfc; --blue2: #2b7fff; --ink: #101828; --ink2: #364153; --mut: #4a5565; --mut2: #6a7282; --line: #e5e7eb; --soft: #f3f4f6; --green: #008236; --green2: #00a63e; --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; width: 375px; height: 812px; overflow: hidden; border-radius: 44px; background: #f2efe9; color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 20px; letter-spacing: -.15px; -webkit-font-smoothing: antialiased; isolation: isolate; text-align: left;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.wf-stage .wf-scr :where(p, h2, h3, h4, ul, ol, li, figure) { margin: 0; padding: 0; list-style: none; }
.wf-stage .wf-scr :where(button, input) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.wf-stage .wf-scr :where(button) { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; border-radius: 0; box-shadow: none; text-transform: none; min-height: 0; width: auto; height: auto; line-height: inherit; }
.wf-stage .wf-scr :where(button):focus-visible, .wf-stage .wf-scr .wf-input:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }
.wf-stage .wf-scr :where(img) { display: block; max-width: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.wf-stage .wf-ic { display: inline-flex; width: 16px; height: 16px; flex: none; font-style: normal; }
.wf-stage .wf-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* screens */
.wf-stage .wf-screen { position: absolute; inset: 0; margin: 0; }
.wf-stage .wf-screen:not(.on) { display: none; }
.wf-stage .wf-screen.wf-enter { animation: wfin 340ms var(--ease); }
.wf-stage .wf-screen.wf-back { animation: wfback 300ms var(--ease); }
@keyframes wfin { from { transform: translateY(24px); opacity: 0; } }
@keyframes wfback { from { opacity: .4; } }

/* status bar */
.wf-stage .wf-status { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px 0 40px; pointer-events: none; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,0)); }
.wf-stage .wf-status-light { background: #fff; }
.wf-stage .wf-clock { font-size: 16px; font-weight: 600; letter-spacing: -.3px; color: #000; }
.wf-stage .wf-sr { width: 67px; height: 12px; }

/* map */
.wf-stage .wf-mapwrap { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; background: #f2efe9; }
.wf-stage .wf-mapwrap.drag { cursor: grabbing; }
.wf-stage .wf-map { position: absolute; left: 0; top: 0; width: 1280px; height: 1024px; transform-origin: 0 0; will-change: transform; }
.wf-stage .wf-map.ease { transition: transform 620ms var(--ease); }
.wf-stage .wf-mapimg { width: 1280px; height: 1024px; pointer-events: none; }
.wf-stage .wf-routes { position: absolute; inset: 0; width: 1280px; height: 1024px; overflow: visible; pointer-events: none; }
.wf-stage .wf-routes .wf-ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wf-stage .wf-routes .wf-ghost { opacity: .22; }
.wf-stage .wf-pins { position: absolute; inset: 0; --iz: 1; }

/* pins */
.wf-stage .wf-pin { position: absolute; transform: translate(-50%, -50%) scale(var(--iz)); display: grid; place-items: center; transition: opacity 200ms ease; }
.wf-stage .wf-pin::before { content: ""; position: absolute; inset: -8px; }
.wf-stage .wf-pin.dim { opacity: .35; }
.wf-stage .wf-pin.gone { opacity: 0; pointer-events: none; }
.wf-stage .wf-pin .wf-pi { position: relative; display: grid; place-items: center; border-radius: 999px; background: #fff; box-shadow: 0 6px 12px rgba(16,24,40,.16), 0 2px 4px rgba(16,24,40,.12); transition: transform 260ms cubic-bezier(.3, 1.5, .5, 1), box-shadow 200ms ease; }
.wf-stage .wf-pin.stop .wf-pi { width: 22px; height: 22px; border: 4px solid var(--blue2); }
.wf-stage .wf-pin.hub .wf-pi { width: 38px; height: 38px; color: var(--blue); border: 1.5px solid #bedbff; }
.wf-stage .wf-pin.hub .wf-ic { width: 20px; height: 20px; }
.wf-stage .wf-pin.venue .wf-pi { width: 44px; height: 44px; color: #fff; background: linear-gradient(135deg, #ad46ff, #8200db); border: 2px solid #fff; }
.wf-stage .wf-pin.venue .wf-ic { width: 22px; height: 22px; }
.wf-stage .wf-pin .wf-pl { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--ink); padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(16,24,40,.12); pointer-events: none; }
.wf-stage .wf-pin.stop .wf-pl { display: none; }
.wf-stage .wf-pin.sel .wf-pi { transform: scale(1.22); box-shadow: 0 0 0 6px rgba(43,127,255,.25), 0 8px 16px rgba(16,24,40,.2); }
.wf-stage .wf-pin.sel.stop .wf-pl { display: block; }
.wf-stage .wf-pin.me .wf-pi { width: 18px; height: 18px; background: var(--blue); border: 3px solid #fff; }
.wf-stage .wf-pin.me .wf-pi::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: rgba(21,93,252,.18); animation: wfpulse 2.4s ease-out infinite; z-index: -1; }
@keyframes wfpulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.wf-stage .wf-pin.end .wf-pi { width: 26px; height: 26px; background: #e7000b; color: #fff; border: 3px solid #fff; }
.wf-stage .wf-pin.end .wf-ic { width: 12px; height: 12px; }
.wf-stage .wf-pin.end .wf-ic svg { stroke-width: 3; }
.wf-stage .wf-pin.end.hidden { display: none; }

/* header card */
.wf-stage .wf-top { position: absolute; z-index: 20; top: 48px; left: 12px; right: 12px; padding: 12px 16px 16px; border-radius: 20px; background: rgba(255,255,255,.96); border: .67px solid rgba(229,231,235,.6); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: padding 260ms var(--ease); }
.wf-stage .wf-brandrow { display: flex; align-items: center; gap: 8px; height: 34px; }
.wf-stage .wf-logo { width: 74px; height: 32px; margin-right: auto; }
.wf-stage .wf-offline { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #fef3c6; color: #894b00; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0; opacity: 0; transform: translateY(-4px) scale(.96); transition: opacity 220ms ease, transform 300ms var(--ease); pointer-events: none; white-space: nowrap; }
.wf-stage .wf-offline .wf-ic { width: 14px; height: 14px; }
.wf-stage .wf-scr.is-off .wf-offline { opacity: 1; transform: none; }
.wf-stage .wf-lang { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #f3f4f6, #f9fafb); border: .67px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink2); letter-spacing: 0; }
.wf-stage .wf-lang[aria-expanded="true"] { background: #eff6ff; border-color: #bedbff; color: var(--blue); }
.wf-stage .wf-default { display: grid; gap: 12px; margin-top: 12px; }
.wf-stage .wf-search { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 14px; background: #fff; border: .67px solid var(--line); color: var(--mut2); font-size: 16px; letter-spacing: -.3px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.wf-stage .wf-search .wf-ic { width: 18px; height: 18px; color: var(--mut2); }
.wf-stage .wf-chips { display: flex; gap: 10px; }
.wf-stage .wf-chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 14px; background: linear-gradient(156deg, #f9fafb, #f3f4f6); border: .67px solid rgba(229,231,235,.8); color: var(--ink2); font-weight: 500; transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 150ms ease; }
.wf-stage .wf-chip:active { transform: scale(.97); }
.wf-stage .wf-chip.on { background: linear-gradient(156deg, var(--blue2), var(--blue)); border-color: rgba(81,162,255,.5); color: #fff; box-shadow: 0 4px 6px rgba(43,127,255,.22); }
.wf-stage .wf-subs { display: none; gap: 8px; }
.wf-stage .wf-top.subs .wf-subs { display: flex; }
.wf-stage .wf-sub { flex: 1; height: 32px; border-radius: 10px; background: var(--soft); color: var(--ink2); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; text-align: center; transition: background 160ms ease, color 160ms ease; }
.wf-stage .wf-sub.on { background: #dbeafe; color: #1447e6; font-weight: 600; }
.wf-stage .wf-rbar { display: none; align-items: center; gap: 8px; margin-top: 10px; }
.wf-stage .wf-top.route .wf-default { display: none; }
.wf-stage .wf-top.route .wf-rbar { display: flex; }
.wf-stage .wf-rtxt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--ink); }
.wf-stage .wf-rtxt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage .wf-rtxt .wf-rfrom { color: var(--mut); font-weight: 500; flex: none; max-width: 40%; }
.wf-stage .wf-rtxt .wf-ic { width: 14px; height: 14px; color: var(--mut2); }

/* icon button */
.wf-stage .wf-ib { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--soft); color: var(--ink2); flex: none; transition: background 160ms ease; }
.wf-stage .wf-ib::before { content: ""; position: absolute; inset: -4px; }
.wf-stage .wf-ib:active { background: #e5e7eb; }

/* language menu */
.wf-stage .wf-langmenu { position: absolute; z-index: 25; top: 92px; right: 24px; width: 196px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px -8px rgba(16,24,40,.28), 0 0 0 .67px var(--line); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity 180ms ease, transform 260ms var(--ease); }
.wf-stage .wf-langmenu.on { opacity: 1; transform: none; pointer-events: auto; }
.wf-stage .wf-lm { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.wf-stage .wf-lm:hover { background: #f9fafb; }
.wf-stage .wf-lm .wf-lmc { width: 26px; font-size: 12px; font-weight: 700; color: var(--mut2); letter-spacing: 0; }
.wf-stage .wf-lm.on { background: #eff6ff; color: var(--blue); font-weight: 600; }
.wf-stage .wf-lm.on .wf-lmc { color: var(--blue); }

/* map controls */
.wf-stage .wf-ctrls { position: absolute; z-index: 15; right: 12px; bottom: calc(var(--sh, 112px) + 12px); display: grid; gap: 8px; transition: bottom 420ms var(--ease), opacity 200ms ease; }
.wf-stage .wf-ctrls.hide { opacity: 0; pointer-events: none; }
.wf-stage .wf-ctl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.96); color: var(--ink2); box-shadow: 0 4px 10px rgba(16,24,40,.14), 0 0 0 .67px var(--line); }
.wf-stage .wf-ctl .wf-ic { width: 18px; height: 18px; }
.wf-stage .wf-loc { color: var(--blue); }
.wf-stage .wf-attr { position: absolute; z-index: 5; left: 0; bottom: calc(var(--sh, 112px) - 2px); padding: 1px 6px; font-size: 10px; line-height: 14px; color: #333; background: rgba(255,255,255,.75); letter-spacing: 0; transition: bottom 420ms var(--ease); }

/* bottom sheet */
.wf-stage .wf-sheet { position: absolute; z-index: 18; left: 0; right: 0; bottom: 0; height: 600px; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -8px 30px rgba(16,24,40,.16); border-top: .67px solid var(--line); transform: translateY(calc(600px - var(--sh, 112px))); transition: transform 420ms var(--ease); }
.wf-stage .wf-sheet.nomo { transition: none; }
.wf-stage .wf-shead { position: relative; height: 36px; flex: none; }
.wf-stage .wf-grab { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 120px; height: 30px; display: grid; place-items: center; }
.wf-stage .wf-grabbar { display: block; width: 44px; height: 5px; border-radius: 999px; background: #d1d5dc; }
.wf-stage .wf-sclose { position: absolute; right: 14px; top: 10px; width: 32px; height: 32px; }
.wf-stage .wf-sclose .wf-ic { width: 16px; height: 16px; }
.wf-stage .wf-sheet[data-wf-mode="peek"] .wf-sclose { display: none; }
.wf-stage .wf-sbody { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 16px 40px; }
.wf-stage .wf-sbody::-webkit-scrollbar { display: none; }
.wf-stage .wf-sbody.fade { animation: wffade 300ms var(--ease); }
@keyframes wffade { from { opacity: 0; transform: translateY(8px); } }

/* sheet content */
.wf-stage .wf-h { display: flex; align-items: center; gap: 6px; margin: 16px 0 10px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.wf-stage .wf-h:first-child { margin-top: 4px; }
.wf-stage .wf-h .wf-ic { width: 15px; height: 15px; }
.wf-stage .wf-h .wf-hc { margin-left: auto; font-weight: 500; color: var(--mut2); }
.wf-stage .wf-list { display: grid; gap: 8px; }
.wf-stage .wf-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: #fff; border: .67px solid var(--line); transition: background 160ms ease, transform 150ms ease; }
.wf-stage .wf-row:active { background: #f9fafb; transform: scale(.99); }
.wf-stage .wf-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.wf-stage .wf-av .wf-ic { width: 22px; height: 22px; }
.wf-stage .wf-av.hub { background: #dbeafe; color: var(--blue); }
.wf-stage .wf-av.stop { background: #f3e8ff; color: #8200db; }
.wf-stage .wf-av.venue { background: #f3e8ff; color: #8200db; }
.wf-stage .wf-av.hotel { background: #fef3c6; color: #bb4d00; }
.wf-stage .wf-av.me { background: #dbeafe; color: var(--blue); }
.wf-stage .wf-rt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wf-stage .wf-rn { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage .wf-rs { font-size: 12px; line-height: 16px; color: var(--mut); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage .wf-rs b { font-weight: 600; color: var(--green); }
.wf-stage .wf-chev { width: 16px; height: 16px; color: #99a1af; }
.wf-stage .wf-lb { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; line-height: 14px; font-weight: 700; color: #fff; letter-spacing: .1px; white-space: nowrap; flex: none; }
.wf-stage .wf-peek { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.wf-stage .wf-peek .wf-rt { gap: 0; }
.wf-stage .wf-peek-lines { display: flex; gap: 4px; }
.wf-stage .wf-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 12px; text-align: center; color: var(--mut); font-size: 13px; line-height: 18px; letter-spacing: 0; }
.wf-stage .wf-empty .wf-eic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--soft); color: var(--mut2); margin-bottom: 4px; }
.wf-stage .wf-empty .wf-eic .wf-ic { width: 22px; height: 22px; }
.wf-stage .wf-empty .wf-et { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.wf-stage .wf-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #f9fafb; border: .67px solid var(--line); color: var(--mut); font-size: 13px; line-height: 18px; letter-spacing: 0; }
.wf-stage .wf-note .wf-ic { width: 16px; height: 16px; margin-top: 1px; color: var(--mut2); }

/* place detail */
.wf-stage .wf-ph1 { display: flex; align-items: center; gap: 12px; padding: 4px 40px 0 0; }
.wf-stage .wf-ph1 .wf-av { width: 48px; height: 48px; }
.wf-stage .wf-pt { font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -.45px; color: var(--ink); }
.wf-stage .wf-acts { display: flex; gap: 8px; margin-top: 16px; }
.wf-stage .wf-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 14px; font-weight: 600; font-size: 15px; transition: transform 150ms ease, filter 150ms ease; }
.wf-stage .wf-btn:active { transform: scale(.98); filter: brightness(.95); }
.wf-stage .wf-btn .wf-ic { width: 18px; height: 18px; }
.wf-stage .wf-btn.pri { background: linear-gradient(173deg, var(--green2), var(--green)); color: #fff; box-shadow: 0 4px 10px rgba(0,166,62,.25); }
.wf-stage .wf-btn.sec { flex: 0 0 auto; background: var(--soft); color: var(--ink2); }
.wf-stage .wf-btn.blue { background: linear-gradient(173deg, var(--blue2), var(--blue)); color: #fff; box-shadow: 0 4px 10px rgba(21,93,252,.25); }
.wf-stage .wf-card { margin-top: 16px; padding: 4px; border-radius: 18px; background: #f9fafb; border: .67px solid var(--line); }
.wf-stage .wf-card .wf-h { margin: 10px 10px 8px; }
.wf-stage .wf-dep { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: #fff; border: .67px solid rgba(229,231,235,.7); }
.wf-stage .wf-dep + .wf-dep { margin-top: 4px; }
.wf-stage .wf-dep .wf-rt { gap: 0; }
.wf-stage .wf-dep .wf-rn { font-size: 14px; }
.wf-stage .wf-tm { display: grid; justify-items: end; gap: 0; flex: none; }
.wf-stage .wf-tm b { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wf-stage .wf-tm small { font-size: 11px; line-height: 14px; color: var(--mut2); letter-spacing: 0; }
.wf-stage .wf-tbtn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 8px; background: #eff6ff; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0; flex: none; }
.wf-stage .wf-tbtn .wf-ic { width: 13px; height: 13px; }
.wf-stage .wf-tbtn[aria-expanded="true"] { background: var(--blue); color: #fff; }
.wf-stage .wf-tt { display: none; padding: 10px 12px 4px; }
.wf-stage .wf-tt.on { display: block; animation: wffade 260ms var(--ease); }
.wf-stage .wf-ttl { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--blue); margin-bottom: 8px; letter-spacing: 0; }
.wf-stage .wf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wf-stage .wf-t { display: grid; place-items: center; height: 34px; border-radius: 10px; background: #fff; border: .67px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wf-stage .wf-t.past { color: #99a1af; background: transparent; text-decoration: line-through; text-decoration-color: #d1d5dc; }
.wf-stage .wf-t.nx { background: linear-gradient(173deg, var(--green2), var(--green)); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(0,166,62,.25); }
.wf-stage .wf-more { display: block; width: 100%; margin-top: 8px; height: 32px; font-size: 12px; font-weight: 600; color: var(--blue); text-align: center; letter-spacing: 0; }
.wf-stage .wf-lnrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: .67px solid rgba(229,231,235,.7); font-size: 13px; line-height: 18px; color: var(--ink2); font-weight: 500; letter-spacing: 0; }
.wf-stage .wf-lnrow + .wf-lnrow { margin-top: 4px; }
.wf-stage .wf-lnrow .wf-lnm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage .wf-lnrow small { color: var(--mut2); font-size: 12px; }

/* search screen */
.wf-stage .wf-screen[data-wf-screen="search"] { background: #fff; }
.wf-stage .wf-shd { position: absolute; top: 44px; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px 14px 12px; border-bottom: .67px solid var(--line); background: #fff; z-index: 2; }
.wf-stage .wf-sback { align-self: flex-start; margin-top: 4px; background: transparent; }
.wf-stage .wf-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.wf-stage .wf-field { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 14px; background: var(--soft); border: 1.5px solid transparent; cursor: text; transition: border-color 160ms ease, background 160ms ease; }
.wf-stage .wf-field.act { background: #fff; border-color: var(--blue2); }
.wf-stage .wf-field .wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(21,93,252,.18); flex: none; margin: 0 3px; }
.wf-stage .wf-field .wf-ic { color: #e7000b; }
.wf-stage .wf-fl { position: absolute; left: 34px; top: 3px; font-size: 10px; line-height: 12px; font-weight: 600; color: var(--mut2); text-transform: uppercase; letter-spacing: .4px; pointer-events: none; }
.wf-stage .wf-input { flex: 1; min-width: 0; height: 40px; padding: 12px 0 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: none; border-radius: 0; -webkit-user-select: text; user-select: text; }
.wf-stage .wf-input::placeholder { color: #99a1af; font-weight: 400; }
.wf-stage .wf-clr { display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e5e7eb; color: var(--mut); flex: none; }
.wf-stage .wf-clr .wf-ic { width: 12px; height: 12px; color: var(--mut); }
.wf-stage .wf-field.has .wf-clr { display: grid; }
.wf-stage .wf-swap { background: #fff; border: .67px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.08); border-radius: 12px; }
.wf-stage .wf-swap .wf-ic { width: 18px; height: 18px; }
.wf-stage .wf-res { position: absolute; top: 166px; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px 16px 32px; }
.wf-stage .wf-res::-webkit-scrollbar { display: none; }
.wf-stage .wf-sug { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 4px; border-radius: 12px; }
.wf-stage .wf-sug:active { background: #f9fafb; }
.wf-stage .wf-sug .wf-av { width: 40px; height: 40px; border-radius: 12px; }
.wf-stage .wf-sug .wf-av .wf-ic { width: 20px; height: 20px; }
.wf-stage .wf-sug mark { background: #dbeafe; color: inherit; border-radius: 3px; padding: 0 1px; }
.wf-stage .wf-sug + .wf-sug { border-top: .67px solid #f3f4f6; border-radius: 0; }

/* route options */
.wf-stage .wf-opt { display: grid; gap: 10px; width: 100%; padding: 14px; border-radius: 16px; background: #fff; border: .67px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: transform 150ms ease, border-color 160ms ease; }
.wf-stage .wf-opt + .wf-opt { margin-top: 8px; }
.wf-stage .wf-opt:active { transform: scale(.99); }
.wf-stage .wf-opt.best { border-color: #bedbff; background: linear-gradient(165deg, #eff6ff, #fff 60%); }
.wf-stage .wf-o1 { display: flex; align-items: baseline; gap: 8px; }
.wf-stage .wf-omin { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wf-stage .wf-omin small { font-size: 13px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.wf-stage .wf-oarr { font-size: 13px; color: var(--mut); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.wf-stage .wf-otag { margin-left: auto; font-size: 11px; line-height: 14px; font-weight: 700; color: var(--blue); background: #dbeafe; padding: 3px 7px; border-radius: 6px; letter-spacing: 0; }
.wf-stage .wf-legs { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; font-size: 12px; color: var(--mut); letter-spacing: 0; }
.wf-stage .wf-leg { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.wf-stage .wf-leg .wf-ic { width: 14px; height: 14px; }
.wf-stage .wf-legs .wf-sep { width: 12px; height: 12px; color: #d1d5dc; }
.wf-stage .wf-o3 { font-size: 12px; line-height: 16px; color: var(--mut); letter-spacing: 0; }
.wf-stage .wf-o3 b { color: var(--green); font-weight: 600; }
.wf-stage .wf-skel { height: 104px; border-radius: 16px; background: linear-gradient(90deg, #f3f4f6 0%, #f9fafb 40%, #f3f4f6 80%); background-size: 200% 100%; animation: wfsk 1s linear infinite; }
.wf-stage .wf-skel + .wf-skel { margin-top: 8px; }
@keyframes wfsk { to { background-position: -200% 0; } }
.wf-stage .wf-meta { margin: 12px 0 0; font-size: 11px; line-height: 14px; color: var(--mut2); text-align: center; letter-spacing: 0; }

/* steps */
.wf-stage .wf-rsum { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(165deg, #eff6ff, rgba(219,234,254,.5)); border: 1px solid rgba(190,219,255,.6); }
.wf-stage .wf-rsum .wf-av { width: 42px; height: 42px; background: var(--blue2); color: #fff; }
.wf-stage .wf-rsum .wf-av .wf-ic { width: 20px; height: 20px; }
.wf-stage .wf-steps { position: relative; margin-top: 8px; }
.wf-stage .wf-step { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 10px 0; }
.wf-stage .wf-step::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -10px; width: 2px; background: var(--c, #d1d5dc); }
.wf-stage .wf-step.walk::before { background: none; border-left: 2px dotted #99a1af; }
.wf-stage .wf-step:last-child::before { display: none; }
.wf-stage .wf-sic { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--soft); color: var(--ink2); }
.wf-stage .wf-sic .wf-ic { width: 16px; height: 16px; }
.wf-stage .wf-step.bus .wf-sic { background: var(--c); color: #fff; }
.wf-stage .wf-step.end .wf-sic { background: #e7000b; color: #fff; }
.wf-stage .wf-st { display: grid; gap: 2px; padding-top: 1px; min-width: 0; }
.wf-stage .wf-st1 { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); }
.wf-stage .wf-st2 { font-size: 12px; line-height: 16px; color: var(--mut); letter-spacing: 0; }
.wf-stage .wf-stt { padding-top: 1px; font-size: 13px; line-height: 19px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wf-stage .wf-step.wf-cur .wf-sic { box-shadow: 0 0 0 4px rgba(43,127,255,.25); }

@media (prefers-reduced-motion: reduce) {
  .wf-stage .wf-map.ease, .wf-stage .wf-sheet, .wf-stage .wf-ctrls, .wf-stage .wf-attr, .wf-stage .wf-langmenu, .wf-stage .wf-offline { transition-duration: 1ms; }
  .wf-stage .wf-screen.wf-enter, .wf-stage .wf-screen.wf-back, .wf-stage .wf-sbody.fade, .wf-stage .wf-tt.on, .wf-stage .wf-skel { animation: none; }
  .wf-stage .wf-pin.me .wf-pi::after { animation: none; opacity: .6; transform: scale(1); }
}

/* ---------- desktop: 1440 browser in a frame, lens-zoomed ---------- */
.wf-stage.wf-desk { width: 640px; height: 418px; overflow: hidden; border-radius: 12px; background: #e9e7e2; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 24px 48px -24px rgba(0,0,0,.35); }
.wf-stage .wd-frame { position: absolute; left: 0; top: 0; width: 1440px; height: 940px; transform-origin: 0 0; will-change: transform; background: #fff; }
.wf-stage .wd-frame.ease { transition: transform 900ms cubic-bezier(.65, 0, .25, 1); }
.wf-stage .wd-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px; background: #f1f1f0; border-bottom: 1px solid #e2e2e0; }
.wf-stage .wd-dots { display: flex; gap: 8px; }
.wf-stage .wd-dots b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.wf-stage .wd-dots b + b { background: #febc2e; } .wf-stage .wd-dots b + b + b { background: #28c840; }
.wf-stage .wd-url { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 14px; margin: 0 auto; border-radius: 8px; background: #fff; font: 500 13px/16px 'Inter', system-ui, sans-serif; color: #4a5565; min-width: 360px; justify-content: center; }
.wf-stage .wd-url .wf-ic { width: 12px; height: 12px; }
.wf-stage .wd-view.wf-scr { position: absolute; left: 0; top: 40px; width: 1440px; height: 900px; border-radius: 0; background: #f2efe9; }
.wf-stage .wd-map { position: absolute; left: 0; top: 0; width: 1280px; height: 1024px; transform-origin: 0 0; transform: translate(0px, -150px) scale(1.125); --iz: .89; }
.wf-stage .wd-pins .wf-pin.venue .wf-pl { left: auto; right: 0; transform: none; }
.wf-stage .wd-img { width: 1280px; height: 1024px; }
.wf-stage .wd-svg { position: absolute; inset: 0; width: 1280px; height: 1024px; overflow: visible; }
.wf-stage .wd-pins { position: absolute; inset: 0; }
.wf-stage .wd-pins .wf-pin { transform: translate(-50%, -50%) scale(.89); }
.wf-stage .wd-offmap { position: absolute; left: 470px; bottom: 40px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: #bb4d00; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(16,24,40,.16); opacity: 0; transform: translateY(6px); transition: opacity 300ms ease 600ms, transform 400ms ease 600ms; }
.wf-stage .wf-desk.wd-routed .wd-offmap { opacity: 1; transform: none; }
.wf-stage .wd-offmap .wf-ic { width: 14px; height: 14px; }
.wf-stage .wd-ctl { position: absolute; right: 16px; bottom: 40px; display: grid; gap: 8px; }
.wf-stage .wd-attr { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: 11px; line-height: 15px; color: #333; background: rgba(255,255,255,.75); }
.wf-stage .wd-panel { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 420px; display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: .67px solid rgba(229,231,235,.6); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); overflow: hidden; }
.wf-stage .wd-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 0; }
.wf-stage .wd-head .wf-lang { width: 42px; height: 42px; border-radius: 12px; font-size: 13px; }
.wf-stage .wd-search { display: flex; align-items: center; gap: 10px; height: 50px; margin: 20px 24px 0; padding: 0 16px; border-radius: 14px; border: .67px solid var(--line); color: #6a7282; font-size: 16px; }
.wf-stage .wd-search .wf-ic { width: 18px; height: 18px; }
.wf-stage .wd-chips { display: flex; gap: 12px; padding: 24px; margin-top: 24px; border-top: .67px solid #f3f4f6; border-bottom: .67px solid #f3f4f6; }
.wf-stage .wd-chips .wf-chip { height: 46px; }
.wf-stage .wd-body { flex: 1; min-height: 0; overflow: hidden; padding: 20px 24px 24px; }
.wf-stage .wd-list { display: grid; gap: 8px; }
.wf-stage .wd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: .67px solid var(--line); background: #fff; }
.wf-stage .wd-row .wf-av { width: 44px; height: 44px; }
.wf-stage .wd-mini { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.wf-stage .wd-ph { display: flex; align-items: center; gap: 12px; }
.wf-stage .wd-ph .wf-av { width: 48px; height: 48px; }
.wf-stage .wd-go { width: 100%; margin-top: 20px; height: 48px; }
.wf-stage .wd-stops { padding: 4px 4px 8px; }
.wf-stage .wd-stop { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 4px; border-radius: 14px; background: #fff; border: .67px solid rgba(229,231,235,.7); }
.wf-stage .wd-stop + .wd-stop { margin-top: 6px; }
.wf-stage .wd-stop.first { border-color: #bedbff; background: #f5f9ff; }
.wf-stage .wd-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f3e8ff; color: #8200db; font-size: 13px; font-weight: 700; flex: none; }
.wf-stage .wd-stop.first .wd-n { background: #dbeafe; color: var(--blue); }
.wf-stage .wd-hub .wf-dep { margin: 0 4px 4px; width: auto; }
.wf-stage .wd-hub .wf-rs .wf-lb { height: 18px; margin-left: 2px; vertical-align: 1px; }
.wf-stage .wf-desk .wf-rsum { margin-top: 16px; }
.wf-stage .wd-steps { margin-top: 12px; }
.wf-stage .wd-steps .wf-step { padding: 8px 0; }
.wf-stage .wd-steps .wf-step::before { top: 38px; bottom: -8px; }
.wf-stage .wd-steps .wf-step.metro .wf-sic { background: #e31e24; }
@media (prefers-reduced-motion: reduce) { .wf-stage .wd-frame.ease { transition-duration: 1ms; } .wf-stage .wd-offmap { transition: none; } }

/* ---------- kept from the redesign, in the original palette ---------- */
.wf-stage .wf-l1 { --lc: #155dfc; --lt: #eff6ff; --ld: #1447e6; }
.wf-stage .wf-l2 { --lc: #00a63e; --lt: #f0fdf4; --ld: #008236; }
.wf-stage .wf-l3 { --lc: #f54900; --lt: #fff7ed; --ld: #ca3500; }

/* line badge: colour + shape + number */
.wf-stage .wf-lb { gap: 4px; background: var(--lc); }
.wf-stage .wf-lsh { display: block; width: 7px; height: 7px; background: #fff; flex: none; }
.wf-stage .wf-lb.wf-l1 .wf-lsh { border-radius: 50%; }
.wf-stage .wf-lb.wf-l2 .wf-lsh { border-radius: 1px; }
.wf-stage .wf-lb.wf-l3 .wf-lsh { width: 6px; height: 6px; transform: rotate(45deg); border-radius: 1px; }
.wf-stage .wf-lbm { padding: 0 6px; }
.wf-stage .wf-peek-lines { gap: 4px; }

/* next bus as the hero of the place sheet */
.wf-stage .wf-depw + .wf-depw { margin-top: 6px; }
.wf-stage .wf-dep.wf-hero { display: block; padding: 12px 14px; border-radius: 16px; background: #fff; border: .67px solid rgba(229,231,235,.9); }
.wf-stage .wf-dh { display: flex; align-items: center; gap: 8px; }
.wf-stage .wf-dto { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-stage .wf-dbig { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.wf-stage .wf-dnum { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -1.2px; color: var(--green); font-variant-numeric: tabular-nums; }
.wf-stage .wf-dmin { font-size: 15px; font-weight: 600; color: var(--green); }
.wf-stage .wf-dat { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wf-stage .wf-dthen { display: flex; gap: 6px; font-size: 12px; line-height: 16px; color: var(--mut); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wf-stage .wf-dthen i { font-style: normal; color: #99a1af; }

/* route steps: a vertical diagram in the line colour */
.wf-stage .wf-step::before { width: 4px; left: 14px; border-radius: 2px; }
.wf-stage .wf-step.walk::before { left: 15px; width: 0; border-left: 2px dashed #99a1af; }
.wf-stage .wf-step.bus .wf-sic { box-shadow: 0 0 0 3px #fff, 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }

/* small things */
.wf-stage .wf-pin.sel .wf-pi { animation: wfdrop 480ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes wfdrop { 0% { transform: translateY(-14px) scale(1.22); } 100% { transform: scale(1.22); } }
.wf-stage .wf-pin.venue .wf-pl, .wf-stage .wd-pins .wf-pin.venue .wf-pl { left: auto; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .wf-stage .wf-pin.sel .wf-pi { animation: none; } }

/* ---------- /FPAPP wuf ---------- */

/* ---------- FPAPP orxr ---------- */
/* ---------- OneRouteX research: nutrition flow diagram (.or-flow) + terminology (.or-terms) ---------- */

/* the "device": a light diagram card, same surface as .demo */
.fp-device.or-flow { width: min(640px, 100%); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-l, 16px); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 520px) { .fp-device.or-flow { aspect-ratio: 5 / 4; } }
.or-flow .or-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.or-flow .or-tag { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--sunk) 88%, transparent); font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.or-flow .or-key { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--sunk) 88%, transparent); display: flex; gap: 12px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.or-flow .or-key span { display: inline-flex; align-items: center; gap: 4px; }
.or-flow .or-key svg { width: 12px; height: 12px; overflow: visible; fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.or-flow .or-key .k-sys svg { fill: var(--sunk); stroke: var(--muted); stroke-dasharray: 2 2; }
@media (max-width: 520px) { .or-flow .or-key { display: none; } }

/* shapes */
.or-flow .or-n rect, .or-flow .or-n path { fill: var(--bg); stroke: color-mix(in srgb, var(--ink) 36%, transparent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.or-flow .or-sys rect { fill: var(--sunk); stroke: var(--muted); stroke-dasharray: 4 3; }
.or-flow .or-pill rect { fill: var(--ink); stroke: var(--ink); }
.or-flow .or-pill .or-t { fill: var(--bg); }
.or-flow .or-dia path { stroke: var(--ink); }
.or-flow .or-dia.hot path { stroke: var(--red); stroke-width: 2; fill: color-mix(in srgb, var(--red) 8%, var(--bg)); }
.or-flow .or-chip rect { stroke: var(--line); }
.or-flow .or-db path { fill: var(--sunk); }
.or-flow .or-db .or-lid { fill: none; }
.or-flow .or-fr rect { fill: color-mix(in srgb, var(--bg) 45%, transparent); stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

/* text */
.or-flow .or-t { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--ink); }
.or-flow .or-ts { font-size: 12px; font-weight: 400; fill: var(--body); }
.or-flow .or-fl { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.or-flow .or-lab { font-family: var(--mono); font-size: 12px; fill: var(--red); }
.or-flow .or-lab.or-plain { fill: var(--muted); }

/* edges */
.or-flow .or-e .or-ln { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.or-flow .or-e.or-dash .or-ln { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; }
.or-flow .or-e .or-ah { fill: var(--muted); }
.or-flow .or-e.or-br .or-ln { stroke: var(--ink); }
.or-flow .or-e.or-br .or-ah { fill: var(--ink); }

/* reveal */
.or-flow .or-el { transition: opacity 360ms var(--ease); }
.or-flow .or-node { opacity: 0; }
.or-flow .or-node.on { opacity: 1; }
.or-flow .or-e .or-ah, .or-flow .or-e .or-lab { opacity: 0; transition: opacity 240ms var(--ease); }
.or-flow .or-e .or-ln { opacity: 0; }
.or-flow .or-e.on .or-ln { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease); }
.or-flow .or-e.on .or-ah, .or-flow .or-e.on .or-lab { opacity: 1; transition-delay: 300ms; }
.or-flow .or-e.or-dash.on .or-ln { opacity: 1; stroke-dasharray: 3 4; transition: opacity 360ms var(--ease); }

/* ---------- Terminology ---------- */
.or-terms.or-tb { margin-top: var(--g-l, 32px); display: grid; gap: 16px; }
.or-terms .or-lads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .or-terms .or-lads { grid-template-columns: 1fr; } }
.or-terms .or-lad { margin: 0; padding: 16px; border-radius: var(--r-l, 16px); background: var(--sunk); }
.or-terms .or-cap { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.or-terms .or-box { padding: 8px 12px 12px; border-radius: var(--r-m, 12px); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.or-terms .or-box .or-box { margin-top: 8px; padding-right: 8px; background: var(--sunk); }
.or-terms .or-box .or-box .or-box { background: var(--bg); }
.or-terms .or-box .or-box .or-box .or-box { background: var(--sunk); }
.or-terms .or-box b { display: block; font-family: var(--mono); font-size: 12px; line-height: 16px; font-weight: 400; color: var(--red); }
.or-terms .or-box span { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--body); }
.or-terms .or-gloss { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; overflow: hidden; border-radius: var(--r-m, 12px); background: var(--line); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 560px) { .or-terms .or-gloss { grid-template-columns: 1fr 1fr; } }
.or-terms .or-gloss div { padding: 12px; background: var(--bg); }
.or-terms .or-gloss dt { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.or-terms .or-gloss dd { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--ink); }
.or-terms .or-foot { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .or-flow .or-el, .or-flow .or-e .or-ln, .or-flow .or-e .or-ah, .or-flow .or-e .or-lab { transition: none !important; }
}

.or-wrap { margin: var(--g-l) 0; }
/* ---------- /FPAPP orxr ---------- */

/* food result: collapsing photo */
.fs-s .fs-hero { position: relative; z-index: 0; transform: translateY(var(--hy, 0)) scale(calc(1 - var(--hc, 0) * .2)); opacity: calc(1 - var(--hc, 0) * .85); filter: blur(calc(var(--hc, 0) * 5px)); transform-origin: 50% 60%; will-change: auto; }
.fs-s .fs-sheet { z-index: 1; }
.fs-s .fs-topbar .fs-tb-thumb { position: absolute; left: calc(50% - 82px); top: 58px; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.85); opacity: 0; transform: scale(.4) translateY(10px); transition: opacity 260ms ease, transform 420ms cubic-bezier(.3, 1.5, .5, 1); }
.fs-s .fs-topbar .fs-tb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fs-s.fs-collapsed .fs-topbar .fs-tb-thumb { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fs-s .fs-hero { filter: none; } .fs-s .fs-topbar .fs-tb-thumb { transition: opacity 200ms ease; } }

/* ---------- FPAPP lavis ---------- */
/* ---------- LAVIS players (lv-) ---------- */
.fp-device.lv-dev { width: 100%; }
.fp-device.lv-mob { width: min(250px, 100%); }
.lv-dev .lv-scaler { position: relative; width: 100%; height: 0; overflow: hidden; }
.lv-dev .lv-shell { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lv-dev .lv-frame { display: block; border: 0; background: #3a0812; pointer-events: none; }
.lv-dev .lv-hot { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }

/* desktop browser (drawn at 1440, scaled) */
.lv-desk .lv-scaler { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 40px rgba(40, 6, 14, .18); }
.lv-desk .lv-shell { width: 1440px; background: #ece8e2; }
.lv-desk .lv-chrome { position: relative; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px; background: #ece8e2; border-bottom: 1px solid #d9d3ca; }
.lv-desk .lv-chrome i { width: 16px; height: 16px; border-radius: 50%; background: #d3ccc2; }
.lv-desk .lv-url { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 520px; height: 32px; border-radius: 16px; background: #fff; color: #7b7068; font: 400 17px/32px system-ui, sans-serif; text-align: center; letter-spacing: .02em; }

/* phone (drawn at 390 + bezel, scaled) */
.lv-mob .lv-scaler { border-radius: 34px; box-shadow: 0 18px 40px rgba(40, 6, 14, .22); }
.lv-mob .lv-shell { width: 418px; padding: 14px; border-radius: 58px; background: #1b1416; }
.lv-mob .lv-frame { border-radius: 44px; }

/* ---------- /FPAPP lavis ---------- */
.fp > .fp-device.lv-mob { width: 250px; max-width: 100%; margin-inline: auto; }

/* pages nav nudge: the icon rings like a quiet bell, then rests */
#pages-nav a.nudge .pi { display: inline-block; color: var(--red); transform-origin: 50% 15%; animation: ndbell 7s ease-in-out var(--nd, 0s) infinite; }
@keyframes ndbell { 0%, 12%, 100% { transform: none; } 3% { transform: rotate(9deg); } 6% { transform: rotate(-7deg); } 9% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { #pages-nav a.nudge .pi { animation: none; } }


/* ---------- FPAPP early ---------- */
/* Where it started: early work pinned to a board. Scoped under .ea- */
.ea .ea-board { --h: 168px; --gap: 24px; position: relative; margin: 24px 0 0; padding: 32px 0 32px; overflow: hidden; border-radius: var(--r-m, 12px); background-color: var(--sunk); background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: 16px 16px; box-shadow: inset 0 0 0 1px var(--line); container-type: inline-size; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.ea .ea-track { display: flex; align-items: flex-start; width: max-content; padding-left: var(--gap); will-change: transform; }

/* card = a sheet of paper */
.ea .ea-card { position: relative; flex: none; display: flex; flex-direction: column; width: min-content; margin: var(--y, 0px) var(--gap) 0 0; padding: 8px 8px 12px; background: var(--card); border-radius: 2px; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 1px color-mix(in srgb, #000 8%, transparent), 0 8px 16px -8px color-mix(in srgb, #000 28%, transparent); }
.ea .ea-card.ea-tall { --h: 248px; }
.ea .ea-shot { position: relative; height: var(--h); aspect-ratio: var(--ar); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ea .ea-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ea .ea-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 0; }
.ea .ea-card .ea-tag { color: var(--muted); }
.ea .ea-card .ea-cap { color: var(--ink); font-size: 14px; line-height: 20px; }

/* washi tape */
.ea .ea-card::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 64px; height: 16px; margin-left: -32px; transform: rotate(var(--t, -4deg)); background: color-mix(in srgb, var(--red) 30%, transparent); background-image: repeating-linear-gradient(90deg, transparent 0 6px, color-mix(in srgb, #fff 22%, transparent) 6px 8px); clip-path: polygon(0 8%, 4% 0, 8% 12%, 12% 0, 100% 0, 96% 12%, 100% 28%, 96% 44%, 100% 60%, 96% 76%, 100% 92%, 96% 100%, 0 100%, 4% 84%, 0 68%, 4% 52%, 0 36%, 4% 20%); }
.ea .ea-card:nth-child(even)::before { background-color: color-mix(in srgb, var(--ink) 14%, transparent); }

/* Prototype Crazy: one 3x3 sheet, stepped through like the prototype */
.ea .ea-eyes .ea-shot img { width: 300%; height: auto; max-width: none; object-fit: fill; transform: translate(-33.3333%, -33.3333%); }

/* closing line */
.ea .ea-end { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 14px; line-height: 20px; }

/* narrow column */
@container (max-width: 420px) {
  .ea-board .ea-track { --gap: 20px; }
  .ea-board .ea-card { --h: 136px; }
  .ea-board .ea-card.ea-tall { --h: 200px; }
}

/* motion: pin in, then drift */
.ea .ea-board.ea-js .ea-card { opacity: 0; }
.ea .ea-board.ea-js .ea-card::before { opacity: 0; }
.ea .ea-board.ea-in .ea-card { animation: ea-pin 720ms var(--ease, cubic-bezier(.22,1,.36,1)) calc(var(--i, 0) * 180ms) both; }
.ea .ea-board.ea-in .ea-card::before { animation: ea-tape 260ms ease-out calc(var(--i, 0) * 180ms + 380ms) both; }
.ea .ea-board.ea-in .ea-card.ea-clone, .ea .ea-board.ea-in .ea-card.ea-clone::before { animation: none; opacity: 1; }
@keyframes ea-pin {
  0% { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r, 0deg) * -2)) scale(1.08); box-shadow: 0 24px 32px -12px color-mix(in srgb, #000 30%, transparent); }
  45% { opacity: 1; }
  70% { transform: translateY(2px) rotate(calc(var(--r, 0deg) * 1.25)) scale(.995); }
  100% { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
@keyframes ea-tape { from { opacity: 0; transform: rotate(var(--t, -4deg)) scale(1.3); } to { opacity: 1; transform: rotate(var(--t, -4deg)) scale(1); } }

.ea .ea-board.ea-drift .ea-track { animation: ea-drift var(--ea-dur, 60s) linear infinite; animation-play-state: paused; }
.ea .ea-board.ea-drift.ea-run .ea-track { animation-play-state: running; }
@keyframes ea-drift { from { transform: translateX(0); } to { transform: translateX(var(--ea-shift, -50%)); } }

.ea .ea-board.ea-js .ea-eyes .ea-shot img { animation: ea-look 7.2s steps(1, end) infinite; animation-play-state: paused; }
.ea .ea-board.ea-js.ea-run .ea-eyes .ea-shot img { animation-play-state: running; }
@keyframes ea-look {
  0%     { transform: translate(-33.3333%, -33.3333%); }
  11.11% { transform: translate(-33.3333%, 0); }
  22.22% { transform: translate(-66.6667%, 0); }
  33.33% { transform: translate(-66.6667%, -33.3333%); }
  44.44% { transform: translate(-66.6667%, -66.6667%); }
  55.55% { transform: translate(-33.3333%, -66.6667%); }
  66.66% { transform: translate(0, -66.6667%); }
  77.77% { transform: translate(0, -33.3333%); }
  88.88% { transform: translate(0, 0); }
}

/* reduced motion (or no JS observer): a still grid */
.ea .ea-board.ea-static .ea-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 32px; padding: 0 0 0 var(--gap); }
@media (prefers-reduced-motion: reduce) {
  .ea .ea-board .ea-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 32px; animation: none; transform: none; }
  .ea .ea-board .ea-card, .ea .ea-board .ea-card::before { opacity: 1; animation: none; }
  .ea .ea-board .ea-eyes .ea-shot img { animation: none; }
  .ea .ea-board .ea-clone { display: none; }
}

/* ---------- /FPAPP early ---------- */

/* playground runner */
.rn-wrap { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); padding: 16px 16px 12px; }
.rn { display: block; width: 100%; height: auto; aspect-ratio: 720 / 220; touch-action: manipulation; cursor: pointer; }
.rn-hud { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* fp theatre */
.fp.fp-hot:not(.fp-big) { cursor: zoom-in; }
.fp-ui.has-full { grid-template-columns: auto 1fr auto auto; }
.fp-full { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.fp-full:hover { border-color: var(--ink); }
.fp-full:active { transform: scale(.92); }
.fp-full svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fp-full .c, .fp-big .fp-full .o { display: none; } .fp-big .fp-full .c { display: inline; }
.fp-theatre { position: fixed; inset: 0; z-index: 9000; display: none; overscroll-behavior: contain; touch-action: none; outline: none; }
.fp-theatre::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--canvas) 97%, transparent); animation: fpthin 320ms var(--ease); transition: opacity 300ms var(--ease); }
.fp-theatre.on { display: block; }
.fp-tstage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.fp-tstage > .fp { grid-area: 1 / 1; }
.fp-theatre .fp { margin: 0; transform-origin: 50% 50%; cursor: default; }
.fp-theatre .fp.fp-anim { will-change: transform, opacity; }
.fp-tx, .fp-tnav button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: border-color 150ms var(--ease), opacity 150ms var(--ease); }
.fp-tx { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 20px; line-height: 1; }
.fp-tx:hover, .fp-tnav button:hover:not(:disabled) { border-color: var(--ink); }
.fp-tnav { position: absolute; right: 12px; top: 50%; z-index: 2; display: grid; gap: 8px; transform: translateY(-50%); }
.fp-tnav button:disabled { opacity: .35; }
.fp-tnav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fp-tmeta { position: absolute; top: 18px; left: 16px; right: 64px; z-index: 2; display: flex; gap: 10px; margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-tmeta .fp-tn { color: var(--ink); font-variant-numeric: tabular-nums; }
.fp-tmeta .fp-th { overflow: hidden; text-overflow: ellipsis; }
.fp-thint { position: absolute; left: 50%; bottom: 14px; z-index: 2; margin: 0; font-size: 12px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.fp-theatre.moved .fp-thint { opacity: 0; transition: opacity 300ms var(--ease); }
.fp-theatre .fp-tx, .fp-theatre .fp-tnav, .fp-theatre .fp-tmeta, .fp-theatre .fp-thint { animation: fpthin 300ms 180ms var(--ease) backwards; }
.fp-theatre.out::before { opacity: 0; }
.fp-theatre.out .fp-tx, .fp-theatre.out .fp-tnav, .fp-theatre.out .fp-tmeta, .fp-theatre.out .fp-thint { animation: fpthout 160ms var(--ease) forwards; }
@keyframes fpthin { from { opacity: 0; } to { opacity: 1; } }
@keyframes fpthout { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fp-theatre::before, .fp-theatre .fp-tx, .fp-theatre .fp-tnav, .fp-theatre .fp-tmeta, .fp-theatre .fp-thint { animation: none; } }
@media (max-width: 600px) { .fp-tnav { display: none; } }

/* the custom cursor stays above every overlay */
.cur { z-index: 9500; }



/* in-progress card: on narrow screens the two buttons stack as equal, full-width rows */
@media (max-width: 600px) { .wip-a > * { flex: 1 1 100%; justify-content: center; } }

/* OneRouteX peek: two phones fanned on the brand lime, the front one cycles home, scan and XPulse */
.pk-orx { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(90% 120% at 30% 0%, #d4fb5a, #c2f526 60%, #b2e214); }
.th .pk-orx { position: relative; display: block; width: 100%; height: 100%; min-height: 64px; border-radius: inherit; }
.pk-ow { position: absolute; left: 7%; top: 9%; font: 700 11px/1 "Plus Jakarta Sans", var(--sans); letter-spacing: -.02em; color: #0a0d12; opacity: .85; }
.pk-oph { position: absolute; top: 19%; width: 36%; aspect-ratio: 375 / 560; border-radius: 14px 14px 0 0; padding: 3px 3px 0; background: #0a0d12; overflow: hidden; }
.pk-oph img { position: absolute; left: 3px; right: 3px; top: 3px; width: calc(100% - 6px); height: auto; border-radius: 11px 11px 0 0; }
.pk-oback { left: 12%; transform: rotate(-9deg); transform-origin: 50% 100%; opacity: .92; box-shadow: 0 10px 24px rgba(52, 70, 0, .28); }
.pk-ofront { left: 50%; top: 15%; transform: rotate(5deg); transform-origin: 50% 100%; box-shadow: 0 14px 30px rgba(40, 56, 0, .38); }
.pk-ofront img { opacity: 0; animation: pkorx 6s ease-in-out infinite; }
.pk-ofront img:nth-child(1) { opacity: 1; }
.pk-ofront img:nth-child(2) { animation-delay: 2s; }
.pk-ofront img:nth-child(3) { animation-delay: 4s; }
@keyframes pkorx { 0% { opacity: 0; } 6%, 33% { opacity: 1; } 40%, 100% { opacity: 0; } }
.peek.on .pk-oback, .ofr:hover .pk-oback { animation: pkofan 600ms var(--ease) both; }
.peek.on .pk-ofront, .ofr:hover .pk-ofront { animation: pkofan2 600ms var(--ease) both; }
@keyframes pkofan { from { transform: rotate(-3deg) translateY(8px); } to { transform: rotate(-9deg); } }
@keyframes pkofan2 { from { transform: rotate(1deg) translateY(12px); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .pk-ofront img, .pk-oback, .pk-ofront { animation: none !important; } .pk-ofront img:not(:first-child) { opacity: 0; } }

/* layers: projects are frames, their sections are nested layers (only the frame you are in stays open) */
.toc-g { display: flex; flex-direction: column; }
.toc-f { gap: 4px; color: var(--body); font-weight: 500; }
.toc-c { flex: none; width: 10px; height: 10px; display: grid; place-items: center; }
.toc-c::before { content: ""; width: 0; height: 0; border-left: 4px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent; opacity: .55; transition: transform 240ms var(--ease); }
.toc-g.open .toc-c::before { transform: rotate(90deg); }
.toc-g.leaf .toc-c::before { opacity: 0; }
.toc-hash { flex: none; font-style: normal; font-family: var(--mono); font-size: 12px; opacity: .6; }
.toc-g.in > .toc-f { color: var(--ink); opacity: 1; }
.toc-g.in > .toc-f .toc-hash { color: var(--red); opacity: 1; }
.toc-kids { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.toc-kids > div { overflow: hidden; display: flex; flex-direction: column; margin-left: 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.toc-g.open .toc-kids { grid-template-rows: 1fr; }
.toc-sub { font-size: 12.5px; min-height: 26px; }
@media (prefers-reduced-motion: reduce) { .toc-kids, .toc-c::before { transition: none; } }

/* concepts: the reserved next frame */
.nx-frame { position: relative; margin: 32px 0 8px; padding-top: 22px; }
.nx-lab { position: absolute; left: 0; top: 0; display: flex; gap: 8px; align-items: baseline; font-size: 12px; line-height: 16px; color: var(--muted); }
.nx-lab b { font-weight: 500; color: var(--body); }
.nx-lab i { font-style: normal; color: var(--red); }
.nx-lab i::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: nxblink 2.4s ease-in-out infinite; }
.nx-box { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 220px; padding: 32px 24px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 2px; text-align: center;
  background-color: var(--card); background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; background-position: 8px 8px; }
.nx-plus { position: relative; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); }
.nx-plus::before, .nx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--muted); transform: translate(-50%, -50%); }
.nx-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.nx-box .nx-t { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.nx-box .nx-s { margin: 0; max-width: 32ch; font-size: 13px; line-height: 20px; color: var(--muted); }
.nx-dim { position: absolute; left: 50%; bottom: -22px; padding: 1px 6px; border-radius: 3px; font-size: 11px; line-height: 16px; color: var(--muted); transform: translateX(-50%); }
@keyframes nxblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nx-lab i::before { animation: none; } }

/* about: toolkit */
.toolkit { display: grid; gap: 20px; margin: 24px 0 8px; }
.tk-g ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-h { margin: 0 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.tk-i { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
.tk-i:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-1px); }
.tk-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 12px; }
.tk-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-plate { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.tk-plate img { width: 64%; height: 64%; object-fit: contain; }
.tk-t { display: grid; min-width: 0; }
.tk-t b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.tk-t i { font-style: normal; font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 600px) { .tk-g ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prose .toolkit .tk-g ul { padding: 0; margin: 0; }
.prose .toolkit .tk-i { margin: 0; }
.prose .toolkit .tk-i::before { content: none; }

/* ---------- FPAPP azcon ---------- */
/* AZCON Supervisory Board: board secretary's meeting flow, coded from Figma czWS7n6wmYb8O3V5aq5BC2 (section 15219:65528).
   Watch-only flow-player prototype. Every selector is scoped under .az-stage. Design canvas 1440x1024, scaled by --s. */

/* ---------- stage + browser frame ---------- */
.fp .az-dev { width: 100%; max-width: 640px; }
.az-stage { --s: .4167; display: grid; justify-items: center; width: 100%; margin: 0; }
.az-stage .az-browser { width: 100%; max-width: 640px; overflow: hidden; border-radius: 12px; background: #0c111d; box-shadow: 0 0 0 1px rgba(16,24,40,.1), 0 24px 48px -16px rgba(16,24,40,.28), 0 4px 10px -4px rgba(16,24,40,.08); }
.az-stage .az-chrome { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 12px; background: #eef2f6; border-bottom: 1px solid #e3e8ef; }
.az-stage .az-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.az-stage .az-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cdd5df; }
.az-stage .az-dots i:first-child { background: #ff6159; } .az-stage .az-dots i:nth-child(2) { background: #ffbd2e; } .az-stage .az-dots i:nth-child(3) { background: #28c941; }
.az-stage .az-dots.az-ghost { visibility: hidden; }
.az-stage .az-url { min-width: 0; overflow: hidden; padding: 3px 14px; border-radius: 99px; background: #fff; font: 500 11px/16px Inter, system-ui, sans-serif; color: #4b5565; letter-spacing: .1px; white-space: nowrap; text-overflow: ellipsis; }
.az-stage .az-vp { position: relative; width: 100%; height: calc(1024px * var(--s)); overflow: hidden; background: #0c111d; }
.az-stage .az-scale { position: absolute; left: 0; top: 0; width: 1440px; height: 1024px; transform: scale(var(--s)); transform-origin: 0 0; }
.az-stage .az-lens { width: 1440px; height: 1024px; transform-origin: 0 0; transition: transform 600ms cubic-bezier(.45, 0, .2, 1); will-change: transform; }
@media (max-width: 480px) { .az-stage .az-chrome { height: 26px; padding: 0 8px; } .az-stage .az-dots i { width: 7px; height: 7px; } .az-stage .az-dots { gap: 4px; } .az-stage .az-url { font-size: 10px; padding: 1px 10px; } .az-stage .az-browser { border-radius: 10px; } }

/* ---------- app reset ---------- */
.az-stage .az-app { position: relative; display: flex; width: 1440px; height: 1024px; overflow: hidden; background: #0c111d; color: #101828; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; text-align: left; letter-spacing: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.az-stage .az-app *, .az-stage .az-app *::before, .az-stage .az-app *::after { box-sizing: border-box; }
.az-stage .az-app :where(h3, h4, h5, p, ol, ul, li, small, b, em, i, span, label) { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; list-style: none; border: 0; }
.az-stage .az-app :where(img, svg) { display: block; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; flex: 0 0 auto; }
.az-stage .az-app :where(button) { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; letter-spacing: inherit; cursor: pointer; border-radius: 0; box-shadow: none; text-transform: none; -webkit-appearance: none; appearance: none; }
.az-stage .az-app :where(input, textarea) { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: #101828; outline: none; box-shadow: none; resize: none; -webkit-appearance: none; appearance: none; min-width: 0; }
.az-stage .az-app input::placeholder, .az-stage .az-app textarea::placeholder { color: #98a2b3; opacity: 1; }
.az-stage .az-app [hidden] { display: none !important; }
.az-stage .az-ic { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.az-stage .az-sv { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sidebar ---------- */
.az-stage .az-side { display: flex; flex-direction: column; flex: 0 0 320px; width: 320px; height: 1024px; background: #0c111d; }
.az-stage .az-brand { display: flex; align-items: center; gap: 16px; padding: 40px 24px; }
.az-stage .az-brand img { width: 128px; height: 40px; }
.az-stage .az-brand-t { display: flex; align-items: center; gap: 12px; flex: 1 1 0; }
.az-stage .az-brand-t::before { content: ""; width: 1px; height: 40px; background: #344054; }
.az-stage .az-brand-t span { flex: 1 1 0; font-weight: 500; font-size: 16px; line-height: 24px; color: #d1d1d6; }
.az-stage .az-menu { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-bottom: 1px solid #232627; }
.az-stage .az-mi { position: relative; display: flex !important; justify-content: flex-start !important; gap: 20px; width: 288px; height: 48px; padding: 12px !important; border-radius: 12px !important; font-weight: 500; font-size: 14px; line-height: 20px; color: #98a2b3; box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important; }
.az-stage .az-mi img { width: 24px; height: 24px; }
.az-stage .az-mi.az-on { background: #182230; color: #fff; box-shadow: none !important; }
.az-stage .az-mi.az-on::before { content: ""; position: absolute; left: 0; top: 12px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: #47cd89; }

/* ---------- main card + header ---------- */
.az-stage .az-main { flex: 1 1 0; min-width: 0; height: 1024px; padding: 24px 24px 24px 0; }
.az-stage .az-card { position: relative; display: flex; flex-direction: column; height: 976px; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.1); }
.az-stage .az-hdr { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; flex: 0 0 112px; height: 112px; padding: 24px 40px 24px 32px; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 12px 40px -12px rgba(0,0,0,.06); }
.az-stage .az-hd { display: flex; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.az-stage .az-h1 { padding: 0 8px; font-weight: 600; font-size: 24px; line-height: 32px; color: #141718; white-space: nowrap; }
.az-stage .az-crumbs { display: flex; align-items: center; gap: 8px; }
.az-stage .az-crumbs:empty { display: none; }
.az-stage .az-cr { padding: 4px 8px; border-radius: 6px; font-weight: 500; font-size: 14px; line-height: 20px; color: #98a2b3; white-space: nowrap; }
.az-stage .az-cr-n { padding: 4px 0; color: #344054; }
.az-stage .az-cr-on { background: #eff4ff; font-weight: 600; color: #155eef; }
.az-stage .az-crumbs img { width: 20px; height: 20px; }
.az-stage .az-hr { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.az-stage .az-bell { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 100px; background: #f2f4f7; }
.az-stage .az-bell img { width: 32px; height: 32px; }
.az-stage .az-me { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 30px; background: #f2f4f7; }
.az-stage .az-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #d1e0ff; color: #004eeb; font-weight: 600; font-size: 14px; line-height: 20px; }
.az-stage .az-me-t { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; white-space: nowrap; }
.az-stage .az-me-t b { font-weight: 600; color: #344054; }
.az-stage .az-me-t small { color: #475467; }

/* ---------- views ---------- */
.az-stage .az-view { display: none; flex: 1 1 0; min-height: 0; flex-direction: column; }
.az-stage .az-app[data-view="list"] .az-v-list, .az-stage .az-app[data-view="create"] .az-v-create, .az-stage .az-app[data-view="meeting"] .az-v-meeting, .az-stage .az-app[data-view="issue"] .az-v-issue { display: flex; animation: azview 300ms ease both; }
@keyframes azview { from { opacity: 0; } }
.az-stage .az-scroll { flex: 1 1 0; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.az-stage .az-scroll::-webkit-scrollbar { display: none; }
.az-stage .az-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; padding: 24px 40px; border-top: 1px solid #eaecf0; background: #fff; border-radius: 0 0 20px 20px; }
.az-stage .az-foot-r { display: flex; gap: 8px; margin-left: auto; }

/* ---------- buttons ---------- */
.az-stage .az-btn { gap: 10px; height: 56px; padding: 14px 22px !important; border: 1px solid transparent !important; border-radius: 16px !important; font-weight: 600; font-size: 18px; line-height: 28px; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease; }
.az-stage .az-btn .az-sv, .az-stage .az-btn .az-ic { width: 24px; height: 24px; }
.az-stage .az-btn-p { background: #155eef !important; border-color: #155eef !important; color: #fff; }
.az-stage .az-btn-p[aria-disabled="true"] { background: #d0d5dd !important; border-color: #d0d5dd !important; color: #f9fafb; }
.az-stage .az-btn-o { background: #fff !important; border-color: #eaecf0 !important; color: #0c0c0c; }
.az-stage .az-btn-g { background: #f2f4f7 !important; color: #0c0c0c; }
.az-stage .az-btn-r { background: #fef3f2 !important; color: #f04438; }
.az-stage .az-btn-soft { background: #eff4ff !important; color: #155eef; }
.az-stage .az-btn-w { min-width: 200px; }
.az-stage .az-btn-m { height: 44px; padding: 10px 16px !important; border-radius: 12px !important; font-size: 16px; line-height: 24px; gap: 8px; }
.az-stage .az-btn-m .az-sv, .az-stage .az-btn-m .az-ic { width: 20px; height: 20px; }
.az-stage .az-btn-s { gap: 4px; padding: 8px 12px !important; border-radius: 8px !important; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.az-stage .az-btn-s .az-sv, .az-stage .az-btn-s .az-ic { width: 20px; height: 20px; }
.az-stage .az-btn-dark { background: #182230 !important; color: #fff; }
.az-stage .az-btn-blue { background: #155eef !important; color: #fff; }
.az-stage .az-ibtn { display: grid !important; place-items: center; width: 36px; height: 36px; border: 1px solid #eaecf0 !important; border-radius: 8px !important; background: #fff !important; color: #0c0c0c; }
.az-stage .az-ibtn img, .az-stage .az-ibtn .az-sv { width: 20px; height: 20px; }

/* ---------- chips / badges ---------- */
.az-stage .az-cnt { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid #eaecf0; border-radius: 16px; background: #f9fafb; font-weight: 500; font-size: 12px; line-height: 18px; color: #344054; }
.az-stage .az-fmt { display: flex; justify-content: center; width: 100%; padding: 2px 10px; border: 1px solid #eaecf0; border-radius: 16px; background: #f9fafb; font-weight: 500; font-size: 14px; line-height: 20px; color: #344054; white-space: nowrap; }
.az-stage .az-fmt[data-f="online"] { background: #f0f9ff; border-color: #b9e6fe; color: #026aa2; }
.az-stage .az-fmt[data-f="hibrid"] { background: #eef4ff; border-color: #c7d7fe; color: #3538cd; }
.az-stage .az-fmt[data-f="qerar"] { background: #fef6ee; border-color: #f9dbaf; color: #b93815; }
.az-stage .az-stg { display: flex; justify-content: center; width: 122px; padding: 4px 16px; border-radius: 6px; background: #f4f3ff; font-weight: 700; font-size: 12px; line-height: 18px; color: #6938ef; white-space: nowrap; }
.az-stage .az-person { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border: 1px solid #eaecf0; border-radius: 8px; background: #f9fafb; }
.az-stage .az-person.az-nox { padding-right: 4px; }
.az-stage .az-person > span { font-weight: 500; font-size: 12px; line-height: 18px; color: #344054; white-space: nowrap; margin-right: 4px; }
.az-stage .az-person > em { padding: 2px 6px; border: 1px solid #b2ccff; border-radius: 6px; background: #eff4ff; font-weight: 500; font-size: 12px; line-height: 18px; color: #004eeb; white-space: nowrap; }
.az-stage .az-person > i { display: grid; place-items: center; width: 24px; height: 24px; padding: 4px; border-radius: 4px; }
.az-stage .az-person > i img { width: 16px; height: 16px; }
.az-stage .az-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.az-stage .az-tag { display: inline-flex; padding: 4px 10px; border-radius: 8px; border: 1px solid #b9e6fe; background: #f0f9ff; font-weight: 600; font-size: 14px; line-height: 20px; color: #0086c9; white-space: nowrap; }
.az-stage .az-tag[data-t="muzakire"] { border-color: #d9d6fe; background: #f4f3ff; color: #6938ef; font-weight: 500; }
.az-stage .az-tag-s { padding: 2px 6px; border-radius: 6px; font-size: 12px; line-height: 18px; font-weight: 500; }
.az-stage .az-num { display: inline-flex; padding: 2px 8px; border: 1px solid #b9e6fe; border-radius: 6px; background: #f0f9ff; font-weight: 500; font-size: 14px; line-height: 20px; color: #026aa2; }
.az-stage .az-st { display: inline-flex; justify-content: center; min-width: 100px; padding: 4px 16px; border-radius: 6px; font-weight: 700; font-size: 12px; line-height: 18px; white-space: nowrap; }
.az-stage .az-st[data-s="ready"] { background: #fffaeb; color: #dc6803; }
.az-stage .az-st[data-s="wait"] { background: #fffaeb; color: #dc6803; }
.az-stage .az-st[data-s="file"] { background: #f4f3ff; color: #6938ef; }
.az-stage .az-st[data-s="done"] { background: #eff4ff; color: #155eef; }
.az-stage .az-vchip { display: inline-flex; padding: 4px 9px; border: 1px solid #abefc6; border-radius: 6px; background: #ecfdf3; font-weight: 500; font-size: 12px; line-height: 18px; color: #067647; white-space: nowrap; }
.az-stage .az-vchip.az-no { border-color: #fef3f2; background: #fef3f2; color: #d92d20; }
.az-stage .az-vchip.az-n { border-color: #eaecf0; background: #f9fafb; color: #344054; }

/* ---------- form controls ---------- */
.az-stage .az-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.az-stage .az-lb { display: flex; gap: 6px; font-weight: 500; font-size: 14px; line-height: 20px; color: #344054; white-space: nowrap; }
.az-stage .az-lb b { font-weight: 500; color: #f04438; }
.az-stage .az-in { position: relative; display: flex !important; align-items: center; justify-content: flex-start !important; gap: 8px; width: 100%; height: 48px; padding: 8px 12px !important; border: 1px solid #d0d5dd !important; border-radius: 10px !important; background: #fff !important; font-size: 16px; line-height: 24px; color: #101828; text-align: left; transition: border-color 200ms ease, box-shadow 200ms ease; }
.az-stage .az-in.az-lg { height: 56px; padding: 8px 20px !important; border-radius: 12px !important; }
.az-stage .az-in > span, .az-stage .az-in > input { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.az-stage .az-in .az-ph { color: #98a2b3; }
.az-stage .az-in > img, .az-stage .az-in > .az-ic, .az-stage .az-in > .az-sv { width: 20px; height: 20px; color: #667085; }
.az-stage .az-in.az-lg > img, .az-stage .az-in.az-lg > .az-ic, .az-stage .az-in.az-lg > .az-sv { width: 24px; height: 24px; }
.az-stage .az-in.az-focus, .az-stage .az-ta.az-focus { border-color: #84adff !important; box-shadow: 0 0 0 4px #eff4ff; }
.az-stage .az-ta { display: block; width: 100%; height: 120px; padding: 12px 16px; border: 1px solid #d0d5dd; border-radius: 12px; background: #fff; font-size: 16px; line-height: 24px; color: #101828; transition: border-color 200ms ease, box-shadow 200ms ease; }
.az-stage .az-row { display: flex; gap: 24px; }
.az-stage .az-row > * { flex: 1 1 0; }
.az-stage .az-row-12 { gap: 12px; }
.az-stage .az-cbx { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #fff; transition: background-color 160ms ease, border-color 160ms ease; }
.az-stage .az-cbx .az-sv { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity 160ms ease; }
.az-stage .az-cbx.az-on { border-color: #155eef; background: #155eef; }
.az-stage .az-cbx.az-on .az-sv { opacity: 1; }

/* dropdown menu */
.az-stage .az-dd { position: relative; }
.az-stage .az-menu-dd { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03), 0 0 0 1px #eaecf0; animation: azpop 180ms ease both; }
.az-stage .az-opt { display: flex !important; justify-content: space-between !important; width: 100%; height: 48px; padding: 0 16px !important; border-radius: 8px !important; font-size: 16px; line-height: 24px; color: #101828; }
.az-stage .az-opt.az-sel-on { background: #f9fafb !important; }
.az-stage .az-opt .az-sv { width: 20px; height: 20px; color: #155eef; opacity: 0; }
.az-stage .az-opt.az-sel-on .az-sv { opacity: 1; }
.az-stage .az-opt-c { justify-content: flex-start !important; gap: 12px; border-bottom: 1px solid #f2f4f7; border-radius: 0 !important; }
.az-stage .az-opt-c b { font-weight: 600; color: #101828; }
.az-stage .az-opt-c small { color: #667085; }
@keyframes azpop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- list view ---------- */
.az-stage .az-v-list .az-scroll { padding: 24px 24px 0; }
.az-stage .az-panel { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 24px; background: #fff; }
.az-stage .az-acts { display: flex; align-items: center; justify-content: space-between; }
.az-stage .az-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #eaecf0; border-radius: 10px; background: #f9fafb; }
.az-stage .az-tab { gap: 8px; height: 36px; padding: 8px 12px !important; border-radius: 6px !important; font-weight: 600; font-size: 14px; line-height: 20px; color: #667085; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.az-stage .az-tab.az-on { background: #fff !important; color: #344054; box-shadow: 0 1px 3px rgba(16,24,40,.1), 0 1px 2px rgba(16,24,40,.06) !important; }
.az-stage .az-tools { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.az-stage .az-search { width: 379px; height: 44px !important; }
.az-stage .az-search .az-ph { font-size: 16px; }
.az-stage .az-filt { width: auto; height: 44px !important; font-weight: 500; }
.az-stage .az-filt b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #155eef; font-weight: 600; font-size: 12px; line-height: 18px; color: #fff; }
.az-stage .az-new img { width: 20px; height: 20px; }
.az-stage .az-tbl { display: flex; flex-direction: column; }
.az-stage .az-tr { display: grid; grid-template-columns: 124px 1fr 128px 172px 156px 68px; align-items: center; height: 64px; border-bottom: 1px solid #eaecf0; background: #fff; }
.az-stage .az-tr > * { padding: 0 16px; min-width: 0; }
.az-stage .az-tr > span { overflow: hidden; font-weight: 500; font-size: 16px; line-height: 24px; color: #101828; white-space: nowrap; text-overflow: ellipsis; }
.az-stage .az-th { height: 60px; border: 0; border-radius: 10px; background: #eff4ff; }
.az-stage .az-th > span { font-weight: 600; font-size: 14px; line-height: 20px; color: #155eef; }
.az-stage .az-tr > .az-gear { justify-self: end; }
.az-stage .az-tr.az-new-row { animation: aznewrow 1600ms ease both; }
@keyframes aznewrow { 0% { background: #eff4ff; } 70% { background: #eff4ff; } 100% { background: #fff; } }
.az-stage .az-pages { display: flex; justify-content: center; gap: 44px; padding: 24px 0; }
.az-stage .az-pn { display: flex; }
.az-stage .az-pn span { display: grid; place-items: center; width: 37px; height: 36px; border-radius: 8px; font-weight: 600; font-size: 14px; line-height: 20px; color: #0c111d; }
.az-stage .az-pn span.az-on { background: #f2f4f7; }
.az-stage .az-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 16px; border: 1px dashed #d0d5dd; border-radius: 16px; animation: azview 300ms ease both; }
.az-stage .az-empty img { width: 192px; height: 180px; }
.az-stage .az-empty p { font-weight: 500; font-size: 16px; line-height: 24px; color: #101828; text-align: center; }
.az-stage .az-v-list .az-empty { gap: 20px; margin-top: 20px; padding: 56px 16px; }
.az-stage .az-v-list .az-empty p { font-weight: 600; }

/* filter popover + date picker */
.az-stage .az-pop { position: absolute; z-index: 20; display: flex; flex-direction: column; gap: 24px; width: 480px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -12px rgba(16,24,40,.18), 0 0 0 1px #eaecf0; animation: azpop 200ms ease both; }
.az-stage .az-pop-filter { left: 220px; top: 136px; }
.az-stage .az-pop-h { display: flex; align-items: center; justify-content: space-between; }
.az-stage .az-pop-h h4 { font-weight: 600; font-size: 24px; line-height: 32px; color: #101828; }
.az-stage .az-pop-b { display: flex; flex-direction: column; gap: 16px; }
.az-stage .az-pop-f { display: flex; gap: 12px; }
.az-stage .az-pop-f > * { flex: 1 1 0; }
.az-stage .az-dp { left: 712px; top: 226px; width: 328px; gap: 0; padding: 0; border-radius: 16px; overflow: hidden; }
.az-stage .az-dp-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; font-weight: 600; font-size: 16px; line-height: 24px; color: #344054; }
.az-stage .az-dp-h img { width: 20px; height: 20px; opacity: .6; }
.az-stage .az-dp-g { display: grid; grid-template-columns: repeat(7, 40px); row-gap: 4px; justify-content: center; padding: 0 16px 16px; }
.az-stage .az-dp-g > span { display: grid; place-items: center; height: 40px; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-dp-g > .az-wd { font-weight: 500; color: #344054; }
.az-stage .az-dp-g > .az-mute { color: #667085; }
.az-stage .az-dp-g > .az-in-r { background: #f9fafb; }
.az-stage .az-dp-g > .az-r0 { border-radius: 20px 0 0 20px; }
.az-stage .az-dp-g > .az-r1 { border-radius: 0 20px 20px 0; }
.az-stage .az-dp-g > .az-pick { position: relative; color: #fff; font-weight: 500; }
.az-stage .az-dp-g > .az-pick::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #155eef; z-index: 0; }
.az-stage .az-dp-g > .az-pick b { position: relative; font-weight: 500; }
.az-stage .az-dp-f { display: flex; gap: 12px; padding: 16px; border-top: 1px solid #eaecf0; }
.az-stage .az-dp-f > * { flex: 1 1 0; }

/* ---------- create view ---------- */
.az-stage .az-v-create .az-scroll { padding: 24px; }
.az-stage .az-form { display: flex; flex-direction: column; gap: 24px; padding: 32px 80px; }
.az-stage .az-form h3 { font-weight: 600; font-size: 30px; line-height: 38px; color: #101828; }
.az-stage .az-form .az-in { height: 58px; }
.az-stage .az-form .az-in.az-lg { height: 56px; }
.az-stage .az-half { width: calc(50% - 12px); }
.az-stage .az-fx { animation: azfield 320ms ease both; }
@keyframes azfield { from { opacity: 0; transform: translateY(-6px); } }
.az-stage .az-box { display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid #eaecf0; border-radius: 20px; }
.az-stage .az-box > h4 { font-weight: 500; font-size: 20px; line-height: 30px; color: #344054; }
.az-stage .az-pick-row { display: flex; align-items: flex-end; gap: 16px; }
.az-stage .az-pick-row > .az-f { flex: 1 1 0; }
.az-stage .az-toast { position: absolute; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: flex-start; gap: 16px; width: 460px; padding: 16px; border: 1px solid #b2ccff; border-radius: 12px; background: #fff; box-shadow: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03); animation: aztoast 360ms cubic-bezier(.2,.8,.2,1) both; }
.az-stage .az-toast > i { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #155eef; box-shadow: 0 0 0 4px #d1e0ff; color: #fff; }
.az-stage .az-toast > i .az-sv { width: 18px; height: 18px; stroke-width: 3; }
.az-stage .az-toast p { flex: 1 1 0; padding-top: 6px; font-weight: 600; font-size: 14px; line-height: 20px; color: #101828; }
.az-stage .az-toast img { width: 20px; height: 20px; margin-top: 6px; opacity: .6; }
@keyframes aztoast { from { opacity: 0; transform: translateY(12px); } }

/* ---------- meeting view ---------- */
.az-stage .az-mt { display: flex; flex-direction: column; gap: 24px; padding: 32px 40px; }
.az-stage .az-steps { position: relative; display: flex; height: 104px; padding: 16px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-steps-l { position: absolute; left: 78px; right: 78px; top: 39px; height: 2px; background: #eaecf0; }
.az-stage .az-steps-l i { display: block; height: 2px; background: #344054; transition: width 600ms ease; }
.az-stage .az-step { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.az-stage .az-step > i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(16,24,40,.05); color: #344054; transition: color 300ms ease; }
.az-stage .az-step > i .az-ic { width: 20px; height: 20px; }
.az-stage .az-step > span { font-weight: 600; font-size: 14px; line-height: 20px; color: #344054; text-align: center; white-space: nowrap; transition: color 300ms ease; }
.az-stage .az-step.az-cur > i, .az-stage .az-step.az-cur > span { color: #155eef; }
.az-stage .az-step.az-fut > i, .az-stage .az-step.az-fut > span { color: #98a2b3; }
.az-stage .az-steps.az-s4 .az-steps-l { left: 143px; right: 143px; }
.az-stage .az-ttabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #eaecf0; border-radius: 10px; background: #f9fafb; }
.az-stage .az-ttab { flex: 1 1 0; height: 44px; padding: 8px 12px !important; border-radius: 6px !important; font-weight: 600; font-size: 16px; line-height: 24px; color: #667085; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.az-stage .az-ttab.az-on { background: #fff !important; color: #344054; box-shadow: 0 1px 3px rgba(16,24,40,.1), 0 1px 2px rgba(16,24,40,.06) !important; }
.az-stage .az-pane { display: flex; flex-direction: column; gap: 12px; }
.az-stage .az-pane + .az-pane { margin-top: -12px; }
.az-stage .az-alert { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; border-radius: 12px; background: #eff4ff; color: #155eef; animation: azfield 360ms ease both; }
.az-stage .az-alert > i { position: relative; display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 8px solid #d1e0ff; border-radius: 28px; background: #155eef; }
.az-stage .az-alert > i img, .az-stage .az-alert > i .az-ic { width: 24px; height: 24px; color: #fff; }
.az-stage .az-alert h5 { font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -.2px; }
.az-stage .az-alert p { margin-top: 6px; font-weight: 500; font-size: 16px; line-height: 24px; }
.az-stage .az-alert.az-err { background: #fef3f2; color: #d92d20; }
.az-stage .az-alert.az-err > i { border-color: #fee4e2; background: #d92d20; }
.az-stage .az-sec { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 24px; background: #fff; }
.az-stage .az-sec-h { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.az-stage .az-sec-h h4 { flex: 1 1 0; font-weight: 600; font-size: 20px; line-height: 30px; color: #182230; }
.az-stage .az-issue { display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid #eaecf0; border-radius: 16px; background: #f9fafb; animation: azfield 360ms ease both; }
.az-stage .az-issue-h { display: flex; align-items: center; gap: 8px; }
.az-stage .az-issue-h > div { display: flex; flex: 1 1 0; align-items: center; gap: 12px; min-width: 0; }
.az-stage .az-issue-h h5 { font-weight: 600; font-size: 20px; line-height: 30px; color: #202939; white-space: nowrap; }
.az-stage .az-chev { display: grid !important; place-items: center; width: 36px; height: 36px; border-radius: 8px !important; background: #eaecf0 !important; }
.az-stage .az-chev img { width: 24px; height: 24px; }
.az-stage .az-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.az-stage .az-kv > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.az-stage .az-kv small { font-size: 14px; line-height: 20px; color: #697586; }
.az-stage .az-kv b { font-weight: 500; font-size: 16px; line-height: 24px; color: #364152; }
.az-stage .az-kv .az-wide { grid-column: 1 / -1; }

/* live */
.az-stage .az-cardw { display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid #eaecf0; border-radius: 16px; background: #fff; }
.az-stage .az-cardw-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.az-stage .az-cardw-h h4 { font-weight: 600; font-size: 20px; line-height: 30px; color: #202939; }
.az-stage .az-cardw-h small { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: #667085; }
.az-stage .az-hr1 { height: 1px; background: #d9d9d9; }
.az-stage .az-pill { padding: 4px 12px; border: 1px solid #b2ddff; border-radius: 16px; background: #eff8ff; font-weight: 600; font-size: 14px; line-height: 20px; color: #155eef; white-space: nowrap; }
.az-stage .az-att { display: flex; flex-direction: column; padding: 8px 16px; border: 1px solid #eaecf0; border-radius: 12px; }
.az-stage .az-att > div { display: flex; align-items: center; gap: 12px; height: 52px; border-bottom: 1px solid #f2f4f7; font-size: 14px; line-height: 20px; color: #667085; }
.az-stage .az-att > div:last-child { border-bottom: 0; }
.az-stage .az-att b { font-weight: 600; color: #101828; }
.az-stage .az-live { display: flex; gap: 24px; align-items: flex-start; }
.az-stage .az-live-l { display: flex; flex: 1 1 0; flex-direction: column; gap: 12px; min-width: 0; }
.az-stage .az-live-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.az-stage .az-live-kv small { display: block; font-size: 12px; line-height: 18px; color: #697586; }
.az-stage .az-live-kv b { font-weight: 500; font-size: 14px; line-height: 20px; color: #101828; }
.az-stage .az-ro { padding: 12px 16px; border: 1px solid #d0d5dd; border-radius: 12px; background: #f2f4f7; font-size: 16px; line-height: 24px; color: #98a2b3; }
.az-stage .az-dec { position: relative; }
.az-stage .az-dec .az-ta { height: 158px; padding-bottom: 52px; color: #475467; }
.az-stage .az-dec .az-ta.az-saved { background: #f2f4f7; color: #98a2b3; }
.az-stage .az-dec .az-qy { position: absolute; right: 7px; bottom: 7px; }
.az-stage .az-qy[aria-disabled="true"] { background: #cdd5df !important; color: #f9fafb; }
.az-stage .az-qy.az-done { background: #dcfae6 !important; color: #067647; }
.az-stage .az-files { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #f2f4f7; border-radius: 12px; }
.az-stage .az-files > small { font-size: 14px; line-height: 20px; color: #697586; }
.az-stage .az-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 8px 2px 16px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-file > span { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; font-size: 14px; line-height: 20px; color: #4b5565; white-space: nowrap; overflow: hidden; }
.az-stage .az-file .az-btn-s { color: #0c111d; }
.az-stage .az-pdf { position: relative; display: block; flex: 0 0 24px; width: 24px; height: 24px; }
.az-stage .az-pdf img { position: absolute; left: 2.4px; top: 0; width: 19.2px; height: 24px; }
.az-stage .az-pdf b { position: absolute; left: 2.4px; right: 2.4px; top: 13.8px; font-weight: 700; font-size: 5.4px; line-height: 1; color: #fff; text-align: center; }
.az-stage .az-pager { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-pager > span { font-weight: 500; font-size: 16px; line-height: 24px; color: #344054; }
.az-stage .az-pager .az-btn-s { border: 1px solid #eaecf0 !important; background: #fff !important; font-weight: 500; color: #0c0c0c; }
.az-stage .az-pager .az-btn-s[aria-disabled="true"] { border-color: #d0d5dd !important; background: #d0d5dd !important; color: #667085; }
.az-stage .az-pager .az-btn-s img { width: 20px; height: 20px; }
.az-stage .az-con { flex: 0 0 310px; width: 310px; border: 1px solid #f2f4f7; border-radius: 12px; background: #fff; }
.az-stage .az-con > h4 { padding: 24px; font-weight: 600; font-size: 20px; line-height: 30px; color: #202939; border-bottom: 1px solid #f2f4f7; }
.az-stage .az-con-b { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.az-stage .az-con-b > p { font-size: 14px; line-height: 20px; color: #667085; }
.az-stage .az-con-note { display: flex; gap: 8px; font-size: 14px; line-height: 20px; color: #475467; }
.az-stage .az-con-note > i { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #155eef; box-shadow: 0 0 0 3px #d1e0ff; color: #fff; }
.az-stage .az-con-note > i .az-ic { width: 14px; height: 14px; }
.az-stage .az-vote { display: flex; flex-direction: column; gap: 10px; }
.az-stage .az-vote > b { font-weight: 600; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-bar { display: flex; flex-direction: column; gap: 4px; }
.az-stage .az-bar > div { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; line-height: 20px; color: #067647; }
.az-stage .az-bar > div b { font-weight: 600; }
.az-stage .az-bar > i { display: block; height: 6px; border-radius: 6px; background: #dcfae6; overflow: hidden; }
.az-stage .az-bar > i > i { display: block; height: 6px; border-radius: 6px; background: #17b26a; transition: width 400ms ease; }
.az-stage .az-bar.az-no > div { color: #d92d20; }
.az-stage .az-bar.az-no > i { background: #fee4e2; }
.az-stage .az-bar.az-no > i > i { background: #d92d20; }
.az-stage .az-vl { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid #f2f4f7; }
.az-stage .az-vl small { font-weight: 500; font-size: 12px; line-height: 18px; color: #98a2b3; }
.az-stage .az-vl .az-chips { gap: 4px; }

/* modal */
.az-stage .az-ov { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(12,17,29,.6); animation: azview 220ms ease both; }
.az-stage .az-modal { display: flex; flex-direction: column; width: 560px; max-height: 920px; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -12px rgba(16,24,40,.18); animation: azmodal 280ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes azmodal { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.az-stage .az-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; }
.az-stage .az-modal-h h4 { font-weight: 600; font-size: 24px; line-height: 32px; color: #101828; }
.az-stage .az-modal-b { display: flex; flex-direction: column; gap: 12px; padding: 0 24px 24px; overflow: hidden; }
.az-stage .az-modal-f { display: flex; justify-content: flex-end; gap: 12px; padding: 24px; border-top: 1px solid #eaecf0; }
.az-stage .az-modal-f .az-btn { height: 44px; min-width: 140px; padding: 10px 18px !important; border-radius: 10px !important; font-size: 16px; line-height: 24px; }
.az-stage .az-grp { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-grp .az-in { height: 40px; padding: 8px 12px !important; border-radius: 8px !important; font-size: 14px; line-height: 20px; }
.az-stage .az-grp .az-ta { height: 100px; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.az-stage .az-grp .az-lb { font-size: 14px; }
.az-stage .az-cap { font-weight: 500; font-size: 12px; line-height: 18px; color: #344054; letter-spacing: .2px; }
.az-stage .az-up { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 24px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; text-align: center; }
.az-stage .az-up > i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #eaecf0; border-radius: 8px; color: #475467; }
.az-stage .az-up p { font-size: 14px; line-height: 20px; color: #475467; }
.az-stage .az-up p b { font-weight: 600; color: #155eef; }
.az-stage .az-up small { font-size: 12px; line-height: 18px; color: #475467; }
.az-stage .az-upf { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; animation: azfield 300ms ease both; }
.az-stage .az-upf .az-pdfl { position: relative; flex: 0 0 32px; width: 32px; height: 40px; }
.az-stage .az-upf .az-pdfl img { position: absolute; left: 0; top: 0; width: 32px; height: 40px; }
.az-stage .az-upf .az-pdfl b { position: absolute; left: 0; right: 0; top: 23px; font-weight: 700; font-size: 9px; line-height: 1; color: #fff; text-align: center; }
.az-stage .az-upf > div { flex: 1 1 0; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-upf > div b { display: block; font-weight: 500; }
.az-stage .az-upf > div small { color: #475467; }
.az-stage .az-upf .az-sv { color: #d92d20; }
.az-stage .az-rm { display: flex; flex-direction: column; gap: 12px; }
.az-stage .az-rm-row { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border: 1px solid #eaecf0; border-radius: 10px; background: #fff; transition: transform 380ms cubic-bezier(.2,.8,.2,1); }
.az-stage .az-rm-row.az-chair { border-color: #f2f4f7; background: #f2f4f7; }
.az-stage .az-rm-row > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eff4ff; font-weight: 600; font-size: 14px; line-height: 20px; color: #155eef; }
.az-stage .az-rm-row > span { flex: 1 1 0; font-weight: 600; font-size: 16px; line-height: 24px; color: #101828; }
.az-stage .az-rm-row > span small { font-weight: 400; font-size: 12px; color: #667085; }
.az-stage .az-rm-row > img { width: 24px; height: 24px; }
.az-stage .az-rm-row.az-lift { box-shadow: 0 12px 24px -8px rgba(16,24,40,.25); border-color: #84adff; position: relative; z-index: 2; }
.az-stage .az-miss { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid #eaecf0; border-radius: 16px; }
.az-stage .az-miss small { font-size: 14px; line-height: 20px; color: #667085; }
.az-stage .az-miss h5 { padding-bottom: 12px; border-bottom: 1px solid #eaecf0; font-weight: 500; font-size: 16px; line-height: 24px; color: #101828; }
.az-stage .az-miss p { font-weight: 500; font-size: 14px; line-height: 20px; color: #d92d20; }
.az-stage .az-warn { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: #fef3f2; font-size: 14px; line-height: 20px; color: #d92d20; }
.az-stage .az-warn > i { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #d92d20; box-shadow: 0 0 0 4px #fee4e2; }
.az-stage .az-warn > i .az-ic { width: 14px; height: 14px; color: #fff; }

/* protocol + signing */
.az-stage .az-psplit { display: flex; gap: 24px; align-items: flex-start; }
.az-stage .az-proto { display: flex; flex: 0 0 632px; flex-direction: column; gap: 24px; width: 632px; padding: 32px 24px; border: 1px solid #eaecf0; border-radius: 16px; background: #fff; }
.az-stage .az-proto-h { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.az-stage .az-proto-h h4 { font-weight: 600; font-size: 18px; line-height: 28px; color: #202939; }
.az-stage .az-proto-h h4 + h4 { margin-top: -10px; }
.az-stage .az-proto-meta { display: flex; justify-content: space-between; gap: 24px; padding-top: 16px; border-top: 1px solid #d9d9d9; font-size: 12px; line-height: 18px; color: #98a2b3; text-align: left; }
.az-stage .az-proto-meta b { font-weight: 500; color: #667085; }
.az-stage .az-proto-g { display: flex; flex-direction: column; gap: 12px; }
.az-stage .az-proto-g > p { font-weight: 500; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-proto-g .az-chips { gap: 6px; }
.az-stage .az-proto-note { font-weight: 500; font-size: 12px; line-height: 18px; color: #667085; }
.az-stage .az-proto-t { font-weight: 500; font-size: 18px; line-height: 28px; color: #202939; text-align: center; }
.az-stage .az-pi { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-pi-h { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; }
.az-stage .az-pi-h span { font-weight: 500; color: #667085; }
.az-stage .az-pi-h b { font-weight: 600; color: #182230; }
.az-stage .az-pi-c { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid #f2f4f7; border-radius: 12px; background: #fff; }
.az-stage .az-pi-c h6 { display: flex; align-items: center; justify-content: space-between; margin: 0; font-weight: 600; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-pi-c .az-txt { padding: 13px; border: 1px solid #eaecf0; border-radius: 8px; background: #f9fafb; font-size: 13px; line-height: 20px; color: #697586; }
.az-stage .az-pi-c > small { font-weight: 600; font-size: 12px; line-height: 18px; color: #98a2b3; }
.az-stage .az-fix { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 8px; border: 1px solid #fedf89; border-radius: 16px; background: #fffaeb; font-weight: 500; font-size: 12px; line-height: 18px; color: #b54708; }
.az-stage .az-fix .az-ic { width: 12px; height: 12px; }
.az-stage .az-proto[data-ro="1"] .az-fix { display: none; }
.az-stage .az-sign { flex: 0 0 360px; width: 360px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; }
.az-stage .az-sign-h { display: flex; align-items: center; gap: 12px; padding: 24px; border-bottom: 1px solid #d9d9d9; font-weight: 600; font-size: 20px; line-height: 30px; color: #202939; }
.az-stage .az-imz { position: relative; width: 32px; height: 32px; }
.az-stage .az-imz img { position: absolute; }
.az-stage .az-imz img:first-child { inset: 0; width: 32px; height: 32px; }
.az-stage .az-imz img + img { left: 4.19px; top: 5.74px; width: 19.09px; height: 20.51px; }
.az-stage .az-sign-b { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.az-stage .az-sign-b > p { font-size: 14px; line-height: 20px; color: #697586; }
.az-stage .az-wait { padding: 16px; border: 1px solid #eaecf0; border-radius: 8px; background: #f9fafb; font-size: 12px; line-height: 18px; color: #697586; }
.az-stage .az-sl { display: flex; flex-direction: column; gap: 8px; }
.az-stage .az-sl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; }
.az-stage .az-sl > div > span { display: flex; align-items: center; gap: 12px; }
.az-stage .az-sl i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 100px; background: #eff4ff; font-weight: 600; font-size: 16px; line-height: 24px; color: #155eef; }
.az-stage .az-sl b { display: block; font-weight: 600; font-size: 16px; line-height: 24px; color: #182230; }
.az-stage .az-sl small { display: block; font-size: 12px; line-height: 18px; color: #667085; }
.az-stage .az-sl .az-st { min-width: 0; animation: azview 300ms ease both; }
.az-stage .az-obtn { width: 100%; height: 44px; gap: 6px; border: 1px solid #155eef !important; border-radius: 10px !important; background: #fff !important; font-weight: 600; font-size: 14px; line-height: 21px; color: #155eef; }
.az-stage .az-obtn img { width: 20px; height: 20px; }
.az-stage .az-pbtn { width: 100%; height: 44px; gap: 4px; border-radius: 10px !important; background: #155eef !important; font-weight: 600; font-size: 14px; line-height: 20px; color: #fff; }
.az-stage .az-pbtn.az-purple { background: #7f56d9 !important; }
.az-stage .az-pbtn img { width: 20px; height: 20px; }
.az-stage .az-chairbox { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 12px; background: #eff4ff; animation: azfield 360ms ease both; }
.az-stage .az-chairbox h5 { font-weight: 600; font-size: 18px; line-height: 28px; color: #155eef; }
.az-stage .az-chairbox p { margin-top: -12px; font-size: 12px; line-height: 18px; color: #475467; }
.az-stage .az-arch { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 12px; background: #f9f5ff; animation: azfield 400ms ease both; }
.az-stage .az-arch h5 { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; line-height: 28px; color: #7f56d9; }
.az-stage .az-arch h5 > i { display: grid; place-items: center; width: 28px; height: 28px; border: 3.5px solid #f4ebff; border-radius: 24.5px; background: #7f56d9; }
.az-stage .az-arch h5 > i img { width: 14px; height: 14px; }
.az-stage .az-arch p { padding: 13px 20px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; font-style: italic; font-size: 11px; line-height: 18px; color: #667085; }
.az-stage .az-btns2 { display: flex; flex-direction: column; gap: 8px; }

/* issue wizard */
.az-stage .az-v-issue .az-scroll { padding: 24px; }
.az-stage .az-iw { display: flex; flex-direction: column; gap: 32px; }
.az-stage .az-ipanel { display: flex; flex-direction: column; gap: 20px; width: 720px; margin: 0 auto; padding: 24px; border-radius: 16px; background: #f9fafb; }
.az-stage .az-radio { display: flex !important; justify-content: flex-start !important; gap: 8px; height: 48px; padding: 0 16px !important; border: 1px solid #d0d5dd !important; border-radius: 10px !important; background: #fff !important; font-size: 14px; color: #101828; }
.az-stage .az-radio > i { position: relative; width: 16px; height: 16px; border: 1px solid #d0d5dd; border-radius: 50%; }
.az-stage .az-radio.az-on { border: 2px solid #155eef !important; }
.az-stage .az-radio.az-on > i { border-color: #155eef; background: #155eef; }
.az-stage .az-radio.az-on > i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.az-stage .az-isec { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid #eaecf0; border-radius: 16px; background: #fff; }
.az-stage .az-isec-h { display: flex; align-items: center; justify-content: space-between; }
.az-stage .az-isec-h h4 { font-weight: 600; font-size: 20px; line-height: 30px; color: #182230; }
.az-stage .az-mat { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #eaecf0; border-radius: 16px; }
.az-stage .az-mat-h { display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 18px; line-height: 28px; color: #182230; }
.az-stage .az-mat-i { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: #f9fafb; animation: azfield 360ms ease both; }
.az-stage .az-mat-t { display: flex; align-items: center; justify-content: space-between; }
.az-stage .az-mat-t b { font-weight: 500; font-size: 16px; line-height: 24px; color: #182230; }
.az-stage .az-mat-t small { font-size: 14px; color: #98a2b3; }
.az-stage .az-mat-a { display: flex; gap: 6px; }
.az-stage .az-mat-a > i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; }
.az-stage .az-mat-a .az-sv { width: 20px; height: 20px; }
.az-stage .az-mat-f { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-chk { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; }
.az-stage .az-chk > small { font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-chk > div { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px; border: 1px solid #eaecf0; border-radius: 8px; font-size: 14px; line-height: 20px; color: #344054; }
.az-stage .az-part { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #f9fafb; }
.az-stage .az-part > div { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px; border: 1px solid #eaecf0; border-radius: 8px; background: #fff; font-size: 14px; line-height: 20px; color: #98a2b3; }
.az-stage .az-part > div.az-fixed { border-color: #eaecf0; background: #eaecf0; }
.az-stage .az-part > div b { font-weight: 600; color: #101828; }
.az-stage .az-part > div > span:last-child { display: flex; align-items: center; gap: 12px; color: #d92d20; }
.az-stage .az-part .az-tag { padding: 2px 8px; border-color: #eff4ff; background: #eff4ff; font-size: 14px; color: #155eef; }
.az-stage .az-coi { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: #f9fafb; animation: azfield 360ms ease both; }
.az-stage .az-coi-h { display: flex; justify-content: space-between; align-items: flex-start; }
.az-stage .az-coi-h b { font-weight: 600; font-size: 14px; line-height: 20px; color: #101828; }
.az-stage .az-coi-h b em { font-style: normal; font-weight: 500; color: #98a2b3; }
.az-stage .az-coi-h small { display: block; font-size: 10px; line-height: 16px; color: #667085; }
.az-stage .az-coi > p { font-size: 14px; line-height: 22px; color: #101828; }

/* ---------- reduced motion: no camera moves, no entrance animations ---------- */
@media (prefers-reduced-motion: reduce) {
  .az-stage .az-lens { transition: none; }
  .az-stage .az-app *, .az-stage .az-app *::before, .az-stage .az-app *::after { animation: none !important; transition: none !important; }
}

/* ---------- /FPAPP azcon ---------- */

/* ---------- FPAPP ingress-journey ---------- */
/* Ingress journey player: viewport screenshots stacked in the browser frame, crossfaded by the flow */
.ij-stage { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; background: #f3f1ea; }
.ij-shot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.ij-shot.is-on { opacity: 1; }
.ij-stage.ij-snap .ij-shot { transition: none; }
.ij-hot { position: absolute; display: block; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ij-shot { transition: opacity .2s linear; } }

/* ---------- /FPAPP ingress-journey ---------- */

/* header: presence sits at the far right, after the tools, like collaborators in Figma */
.bar .tools { margin-left: auto; }
.bar .pres-wrap { order: 3; margin: 0 0 0 4px; padding-left: 12px; }
.bar .pres-wrap::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 20px; background: var(--line); transform: translateY(-50%); }
@media (max-width: 640px) { .bar .pres-wrap { margin-left: 2px; padding-left: 6px; } }

/* presence: seconds and the visitor's time */
.pres .ptime, .ppop .pp-t, .ppop .pp-you { font-variant-numeric: tabular-nums; }
.ppop .pp-you { display: block; margin: -4px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }

.ppop .pp-you[hidden] { display: none; }

/* earlier: faded experience */
.xp .xp-early, .xp.xp-early li { opacity: .62; }
.xp-early-h { margin-top: 24px; }
.links .sep { margin: 0 10px; color: var(--muted); }
