/* Generated by scripts/build-sample-bundles.py from assets/js/samples.js and assets/css/samples.css. Do not edit. */
/* =====================================================================
   Parsa Dev live samples (shown on the Features pages)
   Every colour comes from the site theme (--primary, --accent, --ink …), so samples follow the palette
   picker and Light / Night. Each sample is fenced under its own pds- class. ".is-playing" plays a
   sample once on phones, which can't hover.
   Licence note: PDS-01 to PDS-05 started from MIT-licensed Uiverse.io designs (credits beside each).
   ===================================================================== */

/* keyboard users get the same effect as a mouse hover, plus a clear focus ring */
.pds-ink:focus-visible, .pds-plane:focus-visible, .pds-glide:focus-visible,
.pds-bloom__tile:focus-visible, .pds-petal:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px;
}

/* ---------- people who turn motion off on their device get instant, still changes ---------- */
@media (prefers-reduced-motion: reduce) {
  [class*="pds-"], [class*="pds-"]::before { transition: none !important; animation: none !important; }
}

/* ---------- shared scroll window for header samples (PDS-11 onwards) ---------- */
.pds-win {
  position: relative; width: min(100%, 520px); height: 320px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); scrollbar-width: thin;
}
.pds-win:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.pds-win__page { margin-top: -3.6rem; }
.pds-win__hero { display: grid; place-items: end start; height: 210px; padding: 1.2rem; color: #fff; font-family: var(--font-display, Georgia, serif); font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pds-win__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 1rem; }
.pds-win__row i { height: 90px; border-radius: 12px; background: linear-gradient(160deg, var(--primary-tint), color-mix(in srgb, var(--accent) 55%, var(--surface))); }
.pds-win__row i:nth-child(2) { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 45%, var(--surface)), var(--primary-tint)); }
.pds-win__band { height: 140px; margin: 0 1rem 1rem; border-radius: 14px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.pds-win__band--alt { background: linear-gradient(90deg, var(--accent), var(--primary-deep)); }

/* ---------- PDS-09 Phone Ping ---------- */
.pds-phone { width: 210px; height: 420px; padding: 8px; border-radius: 40px; background: var(--ink);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 70%, transparent); }
.pds-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 32px; text-align: center; color: #fff;
  background: radial-gradient(circle at 30% 20%, var(--accent), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-deep)); }
.pds-phone__island { position: absolute; top: 9px; left: 50%; width: 70px; height: 20px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.pds-phone__time { margin-top: 3.2rem; font-size: 3rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.pds-phone__date { margin-top: .3rem; font-size: .8rem; opacity: .85; }
.pds-phone__note {
  position: absolute; left: 10px; right: 10px; top: 150px; display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem;
  border-radius: 18px; text-align: left; color: #111; background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: pds-phone-ping 4.8s cubic-bezier(.22, 1, .36, 1) infinite;
}
.pds-phone__app { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: .7rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pds-phone__text { display: flex; flex-direction: column; min-width: 0; font-size: .74rem; line-height: 1.3; }
.pds-phone__text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pds-phone__note em { margin-left: auto; align-self: flex-start; font-style: normal; font-size: .65rem; color: #555; }
@keyframes pds-phone-ping {
  0%, 8% { transform: translateY(-40px) scale(.96); opacity: 0; }
  16%, 78% { transform: none; opacity: 1; }
  90%, 100% { transform: translateY(-40px) scale(.96); opacity: 0; }
}

/* ---------- PDS-101 One Build ---------- */
.pds-onebuild, .pds-onebuild * { box-sizing: border-box; }
.pds-onebuild { --pds-onebuild-ease: cubic-bezier(.22, 1, .36, 1); --pds-onebuild-frame: color-mix(in srgb, var(--primary) 8%, #0e1116);
  position: relative; display: grid; justify-items: center; gap: 10px; width: min(100%, 300px); margin: 0 auto; color: var(--ink); text-align: start; line-height: 1.35; }
.pds-onebuild :where(button) { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-onebuild :where(button, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-onebuild :where(p, ul) { margin: 0; padding: 0; list-style: none; }

/* the phone: rounded notch (iPhone style) or punch-hole camera (Android style) */
.pds-onebuild__phone { width: 240px; max-width: 100%; height: 378px; padding: 7px; border-radius: 40px; background: var(--pds-onebuild-frame);
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1.5px color-mix(in srgb, var(--primary-tint) 22%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--ink) 70%, transparent);
  transition: border-radius .5s var(--pds-onebuild-ease); }
.pds-onebuild.is-swap .pds-onebuild__phone { animation: pds-onebuild-swap .6s var(--pds-onebuild-ease); }
.pds-onebuild__screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 33px;
  background: var(--bg); transition: border-radius .5s var(--pds-onebuild-ease); }
.pds-onebuild__cam { position: absolute; z-index: 6; top: 0; left: 50%; width: 84px; height: 20px; border-radius: 0 0 14px 14px; background: var(--pds-onebuild-frame);
  transform: translateX(-50%); transition: top .5s var(--pds-onebuild-ease), width .5s var(--pds-onebuild-ease), height .5s var(--pds-onebuild-ease), border-radius .5s; }
.pds-onebuild[data-os="android"] .pds-onebuild__phone { border-radius: 28px; }
.pds-onebuild[data-os="android"] .pds-onebuild__screen { border-radius: 21px; }
.pds-onebuild[data-os="android"] .pds-onebuild__cam { top: 8px; width: 12px; height: 12px; border-radius: 50%; }
.pds-onebuild__status { position: relative; z-index: 5; display: flex; flex: none; align-items: center; justify-content: space-between; height: 28px; padding: 3px 18px 0 22px;
  font: 600 .62rem/1 var(--font-mono, ui-monospace, monospace); color: var(--bg); transition: color .4s; }
.pds-onebuild.is-booted .pds-onebuild__status { color: var(--ink); }
.pds-onebuild[data-os="android"] .pds-onebuild__status { padding-left: 16px; }
.pds-onebuild__icons { display: flex; align-items: flex-end; gap: 1.5px; }
.pds-onebuild__icons i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.pds-onebuild__icons i:nth-child(2) { height: 6px; }
.pds-onebuild__icons i:nth-child(3) { height: 8px; }
.pds-onebuild__icons b { width: 16px; height: 8px; margin-left: 4px; padding: 1px; border-radius: 3px; border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 70%, transparent 0) content-box; }

/* splash: the logo grows in, then glides into the header */
.pds-onebuild__splash { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pds-onebuild__splash::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 55%), linear-gradient(160deg, var(--primary), var(--primary-deep)); }
.pds-onebuild__logo { position: absolute; left: calc(50% - 32px); top: calc(50% - 58px); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 19px;
  color: var(--primary); background: var(--bg); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--ink) 65%, transparent);
  animation: pds-onebuild-pop .7s var(--pds-onebuild-ease) both; }
.pds-onebuild__word { position: absolute; left: 0; right: 0; top: calc(50% + 16px); display: grid; gap: 4px; text-align: center;
  font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; color: var(--bg); animation: pds-onebuild-rise .7s .15s var(--pds-onebuild-ease) both; }
.pds-onebuild__word small { font-family: var(--font-mono, ui-monospace, monospace); font-size: .56rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.pds-onebuild.is-booted .pds-onebuild__splash { visibility: hidden; transition: visibility 0s .95s; }
.pds-onebuild.is-booted .pds-onebuild__splash::before { opacity: 0; transition: opacity .45s ease .3s; }
.pds-onebuild.is-booted .pds-onebuild__logo { left: 14px; top: 34px; width: 24px; height: 24px; border-radius: 7px; color: var(--bg); background: var(--primary); box-shadow: none; animation: none;
  transition: left .75s var(--pds-onebuild-ease), top .75s var(--pds-onebuild-ease), width .75s var(--pds-onebuild-ease), height .75s var(--pds-onebuild-ease),
    border-radius .75s, background-color .5s .2s, color .5s .2s, box-shadow .4s; }
.pds-onebuild.is-booted .pds-onebuild__word { opacity: 0; transform: translateY(-6px); animation: none; transition: opacity .25s, transform .4s; }
.pds-onebuild__logo svg, .pds-onebuild__mark svg { width: 62%; height: 62%; fill: currentColor; }
.pds-onebuild__core { fill: var(--gold); }

/* the app itself */
.pds-onebuild__app { display: flex; flex: 1; flex-direction: column; min-height: 0; opacity: 0; transform: translateY(12px); }
.pds-onebuild.is-booted .pds-onebuild__app { opacity: 1; transform: none; transition: opacity .45s ease .3s, transform .7s var(--pds-onebuild-ease) .25s; }
.pds-onebuild__top { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 6px; height: 36px; padding: 0 12px 0 14px; }
.pds-onebuild__brand { display: flex; align-items: center; gap: 7px; font-family: var(--font-display, Georgia, serif); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.pds-onebuild__mark { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--bg); background: var(--primary); }
.pds-onebuild__chip { padding: 3px 7px; border-radius: 999px; font-size: .52rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: var(--primary-deep); background: var(--primary-tint); }
.pds-onebuild__panel { position: relative; display: flex; flex: 1; flex-direction: column; gap: 7px; min-height: 0; padding: 2px 12px 0; overflow: hidden; border-radius: 12px;
  animation: pds-onebuild-in .45s var(--pds-onebuild-ease); }
.pds-onebuild__panel[hidden] { display: none; }
.pds-onebuild__panel:focus-visible { outline-offset: -2px; }
.pds-onebuild__h { font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; line-height: 1.2; }

/* home: pull down to refresh */
.pds-onebuild__home { gap: 0; -webkit-user-select: none; user-select: none; }
.pds-onebuild__pull { display: inline-flex; flex: none; align-self: center; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: .6rem; font-weight: 600; color: var(--ink-muted); background: var(--surface-sunk); border: 1px solid var(--border); touch-action: none;
  transform: translateY(calc(var(--pds-onebuild-pull, 0px) * .45)); transition: transform .45s var(--pds-onebuild-ease), color .3s; }
.pds-onebuild__spin { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; transform: rotate(var(--pds-onebuild-r, 0deg)); }
.pds-onebuild__feed { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; transform: translateY(var(--pds-onebuild-pull, 0px)); transition: transform .45s var(--pds-onebuild-ease); }
.pds-onebuild__home.is-dragging :is(.pds-onebuild__feed, .pds-onebuild__pull) { transition: none; }
.pds-onebuild__home.is-refreshing .pds-onebuild__pull { color: var(--primary); }
.pds-onebuild__home.is-refreshing .pds-onebuild__spin { animation: pds-onebuild-spin .7s linear infinite; }
.pds-onebuild__hero { display: grid; gap: 1px; padding: 8px 12px; border-radius: 16px; color: var(--bg);
  background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent-deep) 70%, transparent), transparent 60%), linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.pds-onebuild__hero small { font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pds-onebuild__hero b { font-family: var(--font-display, Georgia, serif); font-size: 1rem; }
.pds-onebuild__hero span { font-size: .62rem; }
.pds-onebuild__hero.is-new { animation: pds-onebuild-flash .7s var(--pds-onebuild-ease); }
.pds-onebuild__list { display: grid; gap: 4px; }
.pds-onebuild__list li, .pds-onebuild__order { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 11px; font-size: .68rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); }
.pds-onebuild__list i { flex: none; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--primary-tint), color-mix(in srgb, var(--gold) 45%, var(--surface))); }
.pds-onebuild__list li:nth-child(2) i { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), var(--primary-tint)); }
.pds-onebuild__list span, .pds-onebuild__num { margin-left: auto; font-family: var(--font-mono, ui-monospace, monospace); font-size: .62rem; color: var(--ink-muted); }

/* orders and profile */
.pds-onebuild__order { justify-content: space-between; padding: 8px 10px; font-weight: 500; color: var(--ink-muted); }
.pds-onebuild__order b { display: block; font-family: var(--font-mono, ui-monospace, monospace); font-size: .74rem; color: var(--ink); }
.pds-onebuild__order em { padding: 3px 8px; border-radius: 999px; font-size: .58rem; font-style: normal; font-weight: 700; color: var(--ink-muted); background: var(--surface-sunk); }
.pds-onebuild__order em.is-ready { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pds-onebuild__me { display: grid; justify-items: center; gap: 1px; padding: 6px 0 4px; text-align: center; }
.pds-onebuild__me b { font-size: .86rem; }
.pds-onebuild__me small { font-size: .62rem; color: var(--ink-muted); }
.pds-onebuild__avatar { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%;
  font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; color: var(--bg); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent-deep) 60%, var(--primary-deep))); }
.pds-onebuild__set { overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pds-onebuild__set li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: .66rem; font-weight: 600; }
.pds-onebuild__set li + li { border-top: 1px solid var(--border); }
.pds-onebuild__set span { font-size: .6rem; color: var(--ink-muted); }
.pds-onebuild__swatches { display: flex; gap: 4px; }
.pds-onebuild__swatches i { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--border-strong); }
.pds-onebuild__swatches i:nth-child(2) { background: var(--accent); }
.pds-onebuild__swatches i:nth-child(3) { background: var(--gold); }

/* bottom tabs: iPhone tints the icon, Android adds a pill behind it */
.pds-onebuild__bar { position: relative; display: grid; flex: none; grid-template-columns: repeat(3, 1fr); margin-top: 6px; padding: 5px 8px 2px;
  border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 85%, transparent); transition: background-color .4s, border-color .4s; }
.pds-onebuild[data-os="android"] .pds-onebuild__bar { border-top-color: transparent; background: var(--surface-sunk); }
.pds-onebuild__pill { position: absolute; top: 7px; left: 8px; display: flex; justify-content: center; width: calc((100% - 16px) / 3); height: 24px;
  transform: translateX(calc(var(--n, 0) * 100%)); transition: transform .45s var(--pds-onebuild-ease); }
.pds-onebuild__pill::before { content: ""; width: 50px; height: 100%; border-radius: 999px; background: color-mix(in srgb, var(--primary) 18%, transparent);
  opacity: 0; transform: scaleX(.4); transition: opacity .3s, transform .45s var(--pds-onebuild-ease); }
.pds-onebuild[data-os="android"] .pds-onebuild__pill::before { opacity: 1; transform: none; }
.pds-onebuild__tab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 5px 0 3px; border-radius: 12px; font-size: .56rem; font-weight: 600; color: var(--ink-muted); transition: color .3s; }
.pds-onebuild__tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), fill .3s; }
.pds-onebuild__tab[aria-selected="true"] { color: var(--primary); }
.pds-onebuild__tab[aria-selected="true"] svg { fill: color-mix(in srgb, currentColor 18%, transparent); transform: translateY(-1px) scale(1.06); }
.pds-onebuild__homebar { flex: none; display: block; width: 80px; height: 4px; margin: 4px auto 6px; border-radius: 4px; background: var(--ink); opacity: .8; transition: width .4s, opacity .4s; }
.pds-onebuild[data-os="android"] .pds-onebuild__homebar { width: 54px; opacity: .45; }

/* "Built once · runs on" switch */
.pds-onebuild__foot { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 100%; font-size: .66rem; white-space: nowrap; color: var(--ink-muted); }
.pds-onebuild__once { font-weight: 600; }
.pds-onebuild__seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.pds-onebuild__seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--primary);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--primary-deep) 80%, transparent); transition: transform .4s var(--pds-onebuild-ease); }
.pds-onebuild[data-os="android"] .pds-onebuild__seg::before { transform: translateX(100%); }
.pds-onebuild__os { position: relative; padding: 4px 10px; border-radius: 999px; font-size: .66rem; font-weight: 700; color: var(--ink-muted); transition: color .3s; }
.pds-onebuild__os[aria-pressed="true"] { color: var(--bg); }
.pds-onebuild__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes pds-onebuild-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes pds-onebuild-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pds-onebuild-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes pds-onebuild-spin { to { transform: rotate(360deg); } }
@keyframes pds-onebuild-flash { from { opacity: .3; transform: scale(.97); } }
@keyframes pds-onebuild-swap { 40% { transform: scale(.96) rotateY(8deg); } }
@media (prefers-reduced-motion: reduce) {
  .pds-onebuild *, .pds-onebuild *::before, .pds-onebuild *::after { transition: none !important; animation: none !important; }
}

/* ---------- PDS-102 Hello Swipe ---------- */
.pds-hello, .pds-hello * { box-sizing: border-box; }
.pds-hello { --pds-hello-ease: cubic-bezier(.22, 1, .36, 1); --pds-hello-frame: color-mix(in srgb, var(--primary) 8%, #0e1116);
  position: relative; width: min(100%, 250px); height: 418px; padding: 7px; border-radius: 40px; color: var(--ink); text-align: start; line-height: 1.35;
  background: var(--pds-hello-frame); box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1.5px color-mix(in srgb, var(--primary-tint) 22%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--ink) 70%, transparent); }
.pds-hello :where(button) { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-hello :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-hello :where(p) { margin: 0; }
.pds-hello__screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 33px; background: var(--bg); }
.pds-hello__island { position: absolute; z-index: 5; top: 8px; left: 50%; width: 62px; height: 17px; border-radius: 20px; background: var(--pds-hello-frame); transform: translateX(-50%); }
.pds-hello__status { position: relative; z-index: 5; display: flex; flex: none; align-items: center; justify-content: space-between; height: 32px; padding: 2px 20px 0 24px; font: 600 .62rem/1 var(--font-mono, ui-monospace, monospace); }
.pds-hello__icons { display: flex; align-items: flex-end; gap: 1.5px; }
.pds-hello__icons i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.pds-hello__icons i:nth-child(2) { height: 6px; }
.pds-hello__icons i:nth-child(3) { height: 8px; }
.pds-hello__icons b { width: 16px; height: 8px; margin-left: 4px; padding: 1px; border-radius: 3px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0) content-box; }
.pds-hello__main { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.pds-hello__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 12px 0 14px; }
.pds-hello__chip { display: inline-flex; align-items: center; gap: 5px; font-size: .6rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pds-hello__chip i { width: 14px; height: 14px; border-radius: 5px; background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px), linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.pds-hello__skip { padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; color: var(--ink-muted); background: var(--surface-sunk); transition: color .3s, background-color .3s; }
:is(.pds-hello__skip:hover, .pds-hello__skip:focus-visible) { color: var(--ink); }

/* the three welcome screens slide sideways; vertical swipes still scroll the page */
.pds-hello__view { flex: 1; min-height: 0; overflow: hidden; contain: inline-size; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.pds-hello__view.is-dragging { cursor: grabbing; }
.pds-hello__track { display: flex; height: 100%; transform: translateX(calc(var(--i, 0) * -100% + var(--dx, 0px))); transition: transform .55s var(--pds-hello-ease); }
.pds-hello__view.is-dragging .pds-hello__track { transition: none; }
.pds-hello__slide { display: flex; flex: 0 0 100%; flex-direction: column; padding: 6px 18px 0; opacity: .35; transition: opacity .45s; }
.pds-hello__slide.is-on { opacity: 1; }
.pds-hello__art { display: grid; place-items: center; height: 146px; margin-bottom: 8px; }
.pds-hello__art svg { width: 100%; height: 100%; overflow: visible; }
.pds-hello__slide.is-on .pds-hello__art svg { animation: pds-hello-pop .7s var(--pds-hello-ease) both; }
.pds-hello__blob { fill: color-mix(in srgb, var(--primary) 14%, transparent); }
.pds-hello__shade { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.pds-hello__loaf { fill: var(--gold); }
.pds-hello__cut { fill: none; stroke: color-mix(in srgb, var(--gold) 50%, var(--ink)); stroke-width: 4; stroke-linecap: round; }
.pds-hello__steam, .pds-hello__handle, .pds-hello__hands, .pds-hello__gift { fill: none; stroke: var(--ink-faint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pds-hello__slide.is-on .pds-hello__steam { animation: pds-hello-steam 2.4s ease-in-out infinite; }
.pds-hello__spark { fill: var(--accent); }
.pds-hello__bag { fill: var(--primary); }
.pds-hello__flower { fill: var(--bg); }
.pds-hello__core { fill: var(--gold); }
.pds-hello__badge { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.pds-hello__hands { stroke: var(--ink); stroke-width: 2.5; }
.pds-hello__card { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.pds-hello__strip { fill: var(--primary); }
.pds-hello__stamps circle { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 3 3; }
.pds-hello__stamps .is-in { fill: var(--accent); stroke: none; }
.pds-hello__gift { stroke: var(--gold); stroke-width: 2.5; }
.pds-hello__step { font: 600 .6rem/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pds-hello__title { margin-top: 6px; font-family: var(--font-display, Georgia, serif); font-size: 1.22rem; font-weight: 600; line-height: 1.15; text-wrap: balance; }
.pds-hello__text { margin-top: 6px; font-size: .74rem; color: var(--ink-muted); text-wrap: pretty; }

/* dots + next */
.pds-hello__foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 16px; }
.pds-hello__dots { display: flex; gap: 2px; }
.pds-hello__dot { display: grid; place-items: center; width: 18px; height: 24px; border-radius: 6px; }
.pds-hello__dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); transition: width .45s var(--pds-hello-ease), background-color .3s; }
.pds-hello__dot[aria-current="step"] { width: 26px; }
.pds-hello__dot[aria-current="step"]::before { width: 20px; background: var(--primary); }
.pds-hello__next { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 84px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary-deep) 90%, transparent);
  transition: min-width .5s var(--pds-hello-ease), background-color .3s, transform .2s; }
.pds-hello__next:active { transform: scale(.96); }
.pds-hello__next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--pds-hello-ease); }
:is(.pds-hello__next:hover, .pds-hello__next:focus-visible, .is-playing .pds-hello__next) svg { transform: translateX(3px); }
.pds-hello.is-last .pds-hello__next { min-width: 128px; }

/* the polite "allow notifications?" ask, then a friendly done screen */
.pds-hello__sheet { position: absolute; inset: 0; z-index: 4; display: grid; padding: 46px 18px 18px; background: var(--bg); visibility: hidden; transform: translateY(100%);
  transition: transform .6s var(--pds-hello-ease), visibility 0s .6s; }
.pds-hello.is-asking .pds-hello__sheet { visibility: visible; transform: none; transition: transform .6s var(--pds-hello-ease); }
.pds-hello__ask, .pds-hello__done { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: opacity .4s, transform .5s var(--pds-hello-ease); }
.pds-hello__done, .pds-hello.is-done .pds-hello__ask { opacity: 0; visibility: hidden; transform: translateY(10px); }
.pds-hello.is-done .pds-hello__done { opacity: 1; visibility: visible; transform: none; }
.pds-hello__bell, .pds-hello__tick { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; border-radius: 28px; background: var(--primary-tint); }
.pds-hello__bell svg { width: 52px; height: 52px; transform-origin: 50% 15%; }
.pds-hello.is-asking .pds-hello__bell svg { animation: pds-hello-ring 1.2s .5s ease-in-out 2; }
.pds-hello__bellbody { fill: var(--primary); }
.pds-hello__clap { fill: var(--primary); }
.pds-hello__ping { fill: var(--accent); stroke: var(--primary-tint); stroke-width: 3; }
.pds-hello__tick { border-radius: 50%; color: var(--bg); background: var(--accent-deep); }
.pds-hello__tick svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.pds-hello.is-done .pds-hello__tick svg { stroke-dashoffset: 0; transition: stroke-dashoffset .6s .25s var(--pds-hello-ease); }
.pds-hello__btn { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--ink); background: var(--surface-sunk); }
.pds-hello__btn.is-main { margin-top: 14px; color: var(--bg); background: var(--primary); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary-deep) 90%, transparent); }
.pds-hello__done .pds-hello__btn { margin-top: 16px; }
.pds-hello__note { margin-top: 10px; font-size: .62rem; color: var(--ink-faint); text-wrap: balance; }
.pds-hello__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes pds-hello-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes pds-hello-steam { 50% { opacity: .35; transform: translateY(-3px); } }
@keyframes pds-hello-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }

/* ---------- PDS-103 One-Tap In ---------- */
.pds-tapin, .pds-tapin * { box-sizing: border-box; }
.pds-tapin { --pds-tapin-ease: cubic-bezier(.22, 1, .36, 1); --pds-tapin-frame: color-mix(in srgb, var(--primary) 8%, #0e1116);
  position: relative; width: min(100%, 250px); height: 418px; padding: 7px; border-radius: 40px; color: var(--ink); text-align: start; line-height: 1.35;
  background: var(--pds-tapin-frame); box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1.5px color-mix(in srgb, var(--primary-tint) 22%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--ink) 70%, transparent); }
.pds-tapin :where(button) { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-tapin :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-tapin :where(p, ul) { margin: 0; padding: 0; list-style: none; }
.pds-tapin__screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 33px; background: var(--bg); }
.pds-tapin__island { position: absolute; z-index: 5; top: 8px; left: 50%; width: 62px; height: 17px; border-radius: 20px; background: var(--pds-tapin-frame); transform: translateX(-50%); }
.pds-tapin__status { display: flex; flex: none; align-items: center; justify-content: space-between; height: 32px; padding: 2px 20px 0 24px; font: 600 .62rem/1 var(--font-mono, ui-monospace, monospace); }
.pds-tapin__icons { display: flex; align-items: flex-end; gap: 1.5px; }
.pds-tapin__icons i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.pds-tapin__icons i:nth-child(2) { height: 6px; }
.pds-tapin__icons i:nth-child(3) { height: 8px; }
.pds-tapin__icons b { width: 16px; height: 8px; margin-left: 4px; padding: 1px; border-radius: 3px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0) content-box; }

/* two screens: sign in, then a welcome that pushes in from the right */
.pds-tapin__panes { position: relative; flex: 1; min-height: 0; }
.pds-tapin__pane { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 4px 16px 16px; text-align: center;
  transition: transform .6s var(--pds-tapin-ease), opacity .45s, visibility 0s; }
.pds-tapin__home { visibility: hidden; opacity: 0; transform: translateX(40%); transition: transform .6s var(--pds-tapin-ease), opacity .45s, visibility 0s .6s; }
.pds-tapin.is-in .pds-tapin__start { visibility: hidden; opacity: 0; transform: translateX(-30%); transition: transform .6s var(--pds-tapin-ease), opacity .45s, visibility 0s .6s; }
.pds-tapin.is-in .pds-tapin__home { visibility: visible; opacity: 1; transform: none; transition: transform .6s var(--pds-tapin-ease), opacity .45s; }
.pds-tapin__chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: .56rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--primary-deep); background: var(--primary-tint); }
.pds-tapin__chip.is-ok { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pds-tapin__chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pds-tapin__logo { display: grid; place-items: center; width: 52px; height: 52px; margin: 16px 0 8px; border-radius: 16px; color: var(--bg);
  background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 60%), linear-gradient(145deg, var(--primary), var(--primary-deep));
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--primary-deep) 90%, transparent); }
.pds-tapin__logo svg { width: 62%; height: 62%; fill: currentColor; }
.pds-tapin__core { fill: var(--gold); }
.pds-tapin__title { font-family: var(--font-display, Georgia, serif); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.pds-tapin__sub { margin-top: 4px; font-size: .7rem; color: var(--ink-muted); text-wrap: balance; }

/* the three sign-in buttons: generic glyphs and words, no real logos */
.pds-tapin__btns { display: grid; gap: 7px; width: 100%; margin-top: auto; }
.pds-tapin__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px;
  font-size: .74rem; font-weight: 700; transition: transform .2s var(--pds-tapin-ease), opacity .3s, box-shadow .3s; }
.pds-tapin__btn:active { transform: scale(.97); }
.pds-tapin__btn.is-apple { color: var(--bg); background: var(--ink); }
.pds-tapin__btn.is-google { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
.pds-tapin__btn.is-email { color: var(--primary); background: var(--primary-tint); }
:is(.pds-tapin__btn:hover, .pds-tapin__btn:focus-visible) { box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--ink) 60%, transparent), inset 0 0 0 1px var(--border-strong); }
.pds-tapin__glyph { display: grid; flex: none; place-items: center; width: 18px; height: 18px; }
.pds-tapin__glyph svg, .pds-tapin__via svg, .pds-tapin__safe svg, .pds-tapin__list svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-tapin__btn.is-busy .pds-tapin__glyph svg { display: none; }
.pds-tapin__btn.is-busy .pds-tapin__glyph { border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; transform: scale(.85); animation: pds-tapin-spin .7s linear infinite; }
.pds-tapin.is-checking .pds-tapin__btn:not(.is-busy) { opacity: .35; }
.pds-tapin__or { display: flex; align-items: center; gap: 8px; font-size: .6rem; color: var(--ink-faint); }
.pds-tapin__or::before, .pds-tapin__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pds-tapin__safe { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; font-size: .62rem; font-weight: 600; color: var(--ink-muted); }
.pds-tapin__safe svg { width: 13px; height: 13px; flex: none; color: var(--accent-deep); }

/* signed in */
.pds-tapin__avatar { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 18px 0 10px; border-radius: 50%;
  font-family: var(--font-display, Georgia, serif); font-size: 1.5rem; color: var(--bg); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent-deep) 60%, var(--primary-deep))); }
.pds-tapin__via { position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  color: var(--ink); background: var(--surface); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--border); }
.pds-tapin.is-in .pds-tapin__avatar { animation: pds-tapin-pop .6s .15s var(--pds-tapin-ease) both; }
.pds-tapin__how { font-weight: 700; color: var(--ink); }
.pds-tapin__list { display: grid; width: 100%; margin-top: 14px; overflow: hidden; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-align: start; }
.pds-tapin__list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: .66rem; font-weight: 600; }
.pds-tapin__list li + li { border-top: 1px solid var(--border); }
.pds-tapin__list svg { width: 15px; height: 15px; flex: none; padding: 2px; border-radius: 50%; color: var(--bg); background: var(--accent-deep); stroke-width: 3; }
.pds-tapin.is-in .pds-tapin__list li { animation: pds-tapin-rise .5s var(--pds-tapin-ease) both; }
.pds-tapin.is-in .pds-tapin__list li:nth-child(2) { animation-delay: .08s; }
.pds-tapin.is-in .pds-tapin__list li:nth-child(3) { animation-delay: .16s; }
.pds-tapin__out { width: 100%; height: 38px; margin-top: auto; border-radius: 12px; font-size: .74rem; font-weight: 700; color: var(--ink); background: var(--surface-sunk); transition: background-color .3s; }
:is(.pds-tapin__out:hover, .pds-tapin__out:focus-visible) { background: var(--border); }
.pds-tapin__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes pds-tapin-spin { to { transform: scale(.85) rotate(360deg); } }
@keyframes pds-tapin-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes pds-tapin-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- PDS-104 Store Shelf ---------- */
.pds-storeshelf, .pds-storeshelf * { box-sizing: border-box; }
.pds-storeshelf { --pds-storeshelf-ease: cubic-bezier(.22, 1, .36, 1); --pds-storeshelf-frame: color-mix(in srgb, var(--primary) 8%, #0e1116);
  position: relative; width: min(100%, 250px); height: 418px; padding: 7px; border-radius: 40px; color: var(--ink); text-align: start; line-height: 1.35;
  background: var(--pds-storeshelf-frame); box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1.5px color-mix(in srgb, var(--primary-tint) 22%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--ink) 70%, transparent); }
.pds-storeshelf :where(button) { margin: 0; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-storeshelf :where(button, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-storeshelf :where(p, dl, dd) { margin: 0; }
.pds-storeshelf__screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 33px; background: var(--bg); }
.pds-storeshelf__island { position: absolute; z-index: 5; top: 8px; left: 50%; width: 62px; height: 17px; border-radius: 20px; background: var(--pds-storeshelf-frame); transform: translateX(-50%); }
.pds-storeshelf__status { display: flex; flex: none; align-items: center; justify-content: space-between; height: 32px; padding: 2px 20px 0 24px; font: 600 .62rem/1 var(--font-mono, ui-monospace, monospace); }
.pds-storeshelf__icons { display: flex; align-items: flex-end; gap: 1.5px; }
.pds-storeshelf__icons i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.pds-storeshelf__icons i:nth-child(2) { height: 6px; }
.pds-storeshelf__icons i:nth-child(3) { height: 8px; }
.pds-storeshelf__icons b { width: 16px; height: 8px; margin-left: 4px; padding: 1px; border-radius: 3px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 70%, transparent 0) content-box; }
.pds-storeshelf__body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-height: 0; padding: 0 12px 8px; overflow: hidden auto; scrollbar-width: none; }
.pds-storeshelf__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* search keywords that find the listing */
.pds-storeshelf__search { display: flex; flex: none; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 9px; font-size: .62rem; color: var(--ink-muted); background: var(--surface-sunk); }
.pds-storeshelf__search svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pds-storeshelf__search mark { padding: 0 3px; border-radius: 4px; font-weight: 700; color: var(--primary-deep); background: var(--primary-tint); }
.pds-storeshelf__tag u { text-decoration: underline 1.5px color-mix(in srgb, var(--primary) 55%, transparent); text-underline-offset: 2px; }

/* icon, name, Get */
.pds-storeshelf__head { display: flex; flex: none; gap: 10px; align-items: center; }
.pds-storeshelf__icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 15px; color: var(--bg);
  background: radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 60%), linear-gradient(145deg, var(--primary), var(--primary-deep));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), 0 10px 18px -12px color-mix(in srgb, var(--primary-deep) 90%, transparent); }
.pds-storeshelf__icon svg { width: 60%; height: 60%; fill: currentColor; }
.pds-storeshelf__core { fill: var(--gold); }
.pds-storeshelf__id { display: grid; gap: 1px; min-width: 0; }
.pds-storeshelf__name { font-family: var(--font-display, Georgia, serif); font-size: 1rem; font-weight: 600; line-height: 1.15; }
.pds-storeshelf__tag { font-size: .62rem; color: var(--ink-muted); }
.pds-storeshelf__row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pds-storeshelf__get { position: relative; display: grid; place-items: center; width: 56px; height: 24px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  color: var(--bg); background: var(--primary); transition: width .45s var(--pds-storeshelf-ease), background-color .3s, color .3s; }
.pds-storeshelf__ring { position: absolute; inset: -2px auto auto 50%; width: 28px; height: 28px; margin-left: -14px; opacity: 0; transform: rotate(-90deg) scale(.6); transition: opacity .25s, transform .45s var(--pds-storeshelf-ease); }
.pds-storeshelf__ring circle { fill: none; stroke: var(--border-strong); stroke-width: 2.6; }
.pds-storeshelf__ring .pds-storeshelf__arc { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 63; stroke-dashoffset: 63; }
.pds-storeshelf__ring rect { fill: var(--primary); }
.pds-storeshelf__get.is-loading { width: 24px; background: transparent; }
.pds-storeshelf__get.is-loading .pds-storeshelf__word { opacity: 0; }
.pds-storeshelf__get.is-loading .pds-storeshelf__ring { opacity: 1; transform: rotate(-90deg); }
.pds-storeshelf__get.is-loading .pds-storeshelf__arc { animation: pds-storeshelf-load 2s .2s ease-in-out forwards; }
.pds-storeshelf__get.is-ready { color: var(--primary); background: var(--primary-tint); }
.pds-storeshelf__chip { padding: 3px 7px; border-radius: 999px; font-size: .54rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunk); }

/* example rating, category, age */
.pds-storeshelf__stats { display: grid; flex: none; grid-template-columns: 1.25fr 1fr .6fr; padding: 5px 0; border-block: 1px solid var(--border); text-align: center; }
.pds-storeshelf__stats div + div { border-left: 1px solid var(--border); }
.pds-storeshelf__stats dt { font-size: .5rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.pds-storeshelf__stats dd { margin-top: 2px; font-size: .62rem; font-weight: 700; color: var(--ink-muted); }
.pds-storeshelf__stats b { font-family: var(--font-mono, ui-monospace, monospace); font-size: .72rem; color: var(--ink); }
.pds-storeshelf__stars { margin-left: 3px; font-size: .5rem; letter-spacing: 1px; color: var(--gold); }

/* screenshots, sized for phone or tablet */
.pds-storeshelf__bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 6px; }
.pds-storeshelf__h { font-size: .74rem; font-weight: 700; }
.pds-storeshelf__h span { margin-left: 4px; font: 600 .56rem/1 var(--font-mono, ui-monospace, monospace); color: var(--ink-faint); }
.pds-storeshelf__seg { display: flex; padding: 2px; border-radius: 999px; background: var(--surface-sunk); }
.pds-storeshelf__size { padding: 3px 8px; border-radius: 999px; font-size: .58rem; font-weight: 700; color: var(--ink-muted); transition: color .3s, background-color .3s, box-shadow .3s; }
.pds-storeshelf__size[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--ink) 35%, transparent); }
.pds-storeshelf__shots { display: flex; flex: none; gap: 8px; contain: inline-size; margin: -4px -12px; padding: 4px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-user-select: none; user-select: none; }
.pds-storeshelf__shots::-webkit-scrollbar { display: none; }
.pds-storeshelf__shots.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.pds-storeshelf__shot { display: flex; flex: none; flex-direction: column; gap: 4px; width: 52px; height: 94px; padding: 6px 5px 0; overflow: hidden; border-radius: 10px; scroll-snap-align: start;
  background: linear-gradient(160deg, var(--primary), var(--primary-deep)); transition: width .5s var(--pds-storeshelf-ease); }
.pds-storeshelf__shot.is-b { background: linear-gradient(160deg, var(--accent-deep), color-mix(in srgb, var(--accent-deep) 80%, var(--ink))); }
.pds-storeshelf__shot.is-c { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 60%, var(--ink)), color-mix(in srgb, var(--gold) 50%, var(--ink))); }
.pds-storeshelf__shot.is-d { background: linear-gradient(160deg, var(--primary-deep), var(--primary)); }
.pds-storeshelf[data-size="tablet"] .pds-storeshelf__shot { width: 76px; }
.pds-storeshelf__shot b { font-family: var(--font-display, Georgia, serif); font-size: .56rem; line-height: 1.15; color: var(--bg); }
.pds-storeshelf__mini { display: grid; flex: 1; grid-template-columns: 1fr; align-content: start; gap: 3px; padding: 5px 4px; border-radius: 7px 7px 0 0; background: var(--bg); }
.pds-storeshelf[data-size="tablet"] .pds-storeshelf__mini { grid-template-columns: 1fr 1fr; }
.pds-storeshelf__mini i { height: 7px; border-radius: 3px; background: var(--surface-sunk); }
.pds-storeshelf__mini .is-hero { grid-column: 1 / -1; height: 18px; background: var(--primary-tint); }
.pds-storeshelf__mini.is-grid { grid-template-columns: 1fr 1fr; }
.pds-storeshelf[data-size="tablet"] .pds-storeshelf__mini.is-grid { grid-template-columns: repeat(3, 1fr); }
.pds-storeshelf__mini.is-grid i { height: 17px; background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.pds-storeshelf__mini.is-card { grid-template-columns: repeat(3, 1fr); }
.pds-storeshelf[data-size="tablet"] .pds-storeshelf__mini.is-card { grid-template-columns: repeat(4, 1fr); }
.pds-storeshelf__mini em { aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.pds-storeshelf__mini em.is-off { background: none; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.pds-storeshelf__mini .is-tick { grid-column: 1 / -1; justify-self: center; width: 24px; height: 24px; margin: 4px 0; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 3px, var(--accent) 3.5px); }
.pds-storeshelf__about { flex: none; font-size: .62rem; color: var(--ink-muted); }
.pds-storeshelf__new { display: grid; flex: none; gap: 1px; padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pds-storeshelf__new p:last-child { font-size: .62rem; color: var(--ink-muted); }
.pds-storeshelf__toast { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3; padding: 8px 10px; border-radius: 12px; font-size: .64rem; font-weight: 600; text-align: center;
  color: var(--bg); background: var(--ink); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .45s var(--pds-storeshelf-ease); pointer-events: none; }
.pds-storeshelf__toast.is-on { opacity: 1; transform: none; }

@keyframes pds-storeshelf-load { 0% { stroke-dashoffset: 63; } 35% { stroke-dashoffset: 40; } 55% { stroke-dashoffset: 33; } 100% { stroke-dashoffset: 0; } }

/* ---------- PDS-105 Turn Tablet ---------- */
.pds-turntab, .pds-turntab * { box-sizing: border-box; }
.pds-turntab { --pds-turntab-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-turntab-bezel: color-mix(in srgb, var(--ink) 9%, color-mix(in srgb, var(--primary) 10%, #090a0f));
  --pds-turntab-shade: color-mix(in srgb, var(--ink) 14%, #04050a);
  container-type: inline-size; position: relative; display: grid; justify-items: center; gap: .7rem;
  width: min(100%, 440px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-turntab :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-turntab :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-turntab :where(p) { margin: 0; }
.pds-turntab svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the tablet is sized in em, so one font-size scales the whole frame down on small screens */
.pds-turntab__hold { display: grid; place-items: center; width: 100%; height: 36em; font-size: min(10px, calc(100cqw / 37)); }
.pds-turntab__dev { position: relative; width: 36em; height: 27em; padding: 1em; border-radius: 2.4em; background: var(--pds-turntab-bezel);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border-strong) 70%, transparent), inset 0 0 0 .18em color-mix(in srgb, var(--surface) 10%, transparent),
    0 2.6em 4.6em -2.2em color-mix(in srgb, var(--pds-turntab-shade) 55%, transparent);
  transition: transform .62s cubic-bezier(.45, 0, .2, 1); }
.pds-turntab.is-portrait .pds-turntab__dev { width: 27em; height: 36em; }
.pds-turntab.is-turning .pds-turntab__dev { transform: rotate(90deg); }
.pds-turntab.is-portrait.is-turning .pds-turntab__dev { transform: rotate(-90deg); }
.pds-turntab__cam { position: absolute; top: .28em; left: 50%; width: .44em; height: .44em; margin-left: -.22em; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 35%, #22262f); }
.pds-turntab.is-portrait .pds-turntab__cam { top: 50%; left: auto; right: .28em; margin: -.22em 0 0; }
.pds-turntab__screen { position: relative; height: 100%; overflow: hidden; border-radius: 1.5em; background: var(--bg); }
.pds-turntab__ui { display: flex; flex-direction: column; height: 100%; transition: opacity .3s, filter .3s; }
.pds-turntab.is-turning .pds-turntab__ui { opacity: .3; filter: blur(.25em); }
.pds-turntab.is-entering .pds-turntab__ui { animation: pds-turntab-in .5s var(--pds-turntab-ease); }
.pds-turntab__status { display: flex; align-items: center; justify-content: space-between; padding: .5em 1.5em 0;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .95em; color: var(--ink-muted); }
.pds-turntab__bat { width: 2.1em; height: 1em; padding: .14em; border: .1em solid currentColor; border-radius: .32em; }
.pds-turntab__bat i { display: block; width: 72%; height: 100%; border-radius: .12em; background: currentColor; }
.pds-turntab__bar { display: flex; align-items: center; gap: .7em; padding: .3em 1.5em .65em; border-bottom: 1px solid var(--border); }
.pds-turntab__brand { font-family: var(--font-display, Georgia, serif); font-size: 1.55em; font-weight: 600; }
.pds-turntab__chip { margin-left: auto; padding: .25em .75em; border-radius: 99em; font-size: .9em; font-weight: 700; color: var(--primary-deep); background: var(--primary-tint); }
.pds-turntab__panes { position: relative; display: grid; grid-template-columns: 43% 1fr; flex: 1; min-height: 0; }
.pds-turntab__list { display: flex; flex-direction: column; gap: .35em; min-height: 0; padding: .8em; overflow: hidden;
  background: var(--surface-sunk); border-right: 1px solid var(--border); }
.pds-turntab__h { padding: .1em .45em .3em; font-size: .95em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pds-turntab__item { display: flex; align-items: center; gap: .6em; min-height: 3.7em; padding: .45em .55em; border-radius: 1em; text-align: start;
  transition: background .25s, box-shadow .25s; }
.pds-turntab__item:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.pds-turntab__item[aria-current="true"] { background: var(--surface);
  box-shadow: 0 0 0 .12em color-mix(in srgb, var(--primary) 40%, transparent), 0 .7em 1.2em -.9em color-mix(in srgb, var(--pds-turntab-shade) 60%, transparent); }
.pds-turntab__item i { flex: none; width: 2.5em; height: 2.5em; border-radius: .8em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 55%, var(--surface)), color-mix(in srgb, var(--gold) 75%, var(--ink) 25%)); }
.pds-turntab__item:nth-of-type(2) i { background: linear-gradient(135deg, var(--primary-tint), var(--primary)); }
.pds-turntab__item:nth-of-type(3) i { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), var(--accent)); }
.pds-turntab__item:nth-of-type(4) i { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 70%, var(--surface)), var(--primary-deep)); }
.pds-turntab__item span { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.pds-turntab__item b { overflow: hidden; font-size: 1.15em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pds-turntab__item small { font-size: .95em; color: var(--ink-muted); }
.pds-turntab__chev { display: none; flex: none; width: 1.4em; height: 1.4em; color: var(--ink-faint); }
.pds-turntab__detail { display: flex; flex-direction: column; gap: .45em; min-height: 0; padding: 1em 1.2em 1.1em; background: var(--bg); }
.pds-turntab__detail.is-fresh > :not(.pds-turntab__back) { animation: pds-turntab-fresh .45s var(--pds-turntab-ease) both; }
.pds-turntab__back { display: none; align-self: flex-start; align-items: center; gap: .15em; min-height: 2.8em; margin-left: -.5em; padding: 0 .9em 0 .3em;
  border-radius: 99em; font-size: 1.15em; font-weight: 600; color: var(--primary); }
.pds-turntab__back svg { width: 1.4em; height: 1.4em; }
.pds-turntab__art { position: relative; flex: 1 1 auto; min-height: 4.5em; max-height: 13em; overflow: hidden; border-radius: 1.2em;
  background: radial-gradient(90% 120% at 90% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    linear-gradient(135deg, var(--primary-tint), color-mix(in srgb, var(--gold) 40%, var(--surface))); }
.pds-turntab__art::after { content: ""; position: absolute; left: 50%; top: 52%; height: 58%; aspect-ratio: 2 / 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-linear-gradient(115deg, transparent 0 1.1em, color-mix(in srgb, var(--surface) 55%, transparent) 1.1em 1.35em),
    radial-gradient(100% 90% at 40% 25%, color-mix(in srgb, var(--gold) 50%, var(--surface)), color-mix(in srgb, var(--gold) 72%, var(--ink) 28%));
  box-shadow: 0 .9em 1.4em -.8em color-mix(in srgb, var(--pds-turntab-shade) 70%, transparent); }
.pds-turntab__art[data-art="1"] { background: radial-gradient(90% 120% at 10% 0%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--gold) 30%, var(--surface)), var(--primary-tint)); }
.pds-turntab__art[data-art="1"]::after { height: 70%; aspect-ratio: 1;
  background: repeating-radial-gradient(circle, color-mix(in srgb, var(--gold) 75%, var(--ink) 25%) 0 .3em, color-mix(in srgb, var(--gold) 45%, var(--surface)) .3em .95em); }
.pds-turntab__art[data-art="2"] { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), color-mix(in srgb, var(--gold) 35%, var(--surface))); }
.pds-turntab__art[data-art="2"]::after { height: 46%; aspect-ratio: 2.3 / 1; border-radius: 50% 50% 40% 40% / 90% 90% 30% 30%; }
.pds-turntab__art[data-art="3"] { background: radial-gradient(80% 110% at 80% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), linear-gradient(135deg, var(--primary-tint), color-mix(in srgb, var(--gold) 30%, var(--surface))); }
.pds-turntab__art[data-art="3"]::after { height: 68%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 85%, var(--surface)) 0 54%, color-mix(in srgb, var(--gold) 65%, var(--ink) 35%) 57% 100%); }
.pds-turntab__name { font-family: var(--font-display, Georgia, serif); font-size: 1.9em; font-weight: 600; line-height: 1.1; }
.pds-turntab__meta { font-size: 1.05em; color: var(--ink-muted); }
.pds-turntab__price { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 700; color: var(--ink); }
.pds-turntab__desc { font-size: 1.1em; line-height: 1.4; color: var(--ink-muted); }
.pds-turntab__add { flex: none; min-height: 3.4em; margin-top: .15em; border-radius: 1em; font-size: 1.15em; font-weight: 700; color: var(--bg); background: var(--primary);
  box-shadow: 0 .8em 1.4em -1em color-mix(in srgb, var(--primary) 80%, transparent); transition: transform .2s, filter .2s; }
.pds-turntab__add:hover { filter: brightness(1.07); }
.pds-turntab__add:active { transform: scale(.97); }
/* upright: one column, the details slide in over the list */
.pds-turntab.is-portrait .pds-turntab__panes { display: block; overflow: hidden; }
.pds-turntab.is-portrait :is(.pds-turntab__list, .pds-turntab__detail) { position: absolute; inset: 0;
  transition: transform .45s var(--pds-turntab-ease), opacity .35s, visibility 0s; }
.pds-turntab.is-portrait .pds-turntab__list { gap: .5em; padding: 1em 1.2em; border-right: 0; background: var(--bg); }
.pds-turntab.is-portrait .pds-turntab__item { min-height: 4.4em; padding: .55em .8em; background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.pds-turntab.is-portrait .pds-turntab__chev, .pds-turntab.is-portrait .pds-turntab__back { display: inline-flex; }
.pds-turntab.is-portrait .pds-turntab__detail { transform: translateX(100%); visibility: hidden;
  box-shadow: -1em 0 2em -1.6em color-mix(in srgb, var(--pds-turntab-shade) 60%, transparent);
  transition: transform .45s var(--pds-turntab-ease), visibility 0s linear .45s; }
.pds-turntab.is-portrait.is-open .pds-turntab__detail { transform: none; visibility: visible; transition: transform .45s var(--pds-turntab-ease), visibility 0s; }
.pds-turntab.is-portrait.is-open .pds-turntab__list { transform: translateX(-28%); opacity: 0; visibility: hidden;
  transition: transform .45s var(--pds-turntab-ease), opacity .35s, visibility 0s linear .45s; }
.pds-turntab__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem .8rem; max-width: 100%; }
.pds-turntab__rotate { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 1.05rem 0 .85rem; border-radius: 999px;
  font-size: .86rem; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--pds-turntab-shade) 70%, transparent); transition: border-color .25s, transform .2s; }
.pds-turntab__rotate:hover { border-color: var(--primary); }
.pds-turntab__rotate:active { transform: scale(.96); }
.pds-turntab__rotate svg { width: 1.1rem; height: 1.1rem; color: var(--primary); transition: transform .62s cubic-bezier(.45, 0, .2, 1); }
.pds-turntab.is-turning .pds-turntab__rotate svg { transform: rotate(90deg); }
.is-playing .pds-turntab__rotate svg { animation: pds-turntab-nudge 1.2s var(--pds-turntab-ease) 2; }
.pds-turntab__note { flex: 1 1 11rem; max-width: 15rem; font-size: .8rem; line-height: 1.35; color: var(--ink-muted); }
.pds-turntab.is-snap :is(.pds-turntab__dev, .pds-turntab__ui, .pds-turntab__list, .pds-turntab__detail) { transition: none !important; }
@keyframes pds-turntab-in { from { opacity: 0; transform: scale(.97); filter: blur(.3em); } }
@keyframes pds-turntab-fresh { from { opacity: 0; transform: translateY(.5em); } }
@keyframes pds-turntab-nudge { 40% { transform: rotate(35deg); } }
@media (prefers-reduced-motion: reduce) {
  .pds-turntab *, .pds-turntab *::after { transition: none !important; animation: none !important; }
}

/* ---------- PDS-106 Live Widgets ---------- */
.pds-widgets, .pds-widgets * { box-sizing: border-box; }
.pds-widgets { --pds-widgets-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-widgets-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  position: relative; display: grid; justify-items: center; gap: .65rem; width: min(100%, 300px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-widgets :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-widgets :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-widgets :where(p) { margin: 0; }
.pds-widgets__top { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.pds-widgets__label { font-size: .78rem; font-weight: 600; color: var(--ink-muted); }
.pds-widgets__seg { position: relative; display: grid; grid-template-columns: repeat(3, 2.6rem); padding: 3px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); }
.pds-widgets__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 2.6rem; border-radius: 999px; background: var(--primary);
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--primary) 90%, transparent); transition: transform .45s var(--pds-widgets-ease); }
.pds-widgets__size { position: relative; height: 1.9rem; border-radius: 999px; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .8rem; font-weight: 700; color: var(--ink-muted); transition: color .3s; }
.pds-widgets__size[aria-checked="true"] { color: var(--bg); }
/* the phone, its wallpaper and status bar */
.pds-widgets__phone { width: min(100%, 240px); height: 334px; padding: 7px; border-radius: 40px;
  background: color-mix(in srgb, var(--ink) 9%, color-mix(in srgb, var(--primary) 10%, #090a0f));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--border-strong) 70%, transparent), 0 28px 50px -30px color-mix(in srgb, var(--pds-widgets-shade) 70%, transparent); }
.pds-widgets__screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 33px;
  background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 60%),
    radial-gradient(110% 70% at 100% 100%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 65%),
    linear-gradient(170deg, color-mix(in srgb, var(--primary) 70%, var(--pds-widgets-shade)), color-mix(in srgb, var(--primary) 40%, var(--pds-widgets-shade))); }
.pds-widgets__status { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 6px 20px 0;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 10px; font-weight: 700; color: #fff; }
.pds-widgets__cam { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 25%, #05060b); }
.pds-widgets__sig { display: flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.pds-widgets__sig i { width: 2.5px; height: 40%; border-radius: 1px; background: currentColor; }
.pds-widgets__sig i:nth-child(2) { height: 60%; } .pds-widgets__sig i:nth-child(3) { height: 80%; } .pds-widgets__sig i:nth-child(4) { height: 100%; }
.pds-widgets__home { container-type: inline-size; display: flex; flex-direction: column; flex: 1; min-height: 0;
  transition: transform .5s var(--pds-widgets-ease), filter .5s; }
.pds-widgets.is-app .pds-widgets__home { transform: scale(.92); filter: blur(3px); }
/* a 4-column home-screen grid: widgets take 2x2, 4x2 or 4x4 cells */
.pds-widgets__grid { --pds-widgets-cell: calc((100cqw - 54px) / 4); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: var(--pds-widgets-cell);
  gap: 10px; height: calc(var(--pds-widgets-cell) * 4 + 42px); padding: 6px 12px; overflow: hidden; }
.pds-widgets__icon { border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 30%, transparent), 0 4px 10px -6px color-mix(in srgb, var(--pds-widgets-shade) 80%, transparent); }
.pds-widgets__icon:nth-child(6n+4) { background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 55%, var(--primary))); }
.pds-widgets__icon:nth-child(6n+5) { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.pds-widgets__icon:nth-child(6n) { background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--primary))); }
.pds-widgets__icon:nth-child(6n+1) { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 50%, var(--accent)), var(--primary)); }
.pds-widgets__icon:nth-child(6n+2) { background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 60%, var(--surface)), var(--gold)); }
.pds-widgets__dock .pds-widgets__icon { aspect-ratio: 1; }
.pds-widgets__dots { display: flex; justify-content: center; gap: 5px; height: 5px; margin: 7px 0 0; }
.pds-widgets__dots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, #fff 85%, var(--primary-tint)); }
.pds-widgets__dots i + i { display: none; opacity: .45; }
.pds-widgets[data-size="l"] .pds-widgets__dots i + i { display: block; }
.pds-widgets__dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: auto 8px 8px; padding: 7px; border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 26%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* the widgets */
.pds-widgets__w { position: relative; grid-column: span 2; grid-row: span 2; display: grid; align-content: space-between; gap: 4px; min-width: 0; padding: 9px 10px;
  overflow: hidden; border-radius: 19px; text-align: start; color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--pds-widgets-shade) 80%, transparent);
  transition: transform .25s var(--pds-widgets-ease); }
.pds-widgets__w:hover { transform: scale(1.03); }
.pds-widgets__w:active { transform: scale(.97); }
.pds-widgets__w--order { grid-template-areas: "head" "ring" "cap"; }
.pds-widgets__w--spec { grid-template-areas: "head" "spec"; }
.pds-widgets__head { grid-area: head; display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 9.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.pds-widgets__logo { flex: none; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--gold), var(--primary)); }
.pds-widgets__stamp { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 8.5px; font-style: normal; color: var(--accent-deep); }
.pds-widgets__stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pds-widgets__stamp.is-new::before { animation: pds-widgets-ping .9s ease-out; }
.pds-widgets__ring { grid-area: ring; position: relative; display: grid; place-content: center; width: 46px; aspect-ratio: 1; text-align: center; line-height: 1; }
.pds-widgets__ring svg { position: absolute; inset: 0; rotate: -90deg; fill: none; stroke-width: 3.6; stroke-linecap: round; }
.pds-widgets__track { stroke: color-mix(in srgb, var(--ink) 12%, transparent); }
.pds-widgets__arc { stroke: var(--primary); stroke-dasharray: 100; stroke-dashoffset: 75; transition: stroke-dashoffset .8s var(--pds-widgets-ease), stroke .4s; }
.pds-widgets__min { font-family: var(--font-mono, ui-monospace, monospace); font-size: 15px; font-weight: 700; }
.pds-widgets__unit { font-size: 7.5px; font-weight: 700; color: var(--ink-muted); }
.pds-widgets.is-ready .pds-widgets__arc { stroke: var(--accent); }
.pds-widgets.is-ready .pds-widgets__min { color: var(--accent-deep); }
.pds-widgets__cap { grid-area: cap; font-size: 9.5px; font-weight: 600; color: var(--ink-muted); }
.pds-widgets__order { grid-area: order; display: grid; gap: 3px; min-width: 0; }
.pds-widgets__order small, .pds-widgets__spec small { font-size: 8.5px; font-weight: 600; color: var(--ink-muted); }
.pds-widgets__title { font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.pds-widgets__bar { display: block; height: 5px; overflow: hidden; border-radius: 5px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.pds-widgets__bar i { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .8s var(--pds-widgets-ease); }
.pds-widgets__steps { grid-area: steps; display: flex; gap: 4px; }
.pds-widgets__steps i { flex: 1; padding: 3px 0; border-radius: 6px; font-size: 8.5px; font-style: normal; font-weight: 700; text-align: center;
  color: var(--ink-muted); background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .4s, color .4s; }
.pds-widgets__steps i.is-done { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pds-widgets__steps i.is-now { color: var(--bg); background: var(--primary); }
.pds-widgets__spec { grid-area: spec; display: grid; align-content: end; gap: 1px; min-width: 0; }
.pds-widgets__spec.is-new > * { animation: pds-widgets-swap .5s var(--pds-widgets-ease) both; }
.pds-widgets__sname { font-family: var(--font-display, Georgia, serif); font-size: 14px; font-weight: 600; line-height: 1.1; }
.pds-widgets__sprice { font-family: var(--font-mono, ui-monospace, monospace); font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--primary-deep); }
/* which parts show at each size */
.pds-widgets__cap, .pds-widgets__order, .pds-widgets__steps, .pds-widgets__w--order .pds-widgets__spec, .pds-widgets__w--spec, .pds-widgets__long { display: none; }
.pds-widgets[data-size="s"] :is(.pds-widgets__cap, .pds-widgets__w--spec) { display: grid; }
.pds-widgets__w--spec .pds-widgets__spec small { display: none; }
.pds-widgets__w--spec::after { content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: repeating-radial-gradient(circle, color-mix(in srgb, var(--gold) 75%, var(--ink) 25%) 0 1.5px, color-mix(in srgb, var(--gold) 50%, var(--surface)) 1.5px 4px); }
.pds-widgets[data-size="m"] .pds-widgets__w--order { grid-column: span 4; grid-template-columns: 50px 1fr; grid-template-areas: "ring head" "ring order" "ring spec";
  align-content: center; gap: 4px 10px; }
.pds-widgets[data-size="m"] .pds-widgets__ring { width: 50px; align-self: center; }
.pds-widgets[data-size="m"] .pds-widgets__order small { display: none; }
.pds-widgets[data-size="m"] .pds-widgets__spec { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px; }
.pds-widgets[data-size="m"] .pds-widgets__spec small { grid-column: 1 / -1; }
.pds-widgets[data-size="m"] .pds-widgets__sname { overflow: hidden; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.pds-widgets[data-size="m"] .pds-widgets__sprice { font-size: 9.5px; }
.pds-widgets[data-size="l"] .pds-widgets__w--order { grid-column: span 4; grid-row: span 4; grid-template-columns: 64px 1fr;
  grid-template-areas: "head head" "ring order" "steps steps" "spec spec"; align-content: space-between; gap: 8px 12px; padding: 11px 12px; }
.pds-widgets[data-size="l"] .pds-widgets__ring { width: 64px; }
.pds-widgets[data-size="l"] .pds-widgets__min { font-size: 18px; }
.pds-widgets[data-size="l"] .pds-widgets__title { font-size: 14px; }
.pds-widgets[data-size="l"] .pds-widgets__spec { padding-top: 8px; border-top: 1px solid var(--border); }
.pds-widgets[data-size="l"] .pds-widgets__sname { font-size: 16px; }
.pds-widgets:is([data-size="m"], [data-size="l"]) :is(.pds-widgets__order, .pds-widgets__w--order .pds-widgets__spec) { display: grid; }
.pds-widgets:is([data-size="m"], [data-size="l"]) .pds-widgets__long { display: inline; }
.pds-widgets[data-size="m"] .pds-widgets__order { align-self: center; }
.pds-widgets[data-size="l"] .pds-widgets__order { align-self: center; }
.pds-widgets[data-size="l"] .pds-widgets__steps { display: flex; }
/* the app, opened from the widget */
.pds-widgets__app { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 36px 12px 14px; border-radius: inherit;
  color: var(--ink); background: var(--bg); opacity: 0; visibility: hidden; transform: scale(.3);
  transition: transform .5s var(--pds-widgets-ease), opacity .3s, visibility 0s linear .5s; }
.pds-widgets__app:focus { outline: none; }
.pds-widgets.is-app .pds-widgets__app { opacity: 1; visibility: visible; transform: none; transition: transform .5s var(--pds-widgets-ease), opacity .25s, visibility 0s; }
.pds-widgets__abar { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; }
.pds-widgets__abar .pds-widgets__logo { width: 18px; height: 18px; border-radius: 6px; }
.pds-widgets__abar b { font-family: var(--font-display, Georgia, serif); font-size: 15px; font-weight: 600; }
.pds-widgets__chip { margin-left: auto; padding: 2px 7px; border-radius: 99px; font-size: 8.5px; font-weight: 700; color: var(--primary-deep); background: var(--primary-tint); }
.pds-widgets__card { display: grid; gap: 4px; padding: 10px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pds-widgets__card small { font-size: 9.5px; font-weight: 600; color: var(--ink-muted); }
.pds-widgets__card .pds-widgets__title { font-size: 15px; }
.pds-widgets__card .pds-widgets__sname { font-size: 15px; }
.pds-widgets__anote { font-size: 10px; text-align: center; color: var(--ink-faint); }
.pds-widgets__close { margin-top: auto; min-height: 34px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink);
  background: var(--surface-sunk); border: 1px solid var(--border-strong); }
.pds-widgets__hint { max-width: 100%; font-size: .78rem; line-height: 1.35; text-align: center; color: var(--ink-muted); }
.pds-widgets__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-playing .pds-widgets__w--order { animation: pds-widgets-nudge 1.2s var(--pds-widgets-ease); }
@keyframes pds-widgets-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes pds-widgets-swap { from { opacity: 0; transform: translateY(5px); } }
@keyframes pds-widgets-nudge { 40% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .pds-widgets *, .pds-widgets *::before, .pds-widgets *::after { transition: none !important; animation: none !important; }
}

/* ---------- PDS-107 Pro Paywall ---------- */
.pds-paywall, .pds-paywall * { box-sizing: border-box; }
.pds-paywall { --pds-paywall-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-paywall-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  container-type: inline-size; position: relative; isolation: isolate; width: min(100%, 320px); margin: 0 auto; overflow: hidden; border-radius: 30px; color: var(--ink); line-height: 1.35; text-align: start;
  background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--border); box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--pds-paywall-shade) 75%, transparent); }
.pds-paywall :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-paywall :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-paywall :where(p, ul) { margin: 0; padding: 0; list-style: none; }
.pds-paywall svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pds-paywall__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; padding: .8rem 1rem .55rem; }
.pds-paywall__free { justify-self: center; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap;
  font-size: .66rem; font-weight: 700; color: var(--ink-muted); background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-paywall__free svg { flex: none; width: .8rem; height: .8rem; color: var(--primary); }
.pds-paywall__hero { display: flex; align-items: center; gap: .7rem; }
.pds-paywall__badge { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 14px; color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--primary)); box-shadow: 0 10px 18px -10px color-mix(in srgb, var(--primary) 80%, transparent); }
.pds-paywall__badge svg { width: 1.35rem; height: 1.35rem; stroke-width: 2; }
.pds-paywall__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.pds-paywall__sub { font-size: .74rem; color: var(--ink-muted); }
.pds-paywall__feats { display: grid; gap: .22rem; font-size: .78rem; }
.pds-paywall__feats li { display: flex; align-items: center; gap: .45rem; }
.pds-paywall__feats svg { flex: none; width: 1.05rem; height: 1.05rem; padding: .15rem; border-radius: 50%; stroke-width: 3.2;
  color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pds-paywall__plans { display: grid; gap: .4rem; }
.pds-paywall__plan { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding: .32rem .7rem; border-radius: 14px; text-align: start;
  background: var(--bg); border: 1.5px solid var(--border-strong); transition: border-color .25s, background .25s, box-shadow .25s, transform .2s; }
.pds-paywall__plan:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border-strong)); }
.pds-paywall__plan:active { transform: scale(.985); }
.pds-paywall__plan[aria-checked="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pds-paywall__dot { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid var(--border-strong); transition: border .25s var(--pds-paywall-ease); }
.pds-paywall__plan[aria-checked="true"] .pds-paywall__dot { border: 5px solid var(--primary); }
.pds-paywall__pn { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pds-paywall__pn b { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; font-size: .86rem; }
.pds-paywall__pn small { font-size: .68rem; color: var(--ink-muted); }
.pds-paywall__pp { flex: none; display: flex; align-items: baseline; gap: .15rem; font-family: var(--font-mono, ui-monospace, monospace); font-size: .84rem; font-weight: 700; }
.pds-paywall__pp small { font-size: .62rem; font-weight: 600; color: var(--ink-faint); }
.pds-paywall__best { padding: .06rem .42rem; border-radius: 999px; font-size: .56rem; font-style: normal; font-weight: 800; white-space: nowrap;
  letter-spacing: .05em; text-transform: uppercase; color: var(--bg); background: var(--accent-deep); }
.pds-paywall__cta { min-height: 2.65rem; border-radius: 14px; font-size: .92rem; font-weight: 700; color: var(--bg); background: var(--primary);
  box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--primary) 90%, transparent); transition: transform .2s, filter .2s; }
.pds-paywall__cta:hover { filter: brightness(1.07); }
.pds-paywall__cta:active { transform: scale(.98); }
.is-playing .pds-paywall__cta { animation: pds-paywall-glow 1.2s ease-in-out 2; }
.pds-paywall__foot { display: grid; justify-items: center; gap: .05rem; }
.pds-paywall__restore { min-height: 2rem; padding: .2rem .5rem; border-radius: 8px; font-size: .76rem; font-weight: 600; color: var(--primary);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.pds-paywall__msg { min-height: 1.1em; font-size: .68rem; line-height: 1.35; text-align: center; color: var(--ink-muted); }
@container (max-width: 280px) {
  .pds-paywall .pds-paywall__plan { gap: .5rem; padding-inline: .6rem; }
  .pds-paywall .pds-paywall__pp { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.15; }
  .pds-paywall .pds-paywall__best { letter-spacing: .02em; text-transform: none; font-size: .6rem; }
}
/* the confirm sheet slides up from the bottom */
.pds-paywall__scrim { position: absolute; inset: 0; z-index: 2; background: color-mix(in srgb, var(--pds-paywall-shade) 45%, transparent);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.pds-paywall.is-sheet .pds-paywall__scrim { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.pds-paywall__sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: .5rem; padding: .55rem 1rem 1rem; border-radius: 24px 24px 0 0;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -18px 40px -24px color-mix(in srgb, var(--pds-paywall-shade) 70%, transparent);
  transform: translateY(105%); visibility: hidden; transition: transform .5s var(--pds-paywall-ease), visibility 0s linear .5s; }
.pds-paywall__sheet:focus { outline: none; }
.pds-paywall.is-sheet .pds-paywall__sheet { transform: none; visibility: visible; transition: transform .5s var(--pds-paywall-ease), visibility 0s; }
.pds-paywall__grab { justify-self: center; width: 2.4rem; height: 4px; margin-bottom: .2rem; border-radius: 4px; background: var(--border-strong); }
.pds-paywall__sh { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; font-weight: 600; }
.pds-paywall__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; padding: .6rem .7rem; border-radius: 12px; font-size: .8rem; background: var(--surface-sunk); }
.pds-paywall__sprice { font-family: var(--font-mono, ui-monospace, monospace); white-space: nowrap; }
.pds-paywall__snote, .pds-paywall__store { font-size: .72rem; line-height: 1.4; color: var(--ink-muted); }
.pds-paywall__confirm { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; margin-top: .2rem; border-radius: 14px;
  font-size: .9rem; font-weight: 700; color: var(--bg); background: var(--primary); }
.pds-paywall__confirm.is-busy::before { content: ""; width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: pds-paywall-spin .7s linear infinite; }
.pds-paywall__cancel { min-height: 2.2rem; border-radius: 12px; font-size: .84rem; font-weight: 600; color: var(--ink-muted); }
.pds-paywall__fine { font-size: .68rem; text-align: center; color: var(--ink-faint); }
/* "You're Pro" */
.pds-paywall__done { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: .45rem; padding: 1.5rem; text-align: center;
  background: radial-gradient(70% 45% at 50% 36%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%), var(--surface);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s; }
.pds-paywall.is-done .pds-paywall__done { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.pds-paywall__check { position: relative; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin-bottom: .5rem; border-radius: 50%; color: var(--bg);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 14%, transparent), 0 18px 30px -16px color-mix(in srgb, var(--primary) 90%, transparent); }
.pds-paywall__check svg { width: 2.2rem; height: 2.2rem; stroke-width: 3; stroke-dasharray: 22; }
.pds-paywall.is-done .pds-paywall__check { animation: pds-paywall-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.pds-paywall.is-done .pds-paywall__check svg { animation: pds-paywall-draw .5s .3s var(--pds-paywall-ease) both; }
.pds-paywall__burst { position: absolute; left: 50%; top: 50%; }
.pds-paywall__burst i { position: absolute; left: -3px; top: -4px; width: 6px; height: 8px; border-radius: 2px; background: var(--gold); opacity: 0; }
.pds-paywall__burst i:nth-child(3n+1) { background: var(--primary); }
.pds-paywall__burst i:nth-child(3n+2) { background: var(--accent); }
.pds-paywall.is-done .pds-paywall__burst i { animation: pds-paywall-fly 1s .2s cubic-bezier(.2, .8, .3, 1) both; }
.pds-paywall__yay { font-family: var(--font-display, Georgia, serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.pds-paywall__dmsg { max-width: 15rem; font-size: .8rem; line-height: 1.4; color: var(--ink-muted); }
.pds-paywall__reset { min-height: 2.4rem; margin-top: .5rem; padding: 0 1.2rem; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--ink);
  background: var(--surface-sunk); border: 1px solid var(--border-strong); }
.pds-paywall.is-done :is(.pds-paywall__yay, .pds-paywall__dmsg, .pds-paywall__reset) { animation: pds-paywall-up .5s .25s var(--pds-paywall-ease) both; }
.pds-paywall__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes pds-paywall-spin { to { transform: rotate(360deg); } }
@keyframes pds-paywall-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 22%, transparent); } }
@keyframes pds-paywall-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes pds-paywall-draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes pds-paywall-fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.5); } 70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(160deg) scale(1); } }
@keyframes pds-paywall-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .pds-paywall *, .pds-paywall *::before { transition: none !important; animation: none !important; }
}

/* ---------- PDS-108 Offline Sync ---------- */
.pds-offline, .pds-offline * { box-sizing: border-box; }
.pds-offline { --pds-offline-ease: cubic-bezier(.22, 1, .36, 1);
  --pds-offline-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  --pds-offline-amber: color-mix(in srgb, var(--gold) 55%, var(--ink));
  position: relative; display: grid; gap: .7rem; width: min(100%, 340px); margin: 0 auto; color: var(--ink); text-align: start; }
.pds-offline :where(button, input) { margin: 0; font: inherit; color: inherit; }
.pds-offline :where(button) { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-offline :where(button, input):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-offline :where(p, ul) { margin: 0; padding: 0; list-style: none; }
.pds-offline__ctrl { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 0 .25rem; }
.pds-offline__switch { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.2rem; padding-right: .3rem; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.pds-offline__track { position: relative; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--ink-faint); transition: background .3s; }
.pds-offline__knob { position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: var(--surface);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--pds-offline-shade) 40%, transparent); transition: transform .35s var(--pds-offline-ease); }
.pds-offline__switch[aria-checked="true"] .pds-offline__track { background: var(--gold); }
.pds-offline__switch[aria-checked="true"] .pds-offline__knob { transform: translateX(1.1rem); }
.is-playing .pds-offline__track { animation: pds-offline-nudge 1.2s ease-in-out 2; }
.pds-offline__net { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 14%, transparent); transition: color .3s, background .3s; }
.pds-offline__net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pds-offline.is-off .pds-offline__net { color: var(--ink-muted); background: var(--surface-sunk); }
.pds-offline__app { position: relative; display: flex; flex-direction: column; height: 22.5rem; overflow: hidden; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: 0 28px 50px -34px color-mix(in srgb, var(--pds-offline-shade) 75%, transparent); }
.pds-offline__head { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem .65rem; border-bottom: 1px solid var(--border); }
.pds-offline__logo { flex: none; width: 2rem; height: 2rem; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--primary)); }
.pds-offline__ttl { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pds-offline__ttl b { font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; font-weight: 600; }
.pds-offline__ttl small { font-size: .7rem; color: var(--ink-muted); }
.pds-offline__sig { display: flex; align-items: flex-end; gap: 2px; height: 14px; color: var(--accent-deep); transition: color .3s; }
.pds-offline__sig i { width: 3px; height: 30%; border-radius: 1px; background: currentColor; transition: opacity .3s; }
.pds-offline__sig i:nth-child(2) { height: 55%; } .pds-offline__sig i:nth-child(3) { height: 80%; } .pds-offline__sig i:nth-child(4) { height: 100%; }
.pds-offline.is-off .pds-offline__sig { color: var(--ink-faint); }
.pds-offline.is-off .pds-offline__sig i { opacity: .35; }
/* a calm banner that folds open */
.pds-offline__banner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--pds-offline-ease); }
.pds-offline.is-banner .pds-offline__banner { grid-template-rows: 1fr; }
.pds-offline__bwrap { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.pds-offline.is-banner .pds-offline__bwrap { visibility: visible; transition: visibility 0s; }
.pds-offline__btext { display: flex; align-items: center; gap: .5rem; margin: .6rem .8rem 0; padding: .5rem .7rem; border-radius: 12px; font-size: .78rem; font-weight: 600; line-height: 1.3;
  background: color-mix(in srgb, var(--gold) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); transition: background .3s, border-color .3s; }
.pds-offline__btext svg { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--pds-offline-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-offline__ok, .pds-offline__banner:not([data-tone="off"]) .pds-offline__slash { display: none; }
.pds-offline__banner[data-tone="sync"] .pds-offline__btext { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.pds-offline__banner[data-tone="sync"] .pds-offline__btext svg { stroke: var(--primary); animation: pds-offline-breathe 1.1s ease-in-out infinite; }
.pds-offline__banner[data-tone="ok"] .pds-offline__btext { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.pds-offline__banner[data-tone="ok"] .pds-offline__btext svg { stroke: var(--accent-deep); }
.pds-offline__banner[data-tone="ok"] .pds-offline__ok { display: inline; }
/* the list: each row shows if it is saved, waiting, syncing or synced */
.pds-offline__list { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; align-content: start; gap: .35rem; min-height: 0; padding: .55rem .8rem; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(transparent, var(--ink) .5rem, var(--ink) calc(100% - .5rem), transparent);
  mask-image: linear-gradient(transparent, var(--ink) .5rem, var(--ink) calc(100% - .5rem), transparent); }
.pds-offline__item { display: flex; align-items: center; gap: .6rem; min-height: 2.45rem; padding: .3rem .7rem; border-radius: 12px; font-size: .84rem;
  background: var(--bg); border: 1px solid var(--border); transition: border-color .3s; }
.pds-offline__item.is-new { animation: pds-offline-in .45s var(--pds-offline-ease); }
.pds-offline__bullet { flex: none; width: .55rem; height: .55rem; border-radius: 3px; background: color-mix(in srgb, var(--primary) 55%, var(--surface)); }
.pds-offline__txt { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pds-offline__st { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; color: var(--ink-faint); }
.pds-offline__ico { position: relative; width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid currentColor; }
.pds-offline__item[data-state="synced"] .pds-offline__st { color: var(--accent-deep); }
.pds-offline__item[data-state="synced"] .pds-offline__ico { border-color: transparent; }
.pds-offline__item[data-state="synced"] .pds-offline__ico::before { content: ""; position: absolute; left: .2rem; top: -.02rem; width: .3rem; height: .58rem;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pds-offline__item.is-tick .pds-offline__ico { animation: pds-offline-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.pds-offline__item:is([data-state="waiting"], [data-state="retry"]) .pds-offline__st { color: var(--pds-offline-amber); }
.pds-offline__item[data-state="waiting"] .pds-offline__ico::before, .pds-offline__item[data-state="waiting"] .pds-offline__ico::after { content: ""; position: absolute;
  left: calc(50% - 1px); bottom: 50%; width: 2px; height: .26rem; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; }
.pds-offline__item[data-state="waiting"] .pds-offline__ico::after { height: .2rem; transform: rotate(90deg); }
.pds-offline__item:is([data-state="syncing"], [data-state="retry"]) .pds-offline__ico { border-right-color: transparent; animation: pds-offline-spin .7s linear infinite; }
.pds-offline__item[data-state="syncing"] .pds-offline__st { color: var(--primary); }
.pds-offline__item[data-state="retry"] { border-color: color-mix(in srgb, var(--gold) 50%, var(--border)); }
.pds-offline__form { display: flex; gap: .5rem; padding: .6rem .8rem; border-top: 1px solid var(--border); }
.pds-offline__field { flex: 1; min-width: 0; display: flex; }
.pds-offline__input { width: 100%; min-width: 0; height: 2.5rem; padding: 0 .8rem; border-radius: 12px; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .2s; }
.pds-offline__input::placeholder { color: var(--ink-faint); opacity: 1; }
.pds-offline__input:focus { border-color: var(--primary); }
.pds-offline__add { flex: none; height: 2.5rem; padding: 0 1rem; border-radius: 12px; font-size: .88rem; font-weight: 700; color: var(--bg); background: var(--primary);
  transition: transform .2s, filter .2s; }
.pds-offline__add:hover { filter: brightness(1.07); }
.pds-offline__add:active { transform: scale(.96); }
.pds-offline__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .6rem; padding: 0 .9rem .75rem; }
.pds-offline__status { font-size: .75rem; font-weight: 700; color: var(--ink-muted); }
.pds-offline__status.is-ok { color: var(--accent-deep); }
.pds-offline__foot small { font-size: .66rem; color: var(--ink-faint); }
.pds-offline__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes pds-offline-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes pds-offline-pop { 0% { transform: scale(.4); } }
@keyframes pds-offline-spin { to { transform: rotate(360deg); } }
@keyframes pds-offline-breathe { 50% { opacity: .45; } }
@keyframes pds-offline-nudge { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .pds-offline *, .pds-offline *::before { transition: none !important; animation: none !important; }
  .pds-offline__list { scroll-behavior: auto; }
}

/* ---------- PDS-118 Sign-up Flow ---------- */
.pds-signup, .pds-signup * { box-sizing: border-box; }
.pds-signup { --pds-signup-ease: cubic-bezier(.22, 1, .36, 1); --pds-signup-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  --pds-signup-bad: color-mix(in srgb, #e5484d 72%, var(--ink));
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: min(100%, 520px); height: 420px; margin: 0 auto; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); line-height: 1.35; text-align: start;
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--pds-signup-shade) 70%, transparent); }
.pds-signup :where(button, input) { margin: 0; font: inherit; color: inherit; }
.pds-signup :where(button) { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-signup :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.pds-signup :where(p, ol) { margin: 0; padding: 0; list-style: none; }
.pds-signup svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-signup [hidden] { display: none !important; }
.pds-signup__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the browser window */
.pds-signup__bar { flex: none; display: flex; align-items: center; gap: .55rem; height: 2.15rem; padding: 0 .65rem; background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-signup__dots { flex: none; display: flex; gap: .3rem; }
.pds-signup__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--border-strong); }
.pds-signup__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; height: 1.35rem; padding: 0 .6rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .62rem; color: var(--ink-muted); white-space: nowrap; background: var(--bg); border: 1px solid var(--border); }
.pds-signup__url svg { flex: none; width: .7rem; height: .7rem; stroke-width: 2.4; color: var(--accent-deep); }
.pds-signup__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pds-signup__chip { flex: none; padding: .14rem .5rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
.pds-signup__app { flex: 1; min-height: 0; display: grid; grid-template-columns: 11.2rem minmax(0, 1fr); }
/* side panel: brand, steps, who is signed in */
.pds-signup__side { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; padding: 1rem .9rem; border-right: 1px solid var(--border);
  background: radial-gradient(90% 55% at 0% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(90% 50% at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface-sunk); }
.pds-signup__brand { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pds-signup__bname { display: block; font-family: var(--font-display, Georgia, serif); font-size: .92rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.pds-signup__brand small { display: block; margin-top: .1rem; font-size: .62rem; color: var(--ink-muted); }
.pds-signup__logo { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--primary) 90%, transparent); }
.pds-signup__logo svg { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: none; }
.pds-signup__logo g { opacity: .92; }
.pds-signup .pds-signup__core { fill: var(--gold); }
.pds-signup__steps { display: grid; gap: .55rem; transition: opacity .3s; }
.pds-signup.is-signin .pds-signup__steps { opacity: .4; }
.pds-signup__steps li { position: relative; display: flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 600; color: var(--ink-faint); transition: color .3s; }
.pds-signup__steps li + li::before { content: ""; position: absolute; left: calc(.65rem - 1px); bottom: 100%; width: 2px; height: .55rem; background: var(--border-strong); }
.pds-signup__steps b { position: relative; flex: none; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: .62rem; color: var(--ink-muted); background: var(--surface); border: 1.5px solid var(--border-strong); transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.pds-signup__steps .is-now { color: var(--ink); }
.pds-signup__steps .is-now b { color: var(--primary-deep); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pds-signup__steps .is-done { color: var(--ink-muted); }
.pds-signup__steps .is-done b { font-size: 0; color: var(--bg); background: var(--accent-deep); border-color: var(--accent-deep); }
.pds-signup__steps .is-done b::after { content: ""; width: .28rem; height: .52rem; margin-top: -2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pds-signup__who { display: flex; align-items: center; gap: .45rem; min-width: 0; margin-top: auto; visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s var(--pds-signup-ease), visibility 0s linear .4s; }
.pds-signup.is-app .pds-signup__who { visibility: visible; opacity: 1; transform: none; transition: opacity .4s, transform .4s var(--pds-signup-ease), visibility 0s; }
.pds-signup__wtext { min-width: 0; display: grid; font-size: .7rem; line-height: 1.2; }
.pds-signup__wtext b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pds-signup__wtext small { font-size: .6rem; color: var(--ink-muted); }
.pds-signup__av, .pds-signup__big { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: .64rem; font-weight: 800;
  letter-spacing: .03em; color: var(--bg); background: linear-gradient(135deg, var(--primary), var(--accent-deep)); }
/* the form side */
.pds-signup__main { min-width: 0; overflow-y: auto; scrollbar-width: thin; padding: .95rem 1.1rem; }
.pds-signup__pane { display: grid; gap: .5rem; max-width: 19rem; margin: 0 auto; animation: pds-signup-in .45s var(--pds-signup-ease) both; }
.pds-signup__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 11px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-signup__tab { min-height: 1.8rem; border-radius: 8px; font-size: .72rem; font-weight: 700; color: var(--ink-muted); transition: background .25s, color .25s, box-shadow .25s; }
.pds-signup__tab[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 2px 6px -2px color-mix(in srgb, var(--pds-signup-shade) 30%, transparent); }
.pds-signup__title { font-family: var(--font-display, Georgia, serif); font-size: 1.1rem; font-weight: 600; line-height: 1.15; }
.pds-signup__sub { font-size: .72rem; line-height: 1.45; color: var(--ink-muted); }
.pds-signup__sub b { color: var(--ink); overflow-wrap: anywhere; }
.pds-signup__field { display: grid; gap: .2rem; font-size: .68rem; font-weight: 700; color: var(--ink-muted); }
.pds-signup__field input { width: 100%; min-width: 0; height: 2.15rem; padding: 0 .7rem; border-radius: 10px; font-size: .82rem; font-weight: 500; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s; }
.pds-signup__field input::placeholder { color: var(--ink-faint); opacity: .8; }
.pds-signup__field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.pds-signup__field input[aria-invalid="true"] { border-color: var(--pds-signup-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pds-signup-bad) 18%, transparent); }
.pds-signup__pw { position: relative; }
.pds-signup__pw input { padding-right: 2.4rem; }
.pds-signup__eye { position: absolute; right: .22rem; bottom: .22rem; display: grid; place-items: center; width: 1.75rem; height: 1.7rem; border-radius: 7px; color: var(--ink-faint); transition: color .2s, background .2s; }
.pds-signup__eye:hover, .pds-signup__eye[aria-pressed="true"] { color: var(--primary-deep); background: var(--primary-tint); }
.pds-signup__eye svg { width: 1rem; height: 1rem; }
.pds-signup__meter { display: flex; align-items: center; gap: .5rem; margin-top: -.1rem; font-size: .66rem; color: var(--ink-muted); }
.pds-signup__bars { flex: none; display: grid; grid-template-columns: repeat(4, 1.2rem); gap: 3px; }
.pds-signup__bars i { height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.pds-signup__meter[data-s="1"] i:nth-child(1) { background: var(--pds-signup-bad); }
.pds-signup__meter[data-s="2"] i:nth-child(-n+2) { background: var(--gold); }
.pds-signup__meter[data-s="3"] i:nth-child(-n+3) { background: var(--primary); }
.pds-signup__meter[data-s="4"] i { background: var(--accent); }
.pds-signup__hint { min-width: 0; }
.pds-signup__forgot { display: none; justify-self: end; margin-top: -.3rem; }
.pds-signup__start.is-in :is(.pds-signup__fname, .pds-signup__meter) { display: none; }
.pds-signup__start.is-in .pds-signup__forgot { display: inline-flex; align-items: center; }
.pds-signup__go { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.3rem; margin-top: .1rem; border-radius: 11px; font-size: .82rem; font-weight: 700;
  color: var(--bg); background: var(--primary); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--primary) 85%, transparent); transition: transform .2s, filter .2s; }
.pds-signup__go:hover { filter: brightness(1.07); }
.pds-signup__go:active { transform: scale(.98); }
.pds-signup__go.is-busy { cursor: progress; }
.pds-signup__go.is-busy::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pds-signup-spin .7s linear infinite; }
.pds-signup__msg { font-size: .7rem; line-height: 1.4; color: var(--ink-muted); }
.pds-signup__msg:empty { margin-top: -.4rem; }
.pds-signup__msg.is-bad { color: var(--pds-signup-bad); font-weight: 600; }
.pds-signup__msg.is-ok { color: var(--accent-deep); font-weight: 700; }
.pds-signup__msg.is-ok::before { content: "✓ "; }
.pds-signup__fine { font-size: .64rem; text-align: center; color: var(--ink-faint); }
.pds-signup__link { justify-self: center; min-height: 1.7rem; padding: 0 .35rem; border-radius: 6px; font-size: .7rem; font-weight: 700; color: var(--primary-deep);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.pds-signup__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; }
.pds-signup__badge { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 14px; color: var(--primary-deep); background: var(--primary-tint);
  animation: pds-signup-pop .6s cubic-bezier(.34, 1.56, .64, 1) both; }
.pds-signup__badge svg { width: 1.3rem; height: 1.3rem; }
/* code step: one input, six underlined slots (pasting fills them all) */
.pds-signup__code { position: relative; display: block; margin: .15rem 0; }
.pds-signup__cin { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: text; }
.pds-signup__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) .4rem repeat(3, minmax(0, 1fr)); gap: .4rem; }
.pds-signup__slots i:nth-child(4) { grid-column: 5; }
.pds-signup__slots i { display: grid; place-items: center; height: 2.4rem; font-style: normal; font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.25rem; font-weight: 700;
  border-bottom: 2px solid var(--border-strong); transition: border-color .2s, color .2s; }
.pds-signup__slots i:not(:empty) { border-color: color-mix(in srgb, var(--primary) 50%, var(--border-strong)); animation: pds-signup-tick .3s var(--pds-signup-ease); }
.pds-signup__code:focus-within .pds-signup__slots i.is-cur { border-color: var(--primary); }
.pds-signup__code:focus-within .pds-signup__slots i.is-cur:empty::after { content: ""; width: 2px; height: 1.2rem; border-radius: 2px; background: var(--primary); animation: pds-signup-blink 1s steps(2) infinite; }
.pds-signup__code:focus-within { outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 4px; border-radius: 6px; }
.pds-signup__code.is-ok .pds-signup__slots i { color: var(--accent-deep); border-color: var(--accent-deep); }
/* profile */
.pds-signup__phead { display: flex; align-items: center; gap: .75rem; }
.pds-signup__big { width: 3.1rem; height: 3.1rem; font-size: 1.05rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.pds-signup__big.is-pop { animation: pds-signup-pop .55s cubic-bezier(.34, 1.56, .64, 1); }
.pds-signup__pmail { overflow-wrap: anywhere; }
.pds-signup__ok { display: inline-block; padding: .02rem .4rem; border-radius: 999px; font-size: .6rem; font-weight: 800; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.pds-signup__row { display: grid; grid-template-columns: minmax(0, 1fr) 4.2rem; gap: .5rem; }
.pds-signup__row input { text-transform: none; }
.pds-signup__row label + label input { text-align: center; text-transform: uppercase; font-family: var(--font-mono, ui-monospace, monospace); }
@media (pointer: coarse) { .pds-signup .pds-signup__field input { font-size: 16px; } }
/* narrow: the side panel becomes a slim strip */
@container (max-width: 430px) {
  .pds-signup .pds-signup__app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pds-signup .pds-signup__side { flex-direction: row; align-items: center; gap: .5rem; padding: .45rem .75rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .pds-signup .pds-signup__brand small, .pds-signup .pds-signup__steps span, .pds-signup .pds-signup__wtext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pds-signup .pds-signup__logo { width: 1.65rem; height: 1.65rem; border-radius: 8px; }
  .pds-signup .pds-signup__bname { font-size: .82rem; }
  .pds-signup .pds-signup__steps { display: flex; gap: .4rem; margin-left: auto; }
  .pds-signup .pds-signup__steps li + li::before { left: auto; right: 100%; bottom: auto; top: 50%; width: .4rem; height: 2px; }
  .pds-signup .pds-signup__steps b { width: 1.05rem; height: 1.05rem; font-size: .56rem; }
  .pds-signup .pds-signup__steps .is-now b { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); }
  .pds-signup.is-app .pds-signup__steps { display: none; }
  .pds-signup .pds-signup__who { position: static; margin-left: auto; }
  .pds-signup:not(.is-app) .pds-signup__who { display: none; }
  .pds-signup .pds-signup__main { padding: .7rem .8rem; }
  .pds-signup .pds-signup__pane { gap: .4rem; }
  .pds-signup .pds-signup__title { font-size: 1rem; }
  .pds-signup .pds-signup__field input { height: 2rem; }
  .pds-signup .pds-signup__tab { min-height: 1.65rem; }
}
@keyframes pds-signup-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes pds-signup-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pds-signup-tick { from { transform: translateY(4px); opacity: .3; } }
@keyframes pds-signup-blink { 50% { opacity: 0; } }
@keyframes pds-signup-spin { to { transform: rotate(360deg); } }

/* ---------- PDS-119 Team Access ---------- */
.pds-crew, .pds-crew * { box-sizing: border-box; }
.pds-crew { --pds-crew-ease: cubic-bezier(.22, 1, .36, 1); --pds-crew-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  --pds-crew-bad: color-mix(in srgb, #e5484d 72%, var(--ink));
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: min(100%, 520px); height: 420px; margin: 0 auto; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); line-height: 1.35; text-align: start;
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--pds-crew-shade) 70%, transparent); }
.pds-crew :where(button, input, select) { margin: 0; font: inherit; color: inherit; }
.pds-crew :where(button) { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-crew :where(button, select):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-crew :where(p, ul) { margin: 0; padding: 0; list-style: none; }
.pds-crew svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-crew [hidden] { display: none !important; }
.pds-crew__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the browser window */
.pds-crew__bar { flex: none; display: flex; align-items: center; gap: .55rem; height: 2.15rem; padding: 0 .65rem; background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-crew__dots { flex: none; display: flex; gap: .3rem; }
.pds-crew__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--border-strong); }
.pds-crew__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; height: 1.35rem; padding: 0 .6rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .62rem; color: var(--ink-muted); white-space: nowrap; background: var(--bg); border: 1px solid var(--border); }
.pds-crew__url svg { flex: none; width: .7rem; height: .7rem; stroke-width: 2.4; color: var(--accent-deep); }
.pds-crew__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pds-crew__chip { flex: none; padding: .14rem .5rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
.pds-crew__app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .6rem; padding: .85rem .9rem .9rem; }
.pds-crew__head { flex: none; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem .8rem; }
.pds-crew__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.pds-crew__count { font-size: .7rem; color: var(--ink-muted); }
/* invite */
.pds-crew__invite { flex: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.pds-crew__mail { position: relative; flex: 1 1 9rem; min-width: 0; }
.pds-crew__mail svg { position: absolute; left: .6rem; top: 50%; width: .85rem; height: .85rem; margin-top: -.425rem; color: var(--ink-faint); pointer-events: none; }
.pds-crew__mail input { width: 100%; height: 2.05rem; padding: 0 .6rem 0 1.85rem; border-radius: 10px; font-size: .78rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s; }
.pds-crew__mail input::placeholder { color: var(--ink-faint); }
.pds-crew__mail input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.pds-crew__mail input[aria-invalid="true"] { border-color: var(--pds-crew-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pds-crew-bad) 18%, transparent); }
.pds-crew__ipick { flex: 0 0 6.2rem; }
.pds-crew__send { flex: none; height: 2.05rem; padding: 0 1rem; border-radius: 10px; font-size: .78rem; font-weight: 700; color: var(--bg); background: var(--primary);
  box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--primary) 85%, transparent); transition: transform .2s, filter .2s; }
.pds-crew__send:hover { filter: brightness(1.07); }
.pds-crew__send:active { transform: scale(.97); }
/* role picker */
.pds-crew__pick { position: relative; display: block; min-width: 0; }
.pds-crew__pick select { -webkit-appearance: none; appearance: none; width: 100%; height: 2.05rem; padding: 0 1.55rem 0 .6rem; border-radius: 10px; font-size: .74rem; font-weight: 600;
  color: var(--ink); background: var(--bg); border: 1px solid var(--border-strong); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pds-crew__pick select:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border-strong)); }
.pds-crew__pick option { color: var(--ink); background: var(--surface); }
.pds-crew__pick svg { position: absolute; right: .45rem; top: 50%; width: .85rem; height: .85rem; margin-top: -.425rem; color: var(--ink-muted); pointer-events: none; }
/* people */
.pds-crew__list { flex: 1; min-height: 0; display: grid; align-content: start; gap: .15rem; margin: 0 -.3rem; padding: 0 .3rem; overflow-y: auto; scrollbar-width: thin; }
.pds-crew__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 6.2rem 2rem; align-items: center; gap: .45rem; max-height: 4rem; padding: .3rem .35rem;
  border-radius: 12px; transition: background .25s; }
.pds-crew__row:hover { background: var(--surface-sunk); }
.pds-crew__row.is-sel { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.pds-crew__row.is-new { animation: pds-crew-in .45s var(--pds-crew-ease) both; }
.pds-crew__row.is-leaving { animation: pds-crew-out .38s var(--pds-crew-ease) forwards; pointer-events: none; }
.pds-crew__person { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .1rem; border-radius: 9px; text-align: start; }
.pds-crew__av { flex: none; display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; font-size: .62rem; font-weight: 800; letter-spacing: .02em;
  color: var(--primary-deep); background: var(--primary-tint); }
.pds-crew__av.is-b { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.pds-crew__av.is-c { color: var(--ink); background: color-mix(in srgb, var(--gold) 28%, var(--surface)); }
.pds-crew__row.is-invited .pds-crew__av { color: var(--ink-muted); background: none; border: 1.5px dashed var(--border-strong); }
.pds-crew__id { min-width: 0; display: grid; line-height: 1.25; }
.pds-crew__id b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .78rem; }
.pds-crew__id em { margin-left: .2rem; padding: 0 .35rem; border-radius: 999px; font-size: .56rem; font-style: normal; font-weight: 800; vertical-align: 1px;
  color: var(--ink-muted); background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-crew__id small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .64rem; color: var(--ink-muted); }
.pds-crew__dot { display: inline-block; width: .4rem; height: .4rem; margin-right: .3rem; border-radius: 50%; background: var(--gold); vertical-align: 1px; animation: pds-crew-blink 1.6s ease-in-out infinite; }
.pds-crew__owner { display: inline-flex; align-items: center; gap: .3rem; height: 2.05rem; padding: 0 .6rem; border-radius: 10px; font-size: .74rem; font-weight: 700;
  color: var(--ink-muted); background: var(--surface-sunk); border: 1px dashed var(--border-strong); cursor: not-allowed; }
.pds-crew__owner svg { flex: none; width: .8rem; height: .8rem; stroke-width: 2.4; color: var(--gold); }
.pds-crew__rm { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; color: var(--ink-faint); transition: color .2s, background .2s; }
.pds-crew__rm:hover, .pds-crew__rm:focus-visible { color: var(--pds-crew-bad); background: color-mix(in srgb, var(--pds-crew-bad) 12%, var(--surface)); }
.pds-crew__rm svg { width: 1rem; height: 1rem; }
/* "Remove …?" confirm, laid over the row */
.pds-crew__ask { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: .35rem; padding: 0 .35rem 0 .7rem; border-radius: 12px;
  background: color-mix(in srgb, var(--pds-crew-bad) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pds-crew-bad) 40%, var(--border)); animation: pds-crew-in .3s var(--pds-crew-ease) both; }
.pds-crew__ask p { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .76rem; line-height: 1.2; }
.pds-crew__no, .pds-crew__yes { flex: none; height: 1.8rem; padding: 0 .65rem; border-radius: 8px; font-size: .72rem; font-weight: 700; }
.pds-crew__no { color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); }
.pds-crew__yes { color: var(--bg); background: var(--pds-crew-bad); }
/* what this person can do */
.pds-crew__perms { flex: none; padding: .55rem .7rem .6rem; border-radius: 12px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-crew__ptitle { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .72rem; color: var(--ink-muted); }
.pds-crew__ptitle b { color: var(--ink); }
.pds-crew__prole { padding: .04rem .45rem; border-radius: 999px; font-size: .6rem; font-weight: 800; color: var(--primary-deep); background: var(--primary-tint); }
.pds-crew__plist { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .4rem; }
.pds-crew__plist li { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--ink-faint); transition: color .3s; }
.pds-crew__plist li.is-yes { color: var(--ink); }
.pds-crew__plist i { position: relative; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--border); transition: background .3s; }
.pds-crew__plist i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .45rem; height: 2px; margin: -1px 0 0 -.225rem; border-radius: 2px; background: var(--ink-faint); }
.pds-crew__plist .is-yes i { background: var(--accent-deep); }
.pds-crew__plist .is-yes i::after { width: .26rem; height: .48rem; margin: -.3rem 0 0 -.13rem; border-radius: 0; background: none; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pds-crew__plist li.is-pop i { animation: pds-crew-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
/* toast */
.pds-crew__toast { position: absolute; left: 50%; top: 2.6rem; z-index: 5; width: max-content; max-width: calc(100% - 1.6rem); padding: .5rem .85rem; border-radius: 10px;
  font-size: .72rem; font-weight: 600; line-height: 1.35; text-align: center; color: var(--bg); background: var(--ink); pointer-events: none;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--pds-crew-shade) 80%, transparent); opacity: 0; transform: translate(-50%, -.6rem); transition: transform .45s var(--pds-crew-ease), opacity .3s; }
.pds-crew__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (pointer: coarse) { .pds-crew .pds-crew__mail input { font-size: 16px; } }
@container (max-width: 400px) {
  .pds-crew .pds-crew__app { padding: .7rem .7rem .75rem; gap: .5rem; }
  .pds-crew .pds-crew__send { flex: 1 0 auto; }
  .pds-crew .pds-crew__row { grid-template-columns: minmax(0, 1fr) 4.7rem 1.7rem; gap: .25rem; padding: .3rem .15rem; }
  .pds-crew .pds-crew__av { width: 1.6rem; height: 1.6rem; font-size: .54rem; }
  .pds-crew .pds-crew__person { gap: .35rem; }
  .pds-crew .pds-crew__row .pds-crew__pick select { padding: 0 1.2rem 0 .45rem; font-size: .7rem; }
  .pds-crew .pds-crew__row .pds-crew__pick svg { right: .3rem; }
  .pds-crew .pds-crew__owner { gap: .2rem; padding: 0 .4rem; font-size: .7rem; }
  .pds-crew .pds-crew__rm { width: 1.7rem; }
  .pds-crew .pds-crew__id em { display: none; }
  .pds-crew .pds-crew__ask { gap: .25rem; padding-left: .55rem; }
  .pds-crew .pds-crew__ask p { font-size: .7rem; }
  .pds-crew .pds-crew__no, .pds-crew .pds-crew__yes { padding: 0 .5rem; }
  .pds-crew .pds-crew__plist { gap: .25rem .7rem; }
}
@keyframes pds-crew-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pds-crew-out { to { opacity: 0; transform: translateX(18px); max-height: 0; padding-block: 0; } }
@keyframes pds-crew-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes pds-crew-blink { 50% { opacity: .35; } }

/* ---------- PDS-120 Billing Hub ---------- */
.pds-billing, .pds-billing * { box-sizing: border-box; }
.pds-billing { --pds-billing-ease: cubic-bezier(.22, 1, .36, 1); --pds-billing-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  --pds-billing-bad: color-mix(in srgb, #e5484d 72%, var(--ink));
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: min(100%, 520px); height: 420px; margin: 0 auto; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); line-height: 1.35; text-align: start;
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--pds-billing-shade) 70%, transparent); }
.pds-billing :where(button) { margin: 0; padding: 0; border: 0; font: inherit; color: inherit; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-billing :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-billing :where(p, ul, dl, dd) { margin: 0; padding: 0; list-style: none; }
.pds-billing svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-billing__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the browser window */
.pds-billing__bar { flex: none; display: flex; align-items: center; gap: .55rem; height: 2.15rem; padding: 0 .65rem; background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-billing__dots { flex: none; display: flex; gap: .3rem; }
.pds-billing__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--border-strong); }
.pds-billing__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; height: 1.35rem; padding: 0 .6rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .62rem; color: var(--ink-muted); white-space: nowrap; background: var(--bg); border: 1px solid var(--border); }
.pds-billing__url svg { flex: none; width: .7rem; height: .7rem; stroke-width: 2.4; color: var(--accent-deep); }
.pds-billing__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pds-billing__chip { flex: none; padding: .14rem .5rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
.pds-billing__body { flex: 1; min-height: 0; display: grid; grid-auto-rows: max-content; align-content: start; gap: .7rem; padding: .85rem .9rem 1rem; overflow-y: auto; scrollbar-width: thin; }
.pds-billing__head, .pds-billing__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; }
.pds-billing__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.pds-billing__fine, .pds-billing__auto { font-size: .64rem; color: var(--ink-faint); }
.pds-billing__label { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pds-billing__link { min-height: 1.6rem; padding: 0 .3rem; border-radius: 6px; font-size: .7rem; font-weight: 700; color: var(--primary-deep);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); }
/* current plan */
.pds-billing__now { display: grid; gap: .2rem; padding: .6rem .85rem .75rem; border-radius: 14px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 60%), var(--surface-sunk); }
.pds-billing__now.is-flash { animation: pds-billing-flash 1s var(--pds-billing-ease); }
.pds-billing__plan { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.pds-billing__name { font-family: var(--font-display, Georgia, serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.pds-billing__pill { padding: .08rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 800; color: var(--primary-deep); background: var(--primary-tint); }
.pds-billing.is-trial .pds-billing__pill { color: var(--ink); background: color-mix(in srgb, var(--gold) 28%, var(--surface)); }
.pds-billing.is-off .pds-billing__pill { color: var(--pds-billing-bad); background: color-mix(in srgb, var(--pds-billing-bad) 14%, var(--surface)); }
.pds-billing__line { font-size: .74rem; color: var(--ink-muted); }
.pds-billing__trial { display: none; height: 5px; margin-top: .3rem; overflow: hidden; border-radius: 5px; background: var(--border); }
.pds-billing.is-trial .pds-billing__trial { display: block; }
.pds-billing__trial i { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--primary)); animation: pds-billing-grow 1.2s .2s var(--pds-billing-ease) both; }
/* monthly / yearly */
.pds-billing__cycle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-sunk); border: 1px solid var(--border); }
.pds-billing__cy { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.7rem; padding: 0 .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--ink-muted); transition: background .25s, color .25s, box-shadow .25s; }
.pds-billing__cy[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 2px 6px -2px color-mix(in srgb, var(--pds-billing-shade) 30%, transparent); }
.pds-billing__cy em { padding: .02rem .35rem; border-radius: 999px; font-size: .56rem; font-style: normal; font-weight: 800; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 16%, transparent); }
/* plans */
.pds-billing__plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pds-billing__card { display: flex; flex-direction: column; gap: .1rem; min-width: 0; padding: .6rem .65rem .65rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-strong);
  transition: border-color .25s, background .25s, box-shadow .25s; }
.pds-billing__card.is-current { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--bg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.pds-billing__pn { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; }
.pds-billing__pop { padding: .02rem .35rem; border-radius: 999px; font-size: .54rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
.pds-billing__price { display: flex; align-items: baseline; gap: .1rem; }
.pds-billing__amt { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.15rem; font-weight: 700; }
.pds-billing__per { font-size: .64rem; color: var(--ink-faint); }
.pds-billing__feat { margin-bottom: .45rem; font-size: .64rem; color: var(--ink-muted); }
.pds-billing__pick { margin-top: auto; min-height: 1.85rem; padding: 0 .5rem; border-radius: 9px; font-size: .72rem; font-weight: 700; color: var(--ink);
  background: var(--surface-sunk); border: 1px solid var(--border-strong); transition: filter .2s, transform .2s; }
.pds-billing__pick.is-up { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.pds-billing__pick:hover { filter: brightness(1.06); }
.pds-billing__pick:active { transform: scale(.97); }
.pds-billing__pick[aria-disabled="true"] { color: var(--ink-faint); background: none; border-style: dashed; cursor: default; filter: none; transform: none; }
.pds-billing__note { display: flex; gap: .4rem; font-size: .68rem; line-height: 1.4; color: var(--ink-muted); }
.pds-billing__note svg { flex: none; width: .9rem; height: .9rem; margin-top: .05rem; color: var(--primary); }
/* payment method */
.pds-billing__pay { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--border); }
.pds-billing__cardicon { position: relative; flex: none; width: 2.3rem; height: 1.55rem; border-radius: 5px; background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  box-shadow: 0 6px 12px -8px color-mix(in srgb, var(--primary) 90%, transparent); }
.pds-billing__cardicon::before { content: ""; position: absolute; left: .3rem; top: .36rem; width: .5rem; height: .38rem; border-radius: 2px; background: var(--gold); }
.pds-billing__cardicon::after { content: ""; position: absolute; left: .3rem; right: .3rem; bottom: .3rem; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--bg) 75%, transparent); }
.pds-billing__pm { flex: 1; min-width: 0; display: grid; font-size: .76rem; line-height: 1.3; }
.pds-billing__pm small { font-size: .64rem; color: var(--ink-muted); }
/* invoices */
.pds-billing__inv { display: grid; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); margin-top: -.3rem; }
.pds-billing__inv li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto auto; align-items: center; gap: .6rem; padding: .4rem .5rem .4rem .7rem; font-size: .72rem; }
.pds-billing__inv li + li { border-top: 1px solid var(--border); }
.pds-billing__inv li.is-new { animation: pds-billing-new 1.6s var(--pds-billing-ease) both; }
.pds-billing__idate { font-family: var(--font-mono, ui-monospace, monospace); font-size: .66rem; color: var(--ink-muted); white-space: nowrap; }
.pds-billing__idesc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pds-billing__iamt { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 700; }
.pds-billing__dl { min-height: 1.6rem; padding: 0 .35rem; border-radius: 6px; font-size: .66rem; font-weight: 700; color: var(--primary-deep); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); }
/* confirm sheet */
.pds-billing__scrim { position: absolute; inset: 0; z-index: 3; background: color-mix(in srgb, var(--pds-billing-shade) 45%, transparent); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.pds-billing.is-sheet .pds-billing__scrim { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.pds-billing__sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; gap: .55rem; padding: .5rem 1rem 1rem; border-radius: 20px 20px 0 0;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -18px 40px -24px color-mix(in srgb, var(--pds-billing-shade) 70%, transparent);
  transform: translateY(105%); visibility: hidden; transition: transform .5s var(--pds-billing-ease), visibility 0s linear .5s; }
.pds-billing.is-sheet .pds-billing__sheet { transform: none; visibility: visible; transition: transform .5s var(--pds-billing-ease), visibility 0s; }
.pds-billing__sheet:focus { outline: none; }
.pds-billing__grab { justify-self: center; width: 2.2rem; height: 4px; border-radius: 4px; background: var(--border-strong); }
.pds-billing__sh { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; font-weight: 600; }
.pds-billing__sum { display: grid; overflow: hidden; border-radius: 12px; background: var(--surface-sunk); }
.pds-billing__sum div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; padding: .45rem .7rem; font-size: .76rem; }
.pds-billing__sum div + div { border-top: 1px solid var(--border); }
.pds-billing__sum dt { color: var(--ink-muted); }
.pds-billing__sum dd { font-weight: 700; }
.pds-billing__v2 { font-family: var(--font-mono, ui-monospace, monospace); }
.pds-billing__snote { font-size: .72rem; line-height: 1.4; color: var(--ink-muted); }
.pds-billing__btns { display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
.pds-billing__back, .pds-billing__ok { min-height: 2.4rem; padding: 0 1rem; border-radius: 11px; font-size: .82rem; font-weight: 700; }
.pds-billing__back { color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--border-strong); }
.pds-billing__ok { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: var(--bg); background: var(--primary); }
.pds-billing__ok.is-busy::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pds-billing-spin .7s linear infinite; }
/* toast */
.pds-billing__toast { position: absolute; left: 50%; bottom: .75rem; z-index: 5; width: max-content; max-width: calc(100% - 1.6rem); padding: .5rem .85rem; border-radius: 10px;
  font-size: .72rem; font-weight: 600; line-height: 1.35; text-align: center; color: var(--bg); background: var(--ink); pointer-events: none;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--pds-billing-shade) 80%, transparent); opacity: 0; transform: translate(-50%, 140%); transition: transform .45s var(--pds-billing-ease), opacity .3s; }
.pds-billing__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@container (max-width: 400px) {
  .pds-billing .pds-billing__body { padding: .7rem .7rem .9rem; gap: .6rem; }
  .pds-billing .pds-billing__plans { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .pds-billing .pds-billing__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pn pick" "price pick"; align-items: center; column-gap: .5rem; padding: .45rem .55rem .45rem .7rem; }
  .pds-billing .pds-billing__pn { grid-area: pn; }
  .pds-billing .pds-billing__price { grid-area: price; }
  .pds-billing .pds-billing__feat { display: none; }
  .pds-billing .pds-billing__pick { grid-area: pick; margin: 0; padding: 0 .6rem; font-size: .7rem; }
  .pds-billing .pds-billing__pn { flex-wrap: nowrap; white-space: nowrap; }
  .pds-billing .pds-billing__inv li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "desc amt" "date dl"; row-gap: 0; }
  .pds-billing .pds-billing__idesc { grid-area: desc; }
  .pds-billing .pds-billing__iamt { grid-area: amt; }
  .pds-billing .pds-billing__idate { grid-area: date; }
  .pds-billing .pds-billing__dl { grid-area: dl; }
  .pds-billing .pds-billing__note { display: none; }
  .pds-billing .pds-billing__btns { gap: .4rem; }
  .pds-billing :is(.pds-billing__back, .pds-billing__ok) { padding: 0 .65rem; }
}
@container (max-width: 270px) { .pds-billing .pds-billing__pop { display: none; } }
@keyframes pds-billing-grow { from { width: 0; } }
@keyframes pds-billing-flash { 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent); } }
@keyframes pds-billing-new { from { background: color-mix(in srgb, var(--primary) 18%, transparent); } }
@keyframes pds-billing-spin { to { transform: rotate(360deg); } }

/* ---------- PDS-121 Admin Desk ---------- */
.pds-admin, .pds-admin * { box-sizing: border-box; }
.pds-admin { --pds-admin-ease: cubic-bezier(.22, 1, .36, 1); --pds-admin-shade: color-mix(in srgb, var(--ink) 12%, #05060b);
  --pds-admin-bad: color-mix(in srgb, #e5484d 72%, var(--ink));
  container-type: inline-size; position: relative; display: flex; flex-direction: column; width: min(100%, 520px); height: 420px; margin: 0 auto; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); line-height: 1.35; text-align: start;
  box-shadow: 0 30px 60px -38px color-mix(in srgb, var(--pds-admin-shade) 70%, transparent); }
.pds-admin :where(button, input) { margin: 0; font: inherit; color: inherit; }
.pds-admin :where(button) { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pds-admin :where(button):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-admin :where(p, ul) { margin: 0; padding: 0; list-style: none; }
.pds-admin svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pds-admin [hidden] { display: none !important; }
.pds-admin__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the browser window */
.pds-admin__bar { flex: none; display: flex; align-items: center; gap: .55rem; height: 2.15rem; padding: 0 .65rem; background: var(--surface-sunk); border-bottom: 1px solid var(--border); }
.pds-admin__dots { flex: none; display: flex; gap: .3rem; }
.pds-admin__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--border-strong); }
.pds-admin__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; height: 1.35rem; padding: 0 .6rem; border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: .62rem; color: var(--ink-muted); white-space: nowrap; background: var(--bg); border: 1px solid var(--border); }
.pds-admin__url svg { flex: none; width: .7rem; height: .7rem; stroke-width: 2.4; color: var(--accent-deep); }
.pds-admin__path { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pds-admin__chip { flex: none; padding: .14rem .5rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-tint); }
.pds-admin__app { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); }
/* slim side menu */
.pds-admin__nav { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem 0; background: var(--surface-sunk); border-right: 1px solid var(--border); }
.pds-admin__logo { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-bottom: .4rem; border-radius: 9px; color: var(--bg); background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pds-admin__logo svg { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: none; }
.pds-admin__nb { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 10px; color: var(--ink-faint); transition: color .2s, background .2s; }
.pds-admin__nb:hover { color: var(--ink); background: var(--surface); }
.pds-admin__nb[aria-current="page"] { color: var(--primary-deep); background: var(--primary-tint); }
.pds-admin__nb svg { width: 1.05rem; height: 1.05rem; }
.pds-admin__me { position: relative; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-top: auto; border-radius: 50%; font-size: .56rem; font-weight: 800;
  color: var(--bg); background: linear-gradient(135deg, var(--primary), var(--accent-deep)); }
.pds-admin__me i { position: absolute; right: -.25rem; bottom: -.2rem; display: grid; place-items: center; width: .95rem; height: .95rem; border-radius: 50%; color: var(--gold); background: var(--surface); border: 1px solid var(--border); }
.pds-admin__me svg { width: .55rem; height: .55rem; stroke-width: 2.8; }
/* main */
.pds-admin__main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .65rem; padding: .8rem .8rem 1rem; overflow-y: auto; scrollbar-width: thin; }
.pds-admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }
.pds-admin__title { font-family: var(--font-display, Georgia, serif); font-size: 1.15rem; font-weight: 600; line-height: 1.1; }
.pds-admin__sub { display: flex; align-items: center; gap: .3rem; margin-top: .15rem; font-size: .64rem; color: var(--ink-muted); }
.pds-admin__sub svg { flex: none; width: .7rem; height: .7rem; stroke-width: 2.4; color: var(--gold); }
.pds-admin__export { display: inline-flex; align-items: center; gap: .35rem; min-height: 1.95rem; padding: 0 .75rem; border-radius: 10px; font-size: .72rem; font-weight: 700;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 1px 2px color-mix(in srgb, var(--pds-admin-shade) 12%, transparent); transition: border-color .2s, transform .2s; }
.pds-admin__export:hover { border-color: var(--primary); }
.pds-admin__export:active { transform: scale(.97); }
.pds-admin__export svg { width: .85rem; height: .85rem; color: var(--primary); }
/* key numbers */
.pds-admin__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.pds-admin__kpi { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "kl kl" "kv kv" "kt sp"; align-items: center; gap: 0 .4rem; padding: .5rem .55rem .45rem; overflow: hidden;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--border); animation: pds-admin-up .6s var(--pds-admin-ease) both; }
.pds-admin__kpi:nth-child(2) { animation-delay: .06s; }
.pds-admin__kpi:nth-child(3) { animation-delay: .12s; }
.pds-admin__kpi:nth-child(4) { animation-delay: .18s; }
.pds-admin__kpi.is-flash { animation: pds-admin-ring 1.2s var(--pds-admin-ease); }
.pds-admin__kl { grid-area: kl; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .6rem; font-weight: 700; color: var(--ink-muted); }
.pds-admin__kv { grid-area: kv; font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.pds-admin__kt { grid-area: kt; font-size: .58rem; font-weight: 800; color: var(--accent-deep); white-space: nowrap; }
.pds-admin__spark { grid-area: sp; display: block; width: 100%; height: 1.05rem; overflow: visible; }
.pds-admin__line { fill: none; stroke: var(--primary); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; animation: pds-admin-draw 1.3s .2s var(--pds-admin-ease) both; }
.pds-admin__area { fill: color-mix(in srgb, var(--primary) 14%, transparent); stroke: none; }
.pds-admin__kpi.is-low .pds-admin__line { stroke: var(--accent); }
.pds-admin__kpi.is-low .pds-admin__area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
/* search + filters */
.pds-admin__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pds-admin__search { position: relative; flex: 1 1 9rem; min-width: 0; }
.pds-admin__search svg { position: absolute; left: .55rem; top: 50%; width: .85rem; height: .85rem; margin-top: -.425rem; color: var(--ink-faint); pointer-events: none; }
.pds-admin__q { width: 100%; height: 1.95rem; padding: 0 .6rem 0 1.75rem; border-radius: 10px; font-size: .74rem; color: var(--ink); background: var(--bg); border: 1px solid var(--border-strong);
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.pds-admin__q::placeholder { color: var(--ink-faint); }
.pds-admin__q:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.pds-admin__filters { display: flex; flex-wrap: wrap; gap: .25rem; }
.pds-admin__f { min-height: 1.75rem; padding: 0 .55rem; border-radius: 999px; font-size: .66rem; font-weight: 700; color: var(--ink-muted); border: 1px solid var(--border); transition: background .2s, color .2s, border-color .2s; }
.pds-admin__f:hover { border-color: var(--border-strong); color: var(--ink); }
.pds-admin__f[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
/* bookings table */
.pds-admin__table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .72rem; }
.pds-admin__table th:nth-child(1), .pds-admin__table th:nth-child(4) { width: 5.7rem; }
.pds-admin__table th:nth-child(3) { width: 4.2rem; }
.pds-admin__table th:nth-child(5) { width: 4rem; }
.pds-admin__cap { margin-bottom: .3rem; text-align: start; }
.pds-admin__cap span:first-child { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pds-admin__shown { margin-left: .5rem; font-size: .64rem; color: var(--ink-faint); }
.pds-admin__table th { padding: .3rem .3rem; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-align: start; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--border); }
.pds-admin__table td { padding: .38rem .3rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-bottom: 1px solid var(--border); transition: background .2s; }
.pds-admin__r:hover td { background: var(--surface-sunk); }
.pds-admin__r.is-flash td { animation: pds-admin-flash 1.6s var(--pds-admin-ease); }
.pds-admin__cust { font-weight: 700; }
.pds-admin__svc { color: var(--ink-muted); }
.pds-admin__when { font-family: var(--font-mono, ui-monospace, monospace); font-size: .66rem; color: var(--ink-muted); }
.pds-admin__st { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .5rem .08rem .4rem; border-radius: 999px; font-size: .64rem; font-weight: 700; }
.pds-admin__st::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.pds-admin__st[data-s="Confirmed"] { color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.pds-admin__st[data-s="Pending"] { color: var(--ink); background: color-mix(in srgb, var(--gold) 22%, transparent); }
.pds-admin__st[data-s="Cancelled"] { color: var(--ink-muted); background: var(--surface-sunk); }
.pds-admin__st[data-s="Pending"]::before, .pds-admin .pds-admin__seg span[data-s="Pending"]::before { background: var(--gold); }
.pds-admin__st[data-s="Cancelled"]::before, .pds-admin .pds-admin__seg span[data-s="Cancelled"]::before { background: var(--pds-admin-bad); }
.pds-admin .pds-admin__table :is(.pds-admin__stc, .pds-admin__edc) { overflow: visible; text-overflow: clip; }
.pds-admin__edc { text-align: end; }
.pds-admin__edit { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.6rem; padding: 0 .45rem; border-radius: 8px; font-size: .66rem; font-weight: 700; color: var(--primary-deep); border: 1px solid var(--border-strong); transition: border-color .2s, background .2s; }
.pds-admin__edit:hover { border-color: var(--primary); background: var(--primary-tint); }
.pds-admin__edit svg { width: .75rem; height: .75rem; }
.pds-admin__empty { padding: .8rem; border-radius: 10px; font-size: .72rem; text-align: center; color: var(--ink-muted); background: var(--surface-sunk); }
/* edit side panel, inside the window */
.pds-admin__scrim { position: absolute; inset: 0; z-index: 3; background: color-mix(in srgb, var(--pds-admin-shade) 35%, transparent); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.pds-admin.is-edit .pds-admin__scrim { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.pds-admin__panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: .6rem; width: min(15rem, 100%); padding: .8rem .9rem; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: -20px 0 40px -28px color-mix(in srgb, var(--pds-admin-shade) 80%, transparent);
  transform: translateX(105%); visibility: hidden; transition: transform .45s var(--pds-admin-ease), visibility 0s linear .45s; }
.pds-admin.is-edit .pds-admin__panel { transform: none; visibility: visible; transition: transform .45s var(--pds-admin-ease), visibility 0s; }
.pds-admin__ph { display: flex; align-items: center; justify-content: space-between; }
.pds-admin__pt { font-family: var(--font-display, Georgia, serif); font-size: 1.02rem; font-weight: 600; }
.pds-admin__x { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; color: var(--ink-muted); }
.pds-admin__x:hover { background: var(--surface-sunk); color: var(--ink); }
.pds-admin__x svg { width: .95rem; height: .95rem; }
.pds-admin__who { padding: .5rem .65rem; border-radius: 10px; background: var(--surface-sunk); }
.pds-admin__pname { font-size: .82rem; font-weight: 700; }
.pds-admin__pwhat { font-size: .68rem; color: var(--ink-muted); }
.pds-admin__seg { display: grid; gap: .3rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.pds-admin__seg legend { margin-bottom: .3rem; padding: 0; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pds-admin__seg label { position: relative; display: block; cursor: pointer; }
.pds-admin__seg input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pds-admin .pds-admin__seg span { display: flex; align-items: center; gap: .5rem; min-height: 2.1rem; padding: 0 .7rem; border-radius: 10px; font-size: .76rem; font-weight: 700;
  border: 1px solid var(--border-strong); background-color: var(--bg); transition: border-color .2s, box-shadow .2s; }
.pds-admin .pds-admin__seg span::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-deep); }
.pds-admin .pds-admin__seg input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.pds-admin .pds-admin__seg input:checked + span::after { content: ""; width: .3rem; height: .55rem; margin: -2px .15rem 0 auto; border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pds-admin .pds-admin__seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pds-admin__pnote { font-size: .66rem; line-height: 1.4; color: var(--ink-faint); }
.pds-admin__pbtns { display: grid; grid-template-columns: auto 1fr; gap: .4rem; margin-top: auto; }
.pds-admin__pcancel, .pds-admin__save { min-height: 2.2rem; padding: 0 .8rem; border-radius: 10px; font-size: .76rem; font-weight: 700; }
.pds-admin__pcancel { color: var(--ink); background: var(--surface-sunk); border: 1px solid var(--border-strong); }
.pds-admin__save { color: var(--bg); background: var(--primary); }
/* toast */
.pds-admin__toast { position: absolute; left: 50%; top: 2.6rem; z-index: 5; width: max-content; max-width: calc(100% - 1.6rem); padding: .5rem .85rem; border-radius: 10px;
  font-size: .72rem; font-weight: 600; line-height: 1.35; text-align: center; color: var(--bg); background: var(--ink); pointer-events: none;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--pds-admin-shade) 80%, transparent); opacity: 0; transform: translate(-50%, -.6rem); transition: transform .45s var(--pds-admin-ease), opacity .3s; }
.pds-admin__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (pointer: coarse) { .pds-admin .pds-admin__q { font-size: 16px; } }
/* narrow: top menu strip, 2 x 2 numbers, bookings as stacked cards */
@container (max-width: 430px) {
  .pds-admin .pds-admin__app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pds-admin .pds-admin__nav { flex-direction: row; gap: .2rem; padding: .3rem .6rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .pds-admin .pds-admin__logo { width: 1.6rem; height: 1.6rem; margin: 0 .35rem 0 0; }
  .pds-admin .pds-admin__nb { width: 1.85rem; height: 1.85rem; }
  .pds-admin .pds-admin__me { margin: 0 .15rem 0 auto; }
  .pds-admin .pds-admin__main { padding: .7rem .7rem .9rem; gap: .55rem; }
  .pds-admin .pds-admin__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .pds-admin .pds-admin__kpi { grid-template-areas: "kl kl" "kv kt"; padding: .4rem .55rem; }
  .pds-admin .pds-admin__kt { justify-self: end; }
  .pds-admin .pds-admin__spark { display: none; }
  .pds-admin .pds-admin__table, .pds-admin .pds-admin__table tbody, .pds-admin .pds-admin__cap { display: block; }
  .pds-admin .pds-admin__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pds-admin .pds-admin__r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cust st st" "svc when edit"; align-items: center; gap: .1rem .35rem;
    margin-bottom: .35rem; padding: .45rem .5rem .45rem .65rem; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); }
  .pds-admin .pds-admin__r td { display: block; padding: 0; border: 0; background: none; }
  .pds-admin .pds-admin__r.is-flash { animation: pds-admin-flash 1.6s var(--pds-admin-ease); }
  .pds-admin .pds-admin__cust { grid-area: cust; overflow: hidden; text-overflow: ellipsis; }
  .pds-admin .pds-admin__svc { grid-area: svc; max-width: none; font-size: .68rem; }
  .pds-admin .pds-admin__svc::after { content: " ·"; }
  .pds-admin .pds-admin__when { grid-area: when; overflow: hidden; text-overflow: ellipsis; }
  .pds-admin .pds-admin__stc { grid-area: st; justify-self: end; }
  .pds-admin .pds-admin__edc { grid-area: edit; }
  .pds-admin .pds-admin__edit { width: 1.75rem; justify-content: center; padding: 0; }
  .pds-admin .pds-admin__edit span { display: none; }
  .pds-admin .pds-admin__f { padding: 0 .35rem; font-size: .62rem; }
  .pds-admin .pds-admin__filters { gap: .15rem; }
}
@keyframes pds-admin-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes pds-admin-draw { from { stroke-dashoffset: 1; } }
@keyframes pds-admin-ring { 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent); } }
@keyframes pds-admin-flash { from { background: color-mix(in srgb, var(--primary) 18%, transparent); } }
