/* Site font: Yekan Bakh (local files, six weights) */
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakh-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* =========================================================
   Mewshot — lapis night, gold leaf, turquoise tile
   ========================================================= */

:root {
  --ink-0: rgb(var(--c-bg0));
  --ink-1: rgb(var(--c-bg1));
  --ink-2: rgb(var(--c-sf1));
  --ink-3: rgb(var(--c-sf2));
  --ink-4: rgb(var(--c-sf3));
  --lapis: rgb(var(--c-deep));
  --gold: rgb(var(--c-ac));
  --gold-2: rgb(var(--c-gtx));
  --gold-3: rgb(var(--c-ac3));
  --turq: rgb(var(--c-al));
  --turq-2: rgb(var(--c-link));
  --parch: rgb(var(--c-tx));
  --mist: rgb(var(--c-tx2));
  --mist-2: rgb(var(--c-tx3));
  --pom: rgb(var(--c-bad));
  --pom-2: rgb(var(--c-badtx));
  --pist: rgb(var(--c-oktx));
  --line: rgb(var(--c-ac) / .2);
  --line-2: rgb(var(--c-tx2) / .16);
  --field: var(--t-field);
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 62px;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5625rem;
  --fs-2xl: 1.9375rem;
  --fs-3xl: 2.4375rem;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, .8, .24, 1);
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --latin: "Yekan Bakh", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --star: polygon(50% 0%, 64.64% 14.64%, 85.36% 14.64%, 85.36% 35.36%, 100% 50%, 85.36% 64.64%, 85.36% 85.36%, 64.64% 85.36%, 50% 100%, 35.36% 85.36%, 14.64% 85.36%, 14.64% 64.64%, 0% 50%, 14.64% 35.36%, 14.64% 14.64%, 35.36% 14.64%);
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Yekan Bakh", Tahoma, "Segoe UI", sans-serif;
  font-size: var(--fs-md);
  line-height: 1.85;
  color: var(--parch);
  background: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(110vmax 70vmax at 50% -22%, rgb(var(--c-deep) / .55), transparent 58%),
    radial-gradient(60vmax 45vmax at 108% 108%, rgb(var(--c-al) / .11), transparent 62%),
    radial-gradient(50vmax 40vmax at -12% 92%, rgb(var(--c-ac) / .07), transparent 60%),
    linear-gradient(180deg, rgb(var(--c-sf1)) 0%, var(--ink-1) 42%, var(--ink-0) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132' fill='none' stroke='%23E3B75E' stroke-width='1'%3E%3Cpath d='M66.0 45.0 L72.2 51.2 L80.8 51.2 L80.8 59.8 L87.0 66.0 L80.8 72.2 L80.8 80.8 L72.2 80.8 L66.0 87.0 L59.8 80.8 L51.2 80.8 L51.2 72.2 L45.0 66.0 L51.2 59.8 L51.2 51.2 L59.8 51.2Z M0.0 -21.0 L6.2 -14.8 L14.8 -14.8 L14.8 -6.2 L21.0 0.0 L14.8 6.2 L14.8 14.8 L6.2 14.8 L0.0 21.0 L-6.2 14.8 L-14.8 14.8 L-14.8 6.2 L-21.0 0.0 L-14.8 -6.2 L-14.8 -14.8 L-6.2 -14.8Z M132.0 -21.0 L138.2 -14.8 L146.8 -14.8 L146.8 -6.2 L153.0 0.0 L146.8 6.2 L146.8 14.8 L138.2 14.8 L132.0 21.0 L125.8 14.8 L117.2 14.8 L117.2 6.2 L111.0 0.0 L117.2 -6.2 L117.2 -14.8 L125.8 -14.8Z M0.0 111.0 L6.2 117.2 L14.8 117.2 L14.8 125.8 L21.0 132.0 L14.8 138.2 L14.8 146.8 L6.2 146.8 L0.0 153.0 L-6.2 146.8 L-14.8 146.8 L-14.8 138.2 L-21.0 132.0 L-14.8 125.8 L-14.8 117.2 L-6.2 117.2Z M132.0 111.0 L138.2 117.2 L146.8 117.2 L146.8 125.8 L153.0 132.0 L146.8 138.2 L146.8 146.8 L138.2 146.8 L132.0 153.0 L125.8 146.8 L117.2 146.8 L117.2 138.2 L111.0 132.0 L117.2 125.8 L117.2 117.2 L125.8 117.2Z M80.8 80.8 L117.2 117.2 M80.8 51.2 L117.2 14.8 M51.2 80.8 L14.8 117.2 M51.2 51.2 L14.8 14.8 M66 -9 L75 0 L66 9 L57 0Z M66 123 L75 132 L66 141 L57 132Z M0 57 L9 66 L0 75 L-9 66Z M132 57 L141 66 L132 75 L123 66Z M66 45 L66 9 M66 87 L66 123 M45 66 L9 66 M87 66 L123 66'/%3E%3C/svg%3E");
  background-size: 132px 132px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 28%, #000 0%, transparent 78%);
}

html[lang="en"] body {
  font-family: "Yekan Bakh", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
html[lang="en"] .hero-title { font-weight: 800; letter-spacing: -.02em; max-width: 17ch; }
html[lang="en"] .btn, html[lang="en"] .seg a, html[lang="en"] .seg button, html[lang="en"] .tabs button { font-weight: 500; }
html[lang="en"] .kpi b, html[lang="en"] .sum-stat b, html[lang="en"] .statbtn .sb b, html[lang="en"] .core-pct, html[lang="en"] .error-code { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
html[lang="en"] .chart .axis text, html[lang="en"] .heat-grid, html[lang="en"] .core-pct { font-family: "Yekan Bakh", system-ui, sans-serif; }
html[lang="en"] .m-text { font-family: "Yekan Bakh", sans-serif; font-size: 16px; font-weight: 500; letter-spacing: .08em; }
html[lang="en"] .vf-brand { font-weight: 800; letter-spacing: -.01em; }

a { color: var(--turq-2); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: rgb(var(--c-link)); }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.45; margin: 0; color: var(--parch); }
p { margin: 0; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
kbd {
  font-family: var(--latin);
  font-size: .78em;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgb(var(--c-hl) / .06);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  direction: ltr;
  display: inline-block;
  line-height: 1.5;
}
::selection { background: rgb(var(--c-ac) / .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.ltr { direction: ltr; unicode-bidi: isolate; font-family: var(--latin); }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--mist); }
.small { font-size: var(--fs-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--gold); color: var(--ink-0); }
.skip:focus { top: 12px; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- layout ---------- */

.main {
  flex: 1;
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
  padding-top: 112px;
  padding-bottom: 56px;
}

.foot {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  padding: 18px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--mist-2);
}
.foot a { color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--gold-2); }

/* =========================================================
   Viewfinder — the menu
   One bar: across the top on a computer, the camera dock at the bottom of a phone (partials/nav.php).
   The section you are in sits in a selection frame — the corners a screenshot tool draws. On a computer
   the frame glides to whatever you point at, measures it while it moves and flashes when you choose
   (App.initNav). On a phone the sections are the camera's mode strip and the shutter uploads.
   ========================================================= */
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 2px 8px rgb(var(--c-ac) / .25)); }
[dir="ltr"] .ic-dir { transform: scaleX(-1); }
/* "go" arrows (view, open, next): the back arrow turned around, so it points the way the text reads */
.ic-fwd { transform: rotate(180deg); }
[dir="ltr"] .ic-fwd { transform: none; }

.badge {
  position: absolute;
  top: -7px;
  inset-inline-start: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--pom);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-style: normal;
  box-shadow: 0 0 0 2px var(--ink-1);
}

.vf-root {
  --vf-c: rgb(var(--c-gtx));                      /* the frame: the theme's accent, dark enough to read on its glass */
  --vf-gold: linear-gradient(180deg, rgb(var(--c-ac2)) 0%, rgb(var(--c-ac)) 55%, rgb(var(--c-ac3)) 100%);
  --vf-ink: rgb(var(--c-on));
}
.mb { display: none; }                               /* the phone's bottom menu (below) */

.vf {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(var(--bar-max), calc(100% - 32px));      /* a little narrower than the page's column (--page-max), so the two read as one container */
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 12px 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .8), rgb(var(--c-bg1) / .86));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgb(var(--c-ac) / .22);
  box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .06), 0 22px 44px -26px rgb(var(--c-sh) / calc(.95 * var(--sha)));
  view-transition-name: vf-bar;
}
.vf.is-open { z-index: 80; }                          /* its sheet over the chat button */
@media (min-width: 860px) {
  .vf-me { margin-inline-start: 12px; }               /* the account frame stands clear of its neighbour (the upload button and its corners, the bell or support) */
}
@media (min-width: 1200px) {
  .vf { width: min(var(--bar-max), calc(100% - 64px)); }      /* on a wide screen the bar never reaches past the page's column */
}

/* the brand: the cat looks where the frame goes, and blinks at the flash */
.vf-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: 18px;
  padding: 4px;
  border-radius: 12px;
  color: rgb(var(--brand-tx));
  text-decoration: none;
  font-size: var(--fs-lg);
  line-height: 1;
}
.vf-brand:hover { color: rgb(var(--brand-tx)); }
.vf-brand .brand-mark { width: 34px; height: 34px; }
.vf-brand use[href="#cat-eyes"] { transform-origin: 256px 308px; transition: transform .5s var(--smooth); }
.vf-brand.is-blink use[href="#cat-eyes"] { animation: vf-blink .28s ease-in-out; }
@keyframes vf-blink { 40%, 62% { scale: 1 .06; } }

/* sections: words, not a row of icons */
.vf-links {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vf-links::-webkit-scrollbar { display: none; }
.vf.is-live .vf-links { overflow: visible; }     /* the script keeps the row inside the bar ("more" takes the rest) */
.vf-t { position: relative; }
.vf-link {
  flex: none;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--mist);
  font: inherit;
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.vf-link:hover, .vf-link.is-on { color: var(--parch); }
.vf-link[hidden] { display: none; }
.vf-n {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--pom);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
.vf-n[hidden] { display: none; }

/* a long menu on a narrow computer screen: what does not fit goes under "more" */
.vf-more { position: relative; flex: none; }
.vf-more[hidden] { display: none; }
.vf-chev { width: 14px; height: 14px; transition: transform .25s var(--spring); }
.vf-more-btn[aria-expanded="true"] .vf-chev { transform: rotate(180deg); }
.vf-more-btn.has-n::after { content: ""; position: absolute; top: 7px; inset-inline-end: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--pom); box-shadow: 0 0 0 2px rgb(var(--c-sf2)); }
.vf-menu {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: -6px;
  z-index: 5;
  min-width: 210px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  background: rgb(var(--c-sf1) / .98);
  border: 1px solid rgb(var(--c-ac) / .2);
  box-shadow: 0 24px 48px -20px rgb(var(--c-sh) / calc(.95 * var(--sha)));
}
.vf-menu[hidden], .vf-menu a[hidden] { display: none; }
.vf .vf-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--parch); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.vf-menu a:hover { background: rgb(var(--c-hl) / .06); color: var(--parch); }

/* the admin panel's way back */
.vf-back {
  flex: none;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  margin-inline-start: 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--mist);
  font-size: var(--fs-xs);
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.vf-back:hover { color: var(--parch); border-color: var(--line); }
.vf-back .ic { width: 16px; height: 16px; }

/* the shutter: uploads. On a computer a pill with an aperture that stops down when you point at it */
.vf-shutter {
  flex: none;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 10px 17px;
  margin-inline-start: 8px;
  border-radius: 999px;
  color: var(--vf-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  background: var(--vf-gold);
  box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .5), 0 10px 22px -12px rgb(var(--c-ac) / .9);
  transition: transform .25s var(--spring), filter .2s;
}
.vf-shutter:hover { color: var(--vf-ink); filter: brightness(1.05); }
.vf-shutter:active { transform: scale(.96); }
.vf-disc { display: inline-grid; place-items: center; }
.vf-iris { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.vf-blades { transform-origin: 12px 12px; transition: transform .7s var(--spring); }
.vf-shutter:hover .vf-blades, .vf-shutter:focus-visible .vf-blades { transform: rotate(60deg) scale(.86); }
.vf-shutter:active .vf-blades, .mb-key:active .vf-blades { transform: rotate(110deg) scale(.7); transition-duration: .12s; }
.vf-arrow { display: none; }

/* bell and account */
.vf-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--mist);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.vf-icon:hover, .vf-icon.is-on { color: var(--parch); }
.vf-icon:hover { background: rgb(var(--c-hl) / .05); }
.vf-icon .ic { width: 20px; height: 20px; }
.vf-icon > .vf-n { position: absolute; top: 0; inset-inline-end: -2px; min-width: 17px; height: 17px; font-size: 10.5px; box-shadow: 0 0 0 2px rgb(var(--c-sf2)); }
.vf-bell { margin-inline-start: 6px; }
.vf-icon.is-on { color: var(--vf-c); }               /* the bell or support, on its own page */
.vf-adm { display: none; }                           /* an admin's way into the panel, beside the brand: phones only (a computer has the word in the bar) */
.vf-me { position: relative; flex: none; }
.vf-me > summary { list-style: none; }
.vf-me > summary::-webkit-details-marker { display: none; }
.vf-av {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--vf-ink);
  background: var(--vf-gold);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgb(var(--c-sf1)), 0 0 0 3px rgb(var(--c-ac) / .4);
}
/* the account button: a small frame with your picture in it, the gear of your settings on its corner and the arrow
   that opens them (the sheet below) */
.vf-id {
  width: 46px;
  height: 52px;
  grid-template-rows: 36px 12px;
  align-content: center;
  justify-items: center;
  border-radius: 15px;
  background: rgb(var(--c-hl) / .05);
  box-shadow: inset 0 0 0 1.5px rgb(var(--c-ac) / .6);
  transition: color .2s, background-color .2s, box-shadow .2s, transform .18s var(--smooth);
}
.vf-id:hover { background: rgb(var(--c-ac) / .1); box-shadow: inset 0 0 0 1.5px rgb(var(--c-ac) / .9); }
.vf-me[open] > .vf-id { background: rgb(var(--c-ac) / .12); box-shadow: inset 0 0 0 2px var(--vf-c); }
.vf-face { position: relative; display: grid; place-items: center; align-self: end; }
.vf-id .vf-av { width: 28px; height: 28px; font-size: .85rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(var(--c-ac) / .45), 0 4px 8px -4px rgb(var(--c-ac3) / .8); }
.vf-gear {
  position: absolute;
  right: -7px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--vf-c);
  background: rgb(var(--c-sf1));
  box-shadow: 0 0 0 1px rgb(var(--c-ac) / .7), 0 2px 4px -1px rgb(var(--c-sh) / calc(.5 * var(--sha)));
  transition: transform .5s var(--spring);
}
.vf-id .vf-gear .ic { width: 10px; height: 10px; stroke-width: 2.3; }
.vf-id:hover .vf-gear, .vf-me[open] > .vf-id .vf-gear { transform: rotate(60deg); }
.vf-id .vf-drop { width: 12px; height: 12px; align-self: end; color: var(--vf-c); stroke-width: 2.6; transition: transform .25s var(--spring); }
.vf-me[open] > .vf-id .vf-drop { transform: rotate(180deg); }
.vf-id > .vf-dot { top: -3px; inset-inline-end: -3px; }
.vf-av .ic { width: 58%; height: 58%; }
.vf-av { position: relative; }
.vf-av.has-pic { background: rgb(var(--c-sf3)); }
.av-img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-img.is-new { animation: av-develop 1.1s cubic-bezier(.2, .7, .3, 1); }
@keyframes av-develop { from { filter: sepia(1) brightness(1.7) blur(5px); opacity: .25; transform: scale(.92); } }
.vf-av-edit { border: 0; padding: 0; cursor: pointer; font: inherit; flex: none; }
.vf-av-edit:focus-visible { outline: 2px solid var(--vf-c); outline-offset: 3px; }
.vf-cam { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--vf-ink); background: var(--vf-gold); box-shadow: 0 0 0 2px rgb(var(--c-sf1)); transition: transform .25s var(--spring); }
.vf-av-edit .vf-cam .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.vf-av-edit:hover .vf-cam { transform: scale(1.12); }
.av-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.vf-dot { position: absolute; top: 4px; inset-inline-end: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--pom); box-shadow: 0 0 0 2px rgb(var(--c-sf2)); }

/* the sheet behind the account button: who you are, theme, language, support, sign out */
.vf-sheet {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: -6px;
  z-index: 5;
  width: 320px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: rgb(var(--c-sf1) / .98);
  border: 1px solid rgb(var(--c-ac) / .2);
  box-shadow: 0 30px 60px -26px rgb(var(--c-sh) / calc(.95 * var(--sha))), 0 2px 10px -6px rgb(var(--c-sh) / calc(.5 * var(--sha)));
  transform-origin: top left;
}
[dir="ltr"] .vf-sheet { transform-origin: top right; }
.vf-me[open] > .vf-sheet { animation: vf-sheet .32s var(--spring); }
@keyframes vf-sheet { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.vf-who { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgb(var(--c-hl) / .04); transition: background-color .2s; }
.vf-who:has(.vf-who-a:hover) { background: rgb(var(--c-ac) / .1); }
.vf-who:has(.vf-who-a[aria-current]) { box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .35); }
.vf-who-a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--parch); text-decoration: none; }
.vf-who-a:hover { color: var(--parch); }
.vf-av-l { width: 42px; height: 42px; flex: none; font-size: 1.15rem; }
.vf-who-t { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.45; }
.vf-who-t b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-who-t small { color: var(--mist); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-go { width: 16px; height: 16px; flex: none; color: var(--mist-2); }
.vf-sec { display: grid; gap: 6px; padding: 8px 4px 2px; }
.vf-sec-t { padding-inline: 6px; color: var(--mist-2); font-size: var(--fs-xs); line-height: 1.4; }
.vf-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 15px; background: rgb(var(--c-hl) / .05); }
.vf-seg > *, .vf-sheet .vf-seg a {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--mist);
  font: inherit;
  font-size: var(--fs-xs);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.vf-seg > :hover { color: var(--parch); background: rgb(var(--c-hl) / .05); }
.vf-seg > [aria-pressed="true"], .vf-seg > [aria-current] { color: var(--parch); background: rgb(var(--c-sf1)); box-shadow: 0 0 0 1px rgb(var(--c-ac) / .4), 0 6px 14px -8px rgb(var(--c-sh) / calc(.9 * var(--sha))); }
.vf-seg .ic { width: 18px; height: 18px; }
.vf-seg > [aria-pressed="true"] .ic, .vf-seg > [aria-current] .ic, .vf-seg > [aria-current] .vf-lc { color: var(--vf-c); }
.vf-lc { font-style: normal; font-weight: 800; font-size: .82rem; line-height: 18px; }
.vf-lc:lang(en) { font-family: var(--latin); letter-spacing: .04em; }
.vf-list { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.vf-list form { margin: 0; }
.vf-list a, .vf-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 12px; background: none; color: var(--parch); font: inherit; font-size: var(--fs-sm); line-height: 1.4; text-align: start; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.vf-list a:hover, .vf-list button:hover { color: var(--parch); background: rgb(var(--c-hl) / .06); }
.vf-list a.is-on { color: var(--vf-c); }
.vf-list .ic { width: 18px; height: 18px; flex: none; color: var(--mist); }
.vf-list .vf-n { margin-inline-start: auto; }
.vf-list button { color: var(--pom-2); }
.vf-list button .ic { color: currentColor; }

/* the selection frame: four corners, marching ants while you are still choosing, a flash when you choose */
.vf-frame {
  position: absolute;
  inset: -3px -5px;
  z-index: 2;
  pointer-events: none;
  color: var(--vf-c);
  view-transition-name: vf-frame;
}
.vf-frame[hidden] { display: none; }
.vf-frame i { position: absolute; width: 10px; height: 10px; border: 0 solid currentColor; }
.vf-frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; --bx: 3px; --by: 3px; }
.vf-frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; --bx: -3px; --by: 3px; }
.vf-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; --bx: 3px; --by: -3px; }
.vf-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; --bx: -3px; --by: -3px; }
.vf-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s;
  background:
    linear-gradient(90deg, currentColor 50%, transparent 0) 0 0 / 8px 1px repeat-x,
    linear-gradient(90deg, currentColor 50%, transparent 0) 0 100% / 8px 1px repeat-x,
    linear-gradient(0deg, currentColor 50%, transparent 0) 0 0 / 1px 8px repeat-y,
    linear-gradient(0deg, currentColor 50%, transparent 0) 100% 0 / 1px 8px repeat-y;
}
.vf.is-hover .vf-frame.is-roam::before { opacity: .55; animation: vf-ants .9s linear infinite; }
@keyframes vf-ants { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
.vf-frame::after { content: ""; position: absolute; inset: 3px; border-radius: 8px; background: #fff; opacity: 0; }
.vf-frame.is-snap::after { animation: vf-flash .6s cubic-bezier(.2, .8, .2, 1); }
.vf-frame.is-snap i { animation: vf-bite .5s var(--spring); }
@keyframes vf-flash { 0% { opacity: 0; } 10% { opacity: .95; box-shadow: 0 0 26px 8px rgb(255 255 255 / .8); } 100% { opacity: 0; box-shadow: none; } }
@keyframes vf-bite { 30% { translate: var(--bx) var(--by); } }

/* the size of the selection, as a screenshot tool shows it */
.vf-dim {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 0 8px;
  border-radius: 7px;
  color: rgb(var(--c-bg0));
  background: rgb(var(--c-tx) / .9);
  box-shadow: 0 6px 16px -8px rgb(var(--c-sh) / calc(.9 * var(--sha)));
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
}
.vf-dim:empty { display: none; }
.vf.is-hover .vf-dim { opacity: 1; }
.vf.is-hover.is-open .vf-dim { opacity: 0; }        /* a list is open over it */
/* the frame is the keyboard's focus mark in the bar (it follows the focus there) */
@media (min-width: 860px) {
  .vf.is-live .vf-t:focus-visible { outline: none; }
}

/* a finished upload flies into «images» in the menu (App.navShot) */
.vf-fly { position: fixed; top: 0; left: 0; z-index: 95; object-fit: cover; border-radius: 12px; transform-origin: 0 0; pointer-events: none; box-shadow: 0 0 0 2px #fff, 0 14px 30px -10px rgb(0 0 0 / .45); }
.vf-link.is-got .nav-label, .vf-more-btn.is-got > span { display: inline-block; animation: vf-got .7s var(--spring); }
@keyframes vf-got { 35% { transform: scale(1.14); color: var(--vf-c); } }
.mb-tab.is-got .mb-ic { animation: vf-pop .55s var(--spring); }
@keyframes vf-pop { 0% { transform: scale(.6); } }

/* ---------- phones: the bar is the header, and the sections stand in a menu at the bottom ---------- */
@media (max-width: 859px) {
  :root {
    --head-h: 56px;                                                      /* the header bar */
    --dock-h: calc(78px + env(safe-area-inset-bottom, 0px));             /* the bottom menu (60px), its 10px from the edge and a little air */
  }
  html { scroll-padding-top: 84px; scroll-padding-bottom: var(--dock-h); }
  .main { padding-top: calc(var(--head-h) + 22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(var(--dock-h) + 24px); width: min(1120px, 100% - 24px); }

  /* the header: the brand on one side; the bell, support and the account button on the other */
  .vf {
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    width: auto;
    height: var(--head-h);
    transform: none;
    gap: 2px;
    padding-inline: 10px 6px;
    border-radius: 22px;
  }
  .vf .vf-only-d, .vf-links, .vf-dim, .vf-frame { display: none; }
  .vf, .vf a, .vf summary, .vf button, .mb, .mb a, .mb summary, .mb button { -webkit-tap-highlight-color: transparent; }    /* the controls answer a tap themselves */
  .vf-brand { margin-inline-end: auto; gap: 9px; padding: 2px; font-size: 1.12rem; }
  .vf-brand .brand-mark { width: 32px; height: 32px; }
  /* an admin: the brand keeps the corner and the way into the panel stands right beside it, on its inner side */
  .vf.has-adm .vf-brand { margin-inline-end: 6px; }
  .vf-adm { display: inline-grid; width: 36px; height: 36px; margin-inline-end: auto; border-radius: 12px; color: var(--vf-c); background: rgb(var(--c-ac) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .26); }
  .vf-adm .ic { width: 19px; height: 19px; }
  .vf-icon, .vf-me > summary { transition: transform .18s var(--smooth), color .2s, background-color .2s, box-shadow .2s; }
  .vf-icon:active, .vf-me > summary:active { transform: scale(.92); }
  .vf-bell { margin-inline-start: 0; }
  .vf-me { position: static; margin-inline-start: 4px; }
  .vf-me > .vf-id { width: 44px; height: 48px; grid-template-rows: 33px 12px; border-radius: 14px; }
  .vf-guest .vf-me > summary { background: rgb(var(--c-hl) / .05); box-shadow: inset 0 0 0 1px var(--line-2); }
  .vf-sheet .vf-av { width: 42px; height: 42px; font-size: 1.05rem; }
  /* its sheet drops from the header, as wide as the header */
  .vf-sheet {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    inset-inline-end: 0;
    width: auto;
    max-height: calc(100dvh - var(--head-h) - var(--dock-h) - 30px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px;
  }

  /* the bottom menu: the round key (the upload shutter; in the admin panel, the drawer's handle) and a slab beside it */
  .mb {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    height: 60px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    view-transition-name: mb-bar;
  }
  .mb-slab {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    border-radius: 22px;
    background: linear-gradient(180deg, rgb(var(--c-sf2) / .98), rgb(var(--c-bg1) / .98));      /* all but solid: what scrolls under it must not be read through the tabs */
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgb(var(--c-ac) / .24);
    box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .06), 0 18px 36px -22px rgb(var(--c-sh) / calc(.95 * var(--sha)));
  }
  /* the key: a camera's release — a gold disc in a ring. Its figure is the shutter (upload) or the drawer's three lines */
  .mb-key {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--vf-ink);
    text-decoration: none;
    cursor: pointer;
  }
  .mb-key::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgb(var(--c-tx) / .82); background: rgb(var(--c-sf1) / .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 26px -16px rgb(var(--c-sh) / calc(.95 * var(--sha))); transition: border-color .3s; }
  .mb-key.is-on::before, .mb-drawer[open] .mb-key::before { border-color: var(--vf-c); }
  .mb-disc { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--vf-ink); background: var(--vf-gold); box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .5), inset 0 -4px 8px rgb(var(--c-ac3) / .4); transition: transform .18s var(--smooth); }
  .mb-key:active .mb-disc, .mb-sum:active .mb-disc { transform: scale(.88); }
  .mb-key .vf-iris { width: 36px; height: 36px; stroke-width: 1.1; }
  .mb-key .vf-ring, .mb-key .vf-blades { opacity: .4; }
  .mb-key .vf-arrow { display: inline; stroke-width: 2.1; }
  .mb-key .vf-dot { top: 3px; inset-inline-end: 3px; box-shadow: 0 0 0 2px rgb(var(--c-sf1)); }
  .mb-key::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; pointer-events: none; }
  .mb-key.is-fire::after { animation: vf-fire .6s ease-out; }
  @keyframes vf-fire { 0% { opacity: 1; box-shadow: 0 0 0 0 rgb(255 255 255 / .95), inset 0 0 0 40px rgb(255 255 255 / .7); } 100% { opacity: 0; box-shadow: 0 0 0 24px rgb(255 255 255 / 0), inset 0 0 0 40px rgb(255 255 255 / 0); } }

  /* the tabs: a figure with its name under it. They share the slab; when there are more than fit (an admin's account
     on a narrow phone) the strip slides sideways and its far edge fades */
  .mb-tabs { flex: 1 1 auto; min-width: 0; display: flex; padding: 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: inherit; }
  .mb-tabs::-webkit-scrollbar { display: none; }
  .mb-tabs.is-over { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); }
  [dir="ltr"] .mb-tabs.is-over { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
  .mb-tabs.is-over.is-end { -webkit-mask-image: none; mask-image: none; }
  .mb-tab {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    color: var(--mist);
    font-size: .6875rem;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s;
  }
  .mb-in { position: relative; min-width: 44px; display: grid; justify-items: center; gap: 3px; padding: 6px 5px 5px; }      /* the figure and its name: what the frame goes round */
  .mb-ic { position: relative; display: grid; place-items: center; transition: transform .2s var(--spring); }
  .mb-ic .ic { width: 22px; height: 22px; stroke-width: 1.7; }
  .mb-ic .vf-n { position: absolute; top: -5px; inset-inline-start: 13px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px rgb(var(--c-sf2)); }
  .mb-tab:active .mb-ic { transform: scale(.86); }
  .mb-tab.is-on { color: var(--parch); font-weight: 700; }
  .mb-tab.is-on .mb-ic { color: var(--vf-c); }
  /* the frame: the viewfinder's corners on the tab of the page you are on; it goes to the tab you tap */
  .mb-frame { position: absolute; inset: 0 -1px; pointer-events: none; color: var(--vf-c); view-transition-name: mb-frame; }
  .mb-frame i { position: absolute; width: 8px; height: 8px; border: 0 solid currentColor; }
  .mb-frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 4px; --bx: 3px; --by: 3px; }
  .mb-frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 4px; --bx: -3px; --by: 3px; }
  .mb-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; --bx: 3px; --by: -3px; }
  .mb-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; --bx: -3px; --by: -3px; }
  .mb-frame.is-snap i { animation: vf-bite .5s var(--spring); }

  /* the admin panel: the key and the strip are one handle (a <summary>): the strip names the section you are in */
  .mb-admin { gap: 8px; }
  .mb-drawer { flex: 1 1 auto; min-width: 0; display: flex; }
  .mb-sum { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 8px; list-style: none; cursor: pointer; }
  .mb-sum::-webkit-details-marker { display: none; }
  .mb-i-x { display: none; }
  .mb-disc .ic { width: 24px; height: 24px; stroke-width: 2.1; }
  .mb-now { align-items: center; gap: 10px; padding-inline: 14px 12px; color: var(--parch); }
  .mb-now-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--vf-c); background: rgb(var(--c-ac) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .28); }
  .mb-now-ic .ic { width: 20px; height: 20px; }
  .mb-now-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
  .mb-now-t small { color: var(--mist); font-size: .6875rem; }
  .mb-now-t b { font-size: var(--fs-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mb-site { flex: none; width: 60px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mist); font-size: .6875rem; line-height: 1.25; text-decoration: none; }
  .mb-site .ic { width: 21px; height: 21px; }
  .mb-site:active .ic { transform: scale(.86); }

  /* the drawer: every section of the panel, one under another, coming in from the key's side */
  .mb:has(.mb-drawer[open]), .mb.is-open { z-index: 90; }
  .mb-drawer[open] > .mb-sum::before { content: ""; position: fixed; inset: 0; z-index: 1; background: rgb(var(--c-sh) / .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: default; animation: mb-dim .3s ease-out; }
  .mb-drawer[open] .mb-i-menu { display: none; }
  .mb-drawer[open] .mb-i-x { display: block; }
  .mb-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 2;
    width: min(84vw, 330px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border-start-end-radius: 30px;
    border-end-end-radius: 30px;
    background: linear-gradient(180deg, rgb(var(--c-sf1)), rgb(var(--c-bg1)));
    border-inline-end: 1px solid rgb(var(--c-ac) / .28);
    box-shadow: 0 0 60px -10px rgb(var(--c-sh) / calc(.9 * var(--sha)));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mb-drawer[open] > .mb-panel { animation: mb-in .36s cubic-bezier(.2, .9, .25, 1); }
  .mb-drawer.is-closing > .mb-panel { animation: mb-out .2s ease-in forwards; }
  .mb-drawer.is-closing > .mb-sum::before { animation: mb-dim .2s ease-in reverse forwards; }
  @keyframes mb-in { from { transform: translateX(100%); } }
  @keyframes mb-out { to { transform: translateX(100%); } }
  [dir="ltr"] .mb-drawer[open] > .mb-panel { animation-name: mb-in-l; }
  [dir="ltr"] .mb-drawer.is-closing > .mb-panel { animation-name: mb-out-l; }
  @keyframes mb-in-l { from { transform: translateX(-100%); } }
  @keyframes mb-out-l { to { transform: translateX(-100%); } }
  @keyframes mb-dim { from { opacity: 0; } }
  .mb-panel-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line-2); }
  .mb-panel-head .brand-mark { width: 36px; height: 36px; flex: none; }
  .mb-panel-head > span { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.4; }
  .mb-panel-head b { font-size: var(--fs-md); font-weight: 800; }
  .mb-panel-head small { color: var(--mist); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mb-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; color: var(--mist); background: rgb(var(--c-hl) / .05); cursor: pointer; }
  .mb-x .ic { width: 20px; height: 20px; }
  .mb-rows { display: grid; gap: 2px; }
  .mb-row { position: relative; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 16px; color: var(--parch); font-size: var(--fs-md); line-height: 1.4; text-decoration: none; transition: background-color .2s; }
  .mb-row:active { background: rgb(var(--c-hl) / .07); }
  .mb-row-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--mist); background: rgb(var(--c-hl) / .05); transition: color .2s, background-color .2s; }
  .mb-row-ic .ic { width: 20px; height: 20px; }
  .mb-row-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mb-row.is-on { font-weight: 700; background: rgb(var(--c-ac) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .32); }
  .mb-row.is-on .mb-row-ic { color: var(--vf-ink); background: var(--vf-gold); box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .5); }
  .mb-row-back { flex: none; margin-top: auto; color: var(--mist); border-top: 1px solid var(--line-2); border-radius: 0 0 16px 16px; padding-top: 12px; }
  .mb-drawer[open] .mb-row { animation: mb-row .42s cubic-bezier(.2, .9, .25, 1) backwards; animation-delay: calc(60ms + var(--i, 0) * 22ms); }
  @keyframes mb-row { from { opacity: 0; transform: translateX(22px); } }
  [dir="ltr"] .mb-drawer[open] .mb-row { animation-name: mb-row-l; }
  @keyframes mb-row-l { from { opacity: 0; transform: translateX(-22px); } }
  html.mb-open, html.mb-open body { overflow: hidden; }
}
@media (max-width: 359px) {
  .vf-brand span { font-size: 1.02rem; }
  /* an admin's header holds five things on the narrowest phones: a little less of each, so nothing touches */
  .vf.has-adm .vf-brand { gap: 7px; margin-inline-end: 4px; }
  .vf.has-adm :is(.vf-bell, .vf-sup) { width: 36px; }
  .vf.has-adm .vf-me { margin-inline-start: 2px; }
  .mb { gap: 6px; }
  .mb-tab { font-size: .65625rem; }
  .mb-in { min-width: 40px; padding-inline: 3px; }
}
/* six tabs (an admin's account on the site) on a narrow phone: each as wide as its name needs and no wider, the room that
   is left shared out evenly — so they all stand in the strip, and it slides only if even that is not enough */
@media (max-width: 400px) {
  .mb-tab:first-child:nth-last-child(n+6), .mb-tab:first-child:nth-last-child(n+6) ~ .mb-tab { flex: 1 1 0; min-width: min-content; }
  .mb-tab:first-child:nth-last-child(n+6) .mb-in, .mb-tab:first-child:nth-last-child(n+6) ~ .mb-tab .mb-in { min-width: auto; padding-inline: 3px; }
}

/* motion only answers the person, and not at all when they asked for less */
@media (prefers-reduced-motion: reduce) {
  .vf-brand use[href="#cat-eyes"], .vf-blades, .vf-shutter, .vf-disc, .vf-chev, .vf-icon, .vf-me > summary, .vf-gear, .vf-drop, .mb-disc, .mb-ic { transition: none; }
  .vf-brand.is-blink use[href="#cat-eyes"], .vf.is-hover .vf-frame.is-roam::before, .vf-frame.is-snap::after, .vf-frame.is-snap i,
  .vf-me[open] > .vf-sheet, .vf-link.is-got .nav-label, .vf-more-btn.is-got > span, .mb-key.is-fire::after, .mb-tab.is-got .mb-ic, .mb-frame.is-snap i,
  .mb-drawer[open] > .mb-panel, .mb-drawer.is-closing > .mb-panel, .mb-drawer[open] > .mb-sum::before, .mb-drawer.is-closing > .mb-sum::before, .mb-drawer[open] .mb-row { animation: none; }
}

/* Cross-page morph of the frame (Chrome/Edge/Safari 18+): it glides from the section you left to the one you opened */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(vf-frame), ::view-transition-group(mb-frame) { animation-duration: .46s; animation-timing-function: cubic-bezier(.34, 1.3, .64, 1); }
::view-transition-old(vf-bar), ::view-transition-old(mb-bar) { animation: none; opacity: 0; }
::view-transition-new(vf-bar), ::view-transition-new(mb-bar) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }

/* the profile photo: choosing and cropping (assets/js/avatar.js) */
.av-dlg { width: min(420px, calc(100% - 24px)); }
.av-dlg .dlg-head p { font-size: var(--fs-xs); color: var(--mist); line-height: 1.85; text-wrap: balance; }
.av-stage { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 4px auto 0; border-radius: 26px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  background: repeating-conic-gradient(rgb(var(--c-hl) / .07) 0 25%, transparent 0 50%) 0 0 / 22px 22px, rgb(var(--c-sf2)); box-shadow: inset 0 0 0 1px var(--line-2); }
.av-stage.is-drag { cursor: grabbing; }
.av-stage:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.av-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.av-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 999px rgb(10 8 6 / .56); }
.av-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(255 255 255 / .92); box-shadow: 0 0 0 1px rgb(0 0 0 / .18), inset 0 0 0 1px rgb(0 0 0 / .18); }
.av-wait { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgb(var(--c-ac) / .25); border-top-color: var(--gold-2); opacity: 0; pointer-events: none; animation: spin 0.8s linear infinite; }
.av-dlg.is-loading .av-wait { opacity: 1; }
.av-dlg.is-busy .av-stage { opacity: .6; pointer-events: none; }
.av-zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); margin: 14px auto 0; color: var(--mist); }
.av-zoom .ic { width: 17px; height: 17px; flex: none; }
.av-zoom input { flex: 1; min-width: 0; accent-color: rgb(var(--c-ac)); }
.av-err { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; font-size: var(--fs-xs); line-height: 1.8; color: rgb(var(--c-badtx)); background: rgb(var(--c-bad) / .08); border: 1px solid rgb(var(--c-bad) / .3); }
.av-dlg .dlg-actions { margin-top: 16px; }
.av-menu { width: min(340px, calc(100% - 24px)); }
.av-menu .dlg-body { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 28px; }
.av-menu h2 { font-size: var(--fs-lg); }
.av-menu-pic { width: 148px; height: 148px; border-radius: 50%; background: rgb(var(--c-sf3)); box-shadow: 0 0 0 3px rgb(var(--c-sf1)), 0 0 0 5px rgb(var(--c-ac) / .6), 0 20px 44px -20px rgb(var(--c-ac)); }
.av-menu-pic img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av-menu-acts { display: grid; gap: 8px; width: 100%; }
.av-menu-acts .btn { width: 100%; }
.av-menu [data-av-del].is-armed { color: #fff; background: rgb(var(--c-bad)); border-color: rgb(var(--c-bad)); }
@media (prefers-reduced-motion: reduce) {
  .av-img.is-new, .av-wait { animation: none; }
  .id-cam, .vf-cam { transition: none; }
}

/* =========================================================
   Controls
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: none;
  font-size: var(--fs-sm);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, background-color .2s, border-color .2s, box-shadow .2s, filter .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-gold {
  color: rgb(var(--c-on));
  background: linear-gradient(180deg, rgb(var(--c-ac2)) 0%, rgb(var(--c-ac)) 55%, rgb(var(--c-ac3)) 100%);
  box-shadow: inset 0 1px 0 rgb(var(--c-hl) / .55), 0 12px 26px -14px rgb(var(--c-ac) / .85);
}
.btn-gold:hover { color: rgb(var(--c-on)); filter: brightness(1.06); }
.btn-ghost { color: var(--parch); background: rgb(var(--c-hl) / .03); border-color: var(--line); }
.btn-ghost:hover { color: var(--gold-2); background: rgb(var(--c-ac) / .07); border-color: rgb(var(--c-ac) / .38); }
.btn-turq { color: var(--turq-2); background: rgb(var(--c-al) / .1); border-color: rgb(var(--c-al) / .32); }
.btn-turq:hover { color: rgb(var(--c-link)); background: rgb(var(--c-al) / .18); }
.btn-danger { color: var(--pom-2); background: rgb(var(--c-bad) / .08); border-color: rgb(var(--c-bad) / .32); }
.btn-danger:hover { color: rgb(var(--c-badtx)); background: rgb(var(--c-bad) / .16); }
.btn-sm { height: 36px; padding: 0 13px; border-radius: 11px; font-size: var(--fs-xs); gap: 6px; }
.btn-sm .ic { width: 17px; height: 17px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgb(var(--c-hl) / .02);
  color: var(--mist);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
  flex: none;
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--line); }
.icon-btn.danger:hover { color: var(--pom-2); border-color: rgb(var(--c-bad) / .4); background: rgb(var(--c-bad) / .08); }
.icon-btn .ic { width: 18px; height: 18px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field-label { font-size: var(--fs-sm); color: var(--mist); }
.field-hint { font-size: var(--fs-xs); color: var(--mist-2); }
.input,
.field input:not([type=checkbox]):not([type=radio]),
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--line-2);
  color: var(--parch);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea, textarea.input { height: auto; min-height: 104px; padding: 11px 14px; line-height: 1.8; resize: vertical; }
[dir="ltr"] .field select { background-position: calc(100% - 23px) 21px, calc(100% - 18px) 21px; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-start: 14px; padding-inline-end: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: 18px 21px, 23px 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgb(var(--c-ac) / .6);
  box-shadow: 0 0 0 4px rgb(var(--c-ac) / .12);
}
.field input[dir=ltr], .input[dir=ltr] { text-align: left; font-family: var(--latin); }
.field input[dir=ltr]::placeholder { font-family: var(--latin); }
.field .err { color: var(--pom-2); font-size: var(--fs-xs); }
.field.has-error input, .field.has-error textarea { border-color: rgb(var(--c-bad) / .6); }
.code-area { font-family: var(--mono); font-size: .85rem; direction: ltr; text-align: left; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.input-unit { display: flex; gap: 8px; }
.input-unit input { flex: 1; }
.input-unit select { width: 120px; flex: none; }

.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--mist);
  font-family: var(--latin);
  font-size: .8rem;
  letter-spacing: .04em;
  transition: all .2s;
}
.chip-check input:checked + span { color: var(--ink-0); background: var(--turq-2); border-color: var(--turq-2); }
.chip-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 10px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  margin-top: 2px;
  border-radius: 13px;
  background: rgb(var(--c-hl) / .08);
  border: 1px solid var(--line-2);
  transition: background-color .25s, border-color .25s;
}
.switch .sw::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform .35s var(--spring), background-color .25s;
}
.switch input:checked + .sw { background: rgb(var(--c-ac) / .25); border-color: rgb(var(--c-ac) / .55); }
.switch input:checked + .sw::after { transform: translateX(-20px); background: var(--gold); }
[dir="ltr"] .switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch b { display: block; font-weight: 400; color: var(--parch); }
.switch small { display: block; color: var(--mist-2); font-size: var(--fs-xs); line-height: 1.7; }

.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 13px;
  background: var(--field);
  border: 1px solid var(--line-2);
}
.seg a, .seg button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: none;
  color: var(--mist);
  text-decoration: none;
  font-size: var(--fs-xs);
  cursor: pointer;
  white-space: nowrap;
}
.seg a:hover, .seg button:hover { color: var(--parch); }
.seg .is-on { background: var(--ink-3); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .28); }

.opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt input { margin: 7px 0 0; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.opt:has(input:checked) { border-color: rgb(var(--c-ac) / .5); background: rgb(var(--c-ac) / .06); }
.opt b { display: block; font-weight: 400; }
.opt small { display: block; color: var(--mist-2); font-size: var(--fs-xs); line-height: 1.7; }

/* link field: label | url | copy */
.linkfield {
  display: flex;
  align-items: stretch;
  height: 44px;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--line-2);
  overflow: hidden;
  min-width: 0;
}
.lf-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  font-size: var(--fs-xs);
  color: var(--mist);
  border-inline-end: 1px solid var(--line-2);
  white-space: nowrap;
  flex: none;
}
.lf-label .ic { width: 16px; height: 16px; color: var(--gold); }
.linkfield input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--turq-2);
  font-family: var(--mono);
  font-size: .82rem;
  padding-inline: 12px;
  direction: ltr;
  text-align: left;
  outline: none;
}
.lf-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 14px;
  border: 0;
  border-inline-start: 1px solid var(--line-2);
  background: rgb(var(--c-al) / .09);
  color: var(--turq-2);
  font-size: var(--fs-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.lf-copy:hover { background: rgb(var(--c-al) / .18); }
.lf-copy .ic { width: 16px; height: 16px; }
.lf-copy.is-done { background: rgb(var(--c-ok) / .16); color: var(--pist); }
.linkfield.sm { height: 38px; border-radius: 10px; }
.linkfield.sm .lf-copy { padding-inline: 11px; }

.fmt {
  display: inline-block;
  font-family: var(--latin);
  font-size: .72rem;
  letter-spacing: .05em;
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--mist);
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--mist);
  background: rgb(var(--c-hl) / .05);
}
.tag-gold { color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.tag-turq { color: var(--turq-2); background: rgb(var(--c-al) / .12); }
.tag-pom { color: var(--pom-2); background: rgb(var(--c-bad) / .12); }
.tag-pist { color: var(--pist); background: rgb(var(--c-ok) / .12); }
.tag .ic { width: 13px; height: 13px; }

/* =========================================================
   Panels & page headers
   ========================================================= */

.panel {
  position: relative;
  border-radius: var(--r-lg);
  padding: 22px;
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .5), rgb(var(--c-sf1) / .62));
  border: 1px solid var(--line-2);
}
.panel + .panel { margin-top: 18px; }
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lg);
  margin-bottom: 14px;
}
.panel-title::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  clip-path: var(--star);
  background: var(--gold);
}
.panel-sub { color: var(--mist); font-size: var(--fs-sm); margin: -8px 0 16px; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 { font-size: var(--fs-2xl); line-height: 1.3; }
.page-head p { color: var(--mist); margin-top: 6px; max-width: 62ch; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--mist);
  text-decoration: none;
  margin-bottom: 10px;
}
.back:hover { color: var(--gold-2); }
.back .ic { width: 16px; height: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 18px; }

/* flash & impersonation */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  border: 1px solid var(--line-2);
  background: rgb(var(--c-sf1) / .8);
}
.flash .ic { width: 18px; height: 18px; }
.flash-success { border-color: rgb(var(--c-ok) / .35); color: rgb(var(--c-oktx)); }
.flash-success .ic { color: var(--pist); }
.flash-error { border-color: rgb(var(--c-bad) / .4); color: rgb(var(--c-badtx)); }
.flash-error .ic { color: var(--pom); }
.flash-info .ic { color: var(--turq); }

.imp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: repeating-linear-gradient(-45deg, rgb(var(--c-bad) / .14) 0 12px, rgb(var(--c-bad) / .06) 12px 24px);
  border: 1px solid rgb(var(--c-bad) / .4);
  font-size: var(--fs-sm);
}
.imp-bar form { margin: 0; }
.imp-bar b { font-weight: 400; color: #fff; }

.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 48px 20px;
  border-radius: var(--r-lg);
  border: 1px dashed rgb(var(--c-ac) / .28);
  color: var(--mist);
}
.empty-star {
  width: 54px;
  height: 54px;
  clip-path: var(--star);
  background: linear-gradient(135deg, rgb(var(--c-ac2) / .9), rgb(var(--c-ac3) / .7));
  opacity: .8;
}
.empty h2 { font-size: var(--fs-lg); color: var(--parch); }
.empty-cat { width: 64px; height: 64px; opacity: .75; }
.error-cat { width: 110px; height: 110px; filter: drop-shadow(0 8px 30px rgb(var(--c-ac) / .35)); }
.empty p { max-width: 46ch; }

/* =========================================================
   Home — the shamseh uploader
   ========================================================= */

.hero { display: grid; justify-items: center; text-align: center; padding-top: 8px; }
.hero-title {
  text-wrap: balance;
  font-size: var(--fs-3xl);
  line-height: 1.35;
  max-width: 18ch;
  color: var(--parch);
  text-shadow: 0 2px 30px rgb(var(--c-deep) / .8);
}
.hero-sub { color: var(--mist); margin-top: 8px; font-size: var(--fs-md); }

.uploader { display: grid; justify-items: center; width: 100%; }

.medallion {
  --p: 0;
  position: relative;
  width: clamp(250px, 74vw, 390px);
  aspect-ratio: 1;
  margin: 26px auto 18px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold);
  -webkit-tap-highlight-color: transparent;
}
.medallion:focus-visible { outline: none; }
.medallion:focus-visible .m-halo { opacity: 1; }
.medallion svg.medal { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.m-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--c-ac) / .22), rgb(var(--c-deep) / .18) 60%, transparent);
  filter: blur(18px);
  opacity: .7;
  transition: opacity .4s, transform .5s var(--smooth);
}
.medallion:hover .m-halo { opacity: 1; transform: scale(1.05); }

.m-hair { fill: none; stroke: rgb(var(--c-ac) / .38); stroke-width: 1; }
.m-hair-dim { fill: none; stroke: rgb(var(--c-ac) / .16); stroke-width: 1; }
.m-band { fill: rgb(var(--c-bg0) / .4); stroke: none; }
.m-line { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.m-plate { stroke: rgb(var(--c-ac) / .38); stroke-width: 1; }
.m-dots circle { fill: var(--gold); }
.m-line-faint { fill: none; stroke: rgb(var(--c-ac) / .3); stroke-width: 1; }
.m-core { stroke: rgb(var(--c-ac) / .5); stroke-width: 1; }
.m-dot { fill: var(--gold); }
.m-sep { fill: var(--gold); }
.m-sep.dim { fill: rgb(var(--c-ac) / .55); }
.m-text { fill: rgb(var(--c-ac2) / .82); font-size: 15px; font-family: "Yekan Bakh", Tahoma, sans-serif; direction: ltr; }
.m-progress {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .3s linear, opacity .3s;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgb(var(--c-ac2) / .8));
}

.m-geo, .m-ring { transform-origin: 200px 200px; transform-box: view-box; transition: transform 1.2s var(--smooth); }

/* one orchestrated entrance: the gold geometry draws itself */
.m-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: m-draw 1.9s var(--smooth) .15s forwards; }
.m-draw.d2 { animation-delay: .45s; }
.m-draw.d3 { animation-delay: .75s; }
.m-ring { opacity: 0; animation: m-fade 1.2s ease .9s forwards; }
@keyframes m-draw { to { stroke-dashoffset: 0; } }
@keyframes m-fade { to { opacity: 1; } }

.medallion-core {
  position: absolute;
  inset: 29%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  color: var(--gold-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  pointer-events: none;
}
.core-cat { width: 56%; height: auto; overflow: visible; filter: drop-shadow(0 6px 14px rgb(var(--c-sh) / calc(.45 * var(--sha)))); transition: transform .5s var(--spring); }
.medallion:hover .core-cat { transform: translateY(-3px) scale(1.04); }
.cat-eyes { transform-box: fill-box; transform-origin: center; animation: cat-blink 7s ease-in-out infinite; }
@keyframes cat-blink { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } 96% { transform: scaleY(1); } }
.uploader.is-drag .cat-eyes { animation: none; transform: scaleY(1.75); filter: drop-shadow(0 0 7px rgb(var(--c-al2) / .95)); transition: transform .35s var(--spring); }
.uploader.is-busy .cat-eyes { animation: cat-glow 1.3s ease-in-out infinite; }
.uploader.is-done .cat-eyes { animation: cat-happy 1.3s ease-in-out; }
@keyframes cat-glow { 50% { filter: drop-shadow(0 0 9px rgb(var(--c-al2) / .95)); } }
@keyframes cat-happy { 0% { transform: scaleY(1); } 25%, 65% { transform: scaleY(.16) translateY(3px); } 100% { transform: scaleY(1); } }
.core-idle, .core-busy { display: grid; justify-items: center; gap: 4px; }
.core-idle .ic { width: 34px; height: 34px; stroke-width: 1.5; transition: transform .4s var(--spring); }
.medallion:hover .core-idle .ic { transform: translateY(-4px); }
.core-busy { display: none; }
.core-pct { font-size: var(--fs-xl); line-height: 1.1; color: rgb(var(--c-glow)); font-weight: 400; }
.core-busy small { color: var(--mist); font-size: var(--fs-xs); }

.uploader.is-drag .m-ring { animation: m-spin 16s linear infinite; opacity: 1; }
.uploader.is-drag .m-geo { transform: rotate(22.5deg) scale(1.04); }
.uploader.is-drag .m-halo { opacity: 1; transform: scale(1.12); }
.uploader.is-busy .m-geo { animation: m-spin 26s linear infinite; }
.uploader.is-busy .m-progress { opacity: 1; }
.uploader.is-busy .core-idle { display: none; }
.uploader.is-busy .core-busy { display: grid; }
.uploader.is-busy .medallion { cursor: progress; }
@keyframes m-spin { to { transform: rotate(360deg); } }

.drop-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgb(var(--c-ac) / .1), rgb(var(--c-bg0) / .55) 60%);
  border: 2px dashed rgb(var(--c-ac) / .45);
  border-radius: 24px;
  margin: 10px;
  opacity: 0;
  transition: opacity .25s;
}
.uploader.is-drag .drop-veil { opacity: 1; }

.upload-hint { color: var(--mist); font-size: var(--fs-sm); max-width: 52ch; }
.keys-combo { direction: ltr; unicode-bidi: isolate; white-space: nowrap; display: inline-block; }
.upload-hint .touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .upload-hint .desk { display: none; }
  .upload-hint .touch { display: inline; }
}
.upload-limits { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: var(--mist-2); font-size: var(--fs-xs); }

.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  clip-path: var(--star);
  background: var(--gold-2);
  pointer-events: none;
  animation: spark .9s var(--smooth) forwards;
}
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(90deg); opacity: 0; }
}

.guest-note {
  margin-top: 26px;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--mist);
}

/* upload results */
.results { width: min(760px, 100%); margin-top: 26px; display: grid; gap: 14px; text-align: start; }
.result {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .55), rgb(var(--c-sf1) / .7));
  border: 1px solid var(--line-2);
  animation: rise .5s var(--smooth);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--field);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--mist-2);
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-body { min-width: 0; display: grid; gap: 10px; align-content: start; }
.result-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.result-name { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.result-size { color: var(--mist-2); font-size: var(--fs-xs); white-space: nowrap; }
.result-state { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--mist); white-space: nowrap; }
.result-progress { height: 4px; border-radius: 2px; background: rgb(var(--c-hl) / .06); overflow: hidden; }
.result-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width .2s linear; }
.result-error { color: var(--pom-2); font-size: var(--fs-sm); }
.result-links { display: grid; gap: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.result.is-done .result-progress, .result.is-error .result-progress { display: none; }

.result-locked { position: relative; display: grid; gap: 8px; }
.locked-lines { display: grid; gap: 8px; filter: blur(5px); opacity: .55; user-select: none; pointer-events: none; }
.locked-lines span {
  display: block;
  height: 38px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--turq-2);
  padding: 0 12px;
  line-height: 38px;
  direction: ltr;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}
.locked-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  clip-path: var(--star);
  background: linear-gradient(135deg, rgb(var(--c-ac0)), var(--gold) 55%, var(--gold-3));
  color: rgb(var(--c-on));
  flex: none;
}
.seal .ic { width: 18px; height: 18px; stroke-width: 2; }
.seal-lg { width: 60px; height: 60px; }
.seal-lg .ic { width: 24px; height: 24px; }

@media (max-width: 600px) {
  .hero-title { font-size: var(--fs-2xl); }
  .result { grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; }
  .result-thumb { width: 64px; height: 64px; }
  .locked-cta { position: relative; inset: auto; margin-top: -86px; }
}

/* =========================================================
   Dialogs, toasts
   ========================================================= */

dialog.dlg {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: 26px;
  border: 1px solid rgb(var(--c-ac) / .28);
  background: linear-gradient(180deg, rgb(var(--c-sf1)), rgb(var(--c-sf1)));
  color: var(--parch);
  box-shadow: 0 40px 90px -30px rgb(var(--c-sh) / calc(.95 * var(--sha)));
  overflow: auto;
}
dialog.dlg::backdrop { background: rgb(var(--c-bg0) / .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.dlg[open] { animation: dlg-in .45s var(--spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-body { padding: 26px 24px 22px; }
.dlg-head { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: 18px; }
.dlg-head h2 { font-size: var(--fs-xl); line-height: 1.4; }
.dlg-head p { color: var(--mist); font-size: var(--fs-sm); }
.dlg-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.dlg-msg { color: var(--mist); }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--field);
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
}
.tabs button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--mist);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink-3); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .28); }
.form-error {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: rgb(var(--c-bad) / .1);
  border: 1px solid rgb(var(--c-bad) / .35);
  color: rgb(var(--c-badtx));
  font-size: var(--fs-sm);
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(440px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgb(var(--c-sf1) / .96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -18px rgb(var(--c-sh) / calc(.9 * var(--sha)));
  font-size: var(--fs-sm);
  pointer-events: auto;
  animation: toast-in .45s var(--spring);
}
.toast .ic { width: 18px; height: 18px; color: var(--gold); }
.toast.success .ic { color: var(--pist); }
.toast.error .ic { color: var(--pom); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 859px) { .toasts { bottom: calc(var(--dock-h, 78px) + 10px); } }

/* =========================================================
   Auth pages
   ========================================================= */

.auth-wrap { display: grid; place-items: center; padding: 20px 0 30px; }
.auth-card { width: min(440px, 100%); }
.auth-card .panel { padding: 30px 26px 24px; border-color: var(--line); }
.auth-head { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: 22px; }
.auth-head h1 { font-size: var(--fs-xl); }
.auth-head p { color: var(--mist); font-size: var(--fs-sm); }
.auth-alt { text-align: center; margin-top: 18px; color: var(--mist); font-size: var(--fs-sm); }
.emblem { width: 76px; height: 76px; filter: drop-shadow(0 6px 22px rgb(var(--c-ac) / .3)); }

/* =========================================================
   View page
   ========================================================= */

.ad-slot { margin: 0 auto 18px; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot:empty { display: none; }

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) { .viewer { grid-template-columns: minmax(0, 1fr); } }      /* never wider than the phone, whatever the zoom bar would like */

.frame {
  position: relative;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgb(var(--c-bg0) / .7), rgb(var(--c-bg0) / .5));
  border: 1px solid rgb(var(--c-ac) / .45);
  box-shadow: inset 0 0 0 5px rgb(var(--c-bg1) / .9), inset 0 0 0 6px rgb(var(--c-ac) / .25), 0 30px 60px -30px rgb(var(--c-sh) / calc(.9 * var(--sha)));
}
.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  clip-path: var(--star);
  background: var(--gold);
}
.frame-corner.tl { top: -8px; left: -8px; }
.frame-corner.tr { top: -8px; right: -8px; }
.frame-corner.bl { bottom: -8px; left: -8px; }
.frame-corner.br { bottom: -8px; right: -8px; }
.frame-img {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    conic-gradient(rgb(var(--c-hl) / .03) 25%, transparent 0 50%, rgb(var(--c-hl) / .03) 0 75%, transparent 0) 0 0 / 22px 22px;
  cursor: zoom-in;
}
.frame-img img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.shield { position: absolute; inset: 0; }

.viewer-side { display: grid; gap: 14px; }
.v-title { font-size: var(--fs-xl); line-height: 1.45; overflow-wrap: anywhere; }
.v-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: var(--fs-sm); }
.v-meta dt { color: var(--mist-2); }
.v-meta dd { margin: 0; color: var(--parch); }
.v-actions { display: grid; gap: 10px; }
.v-cta { text-align: center; margin-top: 30px; color: var(--mist); }

/* =========================================================
   Dashboard — images
   ========================================================= */

.summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, rgb(var(--c-sf3) / .55), rgb(var(--c-sf1) / .65));
  border: 1px solid var(--line);
}
.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgb(var(--c-hl) / .07); stroke-width: 9; }
.ring .val { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s var(--smooth); }
.ring.warn .val { stroke: var(--pom); }
.ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-lg); color: var(--gold-2); }
.quota-txt b { font-weight: 400; font-size: var(--fs-lg); display: block; }
.quota-txt span { color: var(--mist); font-size: var(--fs-sm); }
.sum-stats { display: flex; gap: 26px; }
.sum-stat { display: grid; text-align: center; }
.sum-stat b { font-weight: 400; font-size: var(--fs-xl); line-height: 1.3; color: var(--parch); }
.sum-stat span { font-size: var(--fs-xs); color: var(--mist); }
@media (max-width: 760px) {
  .summary { grid-template-columns: auto 1fr; padding: 16px; gap: 14px 16px; }
  .ring { width: 78px; height: 78px; }
  .sum-stats { grid-column: 1 / -1; justify-content: space-around; padding-top: 12px; border-top: 1px solid var(--line-2); }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.search { position: relative; flex: 0 1 300px; }
.search .ic { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--mist-2); width: 18px; height: 18px; pointer-events: none; }
.search input { height: 44px; padding-inline-start: 40px; }
@media (max-width: 600px) { .search { flex: 1 1 100%; } }

.img-list { display: grid; gap: 12px; }
.irow {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .45), rgb(var(--c-sf1) / .6));
  border: 1px solid var(--line-2);
  transition: border-color .25s, opacity .3s, transform .3s;
}
.irow:hover { border-color: rgb(var(--c-ac) / .25); }
.irow.is-new { border-color: rgb(var(--c-ac) / .55); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .08); }
.irow.is-gone { opacity: 0; transform: scale(.98); }
.irow-thumb {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--field);
  border: 1px solid var(--line);
}
.irow-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--smooth); }
.irow-thumb:hover img { transform: scale(1.06); }
.irow-main { min-width: 0; display: grid; gap: 8px; }
.irow-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.irow-title h3 { font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.irow-title .icon-btn { width: 28px; height: 28px; border-color: transparent; }
.irow-title .icon-btn .ic { width: 15px; height: 15px; }
.irow-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.irow-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.irow-side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

.statbtn {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 12px;
  align-items: center;
  padding: 9px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--parch);
  background: rgb(var(--c-ac) / .06);
  border: 1px solid var(--line);
  transition: background-color .2s, border-color .2s;
}
.statbtn:hover { color: var(--parch); background: rgb(var(--c-ac) / .13); border-color: rgb(var(--c-ac) / .45); }
.statbtn .sb { display: grid; justify-items: center; line-height: 1.35; }
.statbtn .sb b { font-weight: 400; font-size: var(--fs-lg); }
.statbtn .sb span { font-size: .7rem; color: var(--mist); }
.statbtn .sb-go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; padding-top: 5px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--gold-2); }
.statbtn .sb-go .ic { width: 15px; height: 15px; }
.irow-side .icon-btn { width: 100%; }

@media (max-width: 860px) {
  .irow { grid-template-columns: 84px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .irow-thumb { width: 84px; height: 84px; }
  .irow-links { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .irow-main { display: contents; }
  .irow-head { min-width: 0; display: grid; gap: 6px; align-content: center; }
  .irow-side { grid-column: 1 / -1; flex-direction: row; }
  .statbtn { flex: 1; grid-template-columns: auto auto auto; justify-content: space-between; }
  .statbtn .sb-go { grid-column: auto; margin: 0; padding: 0; border: 0; }
  .irow-side .icon-btn { width: 52px; height: auto; }
}
@media (min-width: 861px) { .irow-head { display: grid; gap: 6px; min-width: 0; } }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--mist);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.pager a:hover { color: var(--gold-2); border-color: var(--line); }
.pager .is-on { color: var(--ink-0); background: var(--gold); border-color: var(--gold); }

/* =========================================================
   Stats page
   ========================================================= */

.stats-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.stats-head .thumb {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--field);
}
.stats-head .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-head h1 { font-size: var(--fs-xl); line-height: 1.4; overflow-wrap: anywhere; }
.stats-head .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.stats-head .linkfield { max-width: 560px; }
@media (max-width: 600px) {
  .stats-head { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .stats-head .thumb { width: 76px; height: 76px; border-radius: 14px; }
}
.range-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgb(var(--c-sf1) / .7);
  border: 1px solid var(--line-2);
  display: grid;
  gap: 2px;
}
.kpi span { font-size: var(--fs-xs); color: var(--mist); }
.kpi b { font-weight: 400; font-size: var(--fs-2xl); line-height: 1.25; color: var(--parch); }
.kpi small { font-size: .75rem; color: var(--mist-2); }
.kpi.lead { background: linear-gradient(140deg, rgb(var(--c-ac) / .2), rgb(var(--c-sf1) / .6)); border-color: var(--line); }
.kpi.lead b { color: var(--gold-2); }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi.lead { grid-column: 1 / -1; } }

.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgb(var(--c-tx2) / .1); }
.chart .axis text { fill: var(--mist-2); font-size: 11px; font-family: "Yekan Bakh", Tahoma, sans-serif; }
.chart .line-v { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-d { fill: none; stroke: var(--turq); stroke-width: 2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.chart .hover-line { stroke: rgb(var(--c-ac2) / .45); stroke-width: 1; }
.chart .dot-v { fill: var(--gold-2); }
.chart .dot-d { fill: var(--turq-2); }
.chart-tip {
  position: absolute;
  top: 0;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgb(var(--c-bg1) / .96);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.7;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .15s;
}
.chart-tip.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: var(--fs-xs); color: var(--mist); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-inline-end: 6px; }
.legend .lv { background: var(--gold); }
.legend .ld { background: var(--turq); }

.map-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }
.worldmap { position: relative; }
.worldmap svg { width: 100%; height: auto; display: block; }
.worldmap circle { fill: rgb(var(--c-tx2) / .16); transition: fill .3s; }
.worldmap circle.hit { cursor: pointer; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: var(--fs-sm); }
.bars .b-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bars .b-val { color: var(--mist); font-size: var(--fs-xs); }
.bars .b-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgb(var(--c-hl) / .05); overflow: hidden; }
.bars .b-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(270deg, var(--turq), rgb(var(--c-al) / .45)); transform-origin: right; animation: grow .9s var(--smooth); }
.bars li:first-child .b-track i { background: linear-gradient(270deg, var(--gold), rgb(var(--c-ac) / .45)); }
[dir="ltr"] .bars .b-track i { transform-origin: left; background: linear-gradient(90deg, var(--turq), rgb(var(--c-al) / .45)); }
[dir="ltr"] .bars li:first-child .b-track i { background: linear-gradient(90deg, var(--gold), rgb(var(--c-ac) / .45)); }
@keyframes grow { from { transform: scaleX(0); } }
.flag { font-size: 1.15rem; line-height: 1; }
.cc {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 20px;
  border-radius: 5px;
  font-family: var(--latin);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--ink-0);
  background: var(--mist);
}
.bars-empty { color: var(--mist-2); font-size: var(--fs-sm); }

.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.3; }
.donut-c b { font-weight: 400; font-size: var(--fs-xl); display: block; }
.donut-c span { font-size: var(--fs-xs); color: var(--mist); }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.keys li { display: flex; align-items: center; gap: 8px; }
.keys i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.keys span { margin-inline-start: auto; color: var(--mist); font-size: var(--fs-xs); }
@media (max-width: 400px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .keys { width: 100%; } }

.heat { overflow-x: auto; padding-bottom: 4px; }
.heat-grid {
  display: grid;
  grid-template-columns: 74px repeat(24, minmax(14px, 1fr));
  gap: 3px;
  min-width: 560px;
  font-size: .7rem;
  color: var(--mist-2);
}
.heat-grid .hl { display: flex; align-items: center; font-size: .75rem; color: var(--mist); }
.heat-grid .hc { aspect-ratio: 1; border-radius: 4px; background: rgb(var(--c-hl) / .04); }
.heat-grid .hh { text-align: center; }
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.insight { padding: 12px 14px; border-radius: 14px; background: rgb(var(--c-bg0) / .4); border: 1px solid var(--line-2); font-size: var(--fs-sm); }
.insight span { display: block; font-size: var(--fs-xs); color: var(--mist-2); }

.table-wrap { position: relative; overflow-x: auto; }      /* positioned, so hidden labels inside (.sr-only) are clipped with the table instead of widening the page */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: start; font-weight: 400; color: var(--mist-2); font-size: var(--fs-xs); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid rgb(var(--c-tx2) / .07); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { white-space: nowrap; }
.credit { margin-top: 20px; text-align: center; font-size: var(--fs-xs); color: var(--mist-2); }
.credit a { color: var(--mist); }

.skeleton { border-radius: 14px; background: linear-gradient(90deg, rgb(var(--c-hl) / .03), rgb(var(--c-hl) / .07), rgb(var(--c-hl) / .03)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.stats-empty { margin-bottom: 18px; }

/* =========================================================
   File requests
   ========================================================= */

.req-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .req-layout { grid-template-columns: 1fr; } }
.req-form { position: sticky; top: 100px; }
@media (max-width: 960px) { .req-form { position: static; } }
.req-list { display: grid; gap: 14px; }
.req {
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .45), rgb(var(--c-sf1) / .62));
  border: 1px solid var(--line-2);
  display: grid;
  gap: 12px;
  scroll-margin-top: 110px;
}
.req.is-target { border-color: rgb(var(--c-ac) / .6); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .08); }
.req-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.req-top h3 { font-size: var(--fs-lg); line-height: 1.45; overflow-wrap: anywhere; }
.req-desc { color: var(--mist); font-size: var(--fs-sm); }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.received {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgb(var(--c-bg0) / .42);
  border: 1px solid var(--line);
}
.received img { width: 72px; height: 72px; object-fit: cover; border-radius: 11px; display: block; }
.received .r-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.received .r-who { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-xs); color: var(--mist); }
.received .r-who span { display: inline-flex; align-items: center; gap: 4px; }
.received .r-who .ic { width: 13px; height: 13px; }
.received .r-msg { font-size: var(--fs-sm); color: var(--parch); margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: rgb(var(--c-hl) / .04); }
.received .r-act { display: flex; gap: 6px; }
@media (max-width: 600px) { .received { grid-template-columns: 60px minmax(0, 1fr); } .received img { width: 60px; height: 60px; } .received .r-act { grid-column: 1 / -1; } }

/* public request page */
.req-public { width: min(640px, 100%); margin: 0 auto; display: grid; gap: 18px; text-align: center; }
.req-public .panel { text-align: start; }
.req-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.req-card-head h1 { font-size: var(--fs-xl); line-height: 1.4; }
.req-from { color: var(--mist); font-size: var(--fs-sm); }
.req-public .medallion { width: clamp(220px, 62vw, 300px); margin: 10px auto 8px; }
.state-box { display: grid; justify-items: center; gap: 12px; padding: 30px 20px; }
.state-box h2 { font-size: var(--fs-xl); }
.state-box p { color: var(--mist); max-width: 44ch; }

/* =========================================================
   Notifications
   ========================================================= */

.notes { display: grid; gap: 10px; }
.note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgb(var(--c-sf1) / .6);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--parch);
}
.note:hover { color: var(--parch); border-color: var(--line); }
.note.unread { background: linear-gradient(90deg, rgb(var(--c-ac) / .1), rgb(var(--c-sf1) / .6)); border-color: rgb(var(--c-ac) / .35); }
.note-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgb(var(--c-al) / .12); color: var(--turq-2); }
.note-ic.quota { background: rgb(var(--c-bad) / .12); color: var(--pom-2); }
.note b { font-weight: 400; display: block; }
.note p { color: var(--mist); font-size: var(--fs-sm); }
.note time { font-size: var(--fs-xs); color: var(--mist-2); white-space: nowrap; }

/* =========================================================
   Account
   ========================================================= */

.acct { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .acct { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--mist-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* =========================================================
   Admin
   ========================================================= */

.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .search { flex: 1 1 260px; }
.filters select { height: 44px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-2); color: var(--parch); padding: 0 12px; }

.utbl td .u-main { display: grid; line-height: 1.6; min-width: 0; }
.utbl td .u-main a { color: var(--parch); text-decoration: none; }
.utbl td .u-main a:hover { color: var(--gold-2); }
.utbl .ltrv { direction: ltr; unicode-bidi: isolate; font-family: var(--latin); font-size: .85rem; color: var(--mist); }
.usage { min-width: 120px; }
.usage-bar { height: 5px; border-radius: 3px; background: rgb(var(--c-hl) / .06); overflow: hidden; margin-top: 4px; }
.usage-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.usage-bar.warn i { background: var(--pom); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }

@media (max-width: 860px) {
  .utbl thead { display: none; }
  .utbl, .utbl tbody, .utbl tr, .utbl td { display: block; width: 100%; }
  .utbl tr { padding: 14px; margin-bottom: 12px; border-radius: 16px; background: rgb(var(--c-sf1) / .6); border: 1px solid var(--line-2); }
  .utbl td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
  .utbl td::before { content: attr(data-l); color: var(--mist-2); font-size: var(--fs-xs); }
  .utbl td.u-cell::before { content: none; }
  .row-actions { justify-content: flex-start; margin-top: 6px; }
}

.user-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.user-hero h1 { font-size: var(--fs-xl); overflow-wrap: anywhere; }
.user-hero .sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tcard { border-radius: 14px; overflow: hidden; background: rgb(var(--c-bg0) / .4); border: 1px solid var(--line-2); }
.tcard img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tcard .tc-b { padding: 8px 10px; font-size: var(--fs-xs); display: grid; gap: 6px; }
.tcard .tc-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tcard .tc-a { display: flex; gap: 6px; justify-content: space-between; align-items: center; }
.tcard form { margin: 0; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.sticky-save {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-block: 10px;
  padding-inline: 16px 10px;
  border-radius: 18px;
  background: rgb(var(--c-bg1) / .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgb(var(--c-sh) / calc(.9 * var(--sha)));
  font-size: var(--fs-sm);
  color: var(--mist);
}
/* phones: the bar stands on the bottom menu */
@media (max-width: 859px) {
  .sticky-save { bottom: calc(var(--dock-h, 78px) + 4px); }
}
/* a phone has no room beside the button for the hint: the button takes the bar */
@media (max-width: 600px) { .sticky-save { padding: 8px; } .sticky-save > span { display: none; } .sticky-save > .btn { flex: 1; } }

/* an update whose files did not all arrive: said on every admin page until it is put right */
.upd-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 16px; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.9;
  color: rgb(var(--c-badtx)); background: rgb(var(--c-bad) / .09); border: 1px solid rgb(var(--c-bad) / .4); }
.upd-bar > .ic { width: 22px; height: 22px; flex: none; }
.upd-bar > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.upd-bar bdi { font-size: var(--fs-xs); }
.upd-bar .btn { flex: none; }
@media (max-width: 600px) {
  .upd-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 12px 14px; }
  .upd-bar > .ic { margin-top: 4px; }
  .upd-bar .btn { grid-column: 1 / -1; justify-self: end; }
}

/* errors & rules */
.error-page { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 0; }
.error-code { font-size: 5rem; line-height: 1; color: var(--gold-2); text-shadow: 0 0 40px rgb(var(--c-ac) / .45); }
.error-page p { color: var(--mist); max-width: 44ch; }
.rules { max-width: 70ch; margin: 0 auto; }
.rules ol { padding-inline-start: 22px; display: grid; gap: 10px; }

/* =========================================================
   Motion preferences
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .m-draw { stroke-dashoffset: 0; }
  .m-ring { opacity: 1; }
  @view-transition { navigation: none; }
}

/* =========================================================
   API keys (account) and API docs (admin)
   ========================================================= */

.keylist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.keyrow {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgb(var(--c-bg0) / .4);
  border: 1px solid var(--line-2);
  transition: opacity .3s;
}
.key-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgb(var(--c-ac) / .12); color: var(--gold-2); }
.key-main { display: grid; min-width: 0; line-height: 1.6; }
.key-main b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"] .key-main b { font-weight: 500; }
.key-hint { font-family: var(--mono); font-size: .8rem; color: var(--turq-2); direction: ltr; text-align: start; }
.key-main small { color: var(--mist-2); font-size: .78rem; display: flex; flex-wrap: wrap; gap: 0 10px; }
.key-main .sep::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 2px 2px; border-radius: 50%; background: var(--mist-2); vertical-align: middle; }
.key-form { display: flex; gap: 10px; }
.key-form .input { flex: 1; height: 46px; min-width: 0; }
@media (max-width: 520px) { .key-form { flex-direction: column; } .key-form .input { flex: none; } }
.dlg-key { width: min(480px, calc(100% - 24px)); }
.key-qr {
  width: 196px;
  height: 196px;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(227, 183, 94, .25);
}
.key-qr svg { display: block; width: 100%; height: 100%; }
.key-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: var(--fs-sm); color: rgb(var(--c-gtx)); }
.key-warn .ic { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.docs-toc { position: sticky; top: 100px; display: grid; gap: 2px; padding: 12px; }
.docs-toc a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--mist); text-decoration: none; font-size: var(--fs-sm); }
.docs-toc a:hover { color: var(--gold-2); background: rgb(var(--c-ac) / .07); }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; display: flex; flex-wrap: wrap; }
}
.docs-body p { color: var(--parch); max-width: 75ch; }
.docs-list { margin: 10px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--parch); }
.docs-list li::marker { color: var(--gold); }
.docs-h3 { font-size: var(--fs-md); margin: 20px 0 10px; color: var(--gold-2); }
.code { position: relative; margin-top: 10px; }
.code pre {
  margin: 0;
  padding: 16px;
  max-height: 560px;
  overflow: auto;
  border-radius: 14px;
  background: #060B1F;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.65;
  color: #D7E2FF;
  direction: ltr;
  text-align: left;
  tab-size: 4;
}
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgb(var(--c-sf2) / .92);
  color: var(--turq-2);
  font-size: .75rem;
  cursor: pointer;
}
.code-copy .ic { width: 14px; height: 14px; }
.code-copy.is-done { color: var(--pist); }
.method { display: inline-block; min-width: 62px; text-align: center; padding: 2px 8px; border-radius: 7px; font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.m-get { background: rgb(var(--c-al) / .14); color: var(--turq-2); }
.m-post { background: rgb(var(--c-ac) / .14); color: var(--gold-2); }
.m-patch { background: rgb(var(--c-x) / .16); color: rgb(var(--c-x)); }
.m-delete { background: rgb(var(--c-bad) / .14); color: var(--pom-2); }
.endpoints td { vertical-align: top; }
/* the guide's endpoint groups (account, images, recycle bin, albums) */
.endpoints .ep-group th { padding: 14px 12px 6px; text-align: start; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-2); background: transparent; border-bottom: 1px solid rgb(var(--c-ac) / .25); }
.endpoints tbody:first-of-type .ep-group th { padding-top: 6px; }
/* a phone: each path on its own — method and path on one line, what it does under them (a third column would be a sliver) */
@media (max-width: 640px) {
  .endpoints thead { display: none; }
  .endpoints, .endpoints tbody, .endpoints tr, .endpoints th, .endpoints td { display: block; }
  .endpoints tr:not(.ep-group) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 10px 2px; border-bottom: 1px solid rgb(var(--c-tx2) / .07); }
  .endpoints tr:not(.ep-group) td { padding: 0; border: 0; }
  .endpoints tr:not(.ep-group) td:nth-child(2) { overflow-wrap: anywhere; }
  .endpoints tr:not(.ep-group) td:nth-child(3) { grid-column: 1 / -1; color: var(--parch); }
  /* the error codes the same way: code and status on one line, the meaning under them */
  .errcodes thead { display: none; }
  .errcodes, .errcodes tbody, .errcodes td { display: block; }
  .errcodes tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 2px; border-bottom: 1px solid rgb(var(--c-tx2) / .07); }
  .errcodes td { padding: 0; border: 0; }
  .errcodes td:nth-child(1) { overflow-wrap: anywhere; font-weight: 700; }
  .errcodes td:nth-child(3) { grid-column: 1 / -1; }
}
/* under a feature in the guide: what the reader's plan gives (a user) or where it is set (an admin) */
.docs-plan { display: inline-flex; align-items: flex-start; gap: 7px; margin: 0 0 12px; padding: 6px 12px; border-radius: 12px; font-size: var(--fs-xs); line-height: 1.7; color: var(--gold-2); background: rgb(var(--c-ac) / .09); border: 1px solid rgb(var(--c-ac) / .2); }
.docs-plan .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* =========================================================
   v3 · power & magic
   ========================================================= */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root { --page-max: 1520px; --bar-max: 1440px; }
.main, .foot { width: min(var(--page-max), 100% - 64px); }
@media (max-width: 859px) { .main, .foot { width: min(var(--page-max), 100% - 24px); } }

/* fields in a row never push each other up or down */
.field { align-content: start; }
.row-2 { align-items: start; }

/* ---------- living cosmos ---------- */
.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* The glow is all gradient: a blur filter on these huge layers cost more than everything else on the page put together. */
.aur { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; animation: aur-drift 36s ease-in-out infinite alternate; }
.aur.a1 { width: 70vmax; height: 50vmax; top: -24vmax; inset-inline-start: -14vmax; background: radial-gradient(closest-side, rgb(var(--c-deep) / .8), transparent); }
.aur.a2 { width: 60vmax; height: 46vmax; bottom: -26vmax; inset-inline-end: -16vmax; background: radial-gradient(closest-side, rgb(var(--c-al) / .38), transparent); animation-duration: 44s; }
.aur.a3 { width: 42vmax; height: 34vmax; top: 30%; inset-inline-start: 36%; background: radial-gradient(closest-side, rgb(var(--c-ac) / .2), transparent); animation-duration: 52s; animation-delay: -12s; }
@keyframes aur-drift { 50% { transform: translate(5vmax, 3vmax) scale(1.08); } 100% { transform: translate(-4vmax, 6vmax) scale(.95); } }
.stars { position: absolute; top: 0; left: 0; width: 1px; height: 1px; border-radius: 50%; background: transparent; }
.stars.s1 { box-shadow: 1852px 1146px rgb(var(--c-hl) / 0.77), 1850px 1040px rgb(var(--c-hl) / 0.77), 2096px 974px rgb(var(--c-hl) / 0.65), 385px 914px rgb(var(--c-ac2) / 0.47), 2598px 85px rgb(var(--c-hl) / 0.63), 1855px 1339px rgb(var(--c-hl) / 0.71), 2552px 30px rgb(var(--c-ac2) / 0.76), 146px 389px rgb(var(--c-hl) / 0.78), 1900px 668px rgb(var(--c-hl) / 0.54), 2126px 478px rgb(var(--c-hl) / 0.65), 348px 936px rgb(var(--c-hl) / 0.66), 2257px 170px rgb(var(--c-hl) / 0.69), 940px 1050px rgb(var(--c-ac2) / 0.46), 442px 820px rgb(var(--c-hl) / 0.36), 273px 34px rgb(var(--c-ac2) / 0.77), 859px 107px rgb(var(--c-hl) / 0.56), 1627px 859px rgb(var(--c-hl) / 0.34), 1105px 689px rgb(var(--c-hl) / 0.35), 1679px 1552px rgb(var(--c-hl) / 0.81), 413px 22px rgb(var(--c-hl) / 0.33), 727px 1396px rgb(var(--c-hl) / 0.61), 781px 1498px rgb(var(--c-hl) / 0.72), 1571px 238px rgb(var(--c-hl) / 0.52), 1px 552px rgb(var(--c-hl) / 0.78), 2427px 622px rgb(var(--c-ac2) / 0.85), 767px 807px rgb(var(--c-hl) / 0.85), 2363px 205px rgb(var(--c-hl) / 0.32), 1808px 528px rgb(var(--c-hl) / 0.31), 1213px 790px rgb(var(--c-ac2) / 0.34), 2386px 1303px rgb(var(--c-hl) / 0.43), 1522px 1274px rgb(var(--c-hl) / 0.55), 1981px 1176px rgb(var(--c-hl) / 0.37), 2569px 315px rgb(var(--c-hl) / 0.47), 2500px 510px rgb(var(--c-hl) / 0.7), 2576px 1134px rgb(var(--c-hl) / 0.41), 1976px 1236px rgb(var(--c-ac2) / 0.34), 446px 79px rgb(var(--c-hl) / 0.58), 1604px 526px rgb(var(--c-hl) / 0.53), 2011px 600px rgb(var(--c-hl) / 0.59), 281px 258px rgb(var(--c-hl) / 0.43), 2522px 1258px rgb(var(--c-hl) / 0.34), 835px 1533px rgb(var(--c-hl) / 0.31), 1825px 510px rgb(var(--c-hl) / 0.33), 1510px 1087px rgb(var(--c-hl) / 0.61), 1483px 283px rgb(var(--c-hl) / 0.79), 2137px 1196px rgb(var(--c-hl) / 0.82), 73px 972px rgb(var(--c-hl) / 0.8), 137px 43px rgb(var(--c-ac2) / 0.63), 275px 1496px rgb(var(--c-hl) / 0.47), 296px 154px rgb(var(--c-hl) / 0.55), 182px 1509px rgb(var(--c-hl) / 0.71), 1399px 720px rgb(var(--c-hl) / 0.35), 318px 854px rgb(var(--c-ac2) / 0.82), 2047px 1173px rgb(var(--c-hl) / 0.31), 1553px 1193px rgb(var(--c-ac2) / 0.31), 371px 1309px rgb(var(--c-hl) / 0.36), 1704px 1491px rgb(var(--c-hl) / 0.48), 2379px 937px rgb(var(--c-hl) / 0.54), 343px 1062px rgb(var(--c-ac2) / 0.71), 2462px 179px rgb(var(--c-hl) / 0.56), 462px 1018px rgb(var(--c-hl) / 0.73), 1991px 523px rgb(var(--c-hl) / 0.79), 586px 1388px rgb(var(--c-hl) / 0.64), 1402px 1351px rgb(var(--c-hl) / 0.81), 989px 669px rgb(var(--c-hl) / 0.52), 2597px 882px rgb(var(--c-hl) / 0.74), 820px 438px rgb(var(--c-hl) / 0.51), 1296px 429px rgb(var(--c-hl) / 0.37), 166px 1456px rgb(var(--c-hl) / 0.34), 692px 231px rgb(var(--c-hl) / 0.55), 876px 847px rgb(var(--c-hl) / 0.51), 1291px 1466px rgb(var(--c-hl) / 0.76), 1853px 656px rgb(var(--c-ac2) / 0.34), 2488px 84px rgb(var(--c-hl) / 0.67), 1450px 632px rgb(var(--c-hl) / 0.66), 556px 829px rgb(var(--c-ac2) / 0.55), 1091px 486px rgb(var(--c-hl) / 0.73), 2577px 236px rgb(var(--c-hl) / 0.55), 1510px 159px rgb(var(--c-hl) / 0.68), 1946px 524px rgb(var(--c-ac2) / 0.4), 1934px 1095px rgb(var(--c-hl) / 0.69), 1115px 1594px rgb(var(--c-hl) / 0.49), 2131px 1024px rgb(var(--c-hl) / 0.64), 1611px 1621px rgb(var(--c-hl) / 0.68), 1681px 1479px rgb(var(--c-hl) / 0.51), 806px 1281px rgb(var(--c-ac2) / 0.79), 2252px 1164px rgb(var(--c-hl) / 0.66), 1405px 949px rgb(var(--c-hl) / 0.48), 405px 1478px rgb(var(--c-hl) / 0.78), 505px 436px rgb(var(--c-hl) / 0.43), 359px 634px rgb(var(--c-hl) / 0.6), 1312px 536px rgb(var(--c-hl) / 0.8), 1427px 1033px rgb(var(--c-hl) / 0.35), 2254px 863px rgb(var(--c-hl) / 0.72), 116px 447px rgb(var(--c-ac2) / 0.75), 143px 354px rgb(var(--c-hl) / 0.59), 575px 963px rgb(var(--c-hl) / 0.38), 2122px 1388px rgb(var(--c-hl) / 0.68), 2017px 1185px rgb(var(--c-ac2) / 0.82), 906px 899px rgb(var(--c-hl) / 0.59), 2300px 1308px rgb(var(--c-hl) / 0.39), 2293px 525px rgb(var(--c-hl) / 0.47), 2496px 426px rgb(var(--c-hl) / 0.47), 2231px 1073px rgb(var(--c-hl) / 0.45), 1683px 1097px rgb(var(--c-ac2) / 0.36), 1544px 56px rgb(var(--c-ac2) / 0.6), 1640px 1114px rgb(var(--c-hl) / 0.74), 2011px 190px rgb(var(--c-ac2) / 0.68), 2206px 939px rgb(var(--c-hl) / 0.53), 1655px 551px rgb(var(--c-hl) / 0.44), 1391px 888px rgb(var(--c-hl) / 0.8), 1951px 1075px rgb(var(--c-hl) / 0.47), 2530px 60px rgb(var(--c-hl) / 0.81), 93px 72px rgb(var(--c-hl) / 0.41), 1163px 659px rgb(var(--c-hl) / 0.7), 2043px 214px rgb(var(--c-hl) / 0.57), 2090px 1276px rgb(var(--c-hl) / 0.44), 2172px 894px rgb(var(--c-hl) / 0.31), 2168px 1261px rgb(var(--c-hl) / 0.39), 2585px 1093px rgb(var(--c-hl) / 0.65), 2223px 1252px rgb(var(--c-hl) / 0.62), 2571px 1659px rgb(var(--c-hl) / 0.49), 2470px 645px rgb(var(--c-hl) / 0.79), 796px 198px rgb(var(--c-hl) / 0.37), 361px 531px rgb(var(--c-hl) / 0.51), 1726px 1112px rgb(var(--c-hl) / 0.73), 1649px 1286px rgb(var(--c-ac2) / 0.68), 823px 1167px rgb(var(--c-hl) / 0.68), 1479px 236px rgb(var(--c-hl) / 0.69), 1406px 1029px rgb(var(--c-hl) / 0.85), 288px 987px rgb(var(--c-ac2) / 0.36), 2259px 1256px rgb(var(--c-hl) / 0.58), 600px 388px rgb(var(--c-hl) / 0.4), 647px 579px rgb(var(--c-ac2) / 0.81), 253px 275px rgb(var(--c-hl) / 0.82), 396px 669px rgb(var(--c-hl) / 0.51), 1452px 880px rgb(var(--c-hl) / 0.42), 2596px 1435px rgb(var(--c-hl) / 0.32), 1670px 929px rgb(var(--c-hl) / 0.5), 799px 1238px rgb(var(--c-hl) / 0.39), 63px 662px rgb(var(--c-hl) / 0.79), 2577px 828px rgb(var(--c-hl) / 0.61), 2394px 698px rgb(var(--c-hl) / 0.74), 476px 1524px rgb(var(--c-hl) / 0.71), 1661px 272px rgb(var(--c-hl) / 0.79), 1514px 1571px rgb(var(--c-hl) / 0.54), 847px 1479px rgb(var(--c-hl) / 0.4), 1235px 960px rgb(var(--c-hl) / 0.36), 2555px 101px rgb(var(--c-hl) / 0.43), 1224px 691px rgb(var(--c-hl) / 0.42), 745px 1091px rgb(var(--c-hl) / 0.34), 2038px 1315px rgb(var(--c-ac2) / 0.42), 1619px 1177px rgb(var(--c-hl) / 0.31), 970px 525px rgb(var(--c-hl) / 0.54), 800px 1327px rgb(var(--c-ac2) / 0.51), 1027px 564px rgb(var(--c-hl) / 0.8), 2080px 851px rgb(var(--c-hl) / 0.83), 408px 1306px rgb(var(--c-hl) / 0.54), 2250px 1223px rgb(var(--c-hl) / 0.67), 1582px 327px rgb(var(--c-hl) / 0.51), 2029px 1109px rgb(var(--c-ac2) / 0.64), 2025px 861px rgb(var(--c-hl) / 0.46), 1279px 748px rgb(var(--c-hl) / 0.59), 1104px 1148px rgb(var(--c-hl) / 0.81), 1212px 55px rgb(var(--c-hl) / 0.31), 175px 1296px rgb(var(--c-hl) / 0.39), 1597px 108px rgb(var(--c-hl) / 0.79), 205px 1191px rgb(var(--c-hl) / 0.84), 301px 1633px rgb(var(--c-hl) / 0.8), 1956px 513px rgb(var(--c-hl) / 0.84); opacity: .75; }
.stars.s2 { width: 2px; height: 2px; box-shadow: 2143px 201px rgb(var(--c-hl) / 0.97), 1918px 295px rgb(var(--c-hl) / 0.99), 2472px 1446px rgb(var(--c-hl) / 0.65), 1866px 241px rgb(var(--c-ac2) / 0.68), 2163px 316px rgb(var(--c-hl) / 0.65), 1707px 932px rgb(var(--c-hl) / 0.84), 1718px 745px rgb(var(--c-hl) / 0.91), 561px 594px rgb(var(--c-ac2) / 0.89), 466px 1030px rgb(var(--c-hl) / 0.96), 2559px 735px rgb(var(--c-hl) / 0.71), 2313px 1431px rgb(var(--c-hl) / 0.84), 980px 388px rgb(var(--c-hl) / 0.98), 802px 1399px rgb(var(--c-ac2) / 0.62), 1109px 531px rgb(var(--c-hl) / 0.77), 419px 455px rgb(var(--c-ac2) / 0.82), 354px 1385px rgb(var(--c-ac2) / 0.66), 1528px 991px rgb(var(--c-ac2) / 0.79), 1407px 1012px rgb(var(--c-hl) / 0.9), 304px 1643px rgb(var(--c-hl) / 0.65), 2554px 1574px rgb(var(--c-hl) / 0.91), 1057px 798px rgb(var(--c-hl) / 0.92), 2443px 666px rgb(var(--c-hl) / 0.72), 753px 875px rgb(var(--c-hl) / 0.86), 1892px 663px rgb(var(--c-ac2) / 0.63), 2311px 1163px rgb(var(--c-hl) / 0.79), 1224px 1686px rgb(var(--c-ac2) / 0.91), 873px 1355px rgb(var(--c-hl) / 0.84), 2026px 1484px rgb(var(--c-ac2) / 0.91), 585px 448px rgb(var(--c-hl) / 0.74), 1500px 240px rgb(var(--c-hl) / 0.73), 2436px 1407px rgb(var(--c-hl) / 0.97), 1248px 938px rgb(var(--c-hl) / 0.73), 2114px 508px rgb(var(--c-hl) / 0.63), 98px 744px rgb(var(--c-hl) / 0.87), 798px 1513px rgb(var(--c-hl) / 0.83), 2214px 317px rgb(var(--c-hl) / 0.93), 723px 183px rgb(var(--c-hl) / 0.9), 1152px 1662px rgb(var(--c-hl) / 0.61), 2228px 324px rgb(var(--c-hl) / 0.83), 1731px 131px rgb(var(--c-ac2) / 0.83), 2234px 172px rgb(var(--c-ac2) / 0.73), 431px 642px rgb(var(--c-hl) / 0.63), 589px 199px rgb(var(--c-hl) / 0.9), 1005px 1458px rgb(var(--c-hl) / 0.69), 2136px 692px rgb(var(--c-hl) / 0.91), 1383px 1653px rgb(var(--c-hl) / 0.99); animation: twinkle 4.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .12; } to { opacity: 1; } }
@media (max-width: 859px) { .aur { animation: none; } }

/* ---------- power hero (page headers) ---------- */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 30px;
  padding: 40px 44px; margin-bottom: 24px; border-radius: 34px;
  background: linear-gradient(125deg, rgb(var(--c-sf3) / .8), rgb(var(--c-sf1) / .74) 55%, rgb(var(--c-bg1) / .82));
  border: 1px solid rgb(var(--c-ac) / .32);
  box-shadow: 0 40px 90px -50px rgb(var(--c-sh) / calc(.95 * var(--sha))), inset 0 1px 0 rgb(var(--c-hl) / .07), inset 0 0 140px rgb(var(--c-deep) / .28);
}
.phero-rays {
  position: absolute; z-index: -1; width: 1200px; height: 1200px; top: 50%; inset-inline-end: -300px; margin-top: -600px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(var(--c-ac2) / .18) 0deg 1.4deg, transparent 1.4deg 8deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgb(var(--c-sh) / calc(.55 * var(--sha))) 22%, transparent 58%);
  mask: radial-gradient(circle, #000 0, rgb(var(--c-sh) / calc(.55 * var(--sha))) 22%, transparent 58%);
  animation: rays-spin 140s linear infinite;
}
.phero-rays::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 4deg, rgb(var(--c-al2) / .12) 0deg .6deg, transparent .6deg 13deg); animation: rays-spin 90s linear infinite reverse; }
.phero-rays::before { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c-ac2) / .5), rgb(var(--c-ac2) / .12) 55%, transparent); animation: flare 3.2s ease-in-out infinite alternate; }
.phero::after {
  content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; top: 50%; inset-inline-end: 60px; margin-top: -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--c-ac2) / .3), rgb(var(--c-ac) / .12) 42%, transparent 72%);
  animation: flare 6s ease-in-out infinite alternate;
}
.phero-shock {
  position: absolute; z-index: -1; width: 240px; height: 240px; top: 50%; inset-inline-end: 180px; margin-top: -120px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgb(var(--c-ac2) / .85); box-shadow: 0 0 40px rgb(var(--c-ac) / .6), inset 0 0 40px rgb(var(--c-ac) / .4);
  opacity: 0; animation: shock 1.9s cubic-bezier(.15, .7, .2, 1) .15s;
}
@keyframes rays-spin { to { transform: rotate(360deg); } }
@keyframes flare { from { opacity: .6; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
@keyframes shock { 0% { opacity: 1; transform: scale(.15); } 70% { opacity: .35; } 100% { opacity: 0; transform: scale(4.2); } }
@keyframes spin { to { transform: rotate(360deg); } }
.phero-main { display: grid; gap: 14px; justify-items: start; align-content: center; }
.phero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.2; color: rgb(var(--c-title)); text-shadow: 0 0 40px rgb(var(--c-ac) / .45), 0 4px 30px rgb(var(--c-sh) / calc(.5 * var(--sha))); }
html[lang="fa"] .phero h1 { line-height: 1.45; }
.phero-main > p { color: var(--mist); max-width: 58ch; }
.phero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0; }
.pstat { position: relative; min-width: 128px; padding: 12px 18px 14px; border-radius: 18px; background: rgb(var(--c-bg0) / .5); border: 1px solid rgb(var(--c-ac) / .2); overflow: hidden; }
.pstat b { display: block; font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.2; color: rgb(var(--c-glow)); text-shadow: 0 0 24px rgb(var(--c-ac) / .55); font-variant-numeric: tabular-nums; }
.pstat span { font-size: var(--fs-xs); color: var(--mist); }
.pstat::after { content: ""; position: absolute; inset-inline: 16px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.btn-lg { height: 52px; padding: 0 26px; font-size: var(--fs-md); border-radius: 16px; }
.phero-side { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; }
@media (max-width: 1000px) {
  .phero { grid-template-columns: 1fr; padding: 30px 22px; gap: 24px; }
  .phero-rays { top: auto; bottom: -440px; margin-top: 0; inset-inline-end: calc(50% - 600px); }
  .phero::after { top: auto; bottom: -80px; margin-top: 0; inset-inline-end: calc(50% - 240px); }
  .phero-shock { top: auto; bottom: 40px; margin-top: 0; inset-inline-end: calc(50% - 120px); }
}

/* ---------- mana orb (storage) ---------- */
.orb-wrap { position: relative; width: 250px; aspect-ratio: 1; flex: none; filter: drop-shadow(0 0 36px rgb(var(--c-al) / .28)); }
.orb-wrap.is-warn { filter: drop-shadow(0 0 40px rgb(var(--c-bad) / .38)); }
.orb-wrap.is-small { width: 150px; }
.orb { display: block; width: 100%; height: 100%; overflow: visible; }
.orb-ticks line { stroke: rgb(var(--c-tx2) / .2); stroke-width: 2.6; stroke-linecap: round; }
.orb-ticks line.on { stroke: rgb(var(--c-ac2)); filter: drop-shadow(0 0 3px rgb(var(--c-ac2) / .9)); animation: tick-on .45s var(--d) both; }
.is-warn .orb-ticks line.on { stroke: var(--pom-2); }
@keyframes tick-on { from { stroke: rgb(var(--c-tx2) / .2); filter: none; } }
.orb-rim { fill: none; stroke: rgb(var(--c-ac) / .6); stroke-width: 1.4; }
.orb-edge { fill: none; stroke: rgb(var(--c-al2) / .35); stroke-width: 1.2; }
.orb-deep { fill: rgb(var(--c-bg0)); }
.orb-liquid { animation: orb-fill 2.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes orb-fill { from { transform: translateY(236px); } }
.wave { animation: wave 3.6s linear infinite; }
.wave.w2 { animation-duration: 6.5s; animation-direction: reverse; opacity: .6; }
@keyframes wave { to { transform: translateX(92px); } }
.bub { fill: rgb(var(--c-hl) / .6); animation: bub 3.4s ease-in infinite; }
.bub:nth-of-type(2) { animation-delay: -1.1s; animation-duration: 4.2s; }
.bub:nth-of-type(3) { animation-delay: -2.3s; }
.bub:nth-of-type(4) { animation-delay: -.6s; animation-duration: 2.8s; }
@keyframes bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-70px); opacity: 0; } }
.orb-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.orb-center b { font-weight: 400; font-size: 2.4rem; line-height: 1.1; color: #fff; text-shadow: 0 2px 14px rgb(var(--c-sh) / calc(.75 * var(--sha))), 0 0 24px rgb(var(--c-al2) / .5); }
.orb-center span { font-size: var(--fs-xs); color: rgb(var(--c-link)); text-shadow: 0 1px 8px rgb(var(--c-sh) / calc(.8 * var(--sha))); }
.is-small .orb-center b { font-size: 1.5rem; }
html[lang="en"] .orb-center b { font-weight: 700; }
.storage-legend { display: grid; gap: 4px; min-width: 0; flex: 1 1 0; max-width: 320px; }
/* "37.9 MB" big and "of 100 GB" smaller: each part stays whole; when they don't fit side by side the second part
   moves under the first as one piece (the long version used to break into three or four ragged lines) */
.sl-big { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .4em; font-size: var(--fs-xl); line-height: 1.35; color: var(--parch); }
.sl-big > span { white-space: nowrap; }
.sl-of { font-size: var(--fs-md); font-weight: 500; color: var(--mist); }
/* the gauge gives up width before the numbers do */
.storage-side { container-type: inline-size; gap: clamp(16px, 6cqi, 28px); }
.storage-side .orb-wrap { width: clamp(150px, 46cqi, 250px); }
.storage-side .orb-center b { font-size: clamp(1.6rem, 9.4cqi, 2.4rem); }
@container (max-width: 360px) { .storage-side { flex-direction: column; } .storage-side .storage-legend { width: 100%; flex: none; max-width: none; } }
.sl-free { color: var(--mist); font-size: var(--fs-sm); }
.split-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgb(var(--c-hl) / .07); margin: 12px 0 8px; box-shadow: inset 0 0 0 1px rgb(var(--c-hl) / .05); }
.split-bar i { height: 100%; }
.sp-up { background: linear-gradient(90deg, var(--gold-3), var(--gold)); }
.sp-api { background: linear-gradient(90deg, rgb(var(--c-x)), rgb(var(--c-x))); }
.sp-req { background: linear-gradient(90deg, rgb(var(--c-al3)), var(--turq)); }
.split-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--mist); }
.split-keys li { display: flex; align-items: center; gap: 8px; }
.split-keys li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.split-keys li span { margin-inline-start: auto; color: var(--parch); }
@media (max-width: 640px) { .storage-side { flex-direction: column; } .storage-legend { width: 100%; flex: none; max-width: none; } .storage-side .orb-wrap { width: min(250px, 78cqi); } .storage-side .orb-center b { font-size: 2.4rem; } }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, rgb(var(--c-sf2) / .7), rgb(var(--c-sf1) / .9)); border: 1px solid var(--line-2); transition: transform .4s var(--spring), border-color .3s, box-shadow .3s; }
.gcard:hover { transform: translateY(-5px); border-color: rgb(var(--c-ac) / .5); box-shadow: 0 30px 70px -36px rgb(var(--c-ac) / .55); }
.gthumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: conic-gradient(rgb(var(--c-hl) / .03) 25%, transparent 0 50%, rgb(var(--c-hl) / .03) 0 75%, transparent 0) 0 0 / 22px 22px, rgb(var(--c-bg0)); }
.gthumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--smooth); }
.gcard:hover .gthumb img { transform: scale(1.07); }
.gthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--c-bg0) / .25), transparent 35%, transparent 55%, rgb(var(--c-bg0) / .9)); pointer-events: none; }
.gstats { position: absolute; z-index: 1; inset-inline-start: 14px; bottom: 12px; display: flex; gap: 8px; }
.gstats span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgb(var(--c-bg0) / .72); border: 1px solid rgb(var(--c-hl) / .08); font-size: var(--fs-xs); color: var(--parch); }
.gstats .ic { width: 15px; height: 15px; color: var(--gold-2); }
.gsrc { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; background: rgb(var(--c-bg0) / .78); }
.gbody { display: grid; gap: 10px; padding: 16px 18px 18px; }
.glinks { display: grid; gap: 8px; }
.gfoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.gfoot .icon-btn { margin-inline-start: auto; }
.pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager-row .pager { margin: 0; }
.pager-info { color: var(--mist); font-size: var(--fs-sm); }
.pager a, .pager span { border-radius: 14px; }
.pager .is-on { box-shadow: 0 0 24px rgb(var(--c-ac) / .55); }

/* ---------- requests: portals ---------- */
.big-portal { position: relative; width: 290px; aspect-ratio: 1; }
.bp-ring { position: absolute; border-radius: 50%; border: 1px solid rgb(var(--c-ac) / .4); }
.bp-ring.r1 { inset: 0; border-style: dashed; animation: spin 40s linear infinite; }
.bp-ring.r2 { inset: 22px; border: 2px solid rgb(var(--c-al) / .55); border-top-color: transparent; border-bottom-color: transparent; animation: spin 18s linear infinite reverse; }
.bp-ring.r3 { inset: 42px; border: 3px solid rgb(var(--c-ac2) / .6); border-left-color: transparent; border-right-color: rgb(var(--c-ac2) / .15); animation: spin 9s linear infinite; }
.bp-swirl { position: absolute; inset: 56px; border-radius: 50%; filter: blur(5px); animation: spin 3.4s linear infinite;
  background: conic-gradient(from 0deg, rgb(var(--c-al) / 0), rgb(var(--c-al) / .9), rgb(var(--c-ac) / 0) 32%, rgb(var(--c-ac2) / .95) 52%, rgb(var(--c-al) / 0) 72%, rgb(var(--c-al2) / .9));
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 44%); mask: radial-gradient(circle, transparent 38%, #000 44%); }
.bp-core { position: absolute; inset: 88px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgb(var(--c-sf3)), rgb(var(--c-bg0)) 75%); box-shadow: 0 0 0 2px rgb(var(--c-ac2) / .7), 0 0 60px rgb(var(--c-al) / .55), inset 0 0 30px rgb(var(--c-sh) / calc(.7 * var(--sha))); }
.bp-cat { width: 66%; height: auto; filter: drop-shadow(0 0 12px rgb(var(--c-al2) / .7)); }
.bp-spark { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; clip-path: var(--star); background: var(--gold-2); filter: drop-shadow(0 0 6px #fff); animation: orbit 7s linear infinite; }
.bp-spark.s2 { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--turq-2); animation-duration: 11s; animation-direction: reverse; }
.bp-spark.s3 { width: 10px; height: 10px; margin: -5px 0 0 -5px; animation-duration: 9s; animation-delay: -4s; }
@keyframes orbit { from { transform: rotate(0deg) translateX(138px) rotate(0deg); } to { transform: rotate(360deg) translateX(138px) rotate(-360deg); } }

.req-layout2 { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1060px) { .req-layout2 { grid-template-columns: 1fr; } }
.summon { position: sticky; top: 100px; overflow: hidden; isolation: isolate; padding: 26px; border-radius: 30px; border: 1px solid transparent;
  background: linear-gradient(165deg, rgb(var(--c-sf2)), rgb(var(--c-sf1)) 60%, rgb(var(--c-sf1))) padding-box, conic-gradient(from var(--ang), rgb(var(--c-al) / .15), rgb(var(--c-al) / .85) 10%, rgb(var(--c-ac) / .75) 22%, rgb(var(--c-al) / .15) 34%, rgb(var(--c-al) / .15)) border-box;
  animation: ang-spin 8s linear infinite; }
@media (max-width: 1060px) { .summon { position: relative; top: auto; } }
.summon-circle { position: absolute; z-index: -1; width: 340px; height: 340px; top: -170px; inset-inline-end: -170px; opacity: .55; border-radius: 50%; border: 1px dashed rgb(var(--c-ac) / .4);
  box-shadow: inset 0 0 0 28px rgb(var(--c-ac) / .035), inset 0 0 0 29px rgb(var(--c-ac) / .2), inset 0 0 0 72px rgb(var(--c-al) / .03), inset 0 0 0 73px rgb(var(--c-al) / .2);
  animation: spin 70s linear infinite; transition: box-shadow .4s; }
.summon-circle::after { content: ""; position: absolute; inset: 96px; clip-path: var(--star); background: rgb(var(--c-ac) / .1); }
.summon.is-summoning .summon-circle { opacity: 1; animation-duration: 1.4s; box-shadow: inset 0 0 0 28px rgb(var(--c-ac) / .12), inset 0 0 0 29px rgb(var(--c-ac2) / .9), inset 0 0 0 72px rgb(var(--c-al) / .1), inset 0 0 0 73px rgb(var(--c-al2) / .9); }
.summon.is-summoning::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at 50% 100%, rgb(var(--c-ac2) / .6), transparent 62%); animation: summon-flash .8s ease-out forwards; }
@keyframes summon-flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ang-spin { to { --ang: 360deg; } }

.portals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; align-content: start; }
.portals-empty { grid-column: 1 / -1; }
.pcard { --c1: rgb(var(--c-al)); --c2: rgb(var(--c-ac2)); --glow: rgb(var(--c-al) / .5);
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 12px; padding: 22px; border-radius: 28px; scroll-margin-top: 110px;
  background: linear-gradient(160deg, rgb(var(--c-sf2) / .66), rgb(var(--c-sf1) / .9)); border: 1px solid rgb(var(--c-al2) / .2);
  transition: transform .4s var(--spring), box-shadow .3s, border-color .3s; }
.pcard::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; top: -160px; inset-inline-start: -120px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .6; }
.pcard:hover { transform: translateY(-5px); border-color: var(--c1); box-shadow: 0 34px 70px -36px var(--glow); }
.pcard.st-done { --c1: rgb(var(--c-ac)); --c2: rgb(var(--c-glow)); --glow: rgb(var(--c-ac) / .55); border-color: rgb(var(--c-ac) / .32); }
.pcard.st-closed { --c1: rgb(var(--c-tx3)); --c2: rgb(var(--c-tx3)); --glow: rgb(var(--c-tx3) / .3); border-color: rgb(var(--c-tx2) / .14); }
.pcard.st-expired { --c1: rgb(var(--c-bad)); --c2: rgb(var(--c-bad3)); --glow: rgb(var(--c-bad) / .45); border-color: rgb(var(--c-bad) / .25); }
.pcard.is-target { box-shadow: 0 0 0 3px rgb(var(--c-ac) / .55), 0 34px 70px -30px rgb(var(--c-ac) / .6); }
.pcard-top { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.pcard-head { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pcard-head h3 { font-size: var(--fs-lg); line-height: 1.4; overflow-wrap: anywhere; }
.portal { position: relative; width: 108px; height: 108px; }
.portal::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.vortex { position: absolute; inset: 0; border-radius: 50%; animation: spin 3.2s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 6%, var(--c1) 16%, transparent 30% 38%, var(--c2) 52%, transparent 66% 72%, var(--c1) 88%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 59%, #000 69%, transparent 72%); mask: radial-gradient(circle, transparent 56%, #000 59%, #000 69%, transparent 72%); }
.vortex.v2 { inset: 9px; opacity: .85; animation-duration: 5s; animation-direction: reverse;
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 64%, #000 74%, transparent 78%); mask: radial-gradient(circle, transparent 60%, #000 64%, #000 74%, transparent 78%); }
.portal-core { position: absolute; inset: 21px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: var(--c1);
  background: radial-gradient(circle at 50% 35%, rgb(var(--c-sf3)), rgb(var(--c-bg0)) 75%); box-shadow: 0 0 0 2px var(--c1), 0 0 28px var(--glow), inset 0 0 18px rgb(var(--c-sh) / calc(.8 * var(--sha))); }
.portal-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-core .ic { width: 28px; height: 28px; }
.st-closed .vortex, .st-expired .vortex { animation-duration: 16s; }
.st-closed .portal-core { filter: grayscale(.7); }
.pcard-dates { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-xs); color: var(--mist-2); }
.pcard-dates span { display: inline-flex; gap: 5px; align-items: center; }
.pcard-dates .ic { width: 14px; height: 14px; }
@media (max-width: 520px) { .pcard-top { grid-template-columns: 84px minmax(0, 1fr) auto; } .portal { width: 84px; height: 84px; } .portal-core { inset: 16px; } }

/* ---------- account: identity hero + bento ---------- */
.idhero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center;
  padding: 44px 48px; margin-bottom: 24px; border-radius: 36px; border: 1px solid rgb(var(--c-ac) / .34);
  background: linear-gradient(120deg, rgb(var(--c-sf3) / .82), rgb(var(--c-sf1) / .78) 50%, rgb(var(--c-bg1) / .86));
  box-shadow: 0 40px 100px -50px rgb(var(--c-sh) / calc(.95 * var(--sha))), inset 0 1px 0 rgb(var(--c-hl) / .08), inset 0 0 160px rgb(var(--c-deep) / .3); }
.idhero .phero-shock { inset-inline-end: auto; inset-inline-start: 41px; }
.id-avatar { position: relative; width: 214px; height: 214px; flex: none; }
.id-avatar::before { content: ""; position: absolute; z-index: -1; inset: -46px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c-ac2) / .45), rgb(var(--c-ac) / .14) 52%, transparent 76%); animation: flare 4s ease-in-out infinite alternate; }
.id-rays { position: absolute; z-index: -2; width: 980px; height: 980px; left: 50%; top: 50%; margin: -490px 0 0 -490px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(var(--c-ac2) / .2) 0deg 1.2deg, transparent 1.2deg 6deg);
  -webkit-mask: radial-gradient(circle, #000 8%, rgb(var(--c-sh) / calc(.5 * var(--sha))) 24%, transparent 54%); mask: radial-gradient(circle, #000 8%, rgb(var(--c-sh) / calc(.5 * var(--sha))) 24%, transparent 54%);
  animation: rays-spin 100s linear infinite; }
.id-orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 50s linear infinite; overflow: visible; }
.id-orbit circle { fill: none; stroke: rgb(var(--c-ac) / .55); stroke-width: 1; }
.id-orbit circle:first-child { stroke-dasharray: 2 7; stroke-width: 1.6; }
.id-planets i { position: absolute; inset: 4px; border-radius: 50%; animation: spin 9s linear infinite; }
.id-planets i::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--turq)); box-shadow: 0 0 14px 3px rgb(var(--c-al) / .85); }
.id-planets i:nth-child(2) { inset: 16px; animation-duration: 14s; animation-direction: reverse; }
.id-planets i:nth-child(2)::after { width: 9px; height: 9px; margin-left: -4.5px; top: -4.5px; background: radial-gradient(circle at 35% 35%, #fff, var(--gold)); box-shadow: 0 0 14px 3px rgb(var(--c-ac) / .85); }
.id-planets i:nth-child(3) { inset: -10px; animation-duration: 22s; }
.id-planets i:nth-child(3)::after { width: 7px; height: 7px; margin-left: -3.5px; top: -3.5px; background: #fff; box-shadow: 0 0 10px 2px rgb(var(--c-hl) / .8); }
.id-face { position: absolute; inset: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 4.4rem; line-height: 1; color: rgb(var(--c-glow));
  background: radial-gradient(circle at 50% 28%, rgb(var(--c-deep)), rgb(var(--c-sf1)) 62%, rgb(var(--c-bg0)));
  box-shadow: 0 0 0 2px rgb(var(--c-ac2) / .9), 0 0 0 9px rgb(var(--c-ac) / .12), 0 0 70px rgb(var(--c-ac) / .5), inset 0 -16px 40px rgb(var(--c-sh) / calc(.55 * var(--sha)));
  text-shadow: 0 0 30px rgb(var(--c-ac2) / .85); }
html[lang="en"] .id-face { font-weight: 800; }
button.id-face { border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; }
.id-face .av-fig { width: 42%; height: 42%; stroke-width: 1.3; filter: drop-shadow(0 0 18px rgb(var(--c-ac2) / .7)); }
.id-face.has-pic { background: rgb(var(--c-sf3)); }
.id-face:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 6px; }
.id-cam { position: absolute; bottom: 3%; inset-inline-end: 3%; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: rgb(var(--c-on));
  background: linear-gradient(180deg, rgb(var(--c-ac2)), rgb(var(--c-ac)) 55%, rgb(var(--c-ac3))); box-shadow: 0 0 0 4px rgb(var(--c-sf1)), 0 12px 24px -10px rgb(var(--c-ac)); transition: transform .3s var(--spring); }
.id-cam .ic { width: 21px; height: 21px; }
.id-face:hover .id-cam, .id-face:focus-visible .id-cam { transform: scale(1.1) rotate(-8deg); }
.id-main { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.id-main h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.2; color: rgb(var(--c-title)); text-shadow: 0 0 44px rgb(var(--c-ac) / .5); overflow-wrap: anywhere; }
html[lang="fa"] .id-main h1 { line-height: 1.45; }
.id-sub { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--mist); font-size: var(--fs-sm); }
.id-sub span { display: inline-flex; align-items: center; gap: 7px; }
.id-sub .ic { width: 16px; height: 16px; color: var(--gold); }
.id-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.id-actions form { margin: 0; }
.id-stats { display: grid; grid-template-columns: repeat(2, minmax(132px, 1fr)); gap: 12px; }
.id-stat { position: relative; overflow: hidden; padding: 16px 18px; border-radius: 20px; text-align: center; background: rgb(var(--c-bg0) / .52); border: 1px solid rgb(var(--c-ac) / .22); }
.id-stat::after { content: ""; position: absolute; inset-inline: 18px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--turq), transparent); }
.id-stat b { display: block; font-weight: 400; font-size: 2.1rem; line-height: 1.2; color: rgb(var(--c-glow)); text-shadow: 0 0 22px rgb(var(--c-ac) / .55); font-variant-numeric: tabular-nums; }
html[lang="en"] .id-stat b, html[lang="en"] .pstat b { font-weight: 700; }
.id-stat span { font-size: var(--fs-xs); color: var(--mist); }
@media (max-width: 1150px) { .idhero { grid-template-columns: auto minmax(0, 1fr); } .id-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .idhero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 34px 20px 26px; gap: 22px; }
  .id-main { justify-items: center; }
  .id-sub, .id-actions { justify-content: center; }
  .id-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .idhero .phero-shock { inset-inline-start: calc(50% - 120px); top: 141px; }
  .id-avatar { width: 180px; height: 180px; }
  .id-face { inset: 32px; font-size: 3.6rem; }
  .id-cam { width: 38px; height: 38px; }
}
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.bcard { position: relative; overflow: hidden; isolation: isolate; padding: 24px; border-radius: 28px; border: 1px solid transparent;
  background: linear-gradient(165deg, rgb(var(--c-sf2)), rgb(var(--c-sf1)) 60%, rgb(var(--c-sf1))) padding-box,
              conic-gradient(from var(--ang), rgb(var(--c-ac) / .14), rgb(var(--c-ac) / .85) 10%, rgb(var(--c-al) / .7) 20%, rgb(var(--c-ac) / .14) 32%, rgb(var(--c-ac) / .14)) border-box;
  animation: ang-spin 10s linear infinite; }
.bcard::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; top: -150px; inset-inline-end: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c-al) / .16), transparent); }
.bcard:nth-child(2n) { animation-delay: -3s; }
.bcard:nth-child(3n) { animation-delay: -6s; }
.b-profile { grid-column: span 7; }
.b-security { grid-column: span 5; }
.b-storage, .b-logins, .b-apps { grid-column: span 4; }
@media (max-width: 1200px) { .b-profile, .b-security, .b-storage, .b-logins { grid-column: span 6; } .b-apps { grid-column: span 12; } }
@media (max-width: 760px) { .bento > * { grid-column: 1 / -1; } }
.b-storage-row { display: flex; align-items: center; gap: 20px; }
.b-storage-row .btn { margin-top: 10px; }
@media (max-width: 420px) { .b-storage-row { flex-direction: column; text-align: center; } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgb(var(--c-ac) / 0)); }
.timeline li { position: relative; padding-inline-start: 30px; display: grid; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 16px; height: 16px; clip-path: var(--star); background: var(--gold); }
.timeline li:first-child::before { background: var(--turq-2); filter: drop-shadow(0 0 6px var(--turq)); }
.timeline b { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.timeline b .ic { width: 15px; height: 15px; color: var(--mist); }
.timeline li > span { font-size: var(--fs-xs); color: var(--mist-2); }
.b-keys { display: flex; gap: 18px; align-items: center; margin: 14px 0 16px; }
.b-keys-n { display: grid; place-content: center; text-align: center; width: 96px; height: 96px; flex: none; clip-path: var(--star); background: linear-gradient(135deg, rgb(var(--c-ac0)), var(--gold) 55%, var(--gold-3)); color: rgb(var(--c-on)); font-size: 1.9rem; line-height: 1; }
.b-keys-n small { display: block; font-size: .6rem; margin-top: 4px; }
.b-keys ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; flex: 1; }
.b-keys li { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); min-width: 0; }
.b-keys li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-keys li small { margin-inline-start: auto; color: var(--mist-2); font-size: .72rem; white-space: nowrap; }
.b-keys .ic { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- apps & extensions ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.appcard { --ac: var(--gold-2); --ac2: rgb(var(--c-ac) / .35);
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 10px; align-content: start; padding: 26px 24px 22px; border-radius: 28px; text-decoration: none; color: var(--parch);
  background: linear-gradient(160deg, rgb(var(--c-sf3) / .66), rgb(var(--c-sf1) / .92)); border: 1px solid var(--line-2);
  transition: transform .4s var(--spring), border-color .3s, box-shadow .3s; }
.appcard:hover { color: var(--parch); transform: translateY(-6px); border-color: var(--ac); box-shadow: 0 34px 70px -34px var(--ac2); }
.appcard::before { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; top: -140px; inset-inline-end: -110px; border-radius: 50%; background: radial-gradient(closest-side, var(--ac2), transparent); transition: transform .5s var(--smooth); }
.appcard:hover::before { transform: scale(1.25); }
.app-firefox { --ac: #FFB45C; --ac2: rgba(255, 150, 60, .4); }
.app-chrome { --ac: rgb(var(--c-al2)); --ac2: rgb(var(--c-al) / .4); }
.app-windows { --ac: rgb(var(--c-x)); --ac2: rgb(var(--c-x) / .42); }
.app-orb { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; color: var(--ac);
  background: radial-gradient(circle at 30% 25%, rgb(var(--c-hl) / .28), transparent 60%), var(--ac2);
  box-shadow: 0 0 0 1px var(--ac2), 0 14px 34px -12px var(--ac2); }
.app-orb .ic { width: 34px; height: 34px; stroke-width: 1.6; }
.app-name { font-size: var(--fs-xl); line-height: 1.35; margin-top: 4px; }
html[lang="en"] .app-name { font-weight: 700; }
.app-desc { color: var(--mist); font-size: var(--fs-sm); }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.app-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 13px; background: var(--ac); color: rgb(var(--c-bg1)); font-size: var(--fs-sm); box-shadow: 0 10px 24px -10px var(--ac2); }
html[lang="en"] .app-cta { font-weight: 700; }
.app-cta .ic { width: 17px; height: 17px; }
.getapps { width: min(1240px, 100%); margin: 80px auto 10px; }
.getapps-head { text-align: center; margin-bottom: 24px; display: grid; gap: 8px; justify-items: center; }
.getapps-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: rgb(var(--c-title)); text-shadow: 0 0 30px rgb(var(--c-ac) / .4); text-wrap: balance; }
.getapps-head p { color: var(--mist); max-width: 56ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: min(440px, 100%); }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgb(var(--c-bg0) / .52); border: 1px solid rgb(var(--c-ac) / .22); }
.steps b { width: 44px; height: 44px; flex: none; display: grid; place-items: center; clip-path: var(--star); background: linear-gradient(135deg, rgb(var(--c-ac0)), var(--gold) 55%, var(--gold-3)); color: rgb(var(--c-on)); font-weight: 400; font-size: 1.1rem; }
.keys-card { margin-top: 22px; }
.apps-soon { margin-bottom: 4px; }


/* ---------- admin ---------- */
.app-set { padding: 12px 0 2px; border-top: 1px solid var(--line-2); }
.app-set:first-of-type { border-top: 0; }
/* an app's tick for the home page's picks: under its name, in line with it */
.app-set .app-home { display: flex; width: fit-content; max-width: calc(100% - 58px); margin: 0 0 12px; margin-inline-start: 58px; padding: 6px 12px; border-radius: 12px; cursor: pointer; line-height: 1.6; color: var(--parch); background: rgb(var(--c-ac) / .07); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .16); }
.app-set .app-home input { width: 17px; height: 17px; flex: none; accent-color: var(--gold); }
@media (max-width: 520px) { .app-set .app-home { margin-inline-start: 0; max-width: 100%; } }
.icon-btn.is-admin { color: var(--gold-2); border-color: rgb(var(--c-ac) / .45); background: rgb(var(--c-ac) / .1); }
.role-panel .role-now { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.role-badge { width: 52px; height: 52px; flex: none; display: grid; place-items: center; clip-path: var(--star); background: rgb(var(--c-tx2) / .25); color: var(--parch); }
.role-panel.is-admin .role-badge { background: linear-gradient(135deg, rgb(var(--c-ac0)), var(--gold) 55%, var(--gold-3)); color: rgb(var(--c-on)); }
.role-now b { display: block; font-weight: 400; font-size: var(--fs-lg); }
.role-now small { color: var(--mist); font-size: var(--fs-xs); }

/* =========================================================
   THEMES · light (soft) · rainbow (vivid) · dark (haunted)
   ========================================================= */
:root, [data-theme="light"] {
  --c-bg0: 255 255 255; --c-bg1: 244 242 250; --c-sf1: 255 255 255; --c-sf2: 251 250 255; --c-sf3: 238 234 251; --c-deep: 180 168 255;
  --c-tx: 40 36 70; --c-tx2: 94 88 132; --c-tx3: 132 126 166; --c-title: 34 30 64; --c-glow: 156 98 24;
  --c-gtx: 160 98 16; --c-link: 14 120 112; --c-badtx: 190 38 64; --c-oktx: 56 124 34;
  --c-ac0: 255 247 228; --c-ac: 224 166 78; --c-ac2: 246 212 158; --c-ac3: 178 118 38; --c-on: 56 34 4;
  --c-al: 56 182 172; --c-al2: 150 222 214; --c-al3: 28 128 120; --c-x: 136 124 246;
  --c-bad: 230 86 108; --c-bad3: 150 30 56; --c-ok: 118 180 68;
  --c-hl: 64 54 116; --c-sh: 72 62 132; --sha: .3;
  --t-field: rgb(246 244 252); --rz-hi: .95; --glass-a: .58; --glass-s: .8; --glass-hi: .9; --spot: rgb(160 140 255 / .16);
  --cat-1: #FBE3B0; --cat-2: #D89A3A; --cat-3: #94600F; --eye-1: #7FE6DC; --eye-2: #128E85;
  --m-gold-1: #F7D79A; --m-gold-2: #D49A3E; --m-gold-3: #A06A1C; --m-plate-1: #FFFFFF; --m-plate-2: #ECE8FA; --m-core-1: #FFFFFF; --m-core-2: #E6E0FB;
  --liq-1: #CFFBF6; --liq-2: #4FC7BC; --liq-3: #1E7F86; --liq2-1: #FFE7B8; --liq2-2: #E7B061; --liq2-3: #A26A1E;
  color-scheme: light;
}

[data-theme="dark"] {
  --c-bg0: 3 2 4; --c-bg1: 9 6 9; --c-sf1: 20 12 16; --c-sf2: 31 17 23; --c-sf3: 46 20 28; --c-deep: 120 8 26;
  --c-tx: 234 224 216; --c-tx2: 164 148 152; --c-tx3: 118 102 108; --c-title: 246 236 230; --c-glow: 255 96 100;
  --c-gtx: 255 122 116; --c-link: 132 255 168; --c-badtx: 255 130 138; --c-oktx: 150 255 176;
  --c-ac0: 255 196 186; --c-ac: 206 22 44; --c-ac2: 255 86 86; --c-ac3: 112 6 18; --c-on: 255 240 234;
  --c-al: 104 255 150; --c-al2: 170 255 196; --c-al3: 30 130 70; --c-x: 168 116 255;
  --c-bad: 255 42 64; --c-bad3: 96 0 14; --c-ok: 120 255 160;
  --c-hl: 255 226 226; --c-sh: 0 0 0; --sha: 1;
  --t-field: rgb(0 0 0 / .5); --rz-hi: .06; --glass-a: .44; --glass-s: .74; --glass-hi: .07; --spot: rgb(255 40 60 / .14);
  --cat-1: #C9BDC2; --cat-2: #74666D; --cat-3: #2E2329; --eye-1: #FF7272; --eye-2: #D0001F;
  --m-gold-1: #FF8A80; --m-gold-2: #C8102E; --m-gold-3: #5C0010; --m-plate-1: #1C0E13; --m-plate-2: #060305; --m-core-1: #2B0F17; --m-core-2: #0A0406;
  --liq-1: #FF9A9A; --liq-2: #C8102E; --liq-3: #3A0008; --liq2-1: #B8FFCE; --liq2-2: #3FD27A; --liq2-3: #0E4A28;
  color-scheme: dark;
}

/* artwork follows the theme */
.cg1 { stop-color: var(--cat-1); } .cg2 { stop-color: var(--cat-2); } .cg3 { stop-color: var(--cat-3); }
.ce1 { stop-color: var(--eye-1); } .ce2 { stop-color: var(--eye-2); }
.mg1 { stop-color: var(--m-gold-1); } .mg2 { stop-color: var(--m-gold-2); } .mg3 { stop-color: var(--m-gold-3); }
.mp1 { stop-color: var(--m-plate-1); } .mp2 { stop-color: var(--m-plate-2); }
.mk1 { stop-color: var(--m-core-1); } .mk2 { stop-color: var(--m-core-2); }
.ol1 { stop-color: var(--liq-1); } .ol2 { stop-color: var(--liq-2); } .ol3 { stop-color: var(--liq-3); }
.om1 { stop-color: var(--liq2-1); } .om2 { stop-color: var(--liq2-2); } .om3 { stop-color: var(--liq2-3); }
.is-warn .ol1 { stop-color: #FFB3BE; } .is-warn .ol2 { stop-color: #E9566B; } .is-warn .ol3 { stop-color: #5E0F24; }
:is([data-theme="light"], [data-theme="rainbow"]) .orb-deep { fill: rgb(var(--c-sf3)); }
:is([data-theme="light"], [data-theme="rainbow"]) .orb-center b { color: rgb(var(--c-title)); text-shadow: 0 1px 12px rgb(255 255 255 / .95); }
:is([data-theme="light"], [data-theme="rainbow"]) .orb-center span { color: rgb(var(--c-tx2)); text-shadow: none; }
:is([data-theme="light"], [data-theme="rainbow"]) .m-text { fill: rgb(var(--c-gtx)); }
:is([data-theme="light"], [data-theme="rainbow"]) ::selection { color: rgb(var(--c-title)); }
.aur.a4, .aur.a5, .bat, .fog { display: none; }

/* ---------- light: soft lavender morning ---------- */
[data-theme="light"] body::before { background: radial-gradient(70vmax 50vmax at 0% 0%, rgb(255 214 236 / .65), transparent 60%), radial-gradient(70vmax 60vmax at 100% 100%, rgb(204 240 236 / .7), transparent 60%), linear-gradient(170deg, #F8F5FF, #F3F1FA 55%, #EEF5F8); }
[data-theme="light"] body::after { opacity: .45; }
[data-theme="light"] .stars { display: none; }
[data-theme="light"] .aur { opacity: .55; }
[data-theme="light"] .aur.a1 { background: radial-gradient(closest-side, rgb(190 176 255 / .75), transparent); }
[data-theme="light"] .aur.a2 { background: radial-gradient(closest-side, rgb(255 196 176 / .6), transparent); }
[data-theme="light"] .aur.a3 { background: radial-gradient(closest-side, rgb(160 230 220 / .6), transparent); }
[data-theme="light"] :is(.phero, .idhero) { background: linear-gradient(125deg, rgb(255 255 255 / .9), rgb(250 247 255 / .72)); border-color: #fff; box-shadow: 0 34px 80px -46px rgb(90 70 160 / .45), inset 0 1px 0 #fff; }
[data-theme="light"] .phero-rays { opacity: .55; }
[data-theme="light"] :is(.phero h1, .id-main h1, .hero-title) { text-shadow: 0 2px 24px rgb(214 160 80 / .25); }
[data-theme="light"] .vf { box-shadow: 0 16px 40px -24px rgb(90 70 160 / .45), inset 0 1px 0 #fff; }

/* ---------- rainbow: holographic candy ---------- */










@keyframes rb-slide { to { background-position: 220% 0; } }





 
 




@keyframes rb-hue { to { filter: hue-rotate(360deg); } }
.rb-spark { position: fixed; z-index: 300; width: 11px; height: 11px; margin: -5px 0 0 -5px; pointer-events: none; clip-path: var(--star); background: hsl(var(--h) 95% 60%); animation: rb-fly .8s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes rb-fly { to { transform: translate(var(--dx), var(--dy)) rotate(220deg) scale(.15); opacity: 0; } }

/* ---------- dark: haunted midnight ---------- */
[data-theme="dark"] body::before { background: radial-gradient(90vmax 55vmax at 50% -12%, rgb(120 0 22 / .6), transparent 62%), radial-gradient(60vmax 50vmax at 100% 110%, rgb(50 0 70 / .45), transparent 60%), linear-gradient(180deg, #0C070B, #060406 55%, #020102); }
[data-theme="dark"] body::after { display: none; }
[data-theme="dark"] .stars.s1 { opacity: .3; }
[data-theme="dark"] .stars.s2 { filter: sepia(1) saturate(7) hue-rotate(-42deg); opacity: .75; }
[data-theme="dark"] .aur.a1 { background: radial-gradient(closest-side, rgb(150 0 26 / .5), transparent); }
[data-theme="dark"] .aur.a2 { background: radial-gradient(closest-side, rgb(70 0 92 / .38), transparent); }
[data-theme="dark"] .aur.a3 { background: radial-gradient(closest-side, rgb(255 36 36 / .14), transparent); animation: candle 4.2s infinite, aur-drift 52s ease-in-out infinite alternate; }
[data-theme="dark"] .cosmos::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 42%, transparent 52%, rgb(0 0 0 / .72)); }
[data-theme="dark"] .cosmos::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle 24vmax at var(--cx, 50%) var(--cy, 35%), rgb(255 40 40 / .07), transparent 70%); }
[data-theme="dark"] .fog { display: block; position: absolute; left: -50%; right: -50%; bottom: -8%; height: 58vh; will-change: transform; animation: fog-drift 70s linear infinite;
  background: radial-gradient(38% 60% at 18% 72%, rgb(210 196 204 / .11), transparent 70%), radial-gradient(34% 55% at 52% 82%, rgb(210 196 204 / .09), transparent 70%), radial-gradient(40% 60% at 86% 70%, rgb(210 196 204 / .1), transparent 70%); }
@keyframes fog-drift { 0%, 100% { transform: translateX(-11%); } 50% { transform: translateX(11%); } }
[data-theme="dark"] .bat { display: block; position: absolute; top: 11%; left: -70px; width: 46px; height: 22px; background: #2A0610;
  clip-path: polygon(50% 34%, 55% 14%, 58% 30%, 70% 18%, 84% 22%, 100% 40%, 88% 44%, 82% 62%, 72% 52%, 62% 66%, 54% 56%, 50% 70%, 46% 56%, 38% 66%, 28% 52%, 18% 62%, 12% 44%, 0 40%, 16% 22%, 30% 18%, 42% 30%, 45% 14%);
  animation: bat-fly 28s linear infinite, bat-flap .2s ease-in-out infinite alternate; }
[data-theme="dark"] .bat.b2 { top: 19%; width: 32px; height: 16px; animation-duration: 36s, .17s; animation-delay: -14s, 0s; }
[data-theme="dark"] .bat.b3 { top: 6%; width: 24px; height: 12px; animation-duration: 44s, .15s; animation-delay: -30s, 0s; }
@keyframes bat-fly { 0% { transform: translate(0, 0); } 14% { transform: translate(28vw, 5vh); } 28% { transform: translate(56vw, -2vh); } 42% { transform: translate(84vw, 7vh); } 55%, 100% { transform: translate(calc(100vw + 140px), 2vh); } }
@keyframes bat-flap { to { scale: 1 .3; } }
@keyframes candle { 0%, 100% { opacity: .85; } 7% { opacity: .5; } 9% { opacity: .92; } 22% { opacity: .7; } 25% { opacity: 1; } 47% { opacity: .78; } 49% { opacity: .45; } 51% { opacity: .95; } 78% { opacity: .7; } }
@keyframes haunt { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .3; } 92% { opacity: 1; } 94% { opacity: .5; } 95% { opacity: 1; } }
[data-theme="dark"] :is(.phero::after, .id-avatar::before) { animation: candle 3.6s infinite; }
[data-theme="dark"] :is(.phero h1, .id-main h1, .hero-title, .getapps-head h2) { text-shadow: 0 0 18px rgb(255 30 50 / .55), 0 0 60px rgb(160 0 20 / .5), 0 4px 30px rgb(0 0 0 / .8); animation: haunt 9s infinite; }
[data-theme="dark"] :is(.phero, .idhero)::before { content: ""; position: absolute; z-index: -1; top: 0; inset-inline-start: 0; width: 180px; height: 180px; pointer-events: none; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath d='M0 0L160.0 0.0 M0 0L155.2 38.7 M0 0L139.9 77.6 M0 0L113.1 113.1 M0 0L77.6 139.9 M0 0L38.7 155.2 M0 0L0.0 160.0 M26.0 0.0Q22.2 2.7 25.2 6.3Q20.8 8.2 22.7 12.6Q17.9 13.5 18.4 18.4Q13.5 17.9 12.6 22.7Q8.2 20.8 6.3 25.2Q2.7 22.2 0.0 26.0 M50.0 0.0Q42.7 5.2 48.5 12.1Q40.0 15.8 43.7 24.2Q34.3 25.9 35.4 35.4Q25.9 34.3 24.2 43.7Q15.8 40.0 12.1 48.5Q5.2 42.7 0.0 50.0 M78.0 0.0Q66.6 8.2 75.7 18.9Q62.4 24.6 68.2 37.8Q53.6 40.4 55.2 55.2Q40.4 53.6 37.8 68.2Q24.6 62.4 18.9 75.7Q8.2 66.6 0.0 78.0 M110.0 0.0Q93.9 11.5 106.7 26.6Q88.0 34.7 96.2 53.3Q75.6 56.9 77.8 77.8Q56.9 75.6 53.3 96.2Q34.7 88.0 26.6 106.7Q11.5 93.9 0.0 110.0 M146.0 0.0Q124.6 15.3 141.7 35.3Q116.8 46.0 127.7 70.8Q100.3 75.6 103.2 103.2Q75.6 100.3 70.8 127.7Q46.0 116.8 35.3 141.7Q15.3 124.6 0.0 146.0' fill='none' stroke='rgb(235,222,222)' stroke-width='.9' stroke-opacity='.55'/%3E%3Ccircle cx='118' cy='92' r='3.2' fill='rgb(20,6,10)' stroke='rgb(235,222,222)' stroke-opacity='.4' stroke-width='.6'/%3E%3Cpath d='M118 89V60' stroke='rgb(235,222,222)' stroke-opacity='.35' stroke-width='.5'/%3E%3C/svg%3E") no-repeat 0 0 / contain; }
[dir="rtl"][data-theme="dark"] :is(.phero, .idhero)::before { transform: scaleX(-1); }
[data-theme="dark"] :is(.brand-mark, .emblem, .core-cat, .bp-cat, .empty-cat, .error-cat) { filter: drop-shadow(0 0 8px rgb(255 20 40 / .55)); }
[data-theme="dark"] .btn-gold { box-shadow: 0 0 26px rgb(200 0 30 / .45), inset 0 1px 0 rgb(255 160 160 / .35); }
[data-theme="dark"] .vf-frame, [data-theme="dark"] .mb-frame { filter: drop-shadow(0 0 5px rgb(255 30 50 / .75)); }

/* ---------- raised (embossed) & glass surfaces, mixed on purpose ---------- */
.pstat, .id-stat, .kpi, .steps li, .appcard, .gcard:nth-child(3n+2), .bento .b-storage {
  background: linear-gradient(160deg, rgb(var(--c-sf3)), rgb(var(--c-sf1)) 78%);
  border: 1px solid rgb(var(--c-hl) / .09);
  box-shadow: inset 0 2px 1px rgb(255 255 255 / var(--rz-hi)), inset 0 -5px 12px rgb(var(--c-sh) / calc(.3 * var(--sha))),
    0 26px 42px -20px rgb(var(--c-sh) / calc(.9 * var(--sha))), 0 8px 16px -10px rgb(var(--c-sh) / calc(.6 * var(--sha)));
}
.bento .b-storage { animation: none; }
/* Glass cards are tinted, not blurred: behind them is only a soft gradient, and a live blur under every third card
   kept the graphics card busy on every frame of the background's motion. */
.gcard:nth-child(3n+1), .pcard, .bento .b-security, .bento .b-logins, .toast {
  background: rgb(var(--c-sf1) / var(--glass-s, .8));
  border: 1px solid rgb(var(--c-hl) / .15);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / var(--glass-hi)), 0 30px 60px -34px rgb(var(--c-sh) / calc(.85 * var(--sha)));
}
.bento .b-security, .bento .b-logins { animation: none; }

@media (max-width: 859px) { .gcard:nth-child(3n+1), .pcard, .bento .b-security, .bento .b-logins { background: rgb(var(--c-sf1) / .9); } }
.phero-stats .pstat:first-child { min-width: 168px; padding: 16px 22px 18px; }
.phero-stats .pstat:first-child b { font-size: clamp(2rem, 3.4vw, 3rem); }

/* mosaic gallery: some cards wide, some tall */
.gal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); grid-auto-flow: dense; }
.gcard.is-wide { grid-column: span 2; }
.gcard.is-wide .gthumb { aspect-ratio: 21 / 9; }
.gcard.is-tall { grid-row: span 2; }
.gcard.is-tall .gthumb { aspect-ratio: auto; flex: 1; min-height: 280px; }
@media (max-width: 800px) { .gcard.is-wide { grid-column: auto; } .gcard.is-tall { grid-row: auto; } .gcard.is-wide .gthumb, .gcard.is-tall .gthumb { aspect-ratio: 16 / 9; flex: none; min-height: 0; } }
.pcard.is-feature { grid-column: 1 / -1; }
.pcard.is-feature .pcard-top { grid-template-columns: 150px minmax(0, 1fr) auto; }
.pcard.is-feature .portal { width: 150px; height: 150px; }
.pcard.is-feature .portal-core { inset: 28px; }
.pcard.is-feature .pcard-head h3 { font-size: var(--fs-xl); }
@media (max-width: 520px) { .pcard.is-feature .pcard-top { grid-template-columns: 96px minmax(0, 1fr) auto; } .pcard.is-feature .portal { width: 96px; height: 96px; } .pcard.is-feature .portal-core { inset: 18px; } }
@media (min-width: 900px) { .apps-grid .appcard:nth-child(2) { margin-top: 34px; } .apps-grid .appcard:nth-child(3) { margin-top: 14px; } }

/* cursor spotlight on cards */
.gcard, .appcard, .pcard { --mx: 50%; --my: 30%; }
.gcard::after, .appcard::after, .pcard::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(440px circle at var(--mx) var(--my), var(--spot), transparent 46%); }
.gcard:hover::after, .appcard:hover::after, .pcard:hover::after { opacity: 1; }

/* reveal on scroll (only once JS turns it on) */
.reveal-on :is(.gcard, .pcard, .bcard, .appcard, .kpi, .panel) { opacity: 0; translate: 0 26px; }
.reveal-on :is(.gcard, .pcard, .bcard, .appcard, .kpi, .panel).in { opacity: 1; translate: 0 0; transition: opacity .7s ease calc(var(--ri, 0) * 70ms), translate .9s var(--spring) calc(var(--ri, 0) * 70ms), transform .45s var(--spring), border-color .3s, box-shadow .3s; }

/* ---------- theme swatches (admin) and the switch's circular reveal ---------- */
.tsw { width: 28px; height: 28px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), 0 4px 10px -4px rgb(0 0 0 / .4); }
.tsw-light { background: linear-gradient(135deg, #FFFFFF, #ECE8FA 50%, #F7D79A); }
.tsw-rainbow { background: conic-gradient(from 200deg, #FF3EA5, #FF8A00, #FFD000, #22C55E, #0EA5E9, #8B5CF6, #FF3EA5); }
.tsw-dark { background: radial-gradient(circle at 35% 35%, #D0001F, #3A0008 55%, #050304); }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt :is(.vf, .vf-frame) { view-transition-name: none; }

/* rainbow polish: more colour in headers, each stat glows its own hue */

/* =========================================================
   Colorful theme · sweet pastel, hearts & bows
   ========================================================= */
[data-theme="rainbow"] {
  --c-bg0: 255 255 255; --c-bg1: 255 243 249; --c-sf1: 255 255 255; --c-sf2: 255 250 253; --c-sf3: 255 236 246; --c-deep: 214 166 255;
  --c-tx: 72 20 70; --c-tx2: 116 60 112; --c-tx3: 140 88 136; --c-title: 96 14 82; --c-glow: 196 28 122;
  --c-gtx: 184 26 114; --c-link: 118 48 210; --c-badtx: 190 22 66; --c-oktx: 16 118 76;
  --c-ac0: 255 240 248; --c-ac: 255 128 190; --c-ac2: 255 198 226; --c-ac3: 226 76 156; --c-on: 92 12 72;
  --c-al: 170 146 255; --c-al2: 210 198 255; --c-al3: 112 82 222; --c-x: 124 186 255;
  --c-bad: 255 92 120; --c-bad3: 170 30 70; --c-ok: 92 206 158;
  --c-hl: 150 60 140; --c-sh: 200 80 160; --sha: .3;
  --t-field: rgb(255 255 255 / .95); --rz-hi: .95; --glass-a: .7; --glass-s: .86; --glass-hi: .95; --spot: rgb(255 150 205 / .22);
  --brand-tx: 150 16 108;
  --cat-1: #FF8CC6; --cat-2: #EC4C9E; --cat-3: #9A44D4; --eye-1: #8EDBFF; --eye-2: #3F7BFF;
  --m-gold-1: #FF9ECF; --m-gold-2: #C9A2FF; --m-gold-3: #7FC6FF; --m-plate-1: #FFFFFF; --m-plate-2: #FFEAF5; --m-core-1: #FFFFFF; --m-core-2: #FFE4F2;
  --liq-1: #FFE0F0; --liq-2: #FF92C8; --liq-3: #C46CE6; --liq2-1: #E6DEFF; --liq2-2: #B9A0FF; --liq2-3: #7D5DE2;
  --star: polygon(50.0% 23.9%, 50.2% 22.2%, 51.5% 17.5%, 54.7% 11.3%, 60.2% 5.2%, 67.7% 1.0%, 76.5% 0.0%, 85.4% 2.7%, 93.0% 8.7%, 98.2% 17.3%, 100.0% 27.3%, 98.2% 37.7%, 93.0% 47.7%, 85.4% 57.2%, 76.5% 66.0%, 67.7% 74.4%, 60.2% 82.3%, 54.7% 89.3%, 51.5% 95.0%, 50.2% 98.7%, 50.0% 100.0%, 49.8% 98.7%, 48.5% 95.0%, 45.3% 89.3%, 39.8% 82.3%, 32.3% 74.4%, 23.5% 66.0%, 14.6% 57.2%, 7.0% 47.7%, 1.8% 37.7%, 0.0% 27.3%, 1.8% 17.3%, 7.0% 8.7%, 14.6% 2.7%, 23.5% 0.0%, 32.3% 1.0%, 39.8% 5.2%, 45.3% 11.3%, 48.5% 17.5%, 49.8% 22.2%);
  color-scheme: light;
}
[data-theme="rainbow"] ::selection { background: #FFC2E0; color: rgb(96 14 82); }
[data-theme="rainbow"] body::before { background: radial-gradient(60vmax 45vmax at 8% 0%, #FFE1EF, transparent 62%), radial-gradient(55vmax 45vmax at 100% 18%, #EADFFF, transparent 60%), radial-gradient(60vmax 50vmax at 85% 100%, #DDF1FF, transparent 60%), radial-gradient(50vmax 40vmax at 0% 100%, #FFF1D9, transparent 60%), #FFF5FA; }
[data-theme="rainbow"] body::after { display: block; opacity: 1; -webkit-mask: none; mask: none; background: radial-gradient(rgb(255 150 200 / .22) 2.2px, transparent 2.8px) 0 0 / 30px 30px, radial-gradient(rgb(180 150 255 / .17) 2.2px, transparent 2.8px) 15px 15px / 30px 30px; }
[data-theme="rainbow"] .stars { display: none; }
[data-theme="rainbow"] .aur { opacity: .55; }
[data-theme="rainbow"] .aur.a1 { background: radial-gradient(closest-side, rgb(255 170 210 / .8), transparent); }
[data-theme="rainbow"] .aur.a2 { background: radial-gradient(closest-side, rgb(175 215 255 / .8), transparent); }
[data-theme="rainbow"] .aur.a3 { background: radial-gradient(closest-side, rgb(255 225 160 / .7), transparent); }
[data-theme="rainbow"] .aur.a4 { display: block; width: 44vmax; height: 38vmax; top: 10%; inset-inline-end: 6%; background: radial-gradient(closest-side, rgb(205 180 255 / .75), transparent); animation-duration: 40s; animation-delay: -20s; }
[data-theme="rainbow"] .aur.a5 { display: block; width: 40vmax; height: 34vmax; bottom: -4vmax; inset-inline-start: 20%; background: radial-gradient(closest-side, rgb(180 240 210 / .7), transparent); animation-duration: 48s; animation-delay: -8s; }

/* pastel rainbow standing on two clouds, floating hearts, twinkling sparkles */
.rbw-arc, .fl, .spk, .m-hearts, .cat-cute { display: none; }
[data-theme="rainbow"] .rbw-arc { display: block; position: absolute; top: 12vh; inset-inline-end: -7vmax; width: 32vmax; height: 16vmax;
  background: radial-gradient(circle 16vmax at 50% 100%, transparent 46%, rgb(255 168 210 / .55) 46% 53%, rgb(255 206 168 / .55) 53% 60%, rgb(255 236 150 / .55) 60% 67%, rgb(180 236 200 / .55) 67% 74%, rgb(168 214 255 / .55) 74% 81%, rgb(205 182 255 / .55) 81% 88%, transparent 88%); }
[data-theme="rainbow"] .rbw-arc::before, [data-theme="rainbow"] .rbw-arc::after { content: ""; position: absolute; bottom: -1.4vmax; width: 10vmax; height: 4.6vmax;
  background: radial-gradient(circle 1.7vmax at 3.2vmax 2.9vmax, #fff 96%, #fff0), radial-gradient(circle 2.3vmax at 5.4vmax 2.3vmax, #fff 96%, #fff0), radial-gradient(circle 1.6vmax at 7.5vmax 3vmax, #fff 96%, #fff0), linear-gradient(#fff, #fff) 1.6vmax 2.9vmax / 7vmax 1.7vmax no-repeat;
  filter: drop-shadow(0 .5vmax .7vmax rgb(240 120 180 / .25)); }
[data-theme="rainbow"] .rbw-arc::before { left: 0; }
[data-theme="rainbow"] .rbw-arc::after { right: 0; }
[data-theme="rainbow"] .fl { display: block; position: absolute; bottom: -30px; width: 22px; height: 20px; clip-path: var(--star); background: #FFB3D6; opacity: 0; animation: fl-up 19s linear infinite; }
[data-theme="rainbow"] .fl.f1 { left: 7%; animation-delay: -3s; }
[data-theme="rainbow"] .fl.f2 { left: 21%; width: 14px; height: 13px; background: #D7C4FF; animation-duration: 23s; animation-delay: -11s; }
[data-theme="rainbow"] .fl.f3 { left: 44%; width: 18px; height: 16px; background: #B8E2FF; animation-duration: 21s; animation-delay: -6s; }
[data-theme="rainbow"] .fl.f4 { left: 61%; width: 26px; height: 24px; background: #FFC9DF; animation-duration: 25s; animation-delay: -16s; }
[data-theme="rainbow"] .fl.f5 { left: 78%; width: 15px; height: 14px; background: #FFD3B0; animation-duration: 20s; animation-delay: -9s; }
[data-theme="rainbow"] .fl.f6 { left: 93%; width: 20px; height: 18px; background: #C9F0DA; animation-duration: 24s; animation-delay: -1s; }
@keyframes fl-up { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 8% { opacity: .85; } 50% { transform: translate(26px, -55vh) rotate(10deg); } 92% { opacity: .7; } 100% { transform: translate(-12px, -112vh) rotate(-6deg); opacity: 0; } }
[data-theme="rainbow"] .spk { display: block; position: absolute; width: 18px; height: 18px; background: #FFC2E0; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: spk 2.8s ease-in-out infinite; }
[data-theme="rainbow"] .spk.k1 { top: 18%; left: 12%; }
[data-theme="rainbow"] .spk.k2 { top: 34%; right: 9%; width: 12px; height: 12px; background: #D7C4FF; animation-delay: -.9s; }
[data-theme="rainbow"] .spk.k3 { top: 62%; left: 5%; width: 14px; height: 14px; background: #B8E2FF; animation-delay: -1.7s; }
[data-theme="rainbow"] .spk.k4 { top: 76%; right: 14%; background: #FFD3B0; animation-delay: -2.2s; }
@keyframes spk { 0%, 100% { transform: scale(.45) rotate(0deg); opacity: .35; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-8deg); } }

/* the cat gets blush and a bow; the seal gets hearts */
[data-theme="rainbow"] .cat-cute, [data-theme="rainbow"] .m-hearts { display: inline; }
[data-theme="rainbow"] .m-dots { display: none; }
.m-hearts { fill: #FF8DC7; }
.cute-blush { fill: #FF8DC7; opacity: .55; }
.cute-bow path, .cute-bow .bow-knot { fill: #FF9ECF; stroke: #D6337F; stroke-width: 6; stroke-linejoin: round; }
.cute-bow .bow-tail { fill: #FF7DBB; }
.cute-bow .bow-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .85; }

/* clear, strong text */
[data-theme="rainbow"] :is(.phero h1, .id-main h1, .hero-title, .getapps-head h2) { color: rgb(96 14 82); text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 10px 28px rgb(255 120 190 / .35); }
[data-theme="rainbow"] .hero-title { position: relative; }
[data-theme="rainbow"] .hero-title::before, [data-theme="rainbow"] .hero-title::after { content: ""; position: absolute; clip-path: var(--star); animation: bob 3.4s ease-in-out infinite; }
/* the two stars stand beside the title, but never past the edge of the screen: on a narrow phone (or while the title
   is still in the fallback font and fills the row) they come in as far as needed, so the page cannot be pushed sideways */
[data-theme="rainbow"] .hero-title::before { width: 26px; height: 24px; background: #FF9ECF; top: -2px; inset-inline-start: max(-36px, calc((100% - 100vw) / 2 + 3px)); }
[data-theme="rainbow"] .hero-title::after { width: 16px; height: 15px; background: #C9A2FF; bottom: 8px; inset-inline-end: max(-26px, calc((100% - 100vw) / 2 + 3px)); animation-delay: -1.6s; }
@media (max-width: 383px) {
  [data-theme="rainbow"] .hero-title::before { top: -22px; }      /* no room beside the first line: above its corner */
}
[data-theme="rainbow"] .vf { --vf-gold: linear-gradient(180deg, #FFD6EB, #FFA2D0 55%, #FF86C3); --vf-ink: rgb(92 12 72); background: rgb(255 255 255 / .86); border: 2px solid #fff; box-shadow: 0 14px 34px -18px rgb(230 90 160 / .55), 0 0 0 1px rgb(255 170 210 / .5); }

/* candy buttons, soft fields */
[data-theme="rainbow"] .btn { border-radius: 999px; }
[data-theme="rainbow"] :is(.btn-gold, .app-cta) { background: linear-gradient(180deg, #FFD6EB, #FFA2D0 55%, #FF86C3); color: rgb(92 12 72); border: 0; text-shadow: 0 1px 0 rgb(255 255 255 / .55);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .85), inset 0 -3px 0 rgb(220 70 150 / .3), 0 12px 24px -12px rgb(255 90 170 / .75); }
[data-theme="rainbow"] :is(.btn-gold, .app-cta):hover { filter: saturate(1.15) brightness(1.03); }
[data-theme="rainbow"] .btn:active { transform: scale(.94); }
[data-theme="rainbow"] .btn-ghost { background: #fff; border: 2px solid #FFD0E6; color: rgb(72 20 70); }
[data-theme="rainbow"] .btn-turq { background: #F3EEFF; border: 2px solid #E2D6FF; color: rgb(118 48 210); }
[data-theme="rainbow"] :is(.pager .is-on, .chip-check input:checked + span, .steps b, .b-keys-n) { background: linear-gradient(180deg, #FFD6EB, #FF9CCD); color: rgb(92 12 72); text-shadow: none; }
[data-theme="rainbow"] :is(.field input, .field select, .field textarea, .input, .ht-row input) { border: 2px solid #FFD6EA; border-radius: 16px; }
[data-theme="rainbow"] :is(.field input, .field select, .field textarea, .input, .ht-row input):focus { border-color: #FF9ECF; box-shadow: 0 0 0 4px rgb(255 158 207 / .25); }

/* surfaces: white, rounded, a little stitched */
[data-theme="rainbow"] :is(.panel, .pcard, .gcard, .appcard, .bcard, .summon) { border-radius: 30px; }
[data-theme="rainbow"] .panel { background: rgb(255 255 255 / .88); border: 2px solid #fff; box-shadow: 0 18px 40px -26px rgb(220 80 160 / .45); }
[data-theme="rainbow"] :is(.bcard, .summon) { background: linear-gradient(170deg, #FFFFFF, #FFF5FA) padding-box, linear-gradient(135deg, #FFC2E0, #D9C8FF, #BFE3FF) border-box; border: 2px solid transparent; animation: none; }
[data-theme="rainbow"] :is(.bcard, .appcard, .summon) { outline: 2px dashed rgb(255 160 205 / .6); outline-offset: -9px; }
[data-theme="rainbow"] .gcard { background: #fff; border: 2px solid #fff; border-top: 5px solid var(--rb, #FFB3D6); box-shadow: 0 18px 36px -22px rgb(220 80 160 / .5); }
[data-theme="rainbow"] .gcard:nth-child(5n+2) { --rb: #B8E2FF; }
[data-theme="rainbow"] .gcard:nth-child(5n+3) { --rb: #FFE29A; }
[data-theme="rainbow"] .gcard:nth-child(5n+4) { --rb: #D7C4FF; }
[data-theme="rainbow"] .gcard:nth-child(5n) { --rb: #BFF3D6; }
[data-theme="rainbow"] .gcard:hover { box-shadow: 0 26px 50px -24px var(--rb, #FFB3D6), 0 0 0 2px var(--rb, #FFB3D6); }
[data-theme="rainbow"] .pcard { background: rgb(255 255 255 / .9); border: 2px solid #fff; }
[data-theme="rainbow"] .appcard { background: linear-gradient(170deg, #fff, #FFF4FA); border: 2px solid #fff; }
[data-theme="rainbow"] :is(.pstat, .id-stat) { --pc: #FFE0EF; background: linear-gradient(160deg, #fff, var(--pc)); border: 2px solid #fff; box-shadow: 0 14px 28px -16px rgb(220 90 160 / .45), inset 0 2px 0 #fff; }
[data-theme="rainbow"] :is(.pstat, .id-stat):nth-child(4n+2) { --pc: #E8E0FF; }
[data-theme="rainbow"] :is(.pstat, .id-stat):nth-child(4n+3) { --pc: #DDF1FF; }
[data-theme="rainbow"] :is(.pstat, .id-stat):nth-child(4n) { --pc: #E0F8EC; }
[data-theme="rainbow"] :is(.pstat b, .id-stat b) { color: rgb(96 14 82); text-shadow: 0 2px 0 #fff; }
[data-theme="rainbow"] :is(.pstat, .id-stat)::after { background: linear-gradient(90deg, transparent, #FF8DC7, transparent); }

/* headers: polka dots, pastel sunburst, a little cluster of hearts */
[data-theme="rainbow"] :is(.phero, .idhero) { background: radial-gradient(rgb(255 160 205 / .2) 2px, transparent 2.6px) 0 0 / 24px 24px, linear-gradient(135deg, rgb(255 255 255 / .95), rgb(255 244 250 / .9)); border: 2px solid #fff; box-shadow: 0 30px 60px -36px rgb(220 80 160 / .55), 0 0 0 1px rgb(255 180 215 / .5); }
[data-theme="rainbow"] .phero-rays { opacity: .7; background: repeating-conic-gradient(from 0deg, rgb(255 179 214 / .32) 0 3deg, transparent 3deg 10deg, rgb(201 162 255 / .28) 10deg 13deg, transparent 13deg 20deg, rgb(160 214 255 / .3) 20deg 23deg, transparent 23deg 30deg); }
[data-theme="rainbow"] .phero-rays::after { background: none; }
[data-theme="rainbow"] :is(.phero, .idhero)::before { content: ""; position: absolute; z-index: -1; top: 16px; inset-inline-start: 16px; width: 120px; height: 84px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 90'%3E%3Cpath transform='translate(24 34) scale(1.7)' d='M0 5C-1.5 3.6-7 .4-7-3C-7-5.4-5.2-7-3.2-7C-1.8-7-.6-6.2 0-5C.6-6.2 1.8-7 3.2-7C5.2-7 7-5.4 7-3C7 .4 1.5 3.6 0 5Z' fill='rgb(255,158,207)'/%3E%3Cpath transform='translate(60 18) scale(1.05)' d='M0 5C-1.5 3.6-7 .4-7-3C-7-5.4-5.2-7-3.2-7C-1.8-7-.6-6.2 0-5C.6-6.2 1.8-7 3.2-7C5.2-7 7-5.4 7-3C7 .4 1.5 3.6 0 5Z' fill='rgb(201,162,255)'/%3E%3Cpath transform='translate(52 60) scale(.85)' d='M0 5C-1.5 3.6-7 .4-7-3C-7-5.4-5.2-7-3.2-7C-1.8-7-.6-6.2 0-5C.6-6.2 1.8-7 3.2-7C5.2-7 7-5.4 7-3C7 .4 1.5 3.6 0 5Z' fill='rgb(150,206,255)'/%3E%3Cpath transform='translate(92 30)' d='M0-9L2.2-2.2 9 0 2.2 2.2 0 9-2.2 2.2-9 0-2.2-2.2Z' fill='rgb(255,194,224)'/%3E%3Cpath transform='translate(104 64) scale(.7)' d='M0-9L2.2-2.2 9 0 2.2 2.2 0 9-2.2 2.2-9 0-2.2-2.2Z' fill='rgb(255,211,176)'/%3E%3C/svg%3E") no-repeat 0 0 / contain; animation: bob 4s ease-in-out infinite; }
[data-theme="rainbow"] .id-face { background: radial-gradient(circle at 50% 30%, #FFFFFF, #FFE3F1 65%, #FFD0E8); color: rgb(96 14 82); text-shadow: 0 2px 0 #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px #FFC2E0, 0 14px 40px rgb(255 120 190 / .45); }
[data-theme="rainbow"] .id-planets i::after { border-radius: 0; clip-path: var(--star); background: #FF8DC7; box-shadow: none; width: 16px; height: 15px; margin-left: -8px; top: -7px; }
[data-theme="rainbow"] .id-planets i:nth-child(2)::after { background: #C9A2FF; width: 12px; height: 11px; margin-left: -6px; top: -5px; }
[data-theme="rainbow"] .id-planets i:nth-child(3)::after { background: #8FD0FF; width: 10px; height: 9px; margin-left: -5px; top: -4px; }
[data-theme="rainbow"] .orb-ticks line.on { stroke: hsl(calc(var(--h) * 1deg) 88% 74%); filter: none; }
[data-theme="rainbow"] .orb-wrap { filter: drop-shadow(0 0 30px rgb(255 140 200 / .35)); }
[data-theme="rainbow"] .tag-gold { background: #FFE6F2; color: rgb(170 20 104); border-color: #FFC8E2; }
[data-theme="rainbow"] .tag-turq { background: #EFE9FF; color: rgb(100 50 200); border-color: #DCCFFF; }
.tsw-rainbow { background: linear-gradient(135deg, #FFB3D6, #D7C4FF 55%, #B8E2FF); }
.rb-spark { width: 15px; height: 14px; background: hsl(var(--h) 90% 74%); }

/* ---------- clearer text in every theme ---------- */
[data-theme="light"] { --c-tx3: 106 100 146; --brand-tx: 116 68 6; }
[data-theme="dark"] { --c-tx3: 146 130 136; --brand-tx: 248 236 230; }
.vf-brand:hover { opacity: .85; }
html[lang="fa"] .vf-brand span { -webkit-text-stroke: .4px currentColor; }
:is([data-theme="light"], [data-theme="rainbow"]) .vf-brand { text-shadow: 0 1px 0 rgb(255 255 255 / .9); }
[data-theme="dark"] .vf-brand { text-shadow: 0 0 14px rgb(255 30 50 / .55); }

/* ---------- admin: settings tabs, theme cards, text editor ---------- */
.subtabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 16px; background: rgb(var(--c-hl) / .05); border: 1px solid var(--line-2); }
.subtabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; color: var(--mist); text-decoration: none; font-size: var(--fs-sm); }
.subtabs a:hover { color: var(--parch); }
.subtabs a.is-on { background: rgb(var(--c-ac) / .16); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .35); }
.subtabs .ic { width: 16px; height: 16px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 6px 0 18px; }
@media (max-width: 700px) { .theme-cards { grid-template-columns: 1fr; } }
.theme-card { position: relative; display: grid; gap: 10px; padding: 10px; border-radius: 20px; border: 2px solid var(--line-2); cursor: pointer; transition: border-color .2s, transform .3s var(--spring), box-shadow .2s; }
.theme-card:hover { transform: translateY(-3px); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .18); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.tc-prev { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.tc-prev i { position: absolute; display: block; }
.tp-nav { top: 8%; left: 10%; right: 10%; height: 10%; border-radius: 99px; }
.tp-title { top: 26%; left: 30%; right: 30%; height: 7%; border-radius: 99px; }
.tp-ring { top: 40%; left: 50%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; }
.tp-ring i { inset: 24%; border-radius: 50%; }
.tp-btn { bottom: 8%; left: 38%; right: 38%; height: 7%; border-radius: 99px; }
.tc-light .tc-prev { background: linear-gradient(160deg, #FBF9FF, #EEE9FB); }
.tc-light .tp-nav { background: #fff; box-shadow: 0 2px 6px rgb(90 70 160 / .18); }
.tc-light .tp-title { background: #2A2648; }
.tc-light .tp-ring { border: 2px solid #D49A3E; background: #fff; }
.tc-light .tp-ring i { background: #F7D79A; }
.tc-light .tp-btn { background: #E0A64E; }
.tc-rainbow .tc-prev { background: radial-gradient(rgb(255 160 205 / .4) 1.5px, transparent 2px) 0 0 / 10px 10px, linear-gradient(160deg, #FFF3F9, #EFE6FF 60%, #E2F2FF); }
.tc-rainbow .tp-nav { background: #fff; box-shadow: 0 2px 6px rgb(230 90 160 / .25); }
.tc-rainbow .tp-title { background: #60104E; }
.tc-rainbow .tp-ring { border: 2px solid #FF9ECF; background: #fff; }
.tc-rainbow .tp-ring i { background: #FF9ECF; clip-path: polygon(50.0% 23.9%, 50.2% 22.2%, 51.5% 17.5%, 54.7% 11.3%, 60.2% 5.2%, 67.7% 1.0%, 76.5% 0.0%, 85.4% 2.7%, 93.0% 8.7%, 98.2% 17.3%, 100.0% 27.3%, 98.2% 37.7%, 93.0% 47.7%, 85.4% 57.2%, 76.5% 66.0%, 67.7% 74.4%, 60.2% 82.3%, 54.7% 89.3%, 51.5% 95.0%, 50.2% 98.7%, 50.0% 100.0%, 49.8% 98.7%, 48.5% 95.0%, 45.3% 89.3%, 39.8% 82.3%, 32.3% 74.4%, 23.5% 66.0%, 14.6% 57.2%, 7.0% 47.7%, 1.8% 37.7%, 0.0% 27.3%, 1.8% 17.3%, 7.0% 8.7%, 14.6% 2.7%, 23.5% 0.0%, 32.3% 1.0%, 39.8% 5.2%, 45.3% 11.3%, 48.5% 17.5%, 49.8% 22.2%); border-radius: 0; }
.tc-rainbow .tp-btn { background: #FF9CCD; }
.tc-dark .tc-prev { background: radial-gradient(80% 60% at 50% 0%, #4A0812, transparent 70%), #07050A; }
.tc-dark .tp-nav { background: #1A0E13; }
.tc-dark .tp-title { background: #EDE0DA; }
.tc-dark .tp-ring { border: 2px solid #C8102E; background: #12080B; box-shadow: 0 0 14px rgb(200 16 46 / .6); }
.tc-dark .tp-ring i { background: #3A0A12; }
.tc-dark .tp-btn { background: #C8102E; }
.tc-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); padding: 0 4px; }
.tc-name > .ic { width: 18px; height: 18px; color: var(--gold); }
.tc-check { margin-inline-start: auto; display: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: rgb(var(--c-on)); place-items: center; }
.tc-check .ic { width: 14px; height: 14px; }
.theme-card:has(input:checked) .tc-check { display: inline-grid; }
.own-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--c-ac) / .1); color: var(--parch); font-size: var(--fs-sm); }
.own-note > .ic { width: 18px; height: 18px; color: var(--gold-2); flex: none; }
.own-note .btn { margin-inline-start: auto; }
.ht-head, .ht-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.ht-head { font-size: var(--fs-xs); color: var(--mist-2); margin: 4px 0 -2px; }
.ht-row { padding: 6px 0; }
.ht-row input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--parch); font: inherit; font-size: var(--fs-sm); }
.ht-row input[lang="en"] { font-family: var(--latin); }
.ht-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .2); }
.ht-label { display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--parch); }
.ht-label small { color: var(--mist-2); font-size: .74rem; }
.ht-group { margin: 18px 0 4px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: var(--fs-md); font-weight: 400; color: var(--gold-2); }
.ht-group:first-of-type { margin-top: 10px; border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .ht-head { display: none; } .ht-row { grid-template-columns: 1fr; gap: 6px; } }
.appearance-form .panel { margin-bottom: 18px; }
.app-set .ht-row { padding: 4px 0; }
.save-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; justify-content: flex-end; margin-top: 4px; pointer-events: none; }
.save-bar .btn { pointer-events: auto; box-shadow: 0 14px 30px -12px rgb(var(--c-sh) / calc(.8 * var(--sha))); }
@media (max-width: 859px) {
  .save-bar { bottom: calc(var(--dock-h, 78px) + 4px); }      /* as .sticky-save: on the bottom menu */
}
.reset-texts { margin-top: 12px; }

/* =========================================================
   Onboarding, verification, admin messaging
   ========================================================= */

/* onboarding */
.welcome-card { max-width: 470px; }
.wsteps { list-style: none; margin: 4px 0 22px; padding: 0; display: flex; justify-content: space-between; gap: 4px; position: relative; counter-reset: ws; }
.wsteps::before { content: ""; position: absolute; top: 13px; inset-inline: 12%; height: 2px; background: var(--line-2); }
.wsteps li { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .72rem; line-height: 1.4; color: var(--mist-2); }
.wsteps li i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); border: 2px solid var(--line-2); font-style: normal; }
.wsteps li i .ic { width: 15px; height: 15px; }
.wsteps li.is-done { color: var(--mist); }
.wsteps li.is-done i { background: var(--turq); border-color: var(--turq); color: var(--ink-0); }
.wsteps li.is-now { color: var(--parch); }
.wsteps li.is-now i { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .2); background: rgb(var(--c-ac) / .18); }
.wsteps li.is-now i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: wpulse 1.6s ease-in-out infinite; }
@keyframes wpulse { 50% { transform: scale(.6); opacity: .6; } }
.wlead { color: var(--parch); margin-bottom: 12px; line-height: 1.9; }
.wlead b { white-space: nowrap; }
.wnote { color: var(--mist); font-size: var(--fs-sm); line-height: 1.9; }
.otp-input { width: 100%; height: 66px; margin-bottom: 12px; border-radius: 18px; border: 2px solid var(--line); background: var(--field); color: var(--parch); text-align: center; font-family: var(--latin), monospace; font-size: 2rem; font-weight: 700; letter-spacing: .45em; padding-inline-start: .45em; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.otp-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .2); }
.otp-input.is-bad { border-color: var(--pom); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.wactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.wactions .btn[disabled] { opacity: .55; cursor: default; }
.wskip { margin-top: 10px; }
.wlogout { margin-top: 18px; text-align: center; }
.linkbtn { border: 0; background: none; color: var(--mist-2); font: inherit; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--parch); }
.mail-wait { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 0 4px; }
.mail-illu { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 8px; background: rgb(var(--c-ac) / .14); color: var(--gold-2); box-shadow: 0 0 0 1px rgb(var(--c-ac) / .3), 0 18px 40px -18px rgb(var(--c-ac) / .7); animation: mailbob 2.4s ease-in-out infinite; }
.mail-illu .ic { width: 38px; height: 38px; }
@keyframes mailbob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* verification badges & email preferences */
.vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.vbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); background: rgb(var(--c-ac) / .14); color: var(--gold-2); border: 1px solid rgb(var(--c-ac) / .3); }
.vbadge .ic { width: 13px; height: 13px; }
.vbadge.is-ok { background: rgb(var(--c-ok) / .16); color: var(--pist); border-color: rgb(var(--c-ok) / .35); }
.vbadge.is-bad { background: rgb(var(--c-bad) / .14); color: var(--pom-2); border-color: rgb(var(--c-bad) / .35); }
.b-mail { grid-column: 1 / -1; }
.prefs-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.prefs { display: flex; flex-wrap: wrap; gap: 10px; }
.pref { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(var(--c-hl) / .03); cursor: pointer; font-size: var(--fs-sm); }
.pref input { position: absolute; opacity: 0; pointer-events: none; }
.pref-box { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; transition: background .2s, color .2s, border-color .2s; }
.pref-box .ic { width: 14px; height: 14px; }
.pref:has(input:checked) { border-color: rgb(var(--c-ac) / .45); background: rgb(var(--c-ac) / .08); }
.pref:has(input:checked) .pref-box { background: var(--gold); border-color: var(--gold); color: rgb(var(--c-on)); }
.pref:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* admin: choices, flow preview, status, tests, logs */
.choice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .choice-cards { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; justify-items: start; gap: 6px; padding: 16px; border-radius: 18px; border: 2px solid var(--line-2); cursor: pointer; transition: border-color .2s, transform .3s var(--spring), box-shadow .2s; }
.choice:hover { transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .16); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgb(var(--c-ac) / .14); color: var(--gold-2); }
.choice-ic .ic { width: 20px; height: 20px; }
.choice b, .choice-row b { font-weight: 400; color: var(--parch); }
.choice small, .choice-row small { color: var(--mist); font-size: var(--fs-xs); line-height: 1.7; }
.choice-list { display: grid; gap: 8px; margin: 10px 0 14px; }
.choice-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; }
.choice-row input { margin-top: 5px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.choice-row span { display: grid; gap: 2px; }
.choice-row:has(input:checked) { border-color: rgb(var(--c-ac) / .5); background: rgb(var(--c-ac) / .07); }
.panel.is-muted { opacity: .55; }
.warn-note { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-ac) / .1); color: var(--parch); font-size: var(--fs-sm); line-height: 1.8; }
.warn-note .ic { width: 17px; height: 17px; color: var(--gold-2); flex: none; margin-top: 3px; }
.flow { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 0; }
.flow li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--parch); }
.flow li b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--c-ac) / .16); color: var(--gold-2); font-weight: 400; font-size: var(--fs-sm); }
.flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 14px; top: 38px; height: calc(100% - 30px); width: 2px; background: var(--line); }
.flow li:last-child b { background: var(--turq); color: var(--ink-0); }
.flow li small { color: var(--mist-2); font-size: var(--fs-xs); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: var(--fs-sm); background: rgb(var(--c-ac) / .14); color: var(--gold-2); border: 1px solid rgb(var(--c-ac) / .35); }
.status-chip .ic { width: 15px; height: 15px; }
.status-chip.is-ok { background: rgb(var(--c-ok) / .16); color: var(--pist); border-color: rgb(var(--c-ok) / .4); }
.test-form { display: flex; flex-wrap: wrap; gap: 10px; }
.test-form .input { flex: 1; min-width: 220px; height: 46px; }
.row-2.tight { gap: 0 10px; }
details.adv { margin-top: 6px; }
details.adv summary { cursor: pointer; color: var(--mist); font-size: var(--fs-sm); padding: 6px 0; }
.msg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.msg-table th { text-align: start; font-weight: 400; color: var(--mist-2); font-size: var(--fs-xs); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.msg-table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.nowrap { white-space: nowrap; }


/* extension ads admin */
.extads-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .extads-grid { grid-template-columns: 1fr; } }
.extad { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); }
.extad .switch { margin: 0; }
.seg-sm { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(var(--c-hl) / .05); width: max-content; }
.seg-sm label { cursor: pointer; }
.seg-sm input { position: absolute; opacity: 0; pointer-events: none; }
.seg-sm span { display: inline-block; padding: 5px 14px; border-radius: 9px; font-size: var(--fs-sm); color: var(--mist); }
.seg-sm input:checked + span { background: rgb(var(--c-ac) / .16); color: var(--gold-2); }
.extad-prev { display: flex; align-items: center; gap: 12px; }
.extad-prev img { max-height: 70px; max-width: 220px; border-radius: 10px; border: 1px solid var(--line-2); }

/* users report */
.report-form { display: grid; gap: 16px; margin-bottom: 16px; }
.report-form .panel-title .ic, .report-preview .panel-title .ic, .cv-panel .panel-title .ic { width: 20px; height: 20px; margin-inline-end: 8px; vertical-align: -4px; color: var(--gold-2); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px 14px; }
.report-grid .field { margin: 0; }
.report-q { grid-column: 1 / -1; }
.report-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.report-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.report-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.report-tbl td, .report-tbl th { white-space: nowrap; }
/* contact & verification on the admin user page */
.cv-panel { margin-bottom: 18px; }
.cv-rows { display: grid; gap: 10px; }
.cv-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(var(--c-hl) / .03); }
.cv-label { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: var(--fs-sm); }
.cv-label .ic { width: 18px; height: 18px; }
.cv-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cv-state { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-act { margin: 0; }
/* change / remove the email or number: folded under its row until asked for */
.cv-edit { grid-column: 1 / -1; }
.cv-edit summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--mist); font-size: var(--fs-xs); }
.cv-edit summary::-webkit-details-marker { display: none; }
.cv-edit summary .ic { width: 14px; height: 14px; }
.cv-edit summary:hover, .cv-edit[open] summary { color: var(--gold-2); }
.cv-edit-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.cv-edit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cv-edit-field { margin: 0; width: min(300px, 62vw); }
.cv-panel > .hint { margin-top: 12px; }
@media (max-width: 720px) { .cv-row { grid-template-columns: 1fr auto; } .cv-label { grid-column: 1 / -1; } .cv-state { grid-column: 1; } }
/* verification marks in the users list */
.vm { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-inline-start: 6px; border-radius: 50%; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.vm.ok { background: rgb(var(--c-ok) / .18); color: var(--pist); }
.vm.no { background: rgb(var(--c-ac) / .18); color: var(--gold-2); }

/* contact us */
.contact-page, .legal-page { max-width: 1120px; margin-inline: auto; }
.contact-hero { display: flex; align-items: center; gap: 22px; padding: 28px 30px; margin-bottom: 18px; }
.contact-hero .contact-cat { width: 96px; height: 96px; flex: none; }
.contact-hero h1 { margin: 0 0 6px; }
.contact-hero p { margin: 0; color: var(--mist); line-height: 2; }
@media (max-width: 640px) { .contact-hero { flex-direction: column; text-align: center; } }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; margin: 0; }
.cc-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgb(var(--c-ac) / .14); color: var(--gold-2); }
.cc-ico .ic { width: 25px; height: 25px; }
.cc-body { display: grid; gap: 3px; min-width: 0; }
.cc-label { font-size: var(--fs-sm); color: var(--mist); }
.cc-value { font-size: var(--fs-md); overflow-wrap: anywhere; }
.cc-actions { display: flex; align-items: center; gap: 6px; }
.cc-telegram .cc-ico { color: #2aabee; background: rgb(42 171 238 / .15); }
.cc-whatsapp .cc-ico { color: #25d366; background: rgb(37 211 102 / .15); }
.cc-instagram .cc-ico { color: #e1306c; background: rgb(225 48 108 / .14); }
.cc-linkedin .cc-ico { color: #2f7fd8; background: rgb(10 102 194 / .15); }
.cc-bale .cc-ico, .cc-eitaa .cc-ico, .cc-rubika .cc-ico { color: #18a999; background: rgb(24 169 153 / .15); }
.cc-phone .cc-ico, .cc-mobile .cc-ico { color: var(--turq, #1fa59c); background: rgb(31 165 156 / .15); }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 6px; font-size: var(--fs-sm); color: var(--mist); }
/* privacy */
.legal-wrap.has-toc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.legal-toc { position: sticky; top: 96px; padding: 18px 20px; margin: 0; }
/* one column: the list of contents is the first thing on the page and scrolls away with it (kept sticky here, the
   text below slid over it and its last entries could be neither read nor pressed) */
@media (max-width: 920px) { .legal-wrap.has-toc { grid-template-columns: 1fr; } .legal-toc { position: static; } }
.legal-toc b { display: block; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 7px; font-size: var(--fs-sm); line-height: 1.7; }
.legal-body { padding: 28px 32px; margin: 0; line-height: 2.15; }
.legal-body h2 { font-size: var(--fs-lg); margin: 28px 0 8px; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 7px; }
.legal-body a { color: var(--gold-2); }
/* admin: contact & privacy editors */
.pages-switch { display: inline-flex; gap: 6px; padding: 5px; margin: 0 0 16px; border-radius: 14px; background: rgb(var(--c-hl) / .05); }
.pages-switch a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 10px; color: var(--mist); font-size: var(--fs-sm); text-decoration: none; }
.pages-switch a.is-on { background: rgb(var(--c-ac) / .16); color: var(--gold-2); }
.pages-switch .ic { width: 17px; height: 17px; }
.pages-form { display: grid; gap: 16px; }
.ch-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.ch-row { display: grid; grid-template-columns: 150px minmax(190px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); }
.ch-row.is-bad { border-color: #e0566b; box-shadow: 0 0 0 3px rgb(224 86 107 / .14); }
.ch-row .input, .ch-row select { width: 100%; min-width: 0; }
.ch-on { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); white-space: nowrap; }
.ch-tools { display: inline-flex; gap: 4px; }
.ch-err { grid-column: 1 / -1; color: #e0566b; font-size: var(--fs-xs); }
.ic.flip-y { transform: rotate(180deg); }
@media (max-width: 1050px) { .ch-row { grid-template-columns: 1fr 1fr; } .ch-row .ch-value { grid-column: 1 / -1; } }
.cws-box p { margin: 0 0 8px; }
.cws-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.cws-row > span { min-width: 240px; color: var(--mist); font-size: var(--fs-sm); }
.cws-row code, .md-help code { padding: 3px 9px; border-radius: 8px; background: rgb(var(--c-hl) / .07); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; }
.pv-text { width: 100%; min-height: 420px; font-size: 14px; line-height: 1.95; }
.md-help { margin-top: 14px; }
.md-help summary { cursor: pointer; color: var(--gold-2); }
.md-help ul { display: grid; gap: 8px; margin: 10px 0 0; font-size: var(--fs-sm); }
.pv-reset { margin: 12px 0 0; }
/* contact cards: actions sit under the value so long handles never break mid-word */
.contact-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.cc-actions { grid-column: 2; margin-top: 4px; }
.cc-value { overflow-wrap: break-word; word-break: normal; }
/* RTL pages: left-to-right values (emails, handles) line up with their label on the right */
html[dir="rtl"] .cc-value[dir="ltr"] { text-align: right; }

/* ============ Footer — a small magic card (no language links; they live in the header) ============ */
.foot { display: block; padding-top: 28px; font-size: var(--fs-sm); }
.foot-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 22px; padding: 18px 24px; border-radius: 26px;
  background: linear-gradient(135deg, rgb(var(--c-sf1) / .8), rgb(var(--c-sf2) / .6)); border: 1px solid rgb(var(--c-ac) / .22);
  box-shadow: 0 22px 60px -30px rgb(var(--c-ac) / .55), inset 0 1px 0 rgb(255 255 255 / .06); backdrop-filter: blur(14px); }
.foot-card::before { content: ""; position: absolute; inset: auto 10% -70%; height: 140%; z-index: -1; background: radial-gradient(closest-side, rgb(var(--c-ac) / .2), transparent 70%); }
.foot-aura { position: absolute; inset: 0 0 auto; height: 2px; z-index: -1; background: linear-gradient(90deg, transparent, rgb(var(--c-glow)), var(--gold), var(--turq), rgb(var(--c-glow)), transparent); background-size: 220% 100%; animation: footAura 6s linear infinite; }
.foot-stars { position: absolute; inset: 0; z-index: -1; opacity: .7; animation: footTwinkle 3.6s ease-in-out infinite alternate;
  background-image: radial-gradient(1.5px 1.5px at 9% 32%, rgb(var(--c-ac0) / .95), transparent), radial-gradient(1px 1px at 31% 74%, rgb(255 255 255 / .85), transparent), radial-gradient(1.6px 1.6px at 57% 22%, rgb(var(--c-glow) / .85), transparent), radial-gradient(1px 1px at 79% 68%, rgb(255 255 255 / .75), transparent), radial-gradient(1.3px 1.3px at 93% 30%, rgb(var(--c-ac0) / .9), transparent); }
.foot-brand { display: inline-flex; align-items: center; gap: 11px; color: rgb(var(--c-title)); text-decoration: none; }
.foot-brand > :first-child { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 10px rgb(var(--c-glow) / .45)); }
.foot-brand > span { display: grid; line-height: 1.35; }
.foot-brand b { font-size: var(--fs-md); }
.foot-brand small { font-size: var(--fs-xs); color: var(--mist); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot .foot-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: rgb(var(--c-tx2)); background: rgb(var(--c-bg0) / .35); border: 1px solid rgb(var(--c-ac) / .16); transition: transform .25s var(--spring), border-color .25s, color .25s, box-shadow .25s; }
.foot .foot-links a .ic { width: 16px; height: 16px; color: var(--gold-2); }
.foot .foot-links a:hover { color: rgb(var(--c-title)); border-color: rgb(var(--c-ac) / .5); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(var(--c-ac) / .8); }
.foot-copy { display: inline-flex; align-items: center; gap: 7px; color: var(--mist); font-size: var(--fs-xs); }
.foot-copy i { display: inline-block; font-style: normal; color: var(--gold); animation: footSpin 7s linear infinite; }
[data-theme="rainbow"] .foot-copy i, [data-theme="cute"] .foot-copy i { font-size: 0; animation: footBeat 1.4s ease-in-out infinite; }
[data-theme="rainbow"] .foot-copy i::before, [data-theme="cute"] .foot-copy i::before { content: "♥"; font-size: 14px; color: #ff6fae; }
@keyframes footAura { to { background-position: -220% 0; } }
@keyframes footTwinkle { from { opacity: .3; } to { opacity: .85; } }
@keyframes footSpin { to { transform: rotate(360deg); } }
@keyframes footBeat { 50% { transform: scale(1.25); } }
@media (max-width: 760px) { .foot-card { justify-content: center; text-align: center; padding: 16px 14px; } .foot-links { justify-content: center; } }

/* ============ Home — the magic app stage (compact) ============ */
.seo-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; font-size: var(--fs-xs); color: var(--mist); }
.seo-files a { padding: 3px 10px; border-radius: 99px; color: var(--turq-2); background: rgb(var(--c-al) / .08); box-shadow: inset 0 0 0 1px rgb(var(--c-al) / .22); }

/* Home, for visitors: what the site is, in words, and the questions people ask. No cards: a caption held by the
   viewfinder's corners on one side, the questions as plain rows on the other. */
.about { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px 56px; align-items: start; margin: 34px 0 10px; padding: 34px 38px 30px; text-align: start; }
.about::before, .about::after { content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid rgb(var(--c-ac) / .55); pointer-events: none; }
.about::before { inset-block-start: 0; inset-inline-start: 0; border-inline-end: 0; border-block-end: 0; border-start-start-radius: 14px; }
.about::after { inset-block-end: 0; inset-inline-end: 0; border-inline-start: 0; border-block-start: 0; border-end-end-radius: 14px; }
.about h2 { margin: 0 0 12px; font-size: var(--fs-xl); line-height: 1.5; color: rgb(var(--c-title)); }
.about-lead { margin: 0 0 22px; max-width: 62ch; font-size: var(--fs-md, 1.0625rem); line-height: 2.05; color: var(--parch); }
.about-points { display: grid; gap: 16px; margin: 0; }
.about-points dt { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; font-weight: 700; color: rgb(var(--c-title)); }
.about-points dt .ic { width: 18px; height: 18px; flex: none; color: var(--gold-2); }
.about-points dd { margin: 0; padding-inline-start: 27px; max-width: 60ch; font-size: var(--fs-sm); line-height: 1.95; color: var(--mist); }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding-inline-start: 27px; font-size: var(--fs-sm); }
.about-links a { color: var(--turq-2); text-decoration: underline; text-decoration-color: rgb(var(--c-link) / .35); text-underline-offset: 5px; }
.about-links a:hover { text-decoration-color: currentColor; }
.about-faq details { border-top: 1px solid var(--line-2); }
.about-faq details:last-of-type { border-bottom: 1px solid var(--line-2); }
.about-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.7; color: var(--parch); }
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary .ic { width: 17px; height: 17px; flex: none; color: var(--mist); transition: transform .2s ease; }
.about-faq details[open] summary .ic { transform: rotate(180deg); }
.about-faq summary:hover { color: rgb(var(--c-title)); }
.about-faq summary:focus-visible { outline: 2px solid rgb(var(--c-ac) / .7); outline-offset: 2px; border-radius: 8px; }
.about-faq details p { margin: -2px 2px 15px; max-width: 64ch; font-size: var(--fs-sm); line-height: 2; color: var(--mist); }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 26px; padding: 26px 20px 22px; }
}
@media (max-width: 520px) {
  .about { padding: 22px 14px 18px; }
  .about::before, .about::after { width: 26px; height: 26px; }
  .about-points dd, .about-links { padding-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .about-faq summary .ic { transition: none; } }

.appstage { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 18px; margin: 22px 0 6px; padding: 20px 26px; border-radius: 30px;
  background: radial-gradient(120% 140% at 82% 50%, rgb(var(--c-ac) / .2), transparent 60%), linear-gradient(135deg, rgb(var(--c-sf1) / .74), rgb(var(--c-sf2) / .46)); border: 1px solid rgb(var(--c-ac) / .24); box-shadow: 0 34px 90px -46px rgb(var(--c-ac) / .7); }
.as-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-xs); color: var(--gold-2); background: rgb(var(--c-ac) / .12); border: 1px solid rgb(var(--c-ac) / .26); }
.as-kicker i { display: inline-block; font-style: normal; animation: footSpin 5s linear infinite; }
.as-copy h2 { margin: 10px 0 6px; font-size: var(--fs-xl); color: rgb(var(--c-title)); }
.as-copy p { margin: 0 0 14px; color: var(--mist); line-height: 1.9; }
.as-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.as-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; border-radius: 18px; text-decoration: none; color: rgb(var(--c-title));
  background: linear-gradient(135deg, rgb(var(--c-ac) / .3), rgb(var(--c-ac) / .1)); border: 1px solid rgb(var(--c-ac) / .48); box-shadow: 0 12px 32px -16px rgb(var(--c-ac)), inset 0 1px 0 rgb(255 255 255 / .12); transition: transform .3s var(--spring), box-shadow .3s; }
.as-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .3) 48%, transparent 66%); transform: translateX(-130%); animation: asShine 3.8s ease-in-out infinite; }
.as-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 42px -14px rgb(var(--c-ac)); }
.as-btn-ic { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #2a1a05; background: radial-gradient(circle at 30% 28%, #fff3d0, var(--gold) 55%, var(--gold-3, #a97a2e)); box-shadow: 0 0 20px rgb(var(--c-glow) / .45); }
.as-btn-ic .ic { width: 22px; height: 22px; }
.as-btn-t { display: grid; line-height: 1.35; }
.as-btn-t b { font-size: var(--fs-md); }
.as-btn-t small { font-size: var(--fs-xs); color: rgb(var(--c-tx2)); }
.as-btn-go .ic { width: 18px; height: 18px; opacity: .8; }
.as-scene { position: relative; height: 240px; perspective: 900px; }
.as-portal { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; transform: translate(-50%, -50%); }
.as-portal .pr { position: absolute; inset: 0; border-radius: 50%; animation: asSpin 9s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgb(var(--c-glow) / .65), transparent 30%, rgb(var(--c-ac) / .55), transparent 62%, var(--gold), transparent 88%);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 73%, #000 78%, transparent 81%); mask: radial-gradient(closest-side, transparent 70%, #000 73%, #000 78%, transparent 81%); }
.as-portal .p2 { inset: 24px; animation-duration: 6s; animation-direction: reverse; opacity: .85; }
.as-portal .p3 { inset: 50px; animation-duration: 13s; opacity: .6; }
.as-portal::after { content: ""; position: absolute; inset: 64px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--c-glow) / .4), transparent 70%); animation: asPulse 3s ease-in-out infinite; }
.as-browser { position: absolute; left: 50%; top: 50%; width: 290px; height: 180px; margin: -98px 0 0 -158px; border-radius: 14px; overflow: hidden; z-index: 2;
  background: rgb(var(--c-bg1) / .94); border: 1px solid rgb(var(--c-ac) / .38); box-shadow: 0 30px 60px -22px rgb(0 0 0 / .6), 0 0 44px -8px rgb(var(--c-glow) / .5);
  transform: rotateY(-16deg) rotateX(7deg); animation: asFloat 6s ease-in-out infinite; }
.as-bar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: rgb(var(--c-sf2) / .95); border-bottom: 1px solid rgb(var(--c-ac) / .2); }
.as-bar > i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; }
.as-bar > i:nth-child(2) { background: #ffc857; } .as-bar > i:nth-child(3) { background: #4cd38a; }
.as-url { flex: 1; height: 15px; margin: 0 6px; padding: 0 8px; border-radius: 8px; background: rgb(var(--c-bg0) / .55); font: 9px/15px var(--latin, sans-serif); color: rgb(var(--c-tx3)); overflow: hidden; }
.as-ext { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: rgb(var(--c-ac) / .22); animation: asExt 6s ease-in-out infinite; }
.as-ext > * { width: 15px; height: 15px; }
.as-page { position: relative; height: calc(100% - 26px); padding: 14px; }
.as-page .ln { display: block; height: 7px; margin-bottom: 8px; border-radius: 4px; background: rgb(var(--c-tx3) / .3); }
.as-page .l1 { width: 72%; } .as-page .l2 { width: 44%; } .as-page .l3 { width: 82%; } .as-page .l4 { width: 58%; } .as-page .l5 { width: 36%; }
.as-page .blk { display: block; width: 56%; height: 44px; margin-bottom: 9px; border-radius: 8px; opacity: .85; background: linear-gradient(135deg, rgb(var(--c-ac) / .45), var(--turq)); }
.as-sel { position: absolute; left: 10px; top: 28px; width: 0; height: 0; border: 1.5px dashed var(--gold-2); border-radius: 4px; background: rgb(var(--c-glow) / .13); opacity: 0; animation: asSel 6s ease-in-out infinite; }
.as-cursor { position: absolute; right: -8px; bottom: -11px; width: 12px; height: 15px; background: #fff; clip-path: polygon(0 0, 0 100%, 30% 75%, 50% 100%, 65% 92%, 45% 68%, 85% 68%); filter: drop-shadow(0 1px 1px rgb(0 0 0 / .5)); }
.as-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: asFlash 6s linear infinite; }
.as-pop { position: absolute; right: 8px; top: 30px; width: 76px; padding: 6px; display: grid; gap: 4px; border-radius: 10px; background: rgb(var(--c-sf1)); border: 1px solid rgb(var(--c-ac) / .38); box-shadow: 0 10px 24px -8px rgb(0 0 0 / .55); transform-origin: top right; opacity: 0; animation: asPop 6s ease infinite; }
.as-pop i { height: 12px; border-radius: 4px; background: rgb(var(--c-ac) / .28); }
.as-pop i:first-child { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.as-shot { position: absolute; left: 50%; top: 50%; width: 92px; height: 36px; margin: -64px 0 0 -144px; z-index: 3; border-radius: 6px; opacity: 0; background: linear-gradient(135deg, rgb(var(--c-ac) / .7), var(--turq)); box-shadow: 0 0 24px rgb(var(--c-glow) / .8); animation: asShot 6s ease-in infinite; }
.as-link { position: absolute; left: 50%; bottom: 2px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 12px; border-radius: 999px; white-space: nowrap; font: 12px/1 var(--latin, sans-serif); color: rgb(var(--c-title));
  background: rgb(var(--c-sf1) / .96); border: 1px solid rgb(var(--c-ac) / .55); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .1), 0 12px 30px -10px rgb(var(--c-glow) / .85); opacity: 0; transform: translateX(-50%) scale(.7); animation: asLink 6s ease infinite; }
.as-link > .ic { width: 14px; height: 14px; color: var(--gold-2); }
.as-link b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--pist); transform: scale(0); animation: asCheck 6s ease infinite; }
.as-link b .ic { width: 12px; height: 12px; color: #fff; }
.as-q { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); animation: asTwinkle 7s ease-in-out infinite; }
.as-q.q1 { left: 6%; top: 18%; } .as-q.q2 { left: 90%; top: 14%; animation-delay: -2s; } .as-q.q3 { left: 94%; top: 70%; animation-delay: -4s; width: 4px; height: 4px; }
.as-q.q4 { left: 10%; top: 80%; animation-delay: -1s; } .as-q.q5 { left: 48%; top: 2%; animation-delay: -3s; width: 3px; height: 3px; } .as-q.q6 { left: 76%; top: 92%; animation-delay: -5s; }
[data-theme="rainbow"] .as-q, [data-theme="cute"] .as-q { width: auto; height: auto; background: none; box-shadow: none; }
[data-theme="rainbow"] .as-q::before, [data-theme="cute"] .as-q::before { content: "♥"; font-size: 12px; color: #ff7fbf; }
@keyframes asSpin { to { transform: rotate(360deg); } }
@keyframes asPulse { 50% { transform: scale(1.14); opacity: .6; } }
@keyframes asShine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes asFloat { 50% { transform: rotateY(-11deg) rotateX(5deg) translateY(-8px); } }
@keyframes asExt { 0%, 1% { transform: none; box-shadow: 0 0 0 0 rgb(var(--c-glow) / .9); } 4% { transform: scale(.82); } 7% { transform: none; box-shadow: 0 0 0 7px rgb(var(--c-glow) / 0); } 100% { box-shadow: none; } }
@keyframes asPop { 0%, 3% { opacity: 0; transform: scale(.6); } 6%, 11% { opacity: 1; transform: none; } 14%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes asSel { 0%, 15% { width: 0; height: 0; opacity: 0; } 16% { width: 0; height: 0; opacity: 1; } 36%, 44% { width: 168px; height: 62px; opacity: 1; } 48%, 100% { width: 168px; height: 62px; opacity: 0; } }
@keyframes asFlash { 0%, 38% { opacity: 0; } 39.5% { opacity: .85; } 44%, 100% { opacity: 0; } }
@keyframes asShot { 0%, 41% { opacity: 0; transform: none; } 43% { opacity: 1; transform: none; } 57% { opacity: .9; transform: translate(150px, 150px) scale(.2) rotate(-14deg); } 59%, 100% { opacity: 0; transform: translate(150px, 150px) scale(.1); } }
@keyframes asLink { 0%, 56% { opacity: 0; transform: translateX(-50%) scale(.7); } 61%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.92); } }
@keyframes asCheck { 0%, 65% { transform: scale(0); } 71%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes asTwinkle { 50% { transform: translateY(-12px) scale(1.4); opacity: .45; } }
@media (max-width: 860px) {
  .appstage { grid-template-columns: 1fr; gap: 0; padding: 18px 16px 10px; }
  .as-copy { text-align: center; }
  .as-ctas { justify-content: center; }
  .as-scene { height: 214px; margin-top: 4px; }
  .as-browser { transform: rotateY(-10deg) rotateX(5deg) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .appstage *, .appstage *::before, .appstage *::after, .foot-card *, .sup-hero *, .flow3 * { animation: none !important; }
  .as-link { opacity: 1; transform: translateX(-50%); }
  .as-link b { transform: none; }
}

/* ============ Requests — one compact capsule with a proportion bar ============ */
.pstrip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 430px; margin: 8px 0 4px; padding: 10px 4px 15px; border-radius: 20px; overflow: hidden; background: rgb(var(--c-bg0) / .5); border: 1px solid rgb(var(--c-ac) / .22); }
.ps { position: relative; display: grid; justify-items: center; gap: 1px; padding: 2px 6px; min-width: 0; }
.ps + .ps::before { content: ""; position: absolute; inset-inline-start: 0; top: 16%; bottom: 16%; width: 1px; background: linear-gradient(transparent, rgb(var(--c-ac) / .4), transparent); }
.ps b { font-weight: 400; font-size: clamp(1.3rem, 5vw, 1.95rem); line-height: 1.15; color: rgb(var(--c-glow)); text-shadow: 0 0 20px rgb(var(--c-ac) / .5); font-variant-numeric: tabular-nums; }
.ps-done b { color: var(--gold-2); }
.ps-open b { color: var(--turq); }
.ps small { font-size: var(--fs-xs); color: var(--mist); white-space: nowrap; }
.ps-bar { position: absolute; inset-inline: 16px; bottom: 6px; height: 3px; display: flex; border-radius: 3px; overflow: hidden; background: rgb(var(--c-tx3) / .22); }
.ps-bar i { height: 100%; }
.pb-done { background: var(--gold); }
.pb-open { background: var(--turq); }
html[lang="en"] .ps b { font-weight: 700; }

/* ============ My images — count and upload side by side ============ */
.phero-row { display: flex; align-items: center; gap: 14px; margin: 6px 0; flex-wrap: nowrap; }
.phero-row .pstat { flex: 0 1 auto; min-width: 0; }
@media (max-width: 480px) { .phero-row { gap: 10px; } .phero-row .pstat { padding: 10px 14px 12px; } .phero-row .btn-lg { padding-inline: 16px; } }

/* ============ Apps — three connected steps ============ */
.flow3 { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.flow3 li { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 9px; text-align: center; }
.flow3 li:not(:last-child)::after { content: ""; position: absolute; top: 28px; inset-inline-start: calc(50% + 36px); inset-inline-end: calc(-50% + 40px); height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 13px); background-size: 26px 2px; animation: flowDashL 1s linear infinite; }
.flow3 li:not(:last-child)::before { content: ""; position: absolute; top: 23.5px; inset-inline-end: calc(-50% + 36px); width: 9px; height: 9px; border-top: 2px solid var(--gold); border-inline-end: 2px solid var(--gold); transform: rotate(45deg); }
html[dir="rtl"] .flow3 li:not(:last-child)::before { transform: rotate(-45deg); }
html[dir="rtl"] .flow3 li:not(:last-child)::after { animation-name: flowDashR; }
.fl-ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2);
  background: radial-gradient(circle at 35% 30%, rgb(var(--c-ac) / .38), rgb(var(--c-bg0) / .6)); border: 1px solid rgb(var(--c-ac) / .48); box-shadow: 0 0 0 6px rgb(var(--c-ac) / .08), 0 0 26px -6px rgb(var(--c-glow) / .8); animation: flPulse 3s ease-in-out infinite; }
.flow3 li:nth-child(2) .fl-ic { animation-delay: 1s; }
.flow3 li:nth-child(3) .fl-ic { animation-delay: 2s; color: var(--pist); }
.fl-ic .ic { width: 24px; height: 24px; }
.fl-ic b { position: absolute; top: -4px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #2a1a05; background: var(--gold); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.fl-t { font-size: var(--fs-sm); color: rgb(var(--c-title)); white-space: nowrap; }
@keyframes flowDashL { to { background-position: 26px 0; } }
@keyframes flowDashR { to { background-position: -26px 0; } }
@keyframes flPulse { 0%, 30%, 100% { box-shadow: 0 0 0 6px rgb(var(--c-ac) / .08), 0 0 26px -6px rgb(var(--c-glow) / .8); } 12% { box-shadow: 0 0 0 11px rgb(var(--c-ac) / .16), 0 0 40px -2px rgb(var(--c-glow)); } }
@media (max-width: 420px) { .fl-ic { width: 50px; height: 50px; } .flow3 li:not(:last-child)::after { top: 24px; inset-inline-start: calc(50% + 31px); inset-inline-end: calc(-50% + 35px); } .flow3 li:not(:last-child)::before { top: 19.5px; inset-inline-end: calc(-50% + 31px); } .fl-t { font-size: var(--fs-xs); } }

/* ============ Support ============ */
.sup-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 26px; padding: 22px 28px; margin-bottom: 18px; border-radius: 30px;
  background: radial-gradient(90% 160% at 100% 50%, rgb(var(--c-ac) / .22), transparent 60%), linear-gradient(135deg, rgb(var(--c-sf1) / .78), rgb(var(--c-sf2) / .5)); border: 1px solid rgb(var(--c-ac) / .24); }
.sup-orb { position: relative; width: 128px; height: 128px; flex: none; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--c-ac) / .35); animation: asSpin 14s linear infinite; }
.orb-ring.r1 { border-top-color: var(--gold-2); border-right-color: transparent; }
.orb-ring.r2 { inset: 12px; border-bottom-color: var(--turq); border-left-color: transparent; animation-duration: 9s; animation-direction: reverse; }
.orb-ring.r3 { inset: -10px; border-style: dashed; opacity: .4; animation-duration: 30s; }
.orb-core { position: absolute; inset: 24px; border-radius: 50%; display: grid; place-items: center; animation: asPulse 4s ease-in-out infinite;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .35), rgb(var(--c-ac) / .38) 40%, rgb(var(--c-bg0) / .85) 76%); box-shadow: inset 0 0 22px rgb(var(--c-glow) / .55), 0 0 42px -4px rgb(var(--c-glow) / .75); }
.orb-core > * { width: 50px; height: 50px; }
.orb-badge { position: absolute; bottom: 2px; inset-inline-end: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #2a1a05; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px -4px rgb(0 0 0 / .45); }
.orb-badge .ic { width: 20px; height: 20px; }
.orb-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold); animation: asTwinkle 5s ease-in-out infinite; }
.orb-spark.k1 { top: 4px; left: 12px; } .orb-spark.k2 { top: 32%; right: -10px; animation-delay: -1.5s; } .orb-spark.k3 { bottom: -2px; left: 30%; animation-delay: -3s; } .orb-spark.k4 { top: -8px; right: 32%; width: 4px; height: 4px; animation-delay: -2s; }
.sup-hero h1 { margin: 0 0 6px; }
.sup-hero p { margin: 0; color: var(--mist); line-height: 1.9; }
@media (max-width: 640px) { .sup-hero { flex-direction: column; text-align: center; padding: 20px 16px; gap: 14px; } .sup-orb { width: 108px; height: 108px; } }
.sup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: start; }
@media (max-width: 920px) { .sup-grid { grid-template-columns: minmax(0, 1fr); } }
.sup-letter { position: relative; padding: 22px 24px; border-radius: 26px; background: linear-gradient(160deg, rgb(var(--c-sf1) / .94), rgb(var(--c-sf2) / .8)); border: 1px solid rgb(var(--c-ac) / .3); box-shadow: 0 26px 60px -36px rgb(var(--c-ac) / .75); }
.sup-letter::before { content: ""; position: absolute; inset: 9px; border-radius: 19px; border: 1px dashed rgb(var(--c-ac) / .24); pointer-events: none; }
.letter-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.letter-head h2 { margin: 0; font-size: var(--fs-lg); }
.letter-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-2); background: rgb(var(--c-ac) / .16); }
.letter-ic .ic { width: 19px; height: 19px; }
.sup-cats { margin: 0 0 12px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sup-cats legend { padding: 0; margin-bottom: 8px; font-size: var(--fs-sm); color: var(--mist); }
.sup-cat { position: relative; }
.sup-cat input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sup-cat span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: var(--fs-sm); color: rgb(var(--c-tx2)); background: rgb(var(--c-bg0) / .3); border: 1px solid rgb(var(--c-ac) / .2); transition: all .2s; }
.sup-cat span .ic { width: 15px; height: 15px; }
.sup-cat input:checked + span { color: rgb(var(--c-title)); background: rgb(var(--c-ac) / .2); border-color: rgb(var(--c-ac) / .7); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .12), 0 0 18px -6px rgb(var(--c-glow)); }
.sup-cat input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.sup-letter textarea { width: 100%; min-height: 140px; }
.letter-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.seal-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; cursor: pointer; font: inherit; color: rgb(var(--c-title)); background: linear-gradient(135deg, rgb(var(--c-ac) / .32), rgb(var(--c-ac) / .1)); border: 1px solid rgb(var(--c-ac) / .5); transition: transform .25s var(--spring), box-shadow .25s; }
html[dir="rtl"] .seal-btn { padding: 6px 6px 6px 18px; }
.seal-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgb(var(--c-glow)); }
.seal { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #ff8f8f, #c81e3a 58%, #7a0d22); box-shadow: inset 0 -3px 6px rgb(0 0 0 / .3), 0 4px 12px rgb(200 30 58 / .5); }
.seal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgb(255 255 255 / .5); }
.seal .ic { width: 18px; height: 18px; }
html[dir="rtl"] .seal .ic { transform: scaleX(-1); }
.sup-list { padding: 18px; border-radius: 26px; background: rgb(var(--c-sf1) / .62); border: 1px solid rgb(var(--c-ac) / .18); }
.sup-list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sup-list-head h2 { margin: 0; font-size: var(--fs-lg); }
.sup-search { position: relative; display: flex; align-items: center; }
.sup-search .ic { position: absolute; inset-inline-start: 11px; width: 16px; height: 16px; color: var(--mist); pointer-events: none; }
.sup-search .input { width: 190px; height: 38px; padding-inline-start: 34px; }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "code subj" "code meta"; align-items: center; gap: 3px 12px; padding: 11px 14px; border-radius: 16px; color: inherit; text-decoration: none; background: rgb(var(--c-bg0) / .35); border: 1px solid rgb(var(--c-ac) / .14); transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; }
.tk-item:hover { transform: translateY(-2px); border-color: rgb(var(--c-ac) / .45); }
.tk-item .tk-code { grid-area: code; }
.tk-item .tk-subj { grid-area: subj; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--c-title)); }
.tk-meta { grid-area: meta; display: flex; gap: 10px; font-size: var(--fs-xs); color: var(--mist); }
.tk-code { display: inline-block; padding: 4px 9px; border-radius: 10px; font-family: var(--mono, monospace); font-size: var(--fs-sm); letter-spacing: .02em; color: var(--gold-2); text-decoration: none; background: rgb(var(--c-ac) / .12); border: 1px solid rgb(var(--c-ac) / .26); direction: ltr; unicode-bidi: isolate; }
.tk-code.big { padding: 5px 12px; font-size: var(--fs-md); }
.tk-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); }
.tk-state i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c-tx3)); }
.tk-open .tk-state i, .tk-state.tk-open i { background: var(--turq); animation: tkPing 2s infinite; }
.tk-answered .tk-state i, .tk-state.tk-answered i { background: var(--gold); }
.tk-item.tk-closed { opacity: .7; }
.tk-item.is-new { border-color: rgb(var(--c-ac) / .6); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .12), 0 12px 28px -16px rgb(var(--c-glow)); }
.tk-item.is-new .tk-state { color: var(--gold-2); font-weight: 600; }
.tk-item.is-new .tk-state i { background: var(--gold-2); animation: tkPing 1.6s infinite; }
@keyframes tkPing { 0% { box-shadow: 0 0 0 0 rgb(var(--c-glow) / .55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(var(--c-glow) / 0); } }
.sup-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; text-align: center; color: var(--mist); }
.sup-empty .ic { width: 34px; height: 34px; opacity: .55; }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 22px; margin-bottom: 16px; border-radius: 24px; background: linear-gradient(135deg, rgb(var(--c-sf1) / .82), rgb(var(--c-sf2) / .56)); border: 1px solid rgb(var(--c-ac) / .22); }
.tk-head h1 { margin: 8px 0; font-size: var(--fs-xl); }
.tk-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tk-thread { display: grid; gap: 14px; margin-bottom: 16px; }
.tk-msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(86%, 760px); }
.tk-msg.me { margin-inline-end: auto; }
.tk-msg.them { margin-inline-start: auto; flex-direction: row-reverse; }
.tk-bubble { min-width: 0; padding: 12px 15px; border-radius: 18px; background: rgb(var(--c-sf1) / .88); border: 1px solid rgb(var(--c-ac) / .16); }
.tk-msg.me .tk-bubble { background: linear-gradient(135deg, rgb(var(--c-ac) / .26), rgb(var(--c-ac) / .1)); border-color: rgb(var(--c-ac) / .36); border-end-start-radius: 6px; }
.tk-msg.them .tk-bubble { border-end-end-radius: 6px; }
.tk-msg.staff .tk-bubble { box-shadow: 0 12px 30px -20px rgb(var(--c-glow)); }
.tk-bubble header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; font-size: var(--fs-xs); color: var(--mist); }
.tk-bubble header b { font-size: var(--fs-sm); color: rgb(var(--c-title)); }
.tk-text { line-height: 2; overflow-wrap: anywhere; }
.tk-text a { color: var(--gold-2); }
.tk-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgb(var(--c-ac) / .45), rgb(var(--c-bg0) / .85)); box-shadow: 0 0 16px -2px rgb(var(--c-glow) / .7); }
.tk-av > * { width: 26px; height: 26px; }
.tk-compose { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: rgb(var(--c-sf1) / .7); border: 1px solid rgb(var(--c-ac) / .2); }
.tk-compose textarea { width: 100%; min-height: 92px; }
.tk-compose > .btn { justify-self: end; }
.tk-compose-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tk-closed-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--mist); }
.tk-closed-note .ic { width: 16px; height: 16px; }
.sup-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sup-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; font-size: var(--fs-sm); color: var(--mist); text-decoration: none; border: 1px solid var(--line-2); }
.sup-tabs a b { min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: var(--fs-xs); color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.sup-tabs a.is-on { color: rgb(var(--c-title)); background: rgb(var(--c-ac) / .14); border-color: rgb(var(--c-ac) / .55); }
.sup-tabs a.st-open b { color: var(--turq); background: rgb(31 165 156 / .2); }
.tk-tbl tr.is-new td { background: rgb(var(--c-ac) / .07); }
.tk-tbl .tk-subj { color: rgb(var(--c-title)); text-decoration: none; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .tk-layout { grid-template-columns: 1fr; } }
.tk-side { margin: 0; }
.tk-user { display: grid; gap: 2px; margin-bottom: 10px; color: rgb(var(--c-title)); text-decoration: none; }
.tk-side-sub { margin: 14px 0 8px; font-size: var(--fs-sm); }
.tk-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.tk-mini a { color: rgb(var(--c-tx2)); text-decoration: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }

/* apps: the step flow uses its whole column */
.phero-side .flow3 { width: 100%; max-width: 540px; }
/* app stage: more magic — a pulsing halo, slow light rays and vivid portal rings */
.as-scene::before { content: ""; position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%; z-index: 0; filter: blur(4px);
  background: radial-gradient(circle, rgb(var(--c-ac) / .38), rgb(var(--c-glow) / .16) 42%, transparent 70%); animation: asPulse 4s ease-in-out infinite; }
.as-scene::after { content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; z-index: 0; animation: asSpin 48s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgb(var(--c-glow) / .2) 0 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); }
.as-portal { z-index: 1; }
.as-portal .pr { filter: drop-shadow(0 0 7px rgb(var(--c-glow) / .85));
  background: conic-gradient(from 0deg, transparent 0 6%, var(--gold) 16%, transparent 28%, var(--turq) 44%, transparent 56%, rgb(var(--c-ac)) 72%, transparent 84%);
  -webkit-mask: radial-gradient(closest-side, transparent 65%, #000 68%, #000 79%, transparent 82%); mask: radial-gradient(closest-side, transparent 65%, #000 68%, #000 79%, transparent 82%); }
.as-q { z-index: 2; }
/* the scene is a picture: it never takes a tap. On a phone it stands under the buttons, and its halo and rays (wider
   than the scene itself) used to lie over the last of them — «all apps» and the button above it could not be pressed */
.as-scene { pointer-events: none; }
.as-copy { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .appstage { padding: 16px 14px 6px; }
  .as-copy h2 { margin: 8px 0 4px; font-size: var(--fs-lg); }
  .as-copy p { margin-bottom: 10px; font-size: var(--fs-sm); }
  .as-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
  .as-btn { gap: 8px; padding: 7px 10px; border-radius: 14px; }
  .as-btn-ic { width: 32px; height: 32px; border-radius: 10px; }
  .as-btn-ic .ic { width: 18px; height: 18px; }
  .as-btn-t b { font-size: var(--fs-sm); }
  .as-btn-t small { font-size: 11px; }
  .as-btn-go { display: none; }
  .as-scene { height: 190px; margin: 0; transform: scale(.78); transform-origin: 50% 40%; }
}

/* Dark theme performance: the drifting fog layer (twice the screen wide, blurred) was re-composited on every
   frame and made pages about 4× slower — it now stays still. Hero cobwebs and straight light rays are removed. */
[data-theme="dark"] .fog { animation: none; }
[data-theme="dark"] :is(.phero, .idhero)::before { content: none; display: none; }
[data-theme="dark"] :is(.phero-rays, .id-rays) { display: none; }

/* ---------- Performance: no animation may repaint a large area every frame ---------- */
/* Rotating conic borders (painted via @property) hold still at varied angles; they shimmer only on hover. */
.bcard, .summon { animation-play-state: paused; }
.bcard:nth-child(2n) { animation-delay: -2.5s; } .bcard:nth-child(3n) { animation-delay: -5s; } .bcard:nth-child(5n) { animation-delay: -7.5s; }
.summon { animation-delay: -3s; }
@media (hover: hover) { .bcard:hover, .summon:hover, .summon:focus-within { animation-play-state: running; } }
/* Footer aura: a double-width strip that slides (compositor-only) instead of animating background-position */
.foot-aura { left: 0; right: auto; width: 200%; background-size: 50% 100%; background-repeat: repeat-x; animation: footAura2 7s linear infinite; }
@keyframes footAura2 { to { transform: translateX(-50%); } }
/* Extension icon in the app stage: press + ring with transform/opacity */
.as-ext { position: relative; animation: asExtPress 6s ease-in-out infinite; }
.as-ext::after { content: ""; position: absolute; inset: -2px; border-radius: 8px; border: 2px solid rgb(var(--c-glow)); opacity: 0; animation: asExtRing 6s ease-out infinite; }
@keyframes asExtPress { 0%, 1% { transform: none; } 4% { transform: scale(.82); } 7%, 100% { transform: none; } }
@keyframes asExtRing { 0%, 1% { opacity: .9; transform: scale(1); } 9% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; } }
/* Apps steps: glow ring pulses with opacity/transform; dashes stay still and breathe */
.fl-ic { animation: none; }
.fl-ic::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 5px rgb(var(--c-ac) / .18), 0 0 40px -2px rgb(var(--c-glow)); opacity: 0; animation: flPulse2 3s ease-in-out infinite; }
.flow3 li:nth-child(2) .fl-ic::after { animation-delay: 1s; } .flow3 li:nth-child(3) .fl-ic::after { animation-delay: 2s; }
@keyframes flPulse2 { 0%, 30%, 100% { opacity: 0; transform: scale(.92); } 12% { opacity: 1; transform: scale(1.04); } }
.flow3 li:not(:last-child)::after, html[dir="rtl"] .flow3 li:not(:last-child)::after { animation: flowBreath 3s ease-in-out infinite; }
.flow3 li:nth-child(2)::after { animation-delay: 1s; }
@keyframes flowBreath { 0%, 100% { opacity: .45; } 30% { opacity: 1; } }
/* Ticket status dots: an expanding ring instead of an animated box-shadow */
.tk-state i { position: relative; }
.tk-open .tk-state i, .tk-state.tk-open i, .tk-item.is-new .tk-state i { animation: none; }
.tk-open .tk-state i::after, .tk-state.tk-open i::after, .tk-item.is-new .tk-state i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: tkRing 2s ease-out infinite; }
@keyframes tkRing { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

/* Hero rays hold still: they turned once every 140 s (imperceptible), yet rotating a masked 1200px layer cost
   ~30% of the frames. The glowing core keeps pulsing. */
.phero-rays, .phero-rays::after, .id-rays { animation: none; }

/* ============ Sign-in: password or one-time code ============ */
.auth-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 2px 0 16px; border-radius: 16px; background: rgb(var(--c-bg0) / .4); border: 1px solid rgb(var(--c-ac) / .16); }
.auth-modes a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; border-radius: 12px; font-size: var(--fs-sm); color: var(--mist); text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.auth-modes a .ic { width: 17px; height: 17px; }
.auth-modes a:hover { color: rgb(var(--c-title)); }
.auth-modes a.is-on { color: rgb(var(--c-title)); background: linear-gradient(135deg, rgb(var(--c-ac) / .3), rgb(var(--c-ac) / .12)); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .45), 0 8px 20px -12px rgb(var(--c-glow)); }
.otp-sent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; font-size: var(--fs-sm); color: rgb(var(--c-tx)); background: rgb(var(--c-ok) / .1); border: 1px solid rgb(var(--c-ok) / .3); }
.otp-sent .ic { width: 18px; height: 18px; color: var(--pist); flex: none; }
.otp-sent a { margin-inline-start: auto; padding: 4px 11px; border-radius: 999px; font-size: var(--fs-xs); color: var(--gold-2); text-decoration: none; border: 1px solid rgb(var(--c-ac) / .35); background: rgb(var(--c-ac) / .08); }
.otp-sent a:hover { border-color: rgb(var(--c-ac) / .65); }
.otp-resend { display: flex; justify-content: center; margin-top: 10px; }

/* ============ Pill links — "No account? Create one" and friends (no more plain underlined text) ============ */
.auth-alt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; }
.auth-alt a, .alt-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--gold-2);
  background: linear-gradient(135deg, rgb(var(--c-ac) / .18), rgb(var(--c-ac) / .05)); border: 1px solid rgb(var(--c-ac) / .4);
  box-shadow: 0 6px 18px -10px rgb(var(--c-ac) / .85), inset 0 1px 0 rgb(255 255 255 / .08); transition: transform .25s var(--spring), box-shadow .25s, border-color .25s; }
.auth-alt a::after, .alt-link::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--spring); }
html[dir="rtl"] .auth-alt a::after, html[dir="rtl"] .alt-link::after { transform: rotate(-45deg); }
.auth-alt a:hover, .alt-link:hover { transform: translateY(-2px); border-color: rgb(var(--c-ac) / .7); box-shadow: 0 12px 26px -12px rgb(var(--c-glow)); }
.auth-alt a:hover::after, .alt-link:hover::after { transform: translateX(3px) rotate(45deg); }
html[dir="rtl"] .auth-alt a:hover::after, html[dir="rtl"] .alt-link:hover::after { transform: translateX(-3px) rotate(-45deg); }
.auth-alt-sm { margin-top: 12px; }
.auth-alt-sm a { padding: 6px 13px; font-size: var(--fs-sm); }

/* ============ Footer: full width, lower ============ */
.foot { width: 100%; max-width: none; margin: 0; padding: 16px 0 0; }
.foot-card { border-radius: 22px 22px 0 0; border-inline: 0; border-bottom: 0; padding: 11px max(20px, calc((100% - var(--page-max, 1120px)) / 2)); gap: 8px 18px; box-shadow: 0 -16px 50px -34px rgb(var(--c-ac) / .6), inset 0 1px 0 rgb(255 255 255 / .06); }
.foot-brand { gap: 9px; }
.foot-brand > :first-child { width: 30px; height: 30px; }
.foot-brand b { font-size: var(--fs-sm); }
.foot-brand small { font-size: 11px; }
.foot .foot-links { gap: 6px; }
.foot .foot-links a { padding: 5px 11px; font-size: var(--fs-xs); }
.foot .foot-links a .ic { width: 14px; height: 14px; }
@media (max-width: 859px) { .foot { padding-bottom: 0; } .foot-card { padding-bottom: calc(var(--dock-h, 78px) + 22px); } }

/* ============ Theme availability (admin) ============ */
.tc-wrap { display: grid; gap: 8px; }
.tc-avail { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: var(--fs-sm); color: var(--mist); cursor: pointer; }

/* ============ Apps: tidy boxes with status and development progress ============ */
/* platform accents (orbit satellites + showcase cards) */
.ab-chrome  { --ab-c: #f2b322; --ab-bg1: rgb(242 179 34 / .22); --ab-bg2: rgb(234 67 53 / .07); --ab-ring: rgb(242 179 34 / .38); --ab-sh: rgb(242 179 34 / .65); --ab-tint: rgb(242 179 34 / .24); }
.ab-firefox { --ab-c: #ff7139; --ab-bg1: rgb(255 113 57 / .22); --ab-bg2: rgb(227 21 135 / .07); --ab-ring: rgb(255 113 57 / .38); --ab-sh: rgb(255 113 57 / .65); --ab-tint: rgb(255 113 57 / .24); }
.ab-edge    { --ab-c: #1aa1e6; --ab-bg1: rgb(26 161 230 / .22); --ab-bg2: rgb(54 199 82 / .08); --ab-ring: rgb(26 161 230 / .38); --ab-sh: rgb(26 161 230 / .62); --ab-tint: rgb(26 161 230 / .24); }
.ab-opera   { --ab-c: #ff2d3d; --ab-bg1: rgb(255 27 45 / .2); --ab-bg2: rgb(167 0 20 / .07); --ab-ring: rgb(255 27 45 / .36); --ab-sh: rgb(255 27 45 / .6); --ab-tint: rgb(255 27 45 / .22); }
.ab-windows { --ab-c: #2a8cf0; --ab-bg1: rgb(42 140 240 / .22); --ab-bg2: rgb(0 103 192 / .07); --ab-ring: rgb(42 140 240 / .38); --ab-sh: rgb(42 140 240 / .6); --ab-tint: rgb(42 140 240 / .24); }
.ab-mac     { --ab-c: rgb(var(--c-title)); --ab-bg1: rgb(var(--c-tx3) / .22); --ab-bg2: rgb(var(--c-tx3) / .06); --ab-ring: rgb(var(--c-tx3) / .38); --ab-sh: rgb(var(--c-tx3) / .5); --ab-tint: rgb(var(--c-tx3) / .24); }
.ab-linux   { --ab-c: #f5b800; --ab-bg1: rgb(245 184 0 / .2); --ab-bg2: rgb(40 40 40 / .1); --ab-ring: rgb(245 184 0 / .36); --ab-sh: rgb(245 184 0 / .6); --ab-tint: rgb(245 184 0 / .22); }
.ab-android { --ab-c: #34a853; --ab-bg1: rgb(52 168 83 / .2); --ab-bg2: rgb(52 168 83 / .06); --ab-ring: rgb(52 168 83 / .36); --ab-sh: rgb(52 168 83 / .55); --ab-tint: rgb(52 168 83 / .22); }
.apps-guest-note { margin: -6px 0 26px; font-size: var(--fs-sm); color: var(--mist); }
.apps-guest-note a { color: var(--gold-2); font-weight: 700; }
.phero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.as-all { font-size: var(--fs-sm); font-weight: 700; color: var(--gold-2); text-decoration: none; align-self: center; }

/* ============ Online chat widget ============ */
.chatw { position: fixed; z-index: 70; bottom: 20px; inset-inline-end: 20px; display: grid; justify-items: end; gap: 12px; }
.chatw-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #2a1a05;
  background: radial-gradient(circle at 32% 28%, #fff3d0, var(--gold) 55%, var(--gold-3, #a97a2e)); box-shadow: 0 14px 30px -10px rgb(var(--c-glow) / .9), 0 0 0 6px rgb(var(--c-ac) / .12); transition: transform .25s var(--spring); }
.chatw-fab:hover { transform: translateY(-3px) scale(1.04); }
.chatw-fab .ic { width: 27px; height: 27px; }
.chatw-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(var(--c-glow) / .6); opacity: 0; animation: chatwRing 3.2s ease-out infinite; }
@keyframes chatwRing { 0% { opacity: .8; transform: scale(.9); } 60%, 100% { opacity: 0; transform: scale(1.35); } }
.chatw.is-open .chatw-fab::after { animation: none; }
.chatw-badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; color: #fff; background: #e0566b; box-shadow: 0 0 0 3px rgb(var(--c-bg0)); }
.chatw-badge[hidden] { display: none; }
.chatw-box { width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100vh - 140px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: linear-gradient(170deg, rgb(var(--c-sf1) / .98), rgb(var(--c-sf2) / .96)); border: 1px solid rgb(var(--c-ac) / .3); box-shadow: 0 30px 70px -24px rgb(0 0 0 / .55), 0 0 40px -16px rgb(var(--c-glow) / .7);
  backdrop-filter: blur(16px); transform-origin: bottom right; animation: chatwIn .28s var(--spring); }
html[dir="rtl"] .chatw-box { transform-origin: bottom left; }
.chatw-box[hidden] { display: none; }
@keyframes chatwIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.chatw-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid rgb(var(--c-ac) / .16); background: linear-gradient(135deg, rgb(var(--c-ac) / .16), transparent); }
.chatw-av { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgb(var(--c-ac) / .45), rgb(var(--c-bg0) / .85)); }
.chatw-av > :first-child { width: 28px; height: 28px; }
.chatw-online { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border-radius: 50%; background: #3ec97a; box-shadow: 0 0 0 2px rgb(var(--c-sf1)); }
.chatw-ttl { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.chatw-ttl b { color: rgb(var(--c-title)); }
.chatw-ttl small { font-size: var(--fs-xs); color: var(--mist); }
.chatw-x { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--mist); background: rgb(var(--c-bg0) / .4); }
.chatw-x .ic { width: 16px; height: 16px; }
.chatw-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chatw-msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; line-height: 1.85; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.chatw-msg p { margin: 0; white-space: pre-wrap; }
.chatw-msg time { display: block; margin-top: 2px; font-size: 10.5px; opacity: .65; }
.chatw-msg.me { align-self: flex-start; color: rgb(var(--c-title)); background: linear-gradient(135deg, rgb(var(--c-ac) / .3), rgb(var(--c-ac) / .14)); border-end-start-radius: 5px; }
.chatw-msg.staff { align-self: flex-end; color: rgb(var(--c-tx)); background: rgb(var(--c-bg0) / .55); border: 1px solid rgb(var(--c-ac) / .14); border-end-end-radius: 5px; }
.chatw-form { padding: 10px 12px 12px; border-top: 1px solid rgb(var(--c-ac) / .14); display: grid; gap: 8px; }
.chatw-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chatw-guest[hidden] { display: none; }
.chatw-guest input, .chatw-row textarea { width: 100%; min-width: 0; border-radius: 12px; border: 1px solid rgb(var(--c-ac) / .22); background: rgb(var(--c-bg0) / .45); color: rgb(var(--c-tx)); font: inherit; font-size: var(--fs-sm); padding: 8px 11px; }
.chatw-row { display: flex; align-items: flex-end; gap: 8px; }
.chatw-row textarea { resize: none; max-height: 110px; line-height: 1.7; }
.chatw-send { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #2a1a05; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.chatw-send .ic { width: 18px; height: 18px; }
html[dir="rtl"] .chatw-send .ic { transform: scaleX(-1); }
.chatw-err { color: #e0566b; font-size: var(--fs-xs); }
@media (max-width: 859px) { .chatw { bottom: calc(var(--dock-h, 78px) + 12px); inset-inline-end: 14px; } .chatw-fab { width: 52px; height: 52px; } }
/* A chat service's own launcher (the AI chat's SDK puts it on the page: MuChat, of the Chatwoot family) also stands
   above the bottom menu on a phone, as the site's own chat button does. Only the launcher moves, and the little window
   of unread messages over it; the open chat window stays where the service puts it. A launcher built in some other
   way is found and lifted by the script (data-mw-lift). While the account sheet is open, it steps aside.
   .chat-ai: the site's own button for that service, shown by the script on a phone when the service is running and
   nothing of it is on the screen. */
.chat-ai { position: fixed; z-index: 70; inset-inline-end: 14px; bottom: calc(var(--dock-h, 78px) + 12px); }
.chat-ai[hidden] { display: none; }
@media (min-width: 860px) { .chat-ai { display: none; } }
@media (max-width: 859px) {
  .woot-widget-bubble:not(.woot--close):not(.woot--hide) { bottom: calc(var(--dock-h, 78px) + 12px) !important; }
  .woot-widget-holder.has-unread-view:not(.woot--hide) { bottom: calc(var(--dock-h, 78px) - 8px) !important; }
  html.vf-sheet-on .woot-widget-bubble, html.vf-sheet-on .woot-widget-holder.has-unread-view, html.vf-sheet-on [data-mw-lift] { opacity: 0 !important; pointer-events: none !important; }
}
@media (min-width: 667px) and (max-width: 859px) {
  .woot-widget-holder.has-unread-view:not(.woot--hide) { bottom: calc(var(--dock-h, 78px) + 86px) !important; }
}
@media (prefers-reduced-motion: reduce) { .chatw-fab::after, .chatw-box { animation: none; } }
/* admin chat list */
.chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chat-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; color: inherit; text-decoration: none; background: rgb(var(--c-sf1) / .6); border: 1px solid rgb(var(--c-ac) / .14); transition: border-color .2s, transform .2s var(--spring); }
.chat-item:hover { transform: translateY(-2px); border-color: rgb(var(--c-ac) / .45); }
.chat-item.is-new { border-color: rgb(var(--c-ac) / .6); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .1); }
.chat-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.chat-av .ic { width: 20px; height: 20px; }
.chat-main { display: grid; gap: 2px; min-width: 0; }
.chat-main b { color: rgb(var(--c-title)); }
.chat-last { font-size: var(--fs-sm); color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: grid; justify-items: end; gap: 4px; font-size: var(--fs-xs); color: var(--mist); }
.chat-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: #e0566b; font-size: 12px; }
.admin-chat-thread { max-height: 62vh; overflow-y: auto; padding: 2px; }

/* Yekan Bakh has real weights: headings use them (the old font had only one) */
h1, .phero h1, .auth-head h1, .page-head h1 { font-weight: 800; }
h2, h3, .panel-title { font-weight: 700; }
.btn { font-weight: 600; }

/* ============ Links: clean everywhere ============ */
/* Inline text links: a faint hairline that becomes solid on hover (no heavy browser underline) */
a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 32%, transparent); transition: color .2s, text-decoration-color .2s; }
a:not([class]):hover, a:not([class]):focus-visible { text-decoration-color: currentColor; }
/* Rows of related links → pill buttons with icons */
.link-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px 0 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: rgb(var(--c-tx2)); text-decoration: none;
  background: rgb(var(--c-sf1) / .7); border: 1px solid rgb(var(--c-ac) / .2); box-shadow: 0 6px 18px -12px rgb(var(--c-ac) / .7); transition: transform .25s var(--spring), border-color .25s, color .25s, box-shadow .25s; }
.chip-link .ic { width: 17px; height: 17px; color: var(--gold-2); }
.chip-link:hover { transform: translateY(-2px); color: rgb(var(--c-title)); border-color: rgb(var(--c-ac) / .55); box-shadow: 0 12px 26px -14px rgb(var(--c-glow)); }
.chip-link.chip-admin { color: var(--gold-2); border-style: dashed; border-color: rgb(var(--c-ac) / .45); }

/* ============ Contact page ============ */
.cpage { max-width: 1120px; margin-inline: auto; }
.c-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 24px; padding: 34px 36px; margin-bottom: 26px; border-radius: 32px;
  background: radial-gradient(90% 140% at 0% 50%, rgb(var(--c-ac) / .2), transparent 60%), radial-gradient(60% 90% at 100% 0%, rgb(31 165 156 / .12), transparent 60%), linear-gradient(135deg, rgb(var(--c-sf1) / .86), rgb(var(--c-sf2) / .6));
  border: 1px solid rgb(var(--c-ac) / .24); box-shadow: 0 34px 80px -50px rgb(var(--c-ac) / .8); }
.c-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--gold-2); background: rgb(var(--c-ac) / .12); border: 1px solid rgb(var(--c-ac) / .28); }
.c-kicker .ic { width: 15px; height: 15px; }
.c-hero h1 { margin: 14px 0 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); color: rgb(var(--c-title)); }
.c-lead { margin: 0; max-width: 560px; color: rgb(var(--c-tx2)); line-height: 2.05; font-size: var(--fs-md); }
.c-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.c-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.c-facts li { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 16px; background: rgb(var(--c-bg0) / .4); border: 1px solid rgb(var(--c-ac) / .14); }
.c-facts .ic { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.c-facts span { display: grid; line-height: 1.45; }
.c-facts small { font-size: 11.5px; color: var(--mist); }
.c-facts b { font-size: var(--fs-sm); color: rgb(var(--c-title)); font-weight: 600; }
.c-art { position: relative; width: 250px; height: 250px; justify-self: center; }
.c-ring { position: absolute; border-radius: 50%; border: 1px dashed rgb(var(--c-ac) / .3); }
.c-ring.r1 { inset: 0; } .c-ring.r2 { inset: 46px; border-style: solid; border-color: rgb(var(--c-ac) / .18); }
.c-orbit { position: absolute; border-radius: 50%; animation: cSpin 26s linear infinite; }
.c-orbit.o1 { inset: 0; } .c-orbit.o2 { inset: 46px; animation-duration: 18s; animation-direction: reverse; }
.c-sat { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 22px -8px rgb(0 0 0 / .45); animation: cSpin 26s linear infinite reverse; }
.c-orbit.o2 .c-sat { animation-duration: 18s; animation-direction: normal; }
.c-sat .ic { width: 20px; height: 20px; }
.c-sat.s1 { left: 50%; top: 0; background: linear-gradient(135deg, #f0c36d, #c88a2e); }
.c-sat.s2 { left: 100%; top: 50%; background: linear-gradient(135deg, #4cc3f5, #2a8fd8); }
.c-sat.s3 { left: 0; top: 50%; background: linear-gradient(135deg, #47d79a, #1fa59c); }
.c-sat.s4 { left: 50%; top: 100%; background: linear-gradient(135deg, #f28bb6, #d94f8e); }
.c-core { position: absolute; inset: 82px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .35), rgb(var(--c-ac) / .4) 45%, rgb(var(--c-bg0) / .85) 78%); box-shadow: 0 0 46px -6px rgb(var(--c-glow) / .75); }
.c-core > * { width: 52px; height: 52px; }
@keyframes cSpin { to { transform: rotate(360deg); } }
@media (max-width: 860px) {
  .c-hero { grid-template-columns: 1fr; padding: 26px 20px; text-align: center; }
  .c-lead { margin-inline: auto; }
  .c-cta, .c-facts { justify-content: center; }
  .c-art { order: -1; width: 190px; height: 190px; }
  .c-ring.r2, .c-orbit.o2 { inset: 34px; } .c-core { inset: 62px; } .c-core > * { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .c-orbit, .c-sat { animation: none; } }
.c-sec { margin-top: 26px; }
.c-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 4px 14px; }
.c-sec-head h2 { margin: 0; font-size: var(--fs-lg); color: rgb(var(--c-title)); }
.c-sec-head p { margin: 0; font-size: var(--fs-sm); color: var(--mist); }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; }      /* min(): a card is never wider than a narrow phone */
.c-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.c-card { --b: var(--c-ac); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 18px; border-radius: 22px;
  background: rgb(var(--c-sf1) / .74); border: 1px solid rgb(var(--b) / .2); box-shadow: 0 14px 34px -26px rgb(var(--b) / .9); transition: transform .28s var(--spring), border-color .28s, box-shadow .28s; }
.c-card:hover { transform: translateY(-3px); border-color: rgb(var(--b) / .6); box-shadow: 0 22px 44px -26px rgb(var(--b)); }
.c-card .c-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: rgb(var(--b)); background: rgb(var(--b) / .14); }
.c-card .c-ic .ic { width: 26px; height: 26px; }
.c-card-lg { padding: 22px; }
.c-card-lg .c-ic { width: 60px; height: 60px; border-radius: 18px; }
.c-txt { display: grid; gap: 3px; min-width: 0; }
.c-txt small { font-size: var(--fs-xs); color: var(--mist); }
.c-txt b { font-size: var(--fs-md); font-weight: 700; color: rgb(var(--c-title)); overflow-wrap: break-word; }
.c-card-lg .c-txt b { font-size: 1.12rem; }
html[dir="rtl"] .c-txt b[dir="ltr"] { text-align: right; }
.c-acts { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.c-go { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: rgb(var(--b)); background: rgb(var(--b) / .12); border: 1px solid rgb(var(--b) / .3); transition: background .2s, border-color .2s; }
.c-go:hover { background: rgb(var(--b) / .2); border-color: rgb(var(--b) / .6); }
.c-go i { width: 7px; height: 7px; border-top: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
html[dir="rtl"] .c-go i { transform: rotate(-45deg); }
.c-copy { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--mist); background: rgb(var(--c-bg0) / .4); border: 1px solid rgb(var(--c-ac) / .16); transition: color .2s, border-color .2s; }
.c-copy:hover { color: rgb(var(--c-title)); border-color: rgb(var(--c-ac) / .5); }
.c-copy .ic { width: 15px; height: 15px; }
.cc-email { --b: 212 154 62; } .cc-phone, .cc-mobile { --b: 31 165 156; } .cc-whatsapp { --b: 37 211 102; } .cc-telegram { --b: 42 171 238; }
.cc-instagram { --b: 225 48 108; } .cc-linkedin { --b: 10 102 194; } .cc-x { --b: 120 120 140; } .cc-bale, .cc-eitaa, .cc-rubika { --b: 24 169 153; }
.cc-website, .cc-custom { --b: 107 87 214; }
.c-place { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.c-pcard { display: flex; gap: 16px; padding: 22px; border-radius: 22px; background: linear-gradient(150deg, rgb(var(--c-sf1) / .82), rgb(var(--c-sf2) / .6)); border: 1px solid rgb(var(--c-ac) / .2); }
.c-pcard .c-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.c-pcard .c-ic .ic { width: 26px; height: 26px; }
.c-ptxt { display: grid; gap: 4px; align-content: start; }
.c-ptxt small { font-size: var(--fs-xs); color: var(--mist); }
.c-ptxt p { margin: 0; color: rgb(var(--c-title)); font-weight: 600; line-height: 1.9; }
.c-pacts { display: flex; align-items: center; gap: 8px; margin-top: 6px; --b: var(--c-ac); }

@media (max-width: 640px) {
  .c-facts { display: grid; gap: 0; padding: 4px 0; border-radius: 18px; background: rgb(var(--c-bg0) / .35); border: 1px solid rgb(var(--c-ac) / .14); }
  .c-facts li { border: 0; background: none; border-radius: 0; padding: 9px 14px; }
  .c-facts li + li { border-top: 1px solid rgb(var(--c-ac) / .1); }
  .c-cta .btn { flex: 1 1 140px; justify-content: center; }
  .c-card, .c-card-lg { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; gap: 4px 12px; }
  .c-card .c-ic, .c-card-lg .c-ic { width: 46px; height: 46px; border-radius: 14px; }
  .c-acts { grid-column: auto; margin-top: 0; }
  .c-go { padding: 7px 11px; }
  .c-copy { display: none; }
  .c-card-lg .c-txt b { font-size: var(--fs-md); }
}
/* long values (URLs, handles) wrap inside their column instead of running under the buttons */
.c-txt { grid-template-columns: minmax(0, 1fr); }
.c-txt b { overflow-wrap: anywhere; }

/* ============ Password fields: show/hide eye ============ */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { width: 100%; }
/* outranks ".field input:not([type=checkbox]):not([type=radio])" so the typed text never runs under the eye */
html[dir="rtl"] .pw-wrap > input:not([type="checkbox"]):not([type="radio"]) { padding-left: 48px; }
html[dir="ltr"] .pw-wrap > input:not([type="checkbox"]):not([type="radio"]) { padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--mist); background: transparent; transition: color .2s, background .2s; }
html[dir="rtl"] .pw-eye { left: 6px; }
html[dir="ltr"] .pw-eye { right: 6px; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.pw-eye:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.pw-eye .ic { width: 19px; height: 19px; }
input::-ms-reveal, input::-ms-clear { display: none; }   /* Edge would add a second eye */
/* SMTP presets */
.smtp-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }

/* ============ Image page viewer: zoom inside a fixed frame ============ */
.frame-img[data-viewer] { overflow: hidden; touch-action: pan-y; cursor: zoom-in; outline: none; -webkit-tap-highlight-color: transparent; }
.frame-img[data-viewer]:focus-visible { box-shadow: 0 0 0 2px var(--gold-2); }
.frame-img[data-viewer] img { transform-origin: 0 0; will-change: transform; }
.frame-img[data-viewer].is-zoomed { touch-action: none; cursor: grab; }
.frame-img[data-viewer].is-zoomed.is-dragging { cursor: grabbing; }
.zoombar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 10px; border-radius: 999px; background: rgb(var(--c-bg0) / .45); border: 1px solid rgb(var(--c-ac) / .2); direction: ltr; }
.zb-btn { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: rgb(var(--c-tx2)); background: rgb(var(--c-ac) / .1); transition: background .2s, color .2s; }
.zb-btn:hover:not(:disabled) { color: rgb(var(--c-title)); background: rgb(var(--c-ac) / .22); }
.zb-btn:disabled { opacity: .4; cursor: default; }
.zb-btn .ic { width: 17px; height: 17px; }
.zb-range { --p: 0%; flex: 1; min-width: 60px; height: 6px; appearance: none; -webkit-appearance: none; border-radius: 6px; cursor: pointer; background: linear-gradient(90deg, var(--gold) var(--p), rgb(var(--c-tx3) / .25) var(--p)); }
.zb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.zb-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.zb-val { min-width: 52px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: rgb(var(--c-title)); }
.frame.is-full { display: flex; flex-direction: column; padding: 14px; background: rgb(var(--c-bg0)); border-radius: 0; }
.frame.is-full .frame-corner { display: none; }
.frame.is-full .frame-img { flex: 1; min-height: 0; }
.frame.is-full .frame-img img { max-height: calc(100vh - 90px); }
@media (max-width: 520px) { .zoombar { gap: 5px; padding: 6px 8px; } .zb-btn { width: 30px; height: 30px; } .zb-range { min-width: 36px; } .zb-val { min-width: 44px; font-size: var(--fs-xs); } }

.sub-set { display: grid; gap: 12px; margin: -4px 0 6px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgb(var(--c-ac) / .3); background: rgb(var(--c-bg0) / .25); }
.sub-set[hidden] { display: none; }

/* ============ Scrollbars in the theme's colours ============ */
/* Chromium/Safari: a floating rounded thumb; newer Chrome ignores these if scrollbar-color is set, so the
   standard properties below are only for browsers without ::-webkit-scrollbar (Firefox). */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgb(var(--c-bg0) / .35); }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: linear-gradient(180deg, rgb(var(--c-ac) / .95), rgb(var(--c-ac) / .6)) padding-box; }
::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(90deg, rgb(var(--c-ac) / .95), rgb(var(--c-ac) / .6)) padding-box; }
::-webkit-scrollbar-thumb:hover { border-width: 2px; background: linear-gradient(180deg, rgb(var(--c-glow)), rgb(var(--c-ac))) padding-box; }
::-webkit-scrollbar-thumb:active { background: rgb(var(--c-ac)) padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
:where(.chatw-msgs, .admin-chat-thread, .table-wrap, .tbl-wrap, pre, textarea, .vf-sheet, .dropdown, .notif-list)::-webkit-scrollbar { width: 8px; height: 8px; }
:where(.chatw-msgs, .admin-chat-thread, .table-wrap, .tbl-wrap, pre, textarea, .vf-sheet, .dropdown, .notif-list)::-webkit-scrollbar-track { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: rgb(var(--c-ac) / .8) rgb(var(--c-bg0) / .35); }
  * { scrollbar-width: thin; scrollbar-color: rgb(var(--c-ac) / .7) transparent; }
}

/* ============ Trust badge (Enamad) in the footer ============ */
.foot-trust { display: inline-grid; place-items: center; height: 58px; padding: 4px 6px; border-radius: 14px; background: #fff; border: 1px solid rgb(var(--c-ac) / .25); box-shadow: 0 8px 20px -14px rgb(var(--c-ac)); transition: transform .25s var(--spring), box-shadow .25s; }
.foot-trust:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgb(var(--c-glow)); }
.foot-trust img { display: block; height: 50px; width: auto; }
.foot-zibal img { max-width: 110px; object-fit: contain; }
/* admin preview */
.trust-set { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 10px; }
.trust-prev { width: 96px; height: 104px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1px dashed rgb(var(--c-ac) / .4); font-size: var(--fs-xs); color: #777; }
.trust-prev img { max-width: 84px; max-height: 92px; }
.trust-fields { display: grid; gap: 10px; }
.check-row { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
@media (max-width: 640px) { .trust-set { grid-template-columns: 1fr; } }
/* file pickers match the theme (admin uploads) */
input[type="file"] { font: inherit; font-size: var(--fs-sm); color: var(--mist); }
input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgb(var(--c-ac) / .45); background: rgb(var(--c-ac) / .12); color: var(--gold-2); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
input[type="file"]::file-selector-button:hover { background: rgb(var(--c-ac) / .22); }

/* ============ Email: automatic port/encryption check ============ */
.probe { margin: 6px 0 14px; padding: 14px; border-radius: 18px; background: rgb(var(--c-bg0) / .3); border: 1px dashed rgb(31 165 156 / .45); }
.probe-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.probe-head > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.probe-head small { color: var(--mist); font-size: var(--fs-xs); line-height: 1.8; }
.probe-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--turq); background: rgb(31 165 156 / .14); }
.probe-ic .ic { width: 20px; height: 20px; }
.probe-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.probe-row { display: grid; grid-template-columns: auto 72px 82px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: var(--fs-sm); background: rgb(var(--c-sf1) / .6); border: 1px solid rgb(var(--c-ac) / .12); }
.pr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mist); }
.is-wait .pr-dot { animation: prPulse 1s ease-in-out infinite; }
@keyframes prPulse { 50% { opacity: .3; } }
.is-ok { border-color: rgb(62 201 122 / .5); } .is-ok .pr-dot { background: #3ec97a; }
.is-warn { border-color: rgb(240 180 60 / .55); } .is-warn .pr-dot { background: #f0b43c; }
.is-bad .pr-dot { background: #e0566b; } .is-bad .pr-msg { color: var(--mist); }
.pr-port { color: rgb(var(--c-title)); white-space: nowrap; }
.pr-enc { font-size: var(--fs-xs); color: var(--gold-2); }
.pr-msg { line-height: 1.7; overflow-wrap: anywhere; }
.pr-ms { font-size: var(--fs-xs); color: var(--mist); white-space: nowrap; }
.probe-sum { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; font-size: var(--fs-sm); line-height: 1.8; }
.probe-sum.is-ok { background: rgb(62 201 122 / .12); border: 1px solid rgb(62 201 122 / .4); }
.probe-sum.is-bad { background: rgb(224 86 107 / .1); border: 1px solid rgb(224 86 107 / .35); }
@media (max-width: 640px) { .probe-row { grid-template-columns: auto auto 1fr; } .pr-msg { grid-column: 1 / -1; } .pr-ms { display: none; } .pr-use { grid-column: 1 / -1; } }

/* ============ Footer: Enamad sits right beside the copyright, no card ============ */
.foot-end { display: inline-flex; align-items: center; gap: 10px; }
/* the site's chat button stands in the footer's end corner: the line beside it steps clear of it (on the narrowest
   screens that line is centred on a row of its own, on the widest the footer's own margin is room enough) */
@media (min-width: 761px) and (max-width: 1700px) { body:has(.chatw) .foot-end { padding-inline-end: 64px; } }
.foot-trust { height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: .92; transition: opacity .2s, transform .2s; }
.foot-trust:hover { opacity: 1; transform: translateY(-1px); box-shadow: none; }
.foot-trust img { height: 48px; width: auto; }

/* ═══ Apps showcase: platforms orbiting the cat in 3D + holographic tilt cards (transform/opacity only) ═══ */
.aps { position: relative; isolation: isolate; margin: 4px 0 30px; }
.aps-sky { position: absolute; inset: -70px max(-60px, calc((100% - 100vw) / 2 + 16px)) auto; height: 680px; z-index: -1; pointer-events: none;
  /* never wider than the page (that made the whole page scroll sideways); its side edges fade out instead of ending in a line */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  background: radial-gradient(38% 46% at 80% 26%, rgb(var(--c-ac) / .22), transparent 70%), radial-gradient(34% 42% at 14% 72%, rgb(var(--c-al) / .16), transparent 72%); }
[data-theme="dark"] .aps-sky { background:
  radial-gradient(1.5px 1.5px at 12% 22%, rgb(255 255 255 / .7), transparent 60%), radial-gradient(1px 1px at 34% 64%, rgb(255 255 255 / .55), transparent 60%),
  radial-gradient(1.5px 1.5px at 58% 14%, rgb(255 230 230 / .7), transparent 60%), radial-gradient(1px 1px at 76% 58%, rgb(255 255 255 / .5), transparent 60%),
  radial-gradient(1.5px 1.5px at 90% 34%, rgb(255 255 255 / .6), transparent 60%), radial-gradient(1px 1px at 46% 88%, rgb(255 255 255 / .45), transparent 60%),
  radial-gradient(40% 48% at 78% 28%, rgb(206 22 44 / .30), transparent 70%), radial-gradient(36% 44% at 16% 70%, rgb(120 20 60 / .22), transparent 72%); }
.aps-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 22px; padding: 30px 34px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, rgb(var(--c-sf1) / .92), rgb(var(--c-sf2) / .74)); border: 1px solid rgb(var(--c-ac) / .22); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 34px 70px -46px rgb(var(--c-glow)); }
.aps-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-2); background: rgb(var(--c-ac) / .12); border: 1px solid rgb(var(--c-ac) / .25); }
.aps-kicker i { font-style: normal; }
.aps-title { margin: 12px 0 8px; font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900; line-height: 1.2; letter-spacing: -.5px;
  background: linear-gradient(100deg, rgb(var(--c-title)) 25%, var(--gold) 45%, var(--turq) 56%, rgb(var(--c-title)) 75%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: aps-sheen 2.8s .3s ease-out 1 both; }
@keyframes aps-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.aps-lead { max-width: 46ch; color: var(--mist); line-height: 1.95; }
.aps-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.aps-copy { container-type: inline-size; }
.aps-steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 2px; padding: 0; list-style: none; }
.aps-steps li { position: relative; display: inline-flex; align-items: center; gap: 11px; padding: 9px 18px; padding-inline-start: 9px; border-radius: 14px;
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.5; color: rgb(var(--c-title));
  background: linear-gradient(180deg, rgb(var(--c-sf1) / .96), rgb(var(--c-sf2) / .72)); border: 1px solid rgb(var(--c-ac) / .22);
  box-shadow: 0 10px 20px -16px rgb(var(--c-sh) / .6), inset 0 1px 0 rgb(255 255 255 / .35); }
.aps-steps b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; color: #fff; font-size: .88rem; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-3)); box-shadow: 0 6px 12px -6px rgb(var(--c-ac) / .8), inset 0 1px 0 rgb(255 255 255 / .35); }
/* where the three steps fit on one line, a small chevron in the gap shows their order */
@container (min-width: 540px) {
  .aps-steps { gap: 12px 30px; }
  .aps-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -19px; width: 7px; height: 7px;
    border: solid rgb(var(--c-tx3) / .75); border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(45deg); }
  [dir="ltr"] .aps-steps li:not(:last-child)::after { border-width: 0 2px 2px 0; transform: translateY(-50%) rotate(-45deg); }
}
.aps-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: var(--fs-sm); color: var(--mist); }
.aps-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.aps-stats b { font-size: 1.5rem; font-weight: 900; color: rgb(var(--c-title)); }
/* orbit */
.aps-orbit { --R1: clamp(84px, 10vw, 118px); --R2: clamp(138px, 16.5vw, 190px); position: relative; height: clamp(270px, 30vw, 360px); perspective: 900px; }
.aps-halo { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgb(var(--c-glow) / .32), transparent 66%); }
.aps-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(64deg); }
.aps-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--R) * 2); height: calc(var(--R) * 2); margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1); border-radius: 50%; transform-style: preserve-3d;
  border: 1.5px dashed rgb(var(--c-ac) / .38); box-shadow: 0 0 22px rgb(var(--c-glow) / .25), inset 0 0 22px rgb(var(--c-glow) / .18); }
.ring-a { --R: var(--R1); }
.ring-b { --R: var(--R2); border-style: solid; border-color: rgb(var(--c-ac) / .2); }
.aps-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: aps-spin 24s linear infinite; will-change: transform; }
.ring-b .aps-spin { animation-duration: 36s; animation-direction: reverse; }
@keyframes aps-spin { to { transform: rotate(360deg); } }
.aps-sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotate(var(--a)) translateX(var(--R)) rotate(calc(-1 * var(--a))); }
.aps-sat-c { display: block; transform-style: preserve-3d; animation: aps-spin 24s linear infinite reverse; }
.ring-b .aps-sat-c { animation-duration: 36s; animation-direction: normal; }
.aps-sat-f { position: absolute; left: -27px; top: -27px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; transform: rotateX(-64deg); transition: transform .35s var(--spring), box-shadow .35s;
  color: var(--ab-c, var(--gold-2)); background: linear-gradient(145deg, rgb(var(--c-sf2)), rgb(var(--c-sf1))); border: 1px solid var(--ab-ring, rgb(var(--c-ac) / .3)); box-shadow: 0 12px 26px -12px var(--ab-sh, rgb(var(--c-glow))), inset 0 1px 0 rgb(255 255 255 / .12); }
.aps-sat-f .ic { width: 28px; height: 28px; }
.aps-sat.is-hot .aps-sat-f { transform: rotateX(-64deg) scale(1.32); box-shadow: 0 0 0 3px var(--ab-ring, rgb(var(--c-ac) / .4)), 0 16px 36px -10px var(--ab-sh, rgb(var(--c-glow))); }
.aps-core { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; border-radius: 50%; transform: rotateX(-64deg);
  background: radial-gradient(circle at 35% 28%, rgb(var(--c-sf2)), rgb(var(--c-sf1))); box-shadow: 0 0 0 1px rgb(var(--c-ac) / .4), 0 0 46px rgb(var(--c-glow) / .6), inset 0 1px 0 rgb(255 255 255 / .14); }
.aps-core .brand-mark { width: 64px; height: 64px; }
.aps-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(var(--c-ac) / .55); animation: aps-pulse 3.4s ease-out infinite; }
.aps-pulse.p2 { animation-delay: 1.7s; }
@keyframes aps-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.5); opacity: 0; } }
/* cards */
.aps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr)); gap: 18px; margin-top: 24px; }
.apc { --rx: 0deg; --ry: 0deg; position: relative; display: block; padding: 1.6px; border-radius: 24px; color: inherit; text-decoration: none; isolation: isolate; overflow: hidden;
  opacity: 0; transform: perspective(900px) translateY(28px) rotateX(12deg) scale(.95); transition: opacity .7s ease, transform .8s var(--spring), box-shadow .35s; transition-delay: calc(var(--d) * 95ms); }
.apc.is-in { opacity: 1; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.apc.is-tilting { transition: transform .14s ease-out, box-shadow .35s; transition-delay: 0s; }
a.apc:hover { box-shadow: 0 28px 54px -28px var(--ab-sh, rgb(var(--c-glow))); }
a.apc:focus-visible { outline: 2px solid rgb(var(--c-ac)); outline-offset: 3px; }
.apc-edge { position: absolute; inset: -60%; z-index: -1; will-change: transform; animation: aps-spin 7s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 8%, var(--ab-c, var(--gold)) 18%, var(--turq) 30%, transparent 42% 58%, rgb(var(--c-ac)) 70%, var(--gold) 80%, transparent 92%); }
.apc.is-soon .apc-edge { animation-duration: 14s; opacity: .55; background: conic-gradient(from 0deg, transparent 0 20%, rgb(var(--c-tx3) / .7) 35%, transparent 50% 70%, var(--ab-c, rgb(var(--c-tx3))) 85%, transparent); }
.apc-body { position: relative; display: grid; gap: 11px; height: 100%; padding: 20px; border-radius: 22.6px; overflow: hidden; background: linear-gradient(165deg, rgb(var(--c-sf1)), rgb(var(--c-sf2))); }
.apc-shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.apc-shine i { position: absolute; left: -30%; top: -30%; width: 160%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle, rgb(255 255 255 / .17), transparent 55%); transform: translate(var(--sx, 0px), var(--sy, 0px)); }
a.apc:hover .apc-shine i { opacity: 1; }
.apc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apc-ic { width: 66px; height: 66px; flex: none; display: grid; place-items: center; border-radius: 20px; color: var(--ab-c, var(--gold-2)); animation: aps-float 5.5s ease-in-out infinite; animation-delay: calc(var(--d) * -.8s);
  background: linear-gradient(145deg, var(--ab-bg1, rgb(var(--c-ac) / .18)), var(--ab-bg2, rgb(var(--c-ac) / .05))); border: 1px solid var(--ab-ring, rgb(var(--c-ac) / .3));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 14px 28px -16px var(--ab-sh, rgb(var(--c-glow))); }
.apc-ic .ic { width: 35px; height: 35px; }
@keyframes aps-float { 50% { transform: translateY(-6px); } }
.apc-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; color: rgb(var(--c-tx2)); background: rgb(var(--c-tx3) / .12); }
.apc-chip i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ec97a; }
.apc-chip i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: aps-ping 2s ease-out infinite; }
.apc.is-soon .apc-chip i { background: var(--gold); }
.apc.is-soon .apc-chip i::after { animation: none; }
@keyframes aps-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
.apc-name { font-size: 1.14rem; font-weight: 900; line-height: 1.5; color: rgb(var(--c-title)); overflow-wrap: anywhere; }
.apc-desc { font-size: var(--fs-sm); line-height: 1.85; color: var(--mist); }
.apc-foot { display: flex; align-items: center; gap: 14px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgb(var(--c-tx3) / .25); }
.apc-meter { position: relative; width: 58px; height: 58px; flex: none; display: flex; align-items: baseline; justify-content: center; padding-top: 18px; }
.apc-meter svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.apc-track { fill: none; stroke: rgb(var(--c-tx3) / .2); stroke-width: 5; }
.apc-val { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 95ms + .3s); }
.apc.is-ready .apc-val { stroke: #3ec97a; }
.apc.is-in .apc-val { stroke-dashoffset: calc(100 - var(--p)); }
.apc-meter b { font-size: .98rem; font-weight: 900; color: rgb(var(--c-title)); }
.apc-meter small { font-size: .68rem; color: var(--mist); }
.apc-meta { display: grid; gap: 3px; min-width: 0; }
.apc-lbl { font-size: var(--fs-xs); color: var(--mist); }
.apc-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-2); }
.apc-cta .ic { width: 16px; height: 16px; transition: transform .25s; }
[dir="rtl"] a.apc:hover .apc-cta .ic { transform: rotate(180deg) translateX(4px); }
[dir="ltr"] a.apc:hover .apc-cta .ic { transform: translateX(4px); }
.apc-ver { font-size: var(--fs-xs); color: var(--mist); }
.apc-soon { font-weight: 700; color: rgb(var(--c-tx2)); }
@media (max-width: 860px) { .aps-hero { grid-template-columns: 1fr; padding: 22px; } .aps-orbit { order: -1; height: 250px; } }
@media (max-width: 520px) { .aps-grid { grid-template-columns: 1fr; } .aps-title { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  .aps-spin, .aps-sat-c, .apc-edge, .apc-ic, .aps-pulse, .apc-chip i::after, .aps-title { animation: none !important; }
  .aps-title { background-position: 0 0; }
  .apc { opacity: 1; transform: none; transition: none; }
  .apc-val { transition: none; }
}

/* gallery: varied tiles, but never so large that the preview turns soft (columns stop at 400px) */
.gal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 400px)); justify-content: center; }
@media (max-width: 680px) { .gal { grid-template-columns: 1fr; } }

/* ───────── admin: storages ───────── */
.stg-kpis .kpi b { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.stg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 22px; }
.stg-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgb(var(--c-sf2) / .7), rgb(var(--c-sf1) / .9)); }
.stg-card.is-default { border-color: rgb(var(--c-ac) / .5); box-shadow: 0 0 0 1px rgb(var(--c-ac) / .18), 0 14px 34px -22px rgb(var(--c-ac) / .7); }
.stg-card.is-off { opacity: .82; }
.stg-card header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stg-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; color: var(--gold-2); background: rgb(var(--c-ac) / .12); border: 1px solid rgb(var(--c-ac) / .28); }
.stg-ico .ic { width: 22px; height: 22px; }
.stg-name { min-width: 0; }
.stg-name h2 { margin: 0; font-size: var(--fs-md); }
.stg-name h2 a { color: rgb(var(--c-title)); text-decoration: none; }
.stg-name h2 a:hover { color: var(--gold-2); }
.stg-name p { margin: 2px 0 0; font-size: var(--fs-xs); color: rgb(var(--c-tx3)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.stg-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stg-tag-ok { color: rgb(var(--c-ok)); background: rgb(var(--c-ok) / .12); }
.stg-tag-bad { color: rgb(var(--c-badtx, var(--c-bad))); background: rgb(var(--c-bad) / .12); }
.stg-tag-off { color: rgb(var(--c-tx3)); background: rgb(var(--c-tx3) / .14); }
.stg-use-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-xs); color: rgb(var(--c-tx3)); }
.stg-use-top b { font-size: var(--fs-lg); color: rgb(var(--c-title)); }
.stg-bar { height: 8px; margin: 8px 0 10px; border-radius: 99px; background: rgb(var(--c-tx3) / .16); overflow: hidden; }
.stg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--c-al)), rgb(var(--c-ac))); }
.stg-bar.is-full i { background: rgb(var(--c-bad)); }
.stg-counts { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-xs); color: rgb(var(--c-tx2)); }
.stg-counts span { display: inline-flex; align-items: center; gap: 5px; }
.stg-counts .ic { width: 15px; height: 15px; }
.stg-err { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 9px 11px; border-radius: 12px; font-size: var(--fs-xs); color: rgb(var(--c-badtx, var(--c-bad))); background: rgb(var(--c-bad) / .08); overflow-wrap: anywhere; }
.stg-err .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.stg-card footer, .stg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stg-card footer { margin-top: auto; }
.stg-card footer form, .stg-actions form { display: contents; }
.stg-head h1 { display: flex; align-items: center; gap: 12px; }
.stg-head .stg-tags { margin-top: 10px; }
.stg-type { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 0; background: none; border: 0; }
.stg-type label { flex: 1 1 200px; cursor: pointer; }
.stg-type input { position: absolute; opacity: 0; pointer-events: none; }
.stg-type span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); color: rgb(var(--c-tx2)); font-size: var(--fs-sm); transition: border-color .2s, background-color .2s, color .2s; }
.stg-type input:checked + span { color: var(--gold-2); border-color: rgb(var(--c-ac) / .6); background: rgb(var(--c-ac) / .1); }
.stg-type input:focus-visible + span { outline: 2px solid rgb(var(--c-ac)); outline-offset: 2px; }
.stg-tools { align-items: start; margin-top: 18px; }
.stg-tools .panel { margin: 0; }
.stg-note { margin: 0 0 10px; font-size: var(--fs-sm); color: rgb(var(--c-tx3)); }
.stg-hr { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }
.stg-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stg-users li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 11px; background: rgb(var(--c-tx3) / .08); font-size: var(--fs-sm); }
.stg-users span { color: rgb(var(--c-tx3)); font-size: var(--fs-xs); white-space: nowrap; }
.stg-test-out, .stg-probe-out, .stg-progress { margin: 0 0 14px; padding: 11px 14px; border-radius: 13px; font-size: var(--fs-sm); border: 1px solid var(--line-2); background: rgb(var(--c-tx3) / .07); overflow-wrap: anywhere; }
.stg-progress { margin-top: 12px; }
.stg-test-out.is-ok, .stg-probe-out.is-ok, .stg-prog-head.is-ok { color: rgb(var(--c-ok)); }
.stg-test-out.is-ok, .stg-probe-out.is-ok { border-color: rgb(var(--c-ok) / .4); background: rgb(var(--c-ok) / .08); }
.stg-test-out.is-bad, .stg-probe-out.is-bad { color: rgb(var(--c-badtx, var(--c-bad))); border-color: rgb(var(--c-bad) / .4); background: rgb(var(--c-bad) / .08); }
.stg-prog-head { margin: 0; font-weight: 600; }
.stg-prog-head.is-bad { color: rgb(var(--c-badtx, var(--c-bad))); }
.stg-prog-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; font-size: var(--fs-xs); }
.stg-prog-list li { display: flex; gap: 10px; padding: 5px 9px; border-radius: 9px; background: rgb(var(--c-bad) / .08); }
.stg-prog-list span { color: rgb(var(--c-tx3)); overflow-wrap: anywhere; text-align: start; }
.fx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 12px; }
.fx-crumbs button { padding: 5px 10px; border-radius: 9px; border: 1px solid transparent; background: rgb(var(--c-tx3) / .1); color: rgb(var(--c-tx2)); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.fx-crumbs button:hover { color: var(--gold-2); border-color: rgb(var(--c-ac) / .4); }
.fx-crumbs button.is-on { color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.fx-sep { color: rgb(var(--c-tx3)); }
.fx-table { width: 100%; }
.fx-table td { vertical-align: middle; }
.fx-table th:first-child, .fx-table td:first-child { width: 42%; }
.fx-table th:last-child { width: 1%; }
.fx-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-fname { display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); text-align: start; }
.fx-table th { text-align: start; }
.fx-name .ic { width: 20px; height: 20px; flex: none; color: rgb(var(--c-tx3)); }
.fx-thumb { width: 44px; height: 34px; flex: none; object-fit: cover; border-radius: 8px; background: rgb(var(--c-tx3) / .15); }
.fx-dir button { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; border: 0; background: none; color: rgb(var(--c-title)); font: inherit; font-weight: 600; cursor: pointer; }
.fx-dir button:hover { color: var(--gold-2); }
.fx-dir .ic { color: var(--gold-2); }
.fx-num { white-space: nowrap; font-size: var(--fs-xs); color: rgb(var(--c-tx2)); }
.fx-own { font-size: var(--fs-xs); }
.fx-own a, .fx-own span { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-owner { color: rgb(var(--c-tx3)); text-align: start; }
.fx-act { white-space: nowrap; text-align: end; }
.fx-act .btn { width: 36px; padding: 0; justify-content: center; }
.fx-msg { text-align: center; padding: 22px 10px; color: rgb(var(--c-tx3)); }
.fx-msg.is-bad { color: rgb(var(--c-badtx, var(--c-bad))); }
@media (max-width: 760px) {
  .fx-table { min-width: 560px; }
  .fx-table th:nth-child(3), .fx-table td:nth-child(3) { display: none; }
  .fx-fname { max-width: 170px; }
  .fx-own a, .fx-own span { max-width: 150px; }
}

/* ============ Home promos ("whispers") — partials/promos.php, js/promos.js ============
   One at a time a whisper drifts out of the upload circle, condenses out of smoke (an SVG displacement the script
   tweens, plus blur), stays, and dissolves upward while its bubble pops. Wide screens: beside the circle, right
   and left in turn. Narrow screens: one ribbon under the upload area, as tall as the tallest whisper. */
.hero { position: relative; }
.promos[hidden] { display: none; }
.promos { overflow-x: clip; }      /* mist, aura and droplets never make the page scroll sideways */
.promos { --pm-w: 320px; --pm-x: 0px; --pm-y: 50%; --pm-m1: var(--c-ac); --pm-m2: var(--c-al); --pm-m3: var(--c-ac2); --pm-aura: 255 255 255 / .62; }
.pm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.pm-item { display: block; color: inherit; text-decoration: none; visibility: hidden; pointer-events: none; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.pm-item.is-in, .pm-item.is-out { visibility: visible; }
.pm-item.is-in { pointer-events: auto; }
.pm-item:focus-visible { outline: 2px solid rgb(var(--c-ac2)); outline-offset: 8px; }
.pm-smoke { position: relative; isolation: isolate; display: grid; grid-template-areas: "orb" "title" "desc"; justify-items: center; row-gap: 12px; text-align: center; }
/* the mist the whisper is made of */
.pm-smoke::before { content: ""; position: absolute; z-index: -2; inset: -14% -18%; pointer-events: none; opacity: 0; filter: blur(22px);
  background: radial-gradient(40% 46% at 30% 58%, rgb(var(--pm-m1) / .5), transparent 70%), radial-gradient(38% 42% at 70% 40%, rgb(var(--pm-m2) / .42), transparent 72%), radial-gradient(30% 30% at 50% 84%, rgb(var(--pm-m3) / .42), transparent 70%); }
/* a soft aura behind the words, so they stay readable over any page background */
.pm-smoke::after { content: ""; position: absolute; z-index: -3; inset: -4% -10%; pointer-events: none; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--pm-aura)), transparent); }
.pm-item.is-in .pm-smoke::after { animation: pm-aura .9s ease-out .25s both; }
.pm-item.is-out .pm-smoke::after { animation: pm-aura .8s ease-in reverse both; }
@keyframes pm-aura { from { opacity: 0; } to { opacity: 1; } }

/* the bubble: soap film with slowly turning colours; it pops into droplets on the way out */
.pm-orb { grid-area: orb; position: relative; width: 72px; aspect-ratio: 1; }
.pm-bubble { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2);
  background: radial-gradient(circle at 31% 27%, rgb(255 255 255 / .95) 0 4%, rgb(255 255 255 / .38) 9%, transparent 21%),
    radial-gradient(circle at 70% 76%, rgb(255 255 255 / .42) 0 2.5%, transparent 9%),
    radial-gradient(circle at 50% 56%, rgb(var(--c-sf1) / .22) 40%, rgb(var(--pm-m1) / .16) 68%, rgb(var(--pm-m2) / .3) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), inset -9px -11px 18px -8px rgb(var(--pm-m2) / .45), inset 9px 7px 16px -9px rgb(var(--c-ac) / .55), 0 18px 36px -20px rgb(var(--c-ac) / .75); }
.pm-bubble::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 2px; opacity: .8;
  background: conic-gradient(#ff9ad5, #9ad8ff, #fff2a6, #c7a6ff, #8ff0d2, #ff9ad5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: pm-film 9s linear infinite; }
.pm-bubble .ic { position: relative; width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgb(var(--c-ac) / .45)); }
.pm-drops i { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 30%, #fff, rgb(var(--c-ac2)) 55%, transparent 72%); }

.pm-title { grid-area: title; display: block; max-width: 100%; font-size: clamp(1.5rem, .9rem + 1.35vw, 2.5rem); font-weight: 900; line-height: 1.4; text-wrap: balance;
  color: rgb(var(--c-title)); background: linear-gradient(105deg, rgb(var(--c-title)) 12%, var(--gold-2) 66%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[lang="en"] .pm-title { font-weight: 800; }

/* the fuller line, written on a ribbon of light with tapered ends */
.pm-desc { grid-area: desc; position: relative; display: block; padding: 11px 22px; font-size: var(--fs-sm); line-height: 1.9; color: var(--parch); text-wrap: pretty; }
.pm-ribbon { grid-area: desc; position: relative; justify-self: stretch; align-self: stretch; margin-inline: -26px; overflow: hidden;
  background: linear-gradient(90deg, transparent, rgb(var(--c-sf1) / .84) 15%, rgb(var(--c-sf1) / .84) 85%, transparent); }
.pm-ribbon::before, .pm-ribbon::after { content: ""; position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--pm-m1) / .85) 22%, rgb(var(--pm-m3)) 50%, rgb(var(--pm-m2) / .8) 78%, transparent); }
.pm-ribbon::before { top: 0; }
.pm-ribbon::after { bottom: 0; }
.pm-glint { position: absolute; inset: 0; opacity: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 38%, rgb(255 255 255 / .5) 50%, transparent 62%); }
a.pm-item.is-in:hover .pm-ribbon::before, a.pm-item.is-in:hover .pm-ribbon::after { background: linear-gradient(90deg, transparent, rgb(var(--pm-m1)) 15%, rgb(var(--pm-m3)) 50%, rgb(var(--pm-m2)) 85%, transparent); }
a.pm-item.is-in:hover .pm-bubble { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65), inset -9px -11px 18px -8px rgb(var(--pm-m2) / .5), inset 9px 7px 16px -9px rgb(var(--c-ac) / .6), 0 18px 40px -16px rgb(var(--c-ac) / .9); }

/* coming: out of the circle, condensing */
.pm-item.is-in .pm-orb { animation: pm-drift-in 1.25s var(--smooth) both; }
.pm-item.is-in .pm-bubble { animation: pm-inflate .95s cubic-bezier(.2, .9, .3, 1.25) both; }
.pm-item.is-in .pm-title { animation: pm-condense 1.05s var(--smooth) .18s both; }
.pm-item.is-in .pm-ribbon { animation: pm-unroll .85s var(--smooth) .62s both; }
.pm-item.is-in .pm-desc { animation: pm-condense-soft .8s var(--smooth) .78s both; }
.pm-item.is-in .pm-glint { animation: pm-glint 1.3s ease-in-out 1.55s both; }
.pm-item.is-in .pm-smoke::before { animation: pm-puff-in 1.9s ease-out both; }
/* going: up in smoke, the bubble pops */
.pm-item.is-out .pm-bubble { animation: pm-pop .42s cubic-bezier(.4, 0, .7, 1) both; }
.pm-item.is-out .pm-drops i { animation: pm-drop .72s var(--smooth) .16s both; }
.pm-item.is-out :is(.pm-title, .pm-desc, .pm-ribbon) { animation: pm-dissolve 1s cubic-bezier(.55, 0, .75, .4) both; }
.pm-item.is-out :is(.pm-desc, .pm-ribbon) { animation-delay: .07s; }
.pm-item.is-out .pm-smoke::before { animation: pm-puff-out 1.05s ease-out both; }

@keyframes pm-film { to { transform: rotate(1turn); } }
@keyframes pm-drift-in { from { transform: translate(var(--pm-fx), var(--pm-fy)); } to { transform: none; } }
@keyframes pm-inflate { 0% { opacity: 0; transform: scale(.18); } 55% { opacity: 1; transform: scale(1.1, 1.04); } 76% { transform: scale(.96, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes pm-condense { 0% { opacity: 0; filter: blur(18px); transform: translate(calc(var(--pm-fx) * .8), calc(var(--pm-fy) + 10px)) scale(1.1); } 45% { opacity: .7; } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes pm-condense-soft { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes pm-unroll { from { opacity: .2; clip-path: var(--pm-clip); } to { opacity: 1; clip-path: inset(0); } }
@keyframes pm-glint { 0% { opacity: 0; transform: translateX(-120%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(120%); } }
@keyframes pm-puff-in { 0% { opacity: 0; transform: translate(var(--pm-fx), 0) scale(.35); } 35% { opacity: .75; } 100% { opacity: 0; transform: translate(0, -12px) scale(1.35); } }
@keyframes pm-puff-out { 0% { opacity: 0; transform: scale(.9); } 30% { opacity: .55; } 100% { opacity: 0; transform: translate(0, -40px) scale(1.6); } }
@keyframes pm-pop { 0% { opacity: 1; transform: none; } 45% { opacity: 1; transform: scale(1.14); } 100% { opacity: 0; transform: scale(1.36); } }
@keyframes pm-drop { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-26px) scale(1); } 18% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.3); } }
@keyframes pm-dissolve { 0% { opacity: 1; filter: blur(0); transform: none; } 100% { opacity: 0; filter: blur(16px); transform: translate(calc(var(--pm-fx) * -.2), -30px) scale(1.06); } }

/* wide screens: beside the circle */
.promos.is-sides { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.promos.is-sides .pm-item { position: absolute; top: var(--pm-y); width: var(--pm-w); translate: 0 -50%; }
.promos.is-sides .pm-item.side-a { inset-inline-start: var(--pm-x); }
.promos.is-sides .pm-item.side-b { inset-inline-end: var(--pm-x); }
/* a few bubbles rising at the edges, so the sides are never quite empty */
.pm-motes { display: none; position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.promos.is-sides.is-live .pm-motes { display: block; }
.pm-motes i { position: absolute; left: var(--x); bottom: -16px; width: var(--s); aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95) 0 12%, transparent 34%), radial-gradient(circle, transparent 52%, rgb(var(--pm-m2) / .55) 76%, rgb(var(--pm-m1) / .6));
  animation: pm-rise var(--t) linear var(--dl) infinite; }
@keyframes pm-rise { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .5; } 50% { transform: translate(12px, -36vh); } 90% { opacity: .35; } 100% { opacity: 0; transform: translate(-8px, -72vh); } }

/* narrow screens: one ribbon under the upload area */
.promos.is-band { position: relative; width: min(600px, 100%); margin: 30px auto 6px; }
.promos.is-band .pm-track { display: grid; }
.promos.is-band .pm-item { grid-area: 1 / 1; }
.promos.is-band .pm-smoke { grid-template-areas: "orb title" "orb desc"; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 16px; row-gap: 0; padding: 16px 32px; text-align: start; }
.promos.is-band .pm-ribbon { grid-area: 1 / 1 / -1 / -1; margin: -16px -32px; }
.promos.is-band .pm-smoke::before { inset: -34% 3%; }
.promos.is-band .pm-smoke::after { inset: -14% 6%; }
.promos.is-band .pm-orb { width: 50px; }
.promos.is-band .pm-bubble .ic { width: 22px; height: 22px; }
.promos.is-band .pm-title { font-size: clamp(1.1rem, .95rem + .7vw, 1.35rem); line-height: 1.55; }
.promos.is-band .pm-desc { padding: 0; font-size: var(--fs-xs); line-height: 1.85; color: var(--mist); }
@media (max-width: 480px) { .promos.is-band .pm-smoke { padding: 14px 22px; column-gap: 12px; } .promos.is-band .pm-ribbon { margin: -14px -22px; } }

/* themes */
[data-theme="dark"] .promos { --pm-m1: 206 22 44; --pm-m2: 255 136 72; --pm-m3: 255 86 86; --pm-aura: 8 2 4 / .7; }
[data-theme="rainbow"] .promos { --pm-aura: 255 255 255 / .82; }
[data-theme="dark"] .pm-title { background-image: linear-gradient(105deg, #fff3ef 8%, rgb(var(--c-ac2)) 60%, rgb(var(--c-ac)) 100%); }
[data-theme="dark"] .pm-bubble { color: rgb(var(--c-ac2));
  background: radial-gradient(circle at 31% 27%, rgb(255 236 232 / .85) 0 4%, rgb(255 255 255 / .22) 9%, transparent 21%), radial-gradient(circle at 70% 76%, rgb(255 255 255 / .3) 0 2.5%, transparent 9%),
    radial-gradient(circle at 50% 56%, rgb(18 4 8 / .6) 40%, rgb(var(--c-ac) / .34) 80%, rgb(var(--c-ac2) / .45) 100%); }
[data-theme="dark"] .pm-bubble::before { background: conic-gradient(#ff5a5a, #ffb36b, #ff2d55, #8a0b1e, #ffd0a8, #ff5a5a); }
[data-theme="dark"] .pm-ribbon { background: linear-gradient(90deg, transparent, rgb(var(--c-sf1) / .88) 15%, rgb(var(--c-sf1) / .88) 85%, transparent); }
[data-theme="rainbow"] .pm-title { background-image: linear-gradient(105deg, rgb(96 14 82) 14%, rgb(214 70 150) 72%, rgb(160 104 236) 100%); }
[data-theme="rainbow"] .pm-ribbon { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .92) 15%, rgb(255 255 255 / .92) 85%, transparent); }

/* "reduce motion": no smoke, no bubbles, the whispers only cross-fade */
@media (prefers-reduced-motion: reduce) {
  .pm-item .pm-orb, .pm-item .pm-bubble, .pm-bubble::before, .pm-item .pm-title, .pm-item .pm-desc, .pm-item .pm-ribbon, .pm-item .pm-glint, .pm-item .pm-drops i, .pm-item .pm-smoke::before { animation: none !important; }
  .pm-item { opacity: 0; transition: opacity .7s ease !important; }
  .pm-item.is-in { opacity: 1; }
  .promos .pm-motes { display: none !important; }
}

/* admin → appearance: promos */
.pm-set-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-inline-end: 8px; vertical-align: -6px; border-radius: 50%; color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.pm-set-ic .ic { width: 15px; height: 15px; }
.pm-tokens { align-self: end; margin: 0 0 18px; }
.pm-set-actions { margin-top: 6px; }
.ht-row textarea { width: 100%; min-height: 66px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--parch); font: inherit; font-size: var(--fs-sm); line-height: 1.7; resize: vertical; }
.ht-row textarea[lang="en"] { font-family: var(--latin); }
.ht-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .2); }

/* =========================================================
   5.4 · App icons, plans & orders, developers
   ========================================================= */

/* ---------- uploaded app icons: a light plate keeps a brand's own colours true on every theme ---------- */
.app-img { display: block; width: 62%; height: 62%; object-fit: contain; }
:is(.as-btn-ic, .aps-sat-f, .apc-ic, .app-ic-prev).has-img { background: linear-gradient(160deg, #fff, #f3f1fa); box-shadow: 0 10px 22px -12px rgb(var(--c-sh) / .6), inset 0 0 0 1px rgb(0 0 0 / .05); }
[data-theme="dark"] :is(.as-btn-ic, .aps-sat-f, .apc-ic, .app-ic-prev).has-img { background: linear-gradient(160deg, #2a171e, #160b10); box-shadow: 0 10px 24px -12px #000, inset 0 0 0 1px rgb(255 255 255 / .08); }
.apc-ic.has-img .app-img { width: 60%; height: 60%; }
.app-ic-hint { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 16px; }
.app-ic-hint .ic { flex: none; margin-top: 3px; color: var(--turq); }
.app-ic-row { display: flex; gap: 14px; align-items: center; margin: 2px 0 10px; }
.app-ic-prev { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 17px; color: var(--gold-2); background: rgb(var(--c-ac) / .1); border: 1px solid var(--line); }
.app-ic-prev .ic { width: 28px; height: 28px; }
.app-ic-field { flex: 1; min-width: 0; margin: 0; }
.app-ic-field input[type=file] { height: auto; padding: 8px 10px; font-size: var(--fs-xs); }

/* ---------- my plan: the pass ---------- */
.pl-pass {
  --acc: var(--c-ac); --acc2: var(--c-ac2);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 34px;
  padding: 32px 36px 26px; margin-bottom: 18px; border-radius: 32px;
  background: radial-gradient(110% 140% at 0% 0%, rgb(var(--acc) / .16), transparent 52%), linear-gradient(140deg, rgb(var(--c-sf3) / .95), rgb(var(--c-sf1) / .94) 58%, rgb(var(--c-bg1) / .92));
  border: 1px solid rgb(var(--acc) / .36);
  box-shadow: 0 44px 90px -54px rgb(var(--acc) / .9), inset 0 1px 0 rgb(var(--c-hl) / .08);
}
.pl-pass.is-base { --acc: var(--c-al); --acc2: var(--c-al2); }
/* a banknote's guilloche, centred on the dial */
.pl-pass::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% -40% auto; width: 70%; border-radius: 50%; opacity: .5;
  background: repeating-radial-gradient(circle at 50% 50%, rgb(var(--acc) / .14) 0 1px, transparent 1px 11px);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
[dir="rtl"] .pl-pass::before { inset: -40% auto -40% -10%; }
.pl-pass-sheen { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .22) 48%, transparent 58%); transform: translateX(-120%); animation: pl-sheen 1.6s .35s var(--smooth) both; }
[data-theme="dark"] .pl-pass-sheen { background: linear-gradient(105deg, transparent 38%, rgb(255 120 120 / .14) 48%, transparent 58%); }
@keyframes pl-sheen { to { transform: translateX(120%); } }
.pl-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: rgb(var(--acc)); font-weight: 700; }
.pl-pass.is-base .pl-kicker { color: var(--turq-2); }
.pl-kicker .ic { width: 18px; height: 18px; }
.pl-pass-name { margin: 6px 0 2px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; font-weight: 900; letter-spacing: -.01em; color: rgb(var(--c-title)); }
.pl-pass-desc { color: var(--mist); max-width: 52ch; }
.pl-pass-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.pl-pass-state .tag { height: 28px; padding: 0 12px; font-size: var(--fs-xs); }
.pl-until { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); font-size: var(--fs-sm); }
.pl-until .ic { width: 16px; height: 16px; }
.pl-pass-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pl-dial { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.pl-dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .pl-dial-ring { transform: rotate(-90deg) scaleY(-1); }
.pl-dial circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.pl-dial-track { stroke: rgb(var(--acc) / .14); }
.pl-dial-val { stroke: rgb(var(--acc)); stroke-dasharray: calc(var(--p) * 100) 100; filter: drop-shadow(0 0 6px rgb(var(--acc) / .55)); animation: pl-dial 1.3s .2s var(--smooth) both; }
.pl-pass.is-soon .pl-dial-val { stroke: var(--pom); }
@keyframes pl-dial { from { stroke-dasharray: 0 100; } }
.pl-dial-in { display: grid; justify-items: center; line-height: 1.1; }
.pl-dial-in b { font-size: 2.4rem; font-weight: 900; color: rgb(var(--c-title)); }
.pl-dial-in small { font-size: var(--fs-xs); color: var(--mist); margin-top: 4px; }
.pl-dial-inf { width: 46px; height: 46px; color: rgb(var(--acc)); }
.pl-perks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.pl-perks li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 18px; background: rgb(var(--c-sf1) / .62); border: 1px solid var(--line-2); }
.pl-perks li.is-off { opacity: .62; }
.pl-perk-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: rgb(var(--acc)); background: rgb(var(--acc) / .12); }
.pl-perks li.is-off .pl-perk-ic { color: var(--mist-2); background: rgb(var(--c-hl) / .05); }
.pl-perk-ic .ic { width: 19px; height: 19px; }
.pl-perk-t { display: grid; min-width: 0; }
.pl-perk-t b { font-size: var(--fs-sm); font-weight: 800; color: var(--parch); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-perk-t small { font-size: .75rem; color: var(--mist-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meter { grid-column: 1 / -1; height: 5px; border-radius: 9px; background: rgb(var(--acc) / .12); overflow: hidden; }
.pl-meter i { display: block; width: calc(var(--v) * 100%); min-width: 4px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--acc2)), rgb(var(--acc))); }
[dir="rtl"] .pl-meter i { margin-inline-start: 0; }

.pl-pending { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: 20px; text-decoration: none; color: var(--parch);
  background: linear-gradient(100deg, rgb(var(--c-ac) / .16), rgb(var(--c-sf1) / .7)); border: 1px dashed rgb(var(--c-ac) / .55); transition: border-color .2s, transform .2s; }
.pl-pending:hover { border-style: solid; transform: translateY(-1px); }
.pl-pending > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.pl-pending small { color: var(--mist); font-size: var(--fs-xs); }
.pl-pending-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--gold-2); background: rgb(var(--c-ac) / .16); }
.pl-pending-go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }

/* ---------- the plans to pick from ---------- */
.pl-shop { margin: 26px 0 22px; scroll-margin-top: 96px; }
.pl-shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.pl-shop-head h2 { font-size: var(--fs-2xl); font-weight: 900; color: rgb(var(--c-title)); }
.pl-shop-head p { color: var(--mist); font-size: var(--fs-sm); max-width: 66ch; margin-top: 4px; }
.pl-periods { --pad: 5px; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: var(--pad); border-radius: 18px; min-width: min(100%, 440px);
  background: rgb(var(--c-sf1) / .75); border: 1px solid var(--line-2); box-shadow: inset 0 1px 3px rgb(var(--c-sh) / calc(.25 * var(--sha))); }
.pl-periods-pill { position: absolute; top: var(--pad); bottom: var(--pad); inset-inline-start: calc(var(--pad) + var(--k) * (100% - 2 * var(--pad)) / var(--n)); width: calc((100% - 2 * var(--pad)) / var(--n)); border-radius: 13px;
  background: linear-gradient(180deg, rgb(var(--c-ac2)), rgb(var(--c-ac))); box-shadow: 0 8px 18px -8px rgb(var(--c-ac) / .9), inset 0 1px 0 rgb(255 255 255 / .45); transition: inset-inline-start .38s var(--spring); }
.pl-periods a { position: relative; z-index: 1; display: grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 13px; color: var(--mist); text-decoration: none; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; transition: color .25s; }
.pl-periods a[aria-checked="true"] { color: rgb(var(--c-on)); }
.pl-periods a:focus-visible { outline: 2px solid rgb(var(--c-ac)); outline-offset: 2px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr)); gap: 16px; align-items: stretch; }
.pl-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 20px; border-radius: 26px;
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .9), rgb(var(--c-sf1) / .86)); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -44px rgb(var(--c-sh) / calc(.9 * var(--sha))); animation: pl-rise .6s calc(var(--i) * 80ms) var(--smooth) both; transition: transform .3s var(--spring), border-color .3s, box-shadow .3s; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(18px); } }
.pl-card:hover { border-color: rgb(var(--c-ac) / .4); }
.pl-card.is-featured { border: 1.5px solid transparent; transform: translateY(-6px);
  background: linear-gradient(180deg, rgb(var(--c-sf2)), rgb(var(--c-sf1))) padding-box, linear-gradient(160deg, rgb(var(--c-ac2)), rgb(var(--c-ac)) 45%, rgb(var(--c-ac3))) border-box;
  box-shadow: 0 36px 70px -36px rgb(var(--c-ac) / .85); }
.pl-card.is-current { border-color: rgb(var(--c-al) / .6); box-shadow: 0 0 0 3px rgb(var(--c-al) / .14), 0 30px 60px -44px rgb(var(--c-sh) / calc(.9 * var(--sha))); }
.pl-ribbon { position: absolute; top: -13px; inset-inline-start: 22px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 12px; border-radius: 99px; font-size: .75rem; font-weight: 800;
  color: rgb(var(--c-on)); background: linear-gradient(180deg, rgb(var(--c-ac2)), rgb(var(--c-ac))); box-shadow: 0 8px 18px -8px rgb(var(--c-ac) / .9); }
.pl-ribbon.is-cur { color: #fff; background: linear-gradient(180deg, rgb(var(--c-al2)), rgb(var(--c-al3))); box-shadow: 0 8px 18px -8px rgb(var(--c-al) / .9); }
[data-theme="dark"] .pl-ribbon.is-cur { color: #04140a; }
.pl-ribbon .ic { width: 14px; height: 14px; }
.pl-card-head h3 { font-size: var(--fs-xl); font-weight: 900; color: rgb(var(--c-title)); margin-top: 10px; }
.pl-card-head p { color: var(--mist); font-size: var(--fs-sm); margin-top: 2px; }
.pl-tier { display: flex; }
.pl-tier .ic { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; color: var(--gold-2); background: rgb(var(--c-sf1)); box-shadow: 0 0 0 1.5px rgb(var(--c-ac) / .4); }
.pl-tier .ic + .ic { margin-inline-start: -8px; }
.pl-card.is-base .pl-tier .ic { color: var(--turq-2); box-shadow: 0 0 0 1.5px rgb(var(--c-al) / .4); }
.pl-price { min-height: 92px; padding: 14px 0 12px; border-block: 1px dashed var(--line-2); }
.pl-price-m { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pl-price-m[hidden] { display: none; }
.pl-price-m.is-flip { animation: pl-flip .35s var(--spring); }
@keyframes pl-flip { from { opacity: 0; transform: translateY(6px); } }
.pl-amount { font-size: 2.3rem; line-height: 1.1; font-weight: 900; color: rgb(var(--c-title)); }
.pl-card.is-featured .pl-amount { background: linear-gradient(120deg, rgb(var(--c-gtx)), rgb(var(--c-ac)) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-cur { font-size: var(--fs-sm); font-weight: 700; color: var(--mist); }
.pl-per { flex-basis: 100%; font-size: var(--fs-xs); color: var(--mist-2); }
.pl-eq { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--mist); }
.pl-eq em { font-style: normal; font-weight: 800; color: var(--pist); padding: 1px 8px; border-radius: 99px; background: rgb(var(--c-ok) / .14); }
.pl-na { color: var(--mist-2); font-size: var(--fs-sm); }
.pl-feats { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.pl-feats li { display: flex; align-items: center; gap: 10px; color: var(--parch); }
.pl-feats li.is-off { color: var(--mist-2); }
.pl-feats li b { font-weight: 800; }
.pf-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--pist); background: rgb(var(--c-ok) / .13); }
.pl-feats li.is-off .pf-ic { color: var(--mist-2); background: rgb(var(--c-hl) / .05); }
.pf-ic .ic { width: 15px; height: 15px; }
.pl-card-foot { margin-top: auto; }
.pl-cta[hidden] { display: none; }
.btn.is-static { cursor: default; opacity: .75; }
.btn.is-static:hover { color: var(--parch); background: rgb(var(--c-hl) / .03); border-color: var(--line); }
.pl-bonus, .pl-why { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; font-size: .75rem; text-align: center; }
.pl-bonus { color: var(--pist); font-weight: 700; }
.pl-bonus .ic { width: 13px; height: 13px; }
.pl-why { color: var(--mist-2); }
.pl-empty { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--mist); }
.pl-orders .tbl a { text-decoration: none; }

/* ---------- checkout: a ticket with a perforated stub ---------- */
.co-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 6px; }
.co-ticket { --stub: 92px; position: relative; padding: 26px 28px 0; border-radius: 28px;
  background: linear-gradient(170deg, rgb(var(--c-sf2) / .97), rgb(var(--c-sf1) / .95)); border: 1px solid rgb(var(--c-ac) / .3);
  box-shadow: 0 36px 80px -50px rgb(var(--c-ac) / .9);
  -webkit-mask: radial-gradient(circle 14px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 14px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat; }
.co-head h1 { font-size: var(--fs-2xl); font-weight: 900; color: rgb(var(--c-title)); margin-top: 10px; }
.co-head p { color: var(--mist); margin-top: 2px; }
.co-rows { display: grid; gap: 0; margin: 18px 0 0; }
.co-rows > div { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.co-rows dt { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: var(--fs-sm); }
.co-rows dt .ic { width: 17px; height: 17px; color: var(--gold-2); }
.co-rows dd { margin: 0; font-weight: 700; color: var(--parch); }
.co-rows dd small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--mist-2); margin-top: 2px; }
.co-calc dd b { color: var(--pist); }
.co-end dd { color: rgb(var(--c-title)); }
.co-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--stub); margin: 18px -28px 0; padding: 0 28px; border-top: 2px dashed rgb(var(--c-ac) / .35); }
.co-total span { color: var(--mist); }
.co-total b { font-size: 1.9rem; font-weight: 900; color: var(--gold-2); white-space: nowrap; }
.co-side { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: rgb(var(--c-sf1) / .7); border: 1px solid var(--line-2); }
.co-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.co-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-sm); color: var(--parch); }
.co-steps b { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-xs); color: var(--gold-2); background: rgb(var(--c-ac) / .14); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .35); }
.co-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: var(--fs-sm); color: var(--parch); background: rgb(var(--c-al) / .09); border: 1px solid rgb(var(--c-al) / .25); }
.co-note.is-bad { background: rgb(var(--c-bad) / .08); border-color: rgb(var(--c-bad) / .3); color: var(--pom-2); }
.co-note .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* ---------- one order ---------- */
.od-card { max-width: 760px; margin: 6px auto 0; padding: 26px 28px; border-radius: 28px; background: linear-gradient(170deg, rgb(var(--c-sf2) / .96), rgb(var(--c-sf1) / .94)); border: 1px solid var(--line-2);
  box-shadow: 0 34px 80px -54px rgb(var(--c-sh) / calc(.9 * var(--sha))); }
.od-card.is-pending { border-color: rgb(var(--c-ac) / .4); }
.od-card.is-paid { border-color: rgb(var(--c-ok) / .45); }
.od-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.od-head > div { flex: 1; min-width: 0; }
.od-head h1 { font-size: var(--fs-xl); font-weight: 900; color: rgb(var(--c-title)); }
.od-head p { color: var(--mist); font-size: var(--fs-sm); }
.od-seal { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 18px; color: var(--gold-2); background: rgb(var(--c-ac) / .14); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .35); }
.is-paid .od-seal { color: var(--pist); background: rgb(var(--c-ok) / .14); box-shadow: inset 0 0 0 1px rgb(var(--c-ok) / .35); }
.is-cancelled .od-seal { color: var(--mist); background: rgb(var(--c-hl) / .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.od-seal .ic { width: 26px; height: 26px; }
.od-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 8px; padding: 0; list-style: none; text-align: center; }
.od-steps::before { content: ""; position: absolute; top: 18px; inset-inline: 16.6%; height: 2px; background: var(--line-2); }
.od-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--mist-2); }
.od-steps i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgb(var(--c-sf1)); border: 2px solid var(--line-2); color: var(--mist-2); font-style: normal; }
.od-steps i .ic { width: 17px; height: 17px; }
.od-steps .is-done { color: var(--pist); }
.od-steps .is-done i { color: var(--pist); border-color: rgb(var(--c-ok) / .6); background: rgb(var(--c-ok) / .12); }
.od-steps .is-now { color: var(--gold-2); font-weight: 700; }
.od-steps .is-now i { color: var(--gold-2); border-color: rgb(var(--c-ac)); box-shadow: 0 0 0 5px rgb(var(--c-ac) / .14); animation: od-pulse 2.2s ease-in-out infinite; }
@keyframes od-pulse { 50% { box-shadow: 0 0 0 9px rgb(var(--c-ac) / .06); } }
.od-rows { display: grid; margin: 14px 0 0; }
.od-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.od-rows dt { color: var(--mist); font-size: var(--fs-sm); }
.od-rows dd { margin: 0; font-weight: 700; text-align: end; }
.od-amount dd { font-size: var(--fs-lg); color: var(--gold-2); }
.od-pay { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: rgb(var(--c-ac) / .07); border: 1px dashed rgb(var(--c-ac) / .45); display: grid; gap: 10px; justify-items: start; }
.od-pay h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 800; }
.od-pay h2 .ic { width: 19px; height: 19px; color: var(--gold-2); }
.od-pay-note { width: 100%; padding: 12px 14px; border-radius: 14px; background: rgb(var(--c-sf1) / .8); border: 1px solid var(--line-2); line-height: 1.95; white-space: normal; }
.od-cancel { margin-top: 14px; }
.od-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgb(var(--c-ok) / .09); border: 1px solid rgb(var(--c-ok) / .3); }
.od-done p { flex: 1; min-width: 180px; font-weight: 700; }
.od-done > .ic { width: 24px; height: 24px; color: var(--pist); }
.od-done.is-off { background: rgb(var(--c-hl) / .04); border-color: var(--line-2); }
.od-done.is-off > .ic { color: var(--mist); }

/* ---------- developers ---------- */
.dev-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center;
  padding: 32px 34px; margin-bottom: 18px; border-radius: 32px; background: radial-gradient(90% 120% at 100% 100%, rgb(var(--c-al) / .14), transparent 55%), linear-gradient(140deg, rgb(var(--c-sf3) / .95), rgb(var(--c-sf1) / .93));
  border: 1px solid rgb(var(--c-al) / .3); box-shadow: 0 44px 90px -56px rgb(var(--c-al) / .8); }
.dev-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--turq-2); font-weight: 800; font-size: var(--fs-sm); }
.dev-kicker .ic { width: 18px; height: 18px; }
.dev-copy h1 { margin: 6px 0 6px; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.2; font-weight: 900; color: rgb(var(--c-title)); }
.dev-copy p { color: var(--mist); max-width: 54ch; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* the plan's features through the API: a link to their part of the guide; one the plan lacks is drawn hollow */
.dev-chips a.tag { text-decoration: none; }
.dev-chips a.tag:hover { color: var(--turq-2); background: rgb(var(--c-al) / .12); }
.tag-off { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); opacity: .75; }
.dev-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dev-term { min-width: 0; border-radius: 18px; overflow: hidden; background: #14111c; border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .65); }
.dev-term-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #1d1928; border-bottom: 1px solid rgb(255 255 255 / .06); }
.dev-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dev-term-bar i:nth-child(2) { background: #febc2e; } .dev-term-bar i:nth-child(3) { background: #28c840; }
.dev-term-bar span { margin-inline-start: 10px; font: 600 .75rem/1 var(--mono); color: #a59fc0; }
.dev-term-body { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: .8rem/1.75 var(--mono); color: #e9e5f5; white-space: pre; }
.t-c { color: #7ce3d6; } .t-s { color: #f3c77a; } .t-k { color: #a9b8ff; } .t-b, .t-n { color: #ff9cc0; } .t-p { color: #8d87a8; }
.dev-caret { display: inline-block; width: 8px; height: 1.05em; margin-inline-start: 3px; vertical-align: -3px; background: #7ce3d6; animation: dev-blink 1.1s steps(1) infinite; }
@keyframes dev-blink { 50% { opacity: 0; } }
.dev-docs { margin-top: 26px; }
.dev-docs-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: var(--fs-xl); font-weight: 900; color: rgb(var(--c-title)); }
.dev-docs-title .ic { width: 24px; height: 24px; color: var(--turq-2); }

/* ---------- support without tickets in the plan ---------- */
.sup-locked { display: grid; align-content: start; gap: 12px; }
.sup-locked p { color: var(--mist); }
.sup-locked .btn { justify-self: start; }
.id-plan { text-decoration: none; margin-inline-start: 6px; }

/* ---------- admin: plans ---------- */
.btn .badge { position: static; margin-inline-start: 2px; box-shadow: none; }
.pl-settings .row-2 { margin-top: 6px; }
.pl-gw { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-al) / .08); border: 1px solid rgb(var(--c-al) / .22); font-size: var(--fs-xs); line-height: 1.8; }
.pl-gw .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--turq); }
.apl-list { display: grid; gap: 12px; margin-top: 18px; }
.apl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 20px; border-radius: 22px; scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgb(var(--c-sf2) / .7), rgb(var(--c-sf1) / .7)); border: 1px solid var(--line-2); }
.apl.is-featured { border-color: rgb(var(--c-ac) / .5); box-shadow: 0 24px 50px -40px rgb(var(--c-ac) / .9); }
.apl.is-base { border-color: rgb(var(--c-al) / .4); }
.apl.is-hidden { opacity: .78; }
.apl:target { box-shadow: 0 0 0 3px rgb(var(--c-ac) / .3); }
.apl-rank { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-lg); font-weight: 900; color: var(--gold-2); background: rgb(var(--c-ac) / .12); box-shadow: inset 0 0 0 1.5px rgb(var(--c-ac) / .4); }
.apl.is-base .apl-rank { color: var(--turq-2); background: rgb(var(--c-al) / .12); box-shadow: inset 0 0 0 1.5px rgb(var(--c-al) / .4); }
.apl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.apl-name h2 { font-size: var(--fs-lg); font-weight: 900; margin-inline-end: 4px; }
.apl-desc { color: var(--mist); font-size: var(--fs-sm); margin-top: 2px; }
.apl-specs, .apl-prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.apl-specs li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; font-size: var(--fs-xs); background: rgb(var(--c-hl) / .05); border: 1px solid var(--line-2); }
.apl-specs li .ic { width: 15px; height: 15px; color: var(--gold-2); }
.apl-specs li.is-off { color: var(--mist-2); text-decoration: line-through; text-decoration-color: rgb(var(--c-tx3) / .6); }
.apl-specs li.is-off .ic { color: var(--mist-2); }
.apl-prices li { display: grid; gap: 1px; min-width: 104px; padding: 7px 12px; border-radius: 12px; font-size: .75rem; background: rgb(var(--c-ac) / .08); border: 1px solid rgb(var(--c-ac) / .22); }
.apl-prices li span { color: var(--mist); }
.apl-prices li b { font-size: var(--fs-sm); color: var(--gold-2); }
.apl-prices li.is-off { background: none; border-style: dashed; border-color: var(--line-2); }
.apl-prices li.is-off b { color: var(--mist-2); font-weight: 400; }
.apl-note { color: var(--mist); font-size: var(--fs-xs); margin-top: 10px; max-width: 70ch; line-height: 1.85; }
.apl-acts { display: flex; align-items: center; gap: 6px; }
.apl-acts form { margin: 0; }
.apl-acts .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.ic-up { transform: rotate(180deg); }
.pl-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 14px; padding: 20px 22px; border-radius: 22px; border: 1.5px dashed rgb(var(--c-ac) / .45); background: rgb(var(--c-ac) / .05); }
.pl-start > .ic { width: 34px; height: 34px; color: var(--gold-2); }
.pl-start > div { flex: 1; min-width: 220px; }
.pl-start p { color: var(--mist); font-size: var(--fs-sm); }
.plf-prices { display: grid; gap: 10px; }
.plf-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr); align-items: center; gap: 10px; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line-2); transition: border-color .2s, background-color .2s; }
.plf-price.is-on, .plf-price:has(input[data-price-on]:checked) { border-color: rgb(var(--c-ac) / .45); background: rgb(var(--c-ac) / .06); }
.plf-price .switch { padding: 6px 0; }
.plf-amount { display: flex; align-items: center; gap: 8px; }
.plf-amount .input { flex: 1; min-width: 0; height: 44px; font-feature-settings: "tnum"; }
.unit-tag { flex: none; font-size: var(--fs-xs); color: var(--mist); }
.plf-help .docs-list li { font-size: var(--fs-sm); }

/* ---------- admin: orders ---------- */
.tab-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 99px; font-size: .7rem; background: rgb(var(--c-hl) / .07); }
.subtabs a.is-on .tab-n { background: rgb(var(--c-ac) / .2); }
.ord-list { display: grid; gap: 10px; }
.ord { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 16px 18px; border-radius: 20px; background: rgb(var(--c-sf1) / .7); border: 1px solid var(--line-2); }
.ord.is-pending { border-color: rgb(var(--c-ac) / .4); background: linear-gradient(100deg, rgb(var(--c-ac) / .07), rgb(var(--c-sf1) / .7) 40%); }
.ord.is-cancelled { opacity: .75; }
.ord-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-top b { font-size: var(--fs-md); letter-spacing: .04em; }
.ord-what { margin-top: 6px; }
.ord-what b { color: var(--gold-2); }
.ord-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: var(--fs-sm); }
.ord-who .ic { width: 15px; height: 15px; color: var(--mist); }
.ord-note { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--mist); }
.ord-note .ic { width: 14px; height: 14px; }
.ord-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ord-acts form { margin: 0; }
.ord-pay { display: flex; gap: 8px; align-items: center; }
.ord-pay .input { height: 36px; width: 220px; font-size: var(--fs-xs); }
.ord-search .input { width: 270px; max-width: 100%; }

/* ---------- admin: a user's plan ---------- */
.upl { scroll-margin-top: 96px; }
.upl-now { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px; background: rgb(var(--c-ac) / .08); border: 1px solid rgb(var(--c-ac) / .25); }
.upl-now > div { display: grid; }
.upl-now b { font-size: var(--fs-md); font-weight: 800; }
.upl-now small { color: var(--mist); font-size: var(--fs-xs); }
.upl-gem { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.upl-gem .ic { width: 21px; height: 21px; }
.upl-modes { border: 0; margin: 0 0 12px; padding: 0; }
.upl-modes legend { margin-bottom: 6px; }
.upl-days { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--fs-sm); color: var(--mist); }
.upl-days .input { width: 96px; height: 38px; }
.upl-h3 { margin: 18px 0 8px; font-size: var(--fs-sm); color: var(--mist); }
.upl-orders { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.upl-orders li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); }
.upl-orders li span:nth-child(2) { flex: 1; min-width: 120px; color: var(--mist); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .pl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-wrap, .dev-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pl-pass { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 20px; border-radius: 26px; }
  .pl-dial { position: absolute; top: 18px; inset-inline-end: 16px; width: 96px; height: 96px; }
  .pl-dial-in b { font-size: 1.55rem; }
  .pl-dial-in small { font-size: .68rem; }
  .pl-dial-inf { width: 32px; height: 32px; }
  .pl-pass-main { padding-inline-end: 100px; }
  .pl-pass-ctas { margin-inline-end: -100px; }
  .pl-periods { width: 100%; min-width: 0; }
  .pl-periods a { padding: 0 6px; font-size: var(--fs-xs); }
  .pl-card.is-featured { transform: none; }
  .co-ticket { padding: 22px 20px 0; }
  .co-total { margin-inline: -20px; padding-inline: 20px; }
  .co-rows > div { grid-template-columns: minmax(0, 1fr); }
  .od-card { padding: 20px 18px; border-radius: 24px; }
  .dev-hero { padding: 24px 20px; border-radius: 26px; }
  .apl { grid-template-columns: auto minmax(0, 1fr); }
  .apl-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .ord { grid-template-columns: minmax(0, 1fr); }
  .ord-acts { justify-content: flex-start; }
  .ord-pay { flex-wrap: wrap; }
  .ord-pay .input { width: 100%; flex: 1 1 160px; }
  .ord-search, .ord-search .input { width: 100%; }
  .plf-price { grid-template-columns: minmax(0, 1fr); }
  .app-ic-row { align-items: flex-start; }
}
@media (max-width: 420px) { .pl-perks { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .pl-pass-sheen, .pl-card, .pl-dial-val, .pl-price-m.is-flip, .od-steps .is-now i, .dev-caret { animation: none !important; }
  .pl-periods-pill { transition: none; }
}
.pl-card.is-flash { animation: pl-flash 1.2s var(--smooth); }
@keyframes pl-flash { 30% { box-shadow: 0 0 0 6px rgb(var(--c-ac) / .35), 0 30px 60px -40px rgb(var(--c-ac)); } }
@media (prefers-reduced-motion: reduce) { .pl-card.is-flash { animation: none; } }

/* =========================================================
   5.5 — invoices, discounts, coupons, downgrade follow-up, balanced apps grid
   ========================================================= */

/* ---------- apps: one row up to four, then two balanced rows that fill the width ---------- */
.aps-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.aps-grid > .apc { grid-column: span var(--span, 1); }
@media (max-width: 1100px) {
  .aps-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aps-grid.is-wide > .apc { grid-column: auto; }
  .aps-grid.is-wide > .apc:last-child:nth-child(odd) { grid-column: 1 / -1; }      /* an odd one out takes the whole row */
}
@media (max-width: 860px) {
  .aps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aps-grid > .apc { grid-column: auto; }
  .aps-grid > .apc:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .aps-grid, .aps-grid.is-wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the user's plans section: tabs, over-limit banner, perks ---------- */
.pl-tabs { margin-bottom: 16px; }
.tab-n.is-due, .subtabs a.is-on .tab-n.is-due { color: #fff; background: var(--pom); }
.pl-perks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pl-perks li.is-over .pl-perk-ic { color: var(--pom-2); background: rgb(var(--c-bad) / .12); }
.pl-perks li.is-over .pl-meter i { background: linear-gradient(90deg, var(--pom), var(--pom-2)); }
@media (max-width: 1100px) { .pl-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pl-perks { grid-template-columns: minmax(0, 1fr); } }

.case-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border-radius: 22px;
  background: linear-gradient(100deg, rgb(var(--c-bad) / .11), rgb(var(--c-sf1) / .85) 62%); border: 1px solid rgb(var(--c-bad) / .35); }
.case-banner.is-due { border-width: 1.5px; box-shadow: 0 0 0 4px rgb(var(--c-bad) / .08); }
.case-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--pom-2); background: rgb(var(--c-bad) / .13); }
.case-ic .ic { width: 23px; height: 23px; }
.case-copy { display: grid; gap: 6px; min-width: 0; }
.case-copy > b { font-size: var(--fs-md); font-weight: 900; color: rgb(var(--c-title)); }
.case-copy p { font-size: var(--fs-sm); color: var(--mist); line-height: 1.9; }
.case-over { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.case-over li { display: inline-flex; align-items: center; gap: 6px; }
.case-over .ic { width: 16px; height: 16px; color: var(--pom-2); }
.case-acts-row, .case-banner .case-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .case-banner { grid-template-columns: auto minmax(0, 1fr); } .case-banner .case-acts { grid-column: 1 / -1; } }

/* ---------- discounts on the plan cards ---------- */
.pl-periods a { gap: 6px; grid-auto-flow: column; }
.pl-period-off { font-style: normal; font-size: .66rem; font-weight: 800; line-height: 1; padding: 3px 6px; border-radius: 99px; color: #fff; background: var(--pom); }
/* narrow switch: the badge goes under its period instead of pushing into the next one */
@media (max-width: 720px) {
  .pl-periods a:has(.pl-period-off) { grid-auto-flow: row; gap: 3px; align-content: center; line-height: 1.2; }
  .pl-periods:has(.pl-period-off) a { height: 46px; }
  .pl-period-off { font-size: .6rem; padding: 2px 5px; }
}
@media (max-width: 520px) {
  .pl-pending { flex-wrap: wrap; row-gap: 8px; }
  .pl-pending-go { flex-basis: 100%; justify-content: flex-end; }
}
.pl-promo { display: flex; align-items: center; gap: 6px; margin: -6px 0 -6px; font-size: var(--fs-xs); font-weight: 800; color: var(--pom-2); }
.pl-promo .ic { width: 15px; height: 15px; flex: none; }
.pl-promo small { font-weight: 400; color: var(--mist); }
.pl-was { flex-basis: 100%; display: flex; align-items: center; gap: 8px; }
.pl-was s { color: var(--mist-2); font-size: var(--fs-sm); text-decoration-color: var(--pom); }
.pl-was em, .co-off dd em { font-style: normal; font-weight: 800; font-size: .72rem; line-height: 1.6; color: #fff; background: var(--pom); padding: 0 8px; border-radius: 99px; }
.pl-card.has-off .pl-price { border-block-color: rgb(var(--c-bad) / .3); }
.co-off dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.co-off dd s { font-weight: 400; color: var(--mist-2); }

/* ---------- invoices ---------- */
.inv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.inv-filter a { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--mist); text-decoration: none; font-size: var(--fs-sm); background: rgb(var(--c-sf1) / .6); transition: color .2s, border-color .2s, background-color .2s; }
.inv-filter a:hover { color: var(--parch); }
.inv-filter a.is-on { color: var(--gold-2); border-color: rgb(var(--c-ac) / .5); background: rgb(var(--c-ac) / .12); }
.inv-filter a.is-due .tab-n { color: #fff; background: var(--pom); }
.inv-list { display: grid; gap: 10px; }
.inv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 20px; text-decoration: none; color: var(--parch);
  background: rgb(var(--c-sf1) / .72); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s; }
.inv:hover { border-color: rgb(var(--c-ac) / .45); transform: translateY(-1px); }
.inv.is-due { border-color: rgb(var(--c-bad) / .35); }
.inv.is-active { border-color: rgb(var(--c-ok) / .45); }
.inv.is-cancelled { opacity: .7; }
.inv-seal { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--gold-2); background: rgb(var(--c-ac) / .13); }
.inv.is-paid .inv-seal { color: var(--pist); background: rgb(var(--c-ok) / .13); }
.inv.is-due .inv-seal { color: var(--pom-2); background: rgb(var(--c-bad) / .12); }
.inv.is-cancelled .inv-seal { color: var(--mist); background: rgb(var(--c-hl) / .05); }
.inv-seal .ic { width: 20px; height: 20px; }
.inv-main { display: grid; gap: 3px; min-width: 0; }
.inv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-top b { letter-spacing: .04em; }
.inv-what { font-size: var(--fs-sm); }
.inv-when { font-size: var(--fs-xs); color: var(--mist-2); }
.inv-amount { display: grid; justify-items: end; }
.inv-amount s { font-size: .74rem; color: var(--mist-2); }
.inv-amount b { font-weight: 900; color: var(--gold-2); white-space: nowrap; }
.inv-go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--mist); white-space: nowrap; }
.inv.is-due .inv-go { color: var(--pom-2); }
.inv-go .ic { width: 16px; height: 16px; }
.inv-empty { display: grid; justify-items: center; gap: 12px; }
.inv-empty > .ic { width: 34px; height: 34px; color: var(--gold-2); }
@media (max-width: 720px) {
  .inv { grid-template-columns: auto minmax(0, 1fr); }
  .inv-amount { grid-column: 2; justify-items: start; }
  .inv-go { grid-column: 2; }
}

.inv-card.is-claimed { border-color: rgb(var(--c-ac) / .5); }
.inv-sum { display: grid; margin-top: 16px; padding: 4px 18px; border-radius: 18px; background: rgb(var(--c-hl) / .035); border: 1px solid var(--line-2); }
.inv-sum > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); }
.inv-sum > div:first-child { border-top: 0; }
.inv-sum > div > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--mist); }
.inv-sum .is-off b { color: var(--pist); white-space: nowrap; }
.inv-total > span { color: var(--parch) !important; font-weight: 800; }
.inv-total b { font-size: 1.45rem; font-weight: 900; color: var(--gold-2); white-space: nowrap; }
.inv-coupon-x { display: inline; margin: 0; }
.link-btn { appearance: none; background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; font-size: var(--fs-xs); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn.danger { color: var(--pom-2); }
.inv-pay { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 20px; background: rgb(var(--c-ac) / .07); border: 1px dashed rgb(var(--c-ac) / .45); }
.inv-coupon { display: flex; align-items: center; gap: 8px; padding: 5px; padding-inline-start: 14px; border-radius: 16px; background: rgb(var(--c-sf1) / .92); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.inv-coupon:focus-within { border-color: rgb(var(--c-ac) / .6); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .15); }
.inv-coupon > .ic { width: 18px; height: 18px; flex: none; color: var(--gold-2); }
.inv-coupon .input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; box-shadow: none; text-transform: uppercase; letter-spacing: .06em; }
.inv-coupon .input::placeholder { text-transform: none; letter-spacing: 0; }
.inv-coupon .input:focus { outline: none; box-shadow: none; }
.inv-paybtn { width: 100%; }
.inv-cancel { justify-self: center; margin: 0; }
.od-done.is-wait { background: rgb(var(--c-ac) / .08); border-color: rgb(var(--c-ac) / .35); }
.od-done.is-wait > .ic { color: var(--gold-2); }

/* the pay dialog: the amount, how to pay, the rules — the button waits for the tick */
.dlg-pay { width: min(540px, calc(100% - 24px)); }
.pay-seal { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: var(--gold-2); background: rgb(var(--c-ac) / .14); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .35); }
.pay-seal .ic { width: 26px; height: 26px; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgb(var(--c-ac) / .1); border: 1px solid rgb(var(--c-ac) / .3); }
.pay-amount span { color: var(--mist); font-size: var(--fs-sm); white-space: nowrap; }
.pay-amount b { font-size: 1.45rem; font-weight: 900; color: var(--gold-2); white-space: nowrap; }
.pay-how, .pay-rules { display: grid; gap: 8px; margin-top: 16px; }
.pay-how h3, .pay-rules h3 { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 800; }
.pay-how h3 .ic, .pay-rules h3 .ic { width: 16px; height: 16px; color: var(--gold-2); }
.pay-how .field { margin: 4px 0 0; }
.pay-note { padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-sf2) / .85); border: 1px solid var(--line-2); font-size: var(--fs-sm); line-height: 1.95; }
.pay-rules-text { max-height: 150px; overflow: auto; margin: 0; padding: 10px 14px; padding-inline-start: 30px; border-radius: 12px; background: rgb(var(--c-hl) / .04); border: 1px solid var(--line-2);
  font-size: var(--fs-xs); line-height: 1.95; color: var(--mist); overscroll-behavior: contain; }
.pay-rules-text:focus-visible { outline: 2px solid rgb(var(--c-ac)); outline-offset: 2px; }
.pay-rules > a { justify-self: start; }
.pay-accept { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; font-weight: 700; transition: border-color .2s, background-color .2s; }
.pay-accept input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); flex: none; cursor: pointer; }
.pay-accept:has(input:checked) { border-color: rgb(var(--c-ok) / .55); background: rgb(var(--c-ok) / .08); }
/* the tick and the button stay in view while the rules scroll under them */
.pay-foot { position: sticky; bottom: 0; z-index: 1; margin: 16px -24px -22px; padding: 12px 24px 18px; background: rgb(var(--c-sf1)); border-top: 1px solid var(--line-2); box-shadow: 0 -14px 24px -18px rgb(var(--c-sh) / calc(.5 * var(--sha))); }
.pay-foot .pay-accept { margin-top: 0; }
.pay-foot .dlg-actions { margin-top: 12px; }
html[lang="fa"] .pay-rules-text { list-style-type: persian; }
@media (max-width: 520px) {
  .dlg-pay .dlg-body { padding: 20px 16px 16px; }
  .dlg-pay .dlg-head { gap: 8px; margin-bottom: 14px; }
  .dlg-pay .dlg-head h2 { font-size: var(--fs-lg); }
  .dlg-pay .pay-seal { width: 44px; height: 44px; border-radius: 14px; }
  .dlg-pay .pay-seal .ic { width: 22px; height: 22px; }
  .pay-amount { flex-wrap: wrap; padding: 10px 14px; }
  .pay-foot { margin: 14px -16px -16px; padding: 10px 16px 14px; }
  .pay-foot .dlg-actions .btn { flex: 1; }
}
.dlg-pay [data-pay-go][disabled] { opacity: .45; cursor: not-allowed; filter: saturate(.5); box-shadow: none; }

/* ---------- admin: the plans section ---------- */
.adm-pl-tabs { margin-bottom: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
@media (max-width: 980px) { .row-3 { grid-template-columns: minmax(0, 1fr); } }
.pl-settings .row-3 { margin-top: 6px; }
.tag.is-past { opacity: .6; }
.apl-prices li span em { font-style: normal; font-size: .66rem; font-weight: 800; color: #fff; background: var(--pom); padding: 0 6px; border-radius: 99px; }
.apl-prices li span em.is-past { background: var(--mist-2); }
.apl-prices li b s { font-weight: 400; font-size: .7rem; color: var(--mist-2); }
.plf-price { grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr) minmax(108px, .6fr); }
.plf-off { display: flex; align-items: center; gap: 6px; }
.plf-off .input { flex: 1; min-width: 0; height: 44px; }
.plf-promo { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ord.is-claimed { border-color: rgb(var(--c-ok) / .5); background: linear-gradient(100deg, rgb(var(--c-ok) / .08), rgb(var(--c-sf1) / .7) 45%); }
.ord-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-sm); color: var(--pist); }
.ord-claim .ic { width: 16px; height: 16px; }
.ord-disc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-inline-start: 6px; font-size: var(--fs-xs); }
.ord-disc s { color: var(--mist-2); }
.ord-disc em { font-style: normal; font-weight: 800; color: var(--pom-2); }
.ord-disc em.is-coupon { display: inline-flex; align-items: center; gap: 3px; color: var(--pist); }
.ord-disc .ic { width: 13px; height: 13px; }

.cpn-list { display: grid; gap: 10px; }
.cpn { display: grid; grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto auto; gap: 12px 18px; align-items: center; padding: 16px 18px; border-radius: 20px; background: rgb(var(--c-sf1) / .72); border: 1px solid var(--line-2); }
.cpn.is-off, .cpn.is-ended, .cpn.is-full { opacity: .7; }
.cpn-code { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed rgb(var(--c-ac) / .55); background: rgb(var(--c-ac) / .07); }
.cpn-code b { font-size: var(--fs-md); letter-spacing: .06em; }
.cpn-code .ic { width: 18px; height: 18px; flex: none; color: var(--gold-2); }
.cpn-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cpn-val { font-size: var(--fs-lg); font-weight: 900; color: var(--gold-2); }
.cpn-scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.cpn-scope li { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 10px; border-radius: 9px; font-size: var(--fs-xs); background: rgb(var(--c-hl) / .05); border: 1px solid var(--line-2); }
.cpn-scope .ic { width: 14px; height: 14px; color: var(--mist); }
.cpn-uses { display: grid; justify-items: center; text-align: center; gap: 1px; min-width: 100px; }
.cpn-uses b { font-size: var(--fs-xl); font-weight: 900; }
.cpn-uses b small { font-size: var(--fs-sm); color: var(--mist); font-weight: 700; }
.cpn-uses span, .cpn-uses small { font-size: .72rem; color: var(--mist); }
.cpf-code { display: flex; gap: 8px; }
.cpf-code .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.cpf-type { border: 0; margin: 0 0 6px; padding: 0; }
.cpf-type legend { margin-bottom: 6px; }
@media (max-width: 980px) { .cpn { grid-template-columns: minmax(0, 1fr) auto; } .cpn-code { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 560px) { .cpn { grid-template-columns: minmax(0, 1fr); } .cpn-uses { justify-items: start; text-align: start; } }

.case-list { display: grid; gap: 12px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 14px 20px; padding: 18px 20px; border-radius: 22px; scroll-margin-top: 96px; background: rgb(var(--c-sf1) / .72); border: 1px solid var(--line-2); }
.case.is-closed { grid-template-columns: minmax(0, 1fr); opacity: .88; }
.case.is-open { border-color: rgb(var(--c-ac) / .4); }
.case.is-due { border-color: rgb(var(--c-bad) / .45); background: linear-gradient(100deg, rgb(var(--c-bad) / .07), rgb(var(--c-sf1) / .72) 45%); }
.case:target { box-shadow: 0 0 0 3px rgb(var(--c-ac) / .3); }
.case-who { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--parch); text-decoration: none; }
.case-who .ic { width: 16px; height: 16px; color: var(--mist); }
.case-what { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); }
.case-what > .ic { width: 14px; height: 14px; color: var(--mist); }
.case-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.case-g { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border-radius: 14px; background: rgb(var(--c-hl) / .04); border: 1px solid var(--line-2); font-size: var(--fs-xs); }
.case-g span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.case-g .ic { width: 15px; height: 15px; color: var(--gold-2); }
.case-g.is-over .ic { color: var(--pom-2); }
.case-g em { font-style: normal; font-weight: 800; color: var(--pom-2); }
.case-g i { position: relative; display: block; height: 6px; border-radius: 9px; overflow: hidden; background: rgb(var(--c-hl) / .08); }
.case-g i::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, rgb(var(--c-al2)), rgb(var(--c-al))); }
.case-g.is-over i::after { background: linear-gradient(90deg, var(--pom), var(--pom-2)); }
.case-g small { color: var(--mist-2); }
.case-log { margin-top: 12px; font-size: var(--fs-xs); }
.case-log summary { cursor: pointer; color: var(--mist); font-weight: 700; }
.case-log ol { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; padding-inline-start: 12px; list-style: none; border-inline-start: 2px solid var(--line-2); }
.case-log li { display: grid; }
.case-log li small { color: var(--mist-2); }
.case-log li.is-note span { color: var(--parch); font-weight: 700; }
.case .case-acts { display: grid; align-content: start; gap: 8px; }
.case .case-acts form { margin: 0; }
.case .case-acts > form:not(.case-extend):not(.case-note) > .btn, .case-more > summary { width: 100%; justify-content: center; }
.case-extend .btn, .case-note .btn { flex: none; }
.case-extend { display: flex; gap: 6px; }
.case-extend .input { flex: 1; min-width: 0; width: auto; height: 36px; font-size: var(--fs-xs); }
.case-more > summary { list-style: none; }
.case-more > summary::-webkit-details-marker { display: none; }
.case-menu { display: grid; gap: 6px; margin-top: 6px; padding: 10px; border-radius: 14px; background: rgb(var(--c-sf2) / .95); border: 1px solid var(--line-2); }
.case-menu .btn { width: 100%; justify-content: flex-start; }
.case-note { display: flex; gap: 6px; }
.case-note .input { flex: 1; min-width: 0; height: 36px; font-size: var(--fs-xs); }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } .case-gauges { grid-template-columns: minmax(0, 1fr); } }

.upl-case { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; color: var(--parch); text-decoration: none; background: rgb(var(--c-bad) / .08); border: 1px solid rgb(var(--c-bad) / .3); }
.upl-case > span { flex: 1; display: grid; }
.upl-case small { color: var(--mist); font-size: var(--fs-xs); }
.upl-case > .ic:first-child { color: var(--pom-2); }
.upl-issue { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.upl-issue > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--gold-2); }
.upl-issue > summary .ic { width: 16px; height: 16px; }
.upl-issue-form { margin-top: 10px; }
.ures .switch { margin-top: 4px; }
.ures-now { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-xs); background: rgb(var(--c-al) / .08); border: 1px solid rgb(var(--c-al) / .22); }
.ures-now .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--turq); }
.keyrow.is-paused .key-ic { color: var(--pom-2); background: rgb(var(--c-bad) / .1); }
.keyrow.is-paused .key-main > b { color: var(--mist); }
@media (prefers-reduced-motion: reduce) { .inv { transition: none; } .inv:hover { transform: none; } }

/* =========================================================
   5.6 · 404 scene, language picker, payments, invoice desk, billing messages, account security
   ========================================================= */

/* ---------- 404: the page rolled away like a ball of yarn ---------- */
.e404 { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 0 28px; }
.e404-stage { position: relative; width: min(640px, 100%); margin-top: -10px; }
.e404-scene { display: block; width: 100%; height: auto; overflow: visible; }
.e404-b1 { stop-color: rgb(var(--c-al2)); }
.e404-b2 { stop-color: rgb(var(--c-al)); }
.e404-b3 { stop-color: rgb(var(--c-al3)); }
.e404-h1 { stop-color: rgb(var(--c-ac)); stop-opacity: .3; }
.e404-h2 { stop-color: rgb(var(--c-ac)); stop-opacity: 0; }
.e404-halo { opacity: .9; }
.e404-stars .st { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: e404-twinkle 3.6s ease-in-out infinite; }
.e404-stars .s2 { animation-delay: -.9s; } .e404-stars .s3 { animation-delay: -1.8s; } .e404-stars .s4 { animation-delay: -2.7s; }
.e404-stars .s5 { animation-delay: -.4s; } .e404-stars .s6 { animation-delay: -1.3s; } .e404-stars .s7 { animation-delay: -2.2s; } .e404-stars .s8 { animation-delay: -3.1s; }
@keyframes e404-twinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .25; transform: scale(.55) rotate(25deg); } }
.e404-floor { fill: rgb(var(--c-sh) / calc(.4 * var(--sha))); transform-box: fill-box; transform-origin: center; animation: e404-shadow 4.8s ease-in-out 1.6s infinite; }
.e404-digit { font-family: "Yekan Bakh", system-ui, sans-serif; font-size: 214px; font-weight: 900; fill: url(#g-gold); stroke: rgb(var(--c-ac3) / .35); stroke-width: 2; paint-order: stroke; transform-box: fill-box; transform-origin: 50% 100%; filter: drop-shadow(0 12px 22px rgb(var(--c-ac) / .3)); animation: e404-rise .9s var(--spring) both; }
html[lang="en"] .e404-digit { font-size: 230px; }
.e404-digit.d2 { animation-delay: .12s; }
@keyframes e404-rise { from { opacity: 0; transform: translateY(26px) scale(.82); } }
.e404-ball { animation: e404-drop 1.1s cubic-bezier(.3, .9, .4, 1) .15s both, e404-float 4.8s ease-in-out 1.6s infinite; }
@keyframes e404-drop { 0% { opacity: 0; transform: translateY(-150px); } 55% { opacity: 1; transform: translateY(6px); } 72% { transform: translateY(-14px); } 86% { transform: translateY(3px); } 100% { transform: none; } }
@keyframes e404-float { 50% { transform: translateY(-9px); } }
@keyframes e404-shadow { 50% { transform: scale(.82); opacity: .7; } }
.e404-wraps path { fill: none; stroke: rgb(var(--c-al3) / .55); stroke-width: 3; stroke-linecap: round; }
.e404-wraps { transform-box: fill-box; transform-origin: center; animation: e404-roll 4.8s ease-in-out 1.6s infinite; }
@keyframes e404-roll { 50% { transform: rotate(-12deg); } }
.e404-shine { fill: rgb(255 255 255 / .45); }
.e404-thread { fill: none; stroke: rgb(var(--c-al)); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: e404-draw 1.2s ease-out .9s forwards; }
@keyframes e404-draw { to { stroke-dashoffset: 0; } }
.e404-cat { cursor: pointer; outline: none; animation: e404-peek .9s var(--spring) 1.15s both; }
@keyframes e404-peek { from { opacity: 0; transform: translateY(46px); } }
.e404-cat-in { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .35s var(--spring), filter .25s; }
.e404-cat:hover .e404-cat-in { transform: translateY(-4px) rotate(-3deg); }
.e404-cat:focus-visible .e404-cat-in { filter: drop-shadow(0 0 3px rgb(var(--c-ac))) drop-shadow(0 0 10px rgb(var(--c-ac) / .7)); }
.is-meow .e404-cat-in { animation: e404-hop .55s var(--spring); }
@keyframes e404-hop { 40% { transform: translateY(-16px) rotate(4deg) scale(1.04); } }
.e404-hearts .hrt { fill: rgb(var(--c-bad)); opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-meow .e404-hearts .hrt { animation: e404-heart 1.3s ease-out both; }
.is-meow .e404-hearts .r2 { animation-delay: .12s; fill: rgb(var(--c-ac)); }
.is-meow .e404-hearts .r3 { animation-delay: .24s; }
@keyframes e404-heart { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 25% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 0; transform: translateY(-46px) scale(.8) rotate(-14deg); } }
.e404-bubble { opacity: 0; transform-box: fill-box; transform-origin: 0 100%; transform: scale(.5); pointer-events: none; }
.e404-bubble rect, .e404-bubble path { fill: rgb(var(--c-sf1)); stroke: rgb(var(--c-ac) / .6); stroke-width: 2; stroke-linejoin: round; }
.e404-bubble text { font-family: "Yekan Bakh", system-ui, sans-serif; font-size: 19px; font-weight: 800; fill: var(--gold-2); }
html[lang="en"] .e404-bubble text { font-size: 17px; }
.is-meow .e404-bubble { animation: e404-bubble 1.6s var(--spring) both; }
@keyframes e404-bubble { 0% { opacity: 0; transform: scale(.5); } 18%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.e404-copy { display: grid; justify-items: center; gap: 10px; max-width: 640px; margin-top: -6px; animation: e404-copy .8s ease 1.3s both; }
@keyframes e404-copy { from { opacity: 0; transform: translateY(10px); } }
.e404-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: var(--fs-xs); color: var(--gold-2); background: rgb(var(--c-ac) / .1); border: 1px solid rgb(var(--c-ac) / .28); }
.e404-copy h1 { max-width: 22ch; font-size: clamp(1.55rem, 1.05rem + 2.1vw, 2.35rem); font-weight: 900; line-height: 1.4; color: rgb(var(--c-title)); text-wrap: balance; }
.e404-copy > p:not(.e404-kicker):not(.e404-pet) { max-width: 52ch; color: var(--mist); text-wrap: pretty; }
.e404-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.e404-pet { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-xs); color: var(--mist-2); }
.e404-pet .ic { width: 15px; height: 15px; color: var(--gold-2); }
@media (hover: none) { .e404-pet { display: none; } }
@media (max-width: 560px) {
  .e404-stage { margin-top: -4px; }
  .e404-acts { display: grid; width: 100%; }
  .e404-acts .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .e404 *, .e404 { animation: none !important; transition: none !important; }
  .e404-thread { stroke-dashoffset: 0; }
  .is-meow .e404-bubble { opacity: 1; transform: none; }
}

/* ---------- auth: password reset, notes ---------- */
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-top a { font-size: var(--fs-xs); color: var(--gold-2); text-decoration: none; }
.field-top a:hover { text-decoration: underline; }
.auth-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; font-size: var(--fs-sm); line-height: 1.9; background: rgb(var(--c-hl) / .04); border: 1px solid var(--line-2); }
.auth-note .ic { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--mist); }
.auth-note.is-ok { background: rgb(var(--c-ok) / .1); border-color: rgb(var(--c-ok) / .3); }
.auth-note.is-ok .ic { color: var(--pist); }
.b-signout { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.b-signout p { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--mist); }
.b-signout p .ic { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--turq); }
.ures-signout { display: grid; gap: 8px; justify-items: start; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.field-label { display: block; margin-bottom: 4px; font-size: var(--fs-sm); color: var(--mist); }

/* ---------- invoice: choosing how to pay, the gateway's answer, payment tries ---------- */
.pay-methods { display: grid; gap: 8px; min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.pay-methods legend { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 0; font-size: var(--fs-sm); font-weight: 800; }
.pay-methods legend .ic { width: 16px; height: 16px; color: var(--gold-2); }
.pay-method { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: rgb(var(--c-hl) / .025); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pay-method input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pay-method::after { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line); transition: border-color .2s, background-color .2s; }
.pay-method:hover { border-color: rgb(var(--c-ac) / .4); }
.pay-method:has(input:checked) { border-color: rgb(var(--c-ac) / .7); background: rgb(var(--c-ac) / .09); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .12); }
.pay-method:has(input:checked)::after { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 4px, transparent 5px); }
.pay-method:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pm-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.pm-ic .ic { width: 20px; height: 20px; }
.pm-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.pm-txt b { font-weight: 800; }
.pm-txt small { font-size: var(--fs-xs); line-height: 1.7; color: var(--mist); }
.pay-result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; max-width: 760px; margin: 6px auto 14px; padding: 14px 18px; border-radius: 20px; background: rgb(var(--c-sf1) / .82); border: 1px solid var(--line-2); }
.pay-result > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.pay-result b { font-weight: 800; color: rgb(var(--c-title)); }
.pay-result p { font-size: var(--fs-sm); color: var(--mist); }
.pay-result-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--mist); background: rgb(var(--c-hl) / .06); }
.pay-result-ic .ic { width: 22px; height: 22px; }
.pay-result.is-paid { border-color: rgb(var(--c-ok) / .45); background: linear-gradient(100deg, rgb(var(--c-ok) / .13), rgb(var(--c-sf1) / .82) 60%); }
.pay-result.is-paid .pay-result-ic { color: var(--pist); background: rgb(var(--c-ok) / .16); }
.pay-result:is(.is-failed, .is-error, .is-expired, .is-reversed) { border-color: rgb(var(--c-bad) / .4); background: linear-gradient(100deg, rgb(var(--c-bad) / .1), rgb(var(--c-sf1) / .82) 60%); }
.pay-result:is(.is-failed, .is-error, .is-expired, .is-reversed) .pay-result-ic { color: var(--pom-2); background: rgb(var(--c-bad) / .13); }
.pay-result:is(.is-sent, .is-new) { border-color: rgb(var(--c-ac) / .45); }
.pay-result:is(.is-sent, .is-new) .pay-result-ic { color: var(--gold-2); background: rgb(var(--c-ac) / .13); }
.inv-tries { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); }
.inv-tries > summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 700; color: var(--mist); }
.inv-tries > summary:hover { color: var(--parch); }
.inv-tries ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.inv-tries li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; background: rgb(var(--c-hl) / .035); border: 1px solid var(--line-2); }
.inv-tries li bdi { margin-inline-start: auto; }

/* ---------- admin: payment methods ---------- */
.gw-addr { margin-bottom: 18px; }
.gw-addr h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: var(--fs-lg); }
.gw-addr h2 .ic { width: 20px; height: 20px; color: var(--gold-2); }
.gw-addr > p { margin: 0 0 12px; color: var(--mist); font-size: var(--fs-sm); }
.gw-addr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 700px; }
.gw-addr-list .lf-label { min-width: 8.5rem; }
.gw-addr bdi { overflow-wrap: anywhere; }
@media (max-width: 560px) { .gw-addr-list .lf-label { min-width: 0; } .gw-addr-list .lf-copy span { display: none; } }
.gw-addr-list .lf-label { white-space: nowrap; }
.gw-addr-n { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: var(--fs-xs); line-height: 1.85; color: var(--mist); }
.gw-addr-n .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--pist); }
.gw-addr .gw-warn { margin: 12px 0 0; }
.gw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gw-grid .panel + .panel { margin-top: 0; }
.gw-card { display: grid; gap: 2px; align-content: start; }
.gw-manual { grid-column: 1 / -1; }
/* three gateways in two columns: the short SEP card and PayStar share one column, Zibal (the tallest) has the other */
@media (min-width: 901px) { #gw-zibal { grid-row: span 2; } }
.gw-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.gw-head > div { flex: 1; min-width: 0; }
.gw-head h2 { font-size: var(--fs-lg); line-height: 1.45; }
.gw-head p { font-size: var(--fs-xs); color: var(--mist); }
.gw-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--gold-2); background: rgb(var(--c-ac) / .13); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .3); }
#gw-zibal .gw-ic { color: var(--turq-2); background: rgb(var(--c-al) / .12); box-shadow: inset 0 0 0 1px rgb(var(--c-al) / .3); }
#gw-paystar .gw-ic { color: var(--pist); background: rgb(var(--c-ok, 46 160 110) / .12); box-shadow: inset 0 0 0 1px rgb(var(--c-ok, 46 160 110) / .3); }
.gw-card .gw-clear { margin: -4px 0 12px; font-size: var(--fs-xs); color: var(--mist); }
.gw-manual .gw-ic { color: var(--mist); background: rgb(var(--c-hl) / .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.gw-card .field { margin: 6px 0 12px; }
.gw-card .row-2 { margin-top: 8px; }
.gw-notes { display: grid; gap: 8px; margin: 2px 0 14px; padding: 12px 14px; list-style: none; border-radius: 14px; font-size: var(--fs-xs); line-height: 1.85; background: rgb(var(--c-hl) / .035); border: 1px solid var(--line-2); }
.gw-notes li { display: flex; align-items: flex-start; gap: 8px; }
.gw-notes .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--mist); }
.gw-notes bdi { overflow-wrap: anywhere; color: var(--parch); }
.gw-warn { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; font-size: var(--fs-xs); line-height: 1.85; color: rgb(var(--c-badtx)); background: rgb(var(--c-bad) / .08); border: 1px solid rgb(var(--c-bad) / .32); }
.gw-warn .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* the bank accounts for card-to-card (Admin → Plans → Payment methods) */
.acc-edit { min-width: 0; margin: 14px 0 6px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgb(var(--c-hl) / .025); }
.acc-edit legend { display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; font-weight: 800; font-size: var(--fs-sm); }
.acc-edit legend .ic { width: 17px; height: 17px; color: var(--gold-2); }
.acc-edit > .field-hint { display: block; margin: 0 0 12px; }
.acc-rows { display: grid; gap: 12px; }
.acc-row { min-width: 0; padding: 12px 14px 4px; border-radius: 16px; background: rgb(var(--c-sf2) / .7); border: 1px solid var(--line-2); }
.acc-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.acc-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: var(--fs-xs); font-weight: 800; color: rgb(var(--c-on)); background: linear-gradient(180deg, rgb(var(--c-ac2)), rgb(var(--c-ac3))); }
.acc-bank { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.acc-del { width: 34px; height: 34px; }
.acc-del:hover { color: var(--pom-2); border-color: rgb(var(--c-bad) / .4); }
.acc-del .ic { width: 16px; height: 16px; }
.acc-fields { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 14px; }
.acc-fields .field { margin: 6px 0 10px; min-width: 0; }
.acc-fields .acc-sheba { grid-column: 1; }
.acc-fields .acc-acct { grid-column: 2; }
.acc-fields .acc-bankf { grid-column: 1 / -1; max-width: 340px; }
.acc-card input, .acc-sheba input { letter-spacing: .04em; }
.acc-check { display: block; min-height: 0; font-size: var(--fs-xs); line-height: 1.7; }
.acc-check.is-ok { color: var(--pist); }
.acc-check.is-bad { color: var(--pom-2); }
.acc-check:empty { display: none; }
.acc-add { margin-top: 12px; }
@media (max-width: 720px) {
  .acc-edit { padding: 12px; }
  .acc-row { padding: 10px 10px 2px; }
  .acc-fields { grid-template-columns: minmax(0, 1fr); }
  .acc-fields .acc-sheba, .acc-fields .acc-acct { grid-column: 1; }
}

/* the same accounts in the payment window: one card each, every number one tap to copy */
.acc-lead { font-size: var(--fs-sm); color: var(--mist); line-height: 1.9; }
.acc-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--c-ac) / .08); border: 1px dashed rgb(var(--c-ac) / .45); }
.acc-amt-t { font-size: var(--fs-xs); color: var(--mist); }
.acc-amt b { font-size: var(--fs-lg); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.acc-amt-r { font-size: var(--fs-xs); color: var(--mist); }
.acc-amt-c { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.chip-copy { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgb(var(--c-ac) / .35); background: rgb(var(--c-sf1) / .7); color: var(--parch); font-size: var(--fs-xs); cursor: pointer; transition: border-color .2s, color .2s; }
.chip-copy .ic { width: 14px; height: 14px; color: var(--gold-2); }
.chip-copy:hover, .chip-copy.is-done { color: var(--gold-2); border-color: rgb(var(--c-ac) / .7); }
.bankcards { display: grid; gap: 12px; }
.bankcard { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 8px; padding: 16px 16px 14px; border-radius: 20px;
  color: var(--parch); border: 1px solid rgb(var(--c-ac) / .32);
  background: radial-gradient(120% 140% at 100% 0%, rgb(var(--c-ac) / .16), transparent 55%), linear-gradient(150deg, rgb(var(--c-sf3)), rgb(var(--c-sf1)) 70%);
  box-shadow: 0 18px 40px -28px rgb(var(--c-sh) / calc(.9 * var(--sha))), inset 0 1px 0 rgb(var(--c-hl) / .07); }
.bankcard::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgb(var(--c-al) / .06); }
.bc-head { display: flex; align-items: center; gap: 10px; }
.bc-head b { font-size: var(--fs-sm); font-weight: 800; }
.bc-chip { width: 34px; height: 25px; flex: none; position: relative; border-radius: 6px; background: linear-gradient(135deg, rgb(var(--c-ac2)), rgb(var(--c-ac3))); box-shadow: inset 0 0 0 1px rgb(var(--c-hl) / .35); }
.bc-chip i { position: absolute; inset: 6px 10px; border: 1px solid rgb(var(--c-on) / .35); border-radius: 3px; }
.bc-card { display: flex; align-items: center; gap: 10px; }
.bc-num { flex: 1; min-width: 0; font-family: var(--mono); font-size: 1.32rem; letter-spacing: .08em; line-height: 1.5; color: rgb(var(--c-glow)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; font-variant-numeric: tabular-nums; }
.bc-holder { font-size: var(--fs-sm); color: var(--mist); }
.bc-holder bdi { color: var(--parch); font-weight: 700; }
.bc-line { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); }
.bc-k { flex: none; color: var(--mist); }
.bc-v { flex: 1; min-width: 0; font-family: var(--mono); letter-spacing: .03em; overflow-wrap: anywhere; text-align: left; }
.bc-copy { display: inline-flex; align-items: center; gap: 5px; height: 32px; flex: none; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgb(var(--c-hl) / .04); color: var(--parch); font-size: var(--fs-xs); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.bc-copy .ic { width: 15px; height: 15px; }
.bc-copy:hover { color: var(--gold-2); border-color: rgb(var(--c-ac) / .45); }
.bc-copy.is-done { color: var(--pist); border-color: rgb(var(--c-ok) / .5); background: rgb(var(--c-ok) / .1); }
@media (max-width: 420px) {
  .bc-num { font-size: 1.12rem; letter-spacing: .05em; }
  .bc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .bc-line .bc-k { grid-column: 1 / -1; }
  .bc-v { letter-spacing: 0; font-size: 12px; }
  .bc-copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bc-copy { width: 36px; padding: 0; justify-content: center; }
}
.gw-card > .btn { justify-self: start; }
@media (max-width: 900px) { .gw-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- admin: transactions ---------- */
.tx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.tx-bar .inv-filter { margin: 0; }
.tx-gw { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-gw a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-xs); color: var(--mist); text-decoration: none; border: 1px dashed var(--line-2); transition: color .2s, border-color .2s, background-color .2s; }
.tx-gw a:hover { color: var(--parch); }
.tx-gw a.is-on { color: var(--turq-2); border-style: solid; border-color: rgb(var(--c-al) / .45); background: rgb(var(--c-al) / .1); }
.tx-sum { margin-inline-start: auto; font-size: var(--fs-sm); color: var(--mist); }
.tx-sum b { font-weight: 900; color: var(--gold-2); white-space: nowrap; }
.tx-list { display: grid; gap: 8px; }
.tx { display: grid; grid-template-columns: minmax(124px, 168px) minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 18px; background: rgb(var(--c-sf1) / .7); border: 1px solid var(--line-2); border-inline-start-width: 3px; }
.tx.is-paid { border-inline-start-color: rgb(var(--c-ok)); }
.tx:is(.is-failed, .is-error) { border-inline-start-color: rgb(var(--c-bad)); }
.tx.is-reversed { border-inline-start-color: rgb(var(--c-ac3)); }
.tx:is(.is-sent, .is-new) { border-inline-start-color: rgb(var(--c-al)); }
.tx:is(.is-canceled, .is-expired) { opacity: .82; }
.tx-amt { display: grid; justify-items: start; gap: 4px; }
.tx-amt b { font-weight: 900; white-space: nowrap; }
.tx-main { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); }
.tx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tx-top a { font-weight: 700; }
.tx-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tx-who .ic { width: 15px; height: 15px; color: var(--mist); }
.tx-who a { color: var(--parch); text-decoration: none; }
.tx-who a:hover { color: var(--gold-2); }
.tx-refs { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-xs); color: var(--mist); }
.tx-refs bdi { color: var(--parch); }
.tx-err { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); color: var(--mist); }
.tx-err .ic { width: 14px; height: 14px; flex: none; margin-top: 4px; }
.tx-err.is-bad { font-weight: 700; color: var(--pom-2); }
.tx-act { margin: 0; }
.tx-list.is-compact .tx { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto; padding: 10px 14px; background: rgb(var(--c-hl) / .03); }
@media (max-width: 640px) {
  .tx, .tx-list.is-compact .tx { grid-template-columns: minmax(0, 1fr); }
  .tx-amt { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .tx-act .btn { width: 100%; justify-content: center; }
  .tx-sum { margin-inline-start: 0; }
}

/* ---------- admin: one invoice ---------- */
.ord-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ord-code { font-weight: 800; color: var(--parch); text-decoration: none; letter-spacing: .03em; }
.ord-code:hover { color: var(--gold-2); text-decoration: underline; }
.aiv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); gap: 18px; align-items: start; margin-top: 10px; }
.aiv-main, .aiv-side { display: grid; gap: 18px; min-width: 0; }
.aiv .panel + .panel { margin-top: 0; }
.aiv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.aiv-title > div { flex: 1; min-width: 0; }
.aiv-title h1 { font-size: var(--fs-xl); font-weight: 900; line-height: 1.4; color: rgb(var(--c-title)); }
.aiv-title p { font-size: var(--fs-sm); color: var(--mist); }
.aiv-head.is-pending { border-color: rgb(var(--c-ac) / .4); }
.aiv-head.is-paid { border-color: rgb(var(--c-ok) / .4); }
.aiv-alert { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: var(--fs-sm); color: rgb(var(--c-badtx)); background: rgb(var(--c-bad) / .08); border: 1px solid rgb(var(--c-bad) / .32); }
.aiv-alert .ic { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.aiv-rows { margin-top: 16px; }
.aiv-head .inv-sum { margin-top: 14px; }
.aiv-note { margin-bottom: 16px; }
.aiv-tl { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.aiv-tl::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 15px; width: 2px; background: var(--line-2); }
.aiv-tl li { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.aiv-dot { position: relative; z-index: 1; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--mist); background: rgb(var(--c-sf2)); border: 2px solid var(--line-2); }
.aiv-dot .ic { width: 15px; height: 15px; }
.aiv-tl li > div { display: grid; gap: 1px; min-width: 0; padding-top: 3px; font-size: var(--fs-sm); }
.aiv-tl b { font-weight: 800; }
.aiv-tl small { font-size: var(--fs-xs); color: var(--mist-2); }
.aiv-d { color: var(--mist); overflow-wrap: anywhere; }
.aiv-tl :is(.ev-activated, .ev-confirmed, .ev-pay_paid) .aiv-dot { color: var(--pist); border-color: rgb(var(--c-ok) / .55); background: rgb(var(--c-ok) / .12); }
.aiv-tl :is(.ev-cancelled, .ev-pay_failed, .ev-pay_error, .ev-pay_reversed) .aiv-dot { color: var(--pom-2); border-color: rgb(var(--c-bad) / .45); background: rgb(var(--c-bad) / .1); }
.aiv-tl :is(.ev-note, .ev-claim) .aiv-dot { color: var(--gold-2); border-color: rgb(var(--c-ac) / .5); background: rgb(var(--c-ac) / .12); }
.aiv-tl .ev-note b + .aiv-d { color: var(--parch); }
.aiv-tl :is(.ev-pay_start, .ev-pay_sent, .ev-recheck) .aiv-dot { color: var(--turq-2); border-color: rgb(var(--c-al) / .45); background: rgb(var(--c-al) / .1); }
.aiv-who { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 800; color: var(--parch); text-decoration: none; overflow-wrap: anywhere; }
.aiv-who:hover { color: var(--gold-2); }
.aiv-who .ic { width: 18px; height: 18px; color: var(--mist); }
.aiv-facts { display: grid; margin: 0; }
.aiv-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); }
.aiv-facts dt { color: var(--mist); white-space: nowrap; }
.aiv-facts dd { margin: 0; min-width: 0; text-align: end; overflow-wrap: anywhere; }
.ok-ic { width: 14px; height: 14px; color: var(--pist); vertical-align: -2px; }
.aiv-acts { display: grid; gap: 10px; }
.aiv-acts form { margin: 0; }
.aiv-acts .panel-title { margin-bottom: 4px; }
.aiv-pay { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.aiv-pay .input { height: 42px; font-size: var(--fs-sm); }
.aiv-acts .case-extend .input { height: 36px; }
.aiv-others ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.aiv-others li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; border-radius: 12px; background: rgb(var(--c-hl) / .035); border: 1px solid var(--line-2); }
.aiv-others li a { font-weight: 700; }
.aiv-others li .small { margin-inline-start: auto; }
@media (max-width: 980px) { .aiv { grid-template-columns: minmax(0, 1fr); } }

/* ---------- admin: billing SMS and emails ---------- */
.bn-panel { scroll-margin-top: 96px; }
.bn-form { display: grid; gap: 10px; }
.bn-row { border-radius: 16px; background: rgb(var(--c-hl) / .03); border: 1px solid var(--line-2); transition: border-color .2s; }
.bn-row[open] { border-color: rgb(var(--c-ac) / .35); background: rgb(var(--c-ac) / .04); }
.bn-row > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.bn-row > summary::-webkit-details-marker { display: none; }
.bn-row > summary::after { content: ""; width: 8px; height: 8px; flex: none; margin-inline: 4px; border-bottom: 2px solid var(--mist); border-inline-end: 2px solid var(--mist); transform: rotate(45deg); transition: transform .25s var(--spring); }
.bn-row[open] > summary::after { transform: rotate(-135deg); }
.bn-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.bn-ic .ic { width: 18px; height: 18px; }
.bn-t { flex: 1; display: grid; min-width: 0; line-height: 1.6; }
.bn-t b { font-weight: 700; }
.bn-t small { font-size: var(--fs-xs); color: var(--mist); }
.bn-body { padding: 0 14px 14px; }
.bn-body .switch { padding-top: 4px; }
.bn-body .chips { margin-top: 2px; }
.bn-body .chip-check span { font-family: inherit; letter-spacing: 0; gap: 4px; }
.bn-lang { display: grid; align-content: start; padding: 12px 14px 2px; border-radius: 14px; background: rgb(var(--c-sf1) / .6); border: 1px solid var(--line-2); }
.bn-lang .field { margin-bottom: 12px; }
.bn-body .row-2 { gap: 12px; margin-bottom: 8px; }
.bn-body textarea::placeholder, .bn-body input::placeholder { color: var(--mist-2); opacity: .75; }
.bn-test { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.bn-test select.input { flex: 0 1 220px; min-width: 160px; }
@media (max-width: 760px) { .bn-body .row-2 { grid-template-columns: minmax(0, 1fr); } }
.auth-mfa-note { margin-top: 12px; text-align: center; }

/* =========================================================
   5.7 · tax lines on invoices
   ========================================================= */
.inv-sum .is-tax span, .inv-sum .is-sub span { color: var(--mist); }
.inv-sum .is-tax b { color: var(--parch); font-weight: 700; }
.inv-sum .is-sub { border-top: 1px dashed var(--line-2); padding-top: 8px; }
.pay-amount small { display: block; font-size: var(--fs-xs); color: var(--mist); font-weight: 400; }
.co-tax { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px 0; font-size: var(--fs-sm); color: var(--mist); }
.co-tax b { color: var(--parch); font-weight: 700; }
.ord-tax { font-size: var(--fs-xs); color: var(--mist); font-weight: 400; }
.pl-taxnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: var(--fs-xs); color: var(--mist); text-align: center; }
.pl-taxnote .ic { width: 15px; height: 15px; color: var(--gold-2); flex: none; }
.row-2.tight { gap: 8px; }

/* =========================================================
   5.7 · protection against bots and floods (admin)
   ========================================================= */
.prot-modes { margin-bottom: 12px; }
.prot-modes .choice { align-content: start; }
.prot-modes .choice.is-attack:has(input:checked) { border-color: rgb(var(--c-ac3)); box-shadow: 0 0 0 4px rgb(var(--c-ac3) / .18); }
.prot-modes .choice.is-attack .choice-ic { background: rgb(var(--c-ac3) / .16); color: rgb(var(--c-ac3)); }
.prot-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prot-stats > div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgb(var(--c-sf1) / .6); border: 1px solid var(--line-2); }
.prot-stats b { font-size: var(--fs-xl, 1.5rem); font-weight: 700; color: var(--parch); font-variant-numeric: tabular-nums; }
.prot-stats span { font-size: var(--fs-xs); color: var(--mist); line-height: 1.7; }
.prot-trips, .prot-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.prot-trips li, .prot-list li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.8; color: var(--parch); }
.prot-trips .ic, .prot-list .ic { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold-2); }
.prot-list { margin-top: 0; }
.prot-list li { color: var(--mist); }
@media (max-width: 560px) { .prot-stats { grid-template-columns: minmax(0, 1fr); } }

/* 5.7 · a long figure or label (Meow words are longer) never pushes a stat card past its column on a phone */
.kpi { min-width: 0; }
.kpi > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .admin-kpis .kpi b, .kpis .kpi b { font-size: var(--fs-xl); } }

/* =========================================================
   5.8 · video, formats and file requests per plan, accounts' own resources
   ========================================================= */
/* the view page: a video plays inside the frame */
.frame-img.frame-video { cursor: auto; background: rgb(var(--c-bg0) / .9); }
.frame-video video { display: block; width: 100%; height: auto; max-height: 78vh; background: #000; border-radius: 3px; }
.v-dur { font-variant-numeric: tabular-nums; }

/* a video among the tiles: a play mark (and its length) */
.gplay { position: absolute; z-index: 1; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgb(var(--c-bg0) / .8); border: 1px solid rgb(var(--c-ac) / .35); color: var(--gold-2); font-size: var(--fs-xs); }
.gplay .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.gplay b { color: var(--parch); font-weight: 700; font-variant-numeric: tabular-nums; }
.tcard a.is-video { position: relative; display: block; }
.tc-play, .result-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.tc-play .ic, .result-play .ic { width: 15px; height: 15px; padding: 10px; border-radius: 50%; background: rgb(var(--c-bg0) / .72); color: var(--gold-2); fill: currentColor; stroke: none; box-shadow: 0 0 0 1px rgb(var(--c-ac) / .35); }
.result-thumb { position: relative; }
.result-play { display: none; }
.result.is-video .result-play { display: grid; }
.result.is-video .result-thumb { background: linear-gradient(135deg, rgb(var(--c-sf2)), rgb(var(--c-bg0))); }

/* formats as chips: a video format carries its mark; on a user's page, the ones their plan gives are dashed */
.chip-check.is-video span { gap: 6px; }
.chip-check.is-video span .ic { width: 15px; height: 15px; }
.ures-types .chip-check.in-plan span { border-style: dashed; border-color: rgb(var(--c-ac2) / .65); }
.apl-types bdi { font-family: var(--latin); font-size: .76rem; letter-spacing: .03em; }

/* the current plan: formats take two cells */
.pl-perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-perks li.pl-perk-wide { grid-column: span 2; }
.pl-perks li.pl-perk-wide .pl-perk-t b { font-family: var(--latin); letter-spacing: .02em; }
@media (max-width: 1100px) { .pl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .pl-perks { grid-template-columns: minmax(0, 1fr); } .pl-perks li.pl-perk-wide { grid-column: auto; } }

/* file requests without the feature in the plan */
.summon-locked .panel-title { display: flex; align-items: center; gap: 8px; }
.summon-locked .panel-title .ic { width: 18px; height: 18px; color: var(--gold-2); }
.summon-locked p { margin: 0 0 16px; color: var(--mist); line-height: 1.9; font-size: var(--fs-sm); }

/* confirmation messages may list what will change, one line each */
.dlg-msg { white-space: pre-line; }

/* Admin → Plans → Own resources */
.cres-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 980px) { .cres-grid { grid-template-columns: minmax(0, 1fr); } }
.cres-state { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; border-radius: 16px; background: rgb(var(--c-sf1) / .6); border: 1px solid var(--line-2); }
.cres-orb { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-0); background: linear-gradient(135deg, var(--gold-2), var(--gold-3)); box-shadow: 0 0 0 6px rgb(var(--c-ac) / .14); }
.cres-orb .ic { width: 20px; height: 20px; }
.cres-switch.is-off .cres-orb { color: var(--mist); background: rgb(var(--c-hl) / .08); box-shadow: 0 0 0 6px rgb(var(--c-hl) / .04); }
.cres-state b { display: block; color: var(--parch); line-height: 1.7; }
.cres-state small { display: block; margin-top: 2px; color: var(--mist); font-size: var(--fs-xs); line-height: 1.8; }
.cres-if { margin: 4px 0 8px; color: var(--parch); font-size: var(--fs-sm); line-height: 1.8; }
.cres-impact { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.cres-impact li { position: relative; padding-inline-start: 18px; color: var(--mist); font-size: var(--fs-sm); line-height: 1.8; }
.cres-impact li::before { content: ""; position: absolute; inset-inline-start: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--pom-2); }
.cres-switch form, .cres-reset-form { margin-top: 14px; }
.cres-scopes { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.cres-confirm { margin-top: 6px; }
.cres-confirm input { max-width: 200px; font-variant-numeric: tabular-nums; }
.cres-job { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px; background: rgb(var(--c-ac) / .08); border: 1px solid rgb(var(--c-ac) / .3); }
.cres-job-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: rgb(var(--c-ac) / .14); }
.cres-job-t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cres-job-t b { color: var(--parch); }
.cres-job-t small { color: var(--mist); font-size: var(--fs-xs); line-height: 1.8; }
.cres-bar { display: block; height: 6px; border-radius: 3px; background: rgb(var(--c-hl) / .08); overflow: hidden; }
.cres-bar i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }
.cres-last { margin: 0 0 18px; }
.cres-history { margin-top: 18px; }
.cres-scope { display: block; margin-top: 2px; font-size: var(--fs-xs); }
.cres-act { text-align: end; }
.cres-act form { margin: 0; }
@media (max-width: 640px) { .cres-job { flex-wrap: wrap; } }

/* a user's page while own resources are switched off for everyone */
.ures-off { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--c-ac) / .07); border: 1px dashed rgb(var(--c-ac) / .45); color: var(--parch); font-size: var(--fs-xs); line-height: 1.85; }
.ures-off .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold-2); }
.tag.is-past { opacity: .6; }
@media (max-width: 860px) {
  .cres-tbl td > span { text-align: end; }
  .cres-tbl td.cres-act { justify-content: flex-end; }
  .cres-tbl td.cres-act:empty { display: none; }
}

/* =========================================================
   5.9 — recycle bin, albums, reports, health
   ========================================================= */
.toast.has-act { padding-inline-end: 8px; }
.toast-act { margin-inline-start: auto; flex: none; padding: 5px 14px; border-radius: 10px; font: inherit; font-size: var(--fs-xs); font-weight: 700; color: var(--gold-2); background: rgb(var(--c-ac) / .14); border: 1px solid rgb(var(--c-ac) / .4); cursor: pointer; }
.toast-act:hover { background: rgb(var(--c-ac) / .24); }
.toast-act:disabled { opacity: .55; cursor: progress; }
.btn.is-locked { opacity: .78; }
.btn.is-locked .ic { color: var(--mist); }
.sp-bin { background: repeating-linear-gradient(135deg, rgb(var(--c-bad) / .62) 0 4px, rgb(var(--c-bad) / .32) 4px 8px); }
.split-keys li a { color: inherit; text-decoration: underline; text-decoration-color: rgb(var(--c-tx2) / .35); text-underline-offset: 3px; }
.img-tabs { margin-bottom: 16px; }

/* the recycle bin */
.bin-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 22px 24px; margin-bottom: 22px; border-radius: 26px; background: linear-gradient(160deg, rgb(var(--c-sf2) / .75), rgb(var(--c-sf1) / .9)); border: 1px solid var(--line-2); }
.bin-head-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: var(--pom-2); background: rgb(var(--c-bad) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-bad) / .22); }
.bin-head-ic .ic { width: 26px; height: 26px; }
.bin-head-main { display: grid; gap: 6px; }
.bin-head-main h1 { font-size: var(--fs-2xl); line-height: 1.3; }
.bin-head-main > p { margin: 0; color: var(--mist); max-width: 64ch; line-height: 1.9; }
.bin-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--mist); }
.bin-note .ic { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--gold-2); }
.bin-side { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.bin-side .pstat { min-width: 112px; padding: 10px 16px 12px; }
.bin-side .pstat b { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.bin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.bin-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgb(var(--c-sf2) / .7), rgb(var(--c-sf1) / .9)); border: 1px solid var(--line-2); }
.bin-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgb(var(--c-bg0)); }
.bin-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) saturate(.8); opacity: .88; transition: filter .3s, opacity .3s; }
.bin-card:hover .bin-thumb img { filter: none; opacity: 1; }
.bin-thumb .gplay { top: 10px; inset-inline-end: 10px; }
.bin-left { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; color: var(--parch); background: rgb(var(--c-sf1) / .9); box-shadow: 0 2px 10px -4px rgb(var(--c-sh) / .5); }
.bin-left .ic { width: 13px; height: 13px; color: var(--gold-2); }
.bin-left.is-last { color: #fff; background: var(--pom); }
.bin-left.is-last .ic, .bin-left.is-gone .ic { color: inherit; }
.bin-left.is-gone { color: var(--mist); }
.bin-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.bin-body h3 { margin: 0; font-size: var(--fs-sm); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bin-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: var(--fs-xs); color: var(--mist); }
.bin-acts { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.bin-acts .icon-btn { margin-inline-start: auto; }
@media (max-width: 860px) {
  .bin-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .bin-side { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .bin-head-ic { width: 46px; height: 46px; border-radius: 14px; }
  .bin-side .btn { flex: 1 1 100%; }
}

/* albums: the list */
.alb-head .actions { align-items: center; }
.alb-quota { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 99px; font-size: var(--fs-xs); color: var(--mist); background: rgb(var(--c-hl) / .05); border: 1px solid var(--line-2); }
.alb-quota b { font-size: var(--fs-md); color: var(--parch); font-variant-numeric: tabular-nums; }
.alb-quota.is-full b { color: var(--pom-2); }
.alb-empty-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; color: var(--gold-2); background: rgb(var(--c-ac) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c-ac) / .25); }
.alb-empty-ic .ic { width: 32px; height: 32px; }
.alb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.alb-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgb(var(--c-sf2) / .7), rgb(var(--c-sf1) / .9)); border: 1px solid var(--line-2); transition: border-color .3s, transform .4s var(--spring); }
.alb-card:hover { border-color: rgb(var(--c-ac) / .4); transform: translateY(-2px); }
.alb-cover { position: relative; display: grid; gap: 3px; aspect-ratio: 16 / 10; overflow: hidden; background: rgb(var(--c-bg0)); }
.alb-cover img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.alb-cover.n-2 { grid-template-columns: 1fr 1fr; }
.alb-cover.n-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.alb-cover.n-3 img:first-child { grid-row: 1 / 3; }
.alb-cover.n-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.alb-cover-none { display: grid; place-items: center; height: 100%; color: var(--mist-2); }
.alb-cover-none .ic { width: 40px; height: 40px; }
.alb-count { position: absolute; bottom: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; color: #fff; background: rgb(10 6 20 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.alb-count .ic { width: 14px; height: 14px; }
.alb-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.alb-body h3 { margin: 0; font-size: var(--fs-md); line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alb-body h3 a { color: var(--parch); text-decoration: none; }
.alb-body h3 a:hover { color: var(--gold-2); }
.alb-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-xs); color: var(--mist); }
.alb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.alb-meta .ic { width: 14px; height: 14px; color: var(--mist-2); }
/* for admins only: whose album this is (its page, and its edit page when it is somebody else's) */
.alb-owner { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--gold-2); text-decoration: none; }
.alb-owner bdi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--parch); }
.alb-owner:hover bdi { text-decoration: underline; }
.alb-owner .ic, .alb-meta .alb-owner .ic { color: currentColor; }
.tag.alb-owner { height: 30px; padding: 0 12px; font-size: var(--fs-xs); background: rgb(var(--c-ac) / .08); border: 1px dashed rgb(var(--c-ac) / .45); }
.alb-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.alb-acts .icon-btn { margin-inline-start: auto; }

/* albums: the picker (new album, «add images») */
.alb-new-meta { margin-bottom: 16px; }
.picker { display: grid; gap: 14px; }
.pick-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick-bar .search { flex: 1 1 240px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.pick-tile { position: relative; display: block; padding: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; cursor: pointer; background: rgb(var(--c-bg0)); border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-2); transition: border-color .2s, transform .25s var(--spring); font: inherit; color: inherit; }
.pick-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--smooth), filter .25s; }
.pick-tile:hover img { transform: scale(1.04); }
.pick-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick-tile.is-on { border-color: var(--gold); box-shadow: 0 0 0 4px rgb(var(--c-ac) / .2); }
.pick-tile.is-on img { filter: brightness(.82); }
.pick-check { position: absolute; top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: transparent; background: rgb(10 6 20 / .35); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85); transition: background-color .2s, transform .25s var(--spring); }
.pick-check .ic { display: none; }
.pick-order { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pick-tile.is-on .pick-check { color: #241708; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .4); transform: scale(1.08); }
.pick-t { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 8px 6px; font-size: .72rem; line-height: 1.5; color: #fff; text-align: start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: linear-gradient(transparent, rgb(10 6 20 / .78)); }
.pick-tile .gplay { top: 8px; inset-inline-end: 8px; padding: 4px 7px; pointer-events: none; }
.pick-tile.is-in { cursor: not-allowed; }
.pick-tile.is-in img { filter: grayscale(.6) brightness(.7); }
.pick-in { position: absolute; bottom: 28px; inset-inline-start: 8px; padding: 1px 8px; border-radius: 99px; font-size: .7rem; color: #fff; background: rgb(var(--c-al) / .85); }
.pick-note { margin: 0; text-align: center; color: var(--mist); }
.pick-more { display: flex; justify-content: center; min-height: 1px; }
.pick-dock { position: sticky; bottom: 14px; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 20px; background: rgb(var(--c-sf1) / .96); border: 1px solid rgb(var(--c-ac) / .3); box-shadow: 0 18px 40px -20px rgb(var(--c-sh) / calc(.9 * var(--sha))); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pick-count { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: auto; color: var(--parch); font-size: var(--fs-sm); }
.pick-count .ic { width: 18px; height: 18px; color: var(--gold-2); }
.pick-dock .form-error { flex-basis: 100%; order: 9; margin: 0; }
.pick-dock.is-in-dlg { position: static; margin: 0; border-radius: 0 0 26px 26px; border: 0; border-top: 1px solid var(--line-2); box-shadow: none; }
dialog.dlg-pick { width: min(980px, calc(100% - 24px)); height: min(820px, calc(100dvh - 24px)); }
.dlg-pick-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.dlg-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.dlg-pick-head h2 { margin: 0; font-size: var(--fs-lg); }
.dlg-pick .picker { overflow: auto; padding: 4px 20px 16px; align-content: start; }
.alb-locked { margin-top: 10px; }

/* albums: editing one */
.alb-edit { display: grid; grid-template-columns: 210px minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px; margin-bottom: 26px; border-radius: 26px; background: linear-gradient(160deg, rgb(var(--c-sf2) / .75), rgb(var(--c-sf1) / .9)); border: 1px solid var(--line-2); }
.alb-edit-cover { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: rgb(var(--c-bg0)); box-shadow: 0 0 0 1px rgb(var(--c-ac) / .3), 0 14px 30px -18px rgb(var(--c-sh) / .8); }
.alb-edit-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.alb-edit-meta { display: grid; gap: 10px; align-content: start; }
.alb-edit-meta .field { margin: 0; }
.alb-edit-meta textarea { resize: vertical; min-height: 64px; }
.alb-edit-meta .btn { justify-self: start; }
.alb-edit-share { display: grid; gap: 12px; align-content: start; }
.btn-danger-ghost { color: var(--pom-2); }
.btn-danger-ghost:hover { color: var(--pom-2); border-color: rgb(var(--c-bad) / .45); background: rgb(var(--c-bad) / .08); }
.alb-items-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.alb-items-head h2 { margin: 0 0 4px; font-size: var(--fs-lg); display: flex; align-items: center; gap: 6px; }
.alb-items-head p { margin: 0; color: var(--mist); font-size: var(--fs-sm); max-width: 70ch; }
.alb-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.alb-item { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgb(var(--c-sf1) / .85); border: 1px solid var(--line-2); cursor: grab; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.alb-item.is-drag { opacity: .35; }
.alb-item.is-cover { border-color: rgb(var(--c-ac) / .6); box-shadow: 0 0 0 3px rgb(var(--c-ac) / .16); }
.alb-item-img { position: relative; aspect-ratio: 1; background: rgb(var(--c-bg0)); }
.alb-item-img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.alb-item-img .gplay { top: auto; bottom: 8px; inset-inline-end: 8px; padding: 4px 7px; pointer-events: none; }
.alb-cover-tag, .alb-bin-tag { position: absolute; top: 8px; inset-inline-start: 8px; display: none; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .7rem; color: #241708; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.alb-cover-tag .ic, .alb-bin-tag .ic { width: 12px; height: 12px; }
.alb-item.is-cover .alb-cover-tag { display: inline-flex; }
.alb-bin-tag { display: inline-flex; top: auto; bottom: 8px; color: #fff; background: rgb(var(--c-bad) / .9); }
.alb-item.is-binned .alb-item-img img { filter: grayscale(.8) brightness(.7); }
.alb-grip { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: rgb(10 6 20 / .45); }
.alb-grip .ic { width: 16px; height: 16px; }
.alb-item-b { display: grid; gap: 6px; padding: 8px 10px 10px; }
.alb-item-t { font-size: var(--fs-xs); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--parch); }
.alb-item-acts { display: flex; gap: 2px; }
.alb-item-acts .icon-btn { width: 32px; height: 32px; }
.alb-item-acts .icon-btn .ic { width: 16px; height: 16px; }
.alb-item-acts .danger { margin-inline-start: auto; }
@media (max-width: 980px) {
  .alb-edit { grid-template-columns: 150px minmax(0, 1fr); }
  .alb-edit-share { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .alb-edit { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .alb-edit-cover { width: 120px; }
  .alb-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pick-tile { border-radius: 12px; }
  .pick-check { width: 24px; height: 24px; top: 5px; inset-inline-start: 5px; }
  .pick-t { display: none; }
  .pick-dock { bottom: 8px; padding: 10px; }
  .pick-dock .btn { flex: 1; }
  .pick-count { flex-basis: 100%; }
}

/* the public album page */
.alb-pub { display: grid; gap: 22px; }
.alb-pub-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.alb-pub-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-xs); color: var(--gold-2); }
.alb-pub-kicker .ic { width: 16px; height: 16px; }
/* a drawn separator dot: a typed «·» next to Persian digits reads as a zero */
.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; vertical-align: middle; flex: none; }
.rep-who .dot-sep, .hl-hero-meta .dot-sep { margin: 0 8px; }
.alb-pub-head h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.35; overflow-wrap: anywhere; }
.alb-pub-desc { margin: 0; max-width: 72ch; color: var(--mist); line-height: 1.95; overflow-wrap: anywhere; }
.alb-pub-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.alb-wall { --row: 230px; display: flex; flex-wrap: wrap; gap: 10px; }
.alb-wall::after { content: ""; flex-grow: 1000000; }
.alb-tile { position: relative; flex-grow: var(--r); flex-basis: calc(var(--row) * var(--r)); aspect-ratio: var(--r); min-width: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: conic-gradient(rgb(var(--c-hl) / .04) 25%, transparent 0 50%, rgb(var(--c-hl) / .04) 0 75%, transparent 0) 0 0 / 18px 18px, rgb(var(--c-bg0)); box-shadow: 0 0 0 1px var(--line-2); font: inherit; }
.alb-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--smooth); user-select: none; -webkit-user-drag: none; }
.alb-tile:hover img, .alb-tile:focus-visible img { transform: scale(1.035); }
.alb-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.alb-tile .gplay { pointer-events: none; }
.alb-tile-t { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 8px; font-size: var(--fs-xs); color: #fff; text-align: start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: linear-gradient(transparent, rgb(10 6 20 / .72)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--smooth); }
.alb-tile:hover .alb-tile-t, .alb-tile:focus-visible .alb-tile-t { opacity: 1; transform: none; }
@media (max-width: 760px) { .alb-wall { --row: 150px; gap: 6px; } .alb-tile { border-radius: 10px; } }
@media (hover: none) { .alb-tile-t { display: none; } }

/* the album's viewer */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(8 5 14 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #F3EEFF; animation: lb-in .3s var(--smooth); }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-width: 0; }
.lb-count { flex: none; padding: 3px 12px; border-radius: 99px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; background: rgb(255 255 255 / .1); }
.lb-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-sm); }
.lb-acts { display: flex; gap: 6px; flex: none; }
.lb-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0; font: inherit; font-size: var(--fs-xs); color: #F3EEFF; text-decoration: none; background: rgb(255 255 255 / .1); cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn .ic { width: 18px; height: 18px; }
.lb-close { width: 40px; padding: 0; justify-content: center; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 64px; }
.lb-stage.is-zoom { overflow: auto; place-items: start; padding: 0; cursor: zoom-out; }
.lb-pic { position: relative; max-width: 100%; max-height: 100%; }
.lb-stage.is-zoom .lb-pic { max-width: none; max-height: none; }
.lb-media { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; margin: auto; border-radius: 6px; box-shadow: 0 30px 80px -30px rgb(0 0 0 / .9); user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; cursor: zoom-in; }
.lb-stage.is-zoom .lb-media { max-width: none; max-height: none; height: auto; border-radius: 0; cursor: zoom-out; }
video.lb-media { cursor: auto; background: #000; }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; border: 0; color: #F3EEFF; background: rgb(255 255 255 / .12); cursor: pointer; transition: background-color .2s, transform .25s var(--spring); }
.lb-nav:hover { background: rgb(255 255 255 / .24); transform: scale(1.06); }
.lb-nav .ic { width: 22px; height: 22px; }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-meta { padding: 10px 16px 14px; text-align: center; font-size: var(--fs-xs); color: rgb(243 238 255 / .7); }
.lb-meta > * + *::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 6px; }
  .lb-nav { top: auto; bottom: 46px; width: 42px; height: 42px; background: rgb(255 255 255 / .16); }
  .lb-btn span { display: none; }
  .lb-btn { width: 40px; padding: 0; justify-content: center; }
  .lb-media { max-height: calc(100dvh - 170px); }
}

/* the abuse report dialog and the image page's report / admin tools */
dialog.dlg-report { width: min(560px, calc(100% - 24px)); }
.rep-form, .rep-done { padding: 24px 22px 20px; }
.rep-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: var(--fs-xl); }
.rep-ic { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 13px; color: var(--pom-2); background: rgb(var(--c-bad) / .12); }
.rep-ic .ic { width: 20px; height: 20px; }
.rep-sub { margin: 0 0 14px; color: var(--mist); font-size: var(--fs-sm); line-height: 1.9; }
.rep-reasons { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rep-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.rep-opt input { margin: 6px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--pom); }
.rep-opt b { display: block; font-weight: 600; font-size: var(--fs-sm); line-height: 1.6; }
.rep-opt small { display: block; color: var(--mist-2); font-size: .74rem; line-height: 1.7; }
.rep-opt:has(input:checked) { border-color: rgb(var(--c-bad) / .55); background: rgb(var(--c-bad) / .07); }
.rep-done { display: grid; justify-items: center; text-align: center; gap: 8px; }
.rep-done h2 { margin: 0; font-size: var(--fs-xl); }
.rep-done p { margin: 0 0 10px; color: var(--mist); }
.rep-done-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: var(--pist); background: rgb(var(--c-ok) / .14); }
.rep-done-ic .ic { width: 30px; height: 30px; }
@media (max-width: 520px) { .rep-reasons { grid-template-columns: minmax(0, 1fr); } }
.v-report { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: var(--fs-xs); color: var(--mist-2); cursor: pointer; }
.v-report .ic { width: 15px; height: 15px; }
.v-report:hover { color: var(--pom-2); text-decoration: underline; text-underline-offset: 3px; }
.v-admin { display: grid; gap: 10px; padding: 12px; border-radius: 16px; border: 1px dashed rgb(var(--c-bad) / .45); background: rgb(var(--c-bad) / .04); }
.v-admin form { margin: 0; }
.v-admin-k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--mist); }
.v-admin-k .ic, .v-admin-rep .ic { width: 15px; height: 15px; }
.v-admin-rep { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--pom-2); }
.v-hidden { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--c-ac) / .08); border: 1px dashed rgb(var(--c-ac) / .45); font-size: var(--fs-sm); }
.v-hidden .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-2); }

/* admin: reports */
.rep-seg { margin-bottom: 16px; }
.rep-list { display: grid; gap: 14px; }
.rep-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, rgb(var(--c-sf2) / .6), rgb(var(--c-sf1) / .85)); border: 1px solid var(--line-2); }
.rep-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: rgb(var(--c-bg0)); }
.rep-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rep-gone { display: grid; place-items: center; height: 100%; color: var(--mist-2); }
.rep-n { position: absolute; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--pom); }
.rep-n .ic { width: 12px; height: 12px; }
.rep-main { display: grid; gap: 8px; min-width: 0; align-content: start; }
.rep-top { display: grid; gap: 6px; }
.rep-top h3 { margin: 0; font-size: var(--fs-md); line-height: 1.5; overflow-wrap: anywhere; }
.rep-top h3 .mono { font-size: .8rem; font-weight: 400; }
.rep-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-rep { color: var(--pom-2); background: rgb(var(--c-bad) / .1); border-color: rgb(var(--c-bad) / .3); }
.rep-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: var(--fs-xs); color: var(--mist); }
.rep-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rep-meta .ic { width: 14px; height: 14px; color: var(--mist-2); }
.rep-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rep-notes li { padding: 8px 10px; border-radius: 12px; background: rgb(var(--c-hl) / .04); font-size: var(--fs-xs); line-height: 1.8; }
.rep-who { display: block; color: var(--mist-2); }
.rep-notes q { display: block; color: var(--parch); quotes: none; overflow-wrap: anywhere; }
.rep-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-acts form { margin: 0; }
.rep-note-s { display: block; color: var(--mist-2); font-size: .74rem; }
.tc-bin { font-size: .7rem; }
@media (max-width: 640px) {
  .rep-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .rep-acts .btn { flex: 1 1 auto; }
}
/* the picker's bar stays clear of the chat button and, on phones, sits above the bottom menu */
body:has(.chatw) .pick-dock:not(.is-in-dlg) { margin-inline-end: 76px; }
@media (max-width: 859px) {
  .pick-dock:not(.is-in-dlg) { bottom: calc(var(--dock-h, 78px) + 12px); }
  body:has(.chatw) .pick-dock:not(.is-in-dlg) { margin-inline-end: 66px; }
}
/* pictures fill their square / 4:3 frames without stretching them */
.alb-item-img img, .bin-thumb img, .rep-thumb img, .alb-edit-cover img { position: absolute; inset: 0; }
.alb-edit-cover, .rep-thumb { position: relative; }
.gfoot .icon-btn + .icon-btn { margin-inline-start: 0; }

/* admin: system health */
.hstrip { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 16px; border-radius: 18px; text-decoration: none; color: var(--parch); background: rgb(var(--c-ok) / .08); border: 1px solid rgb(var(--c-ok) / .3); transition: transform .3s var(--spring), border-color .2s; }
.hstrip:hover { transform: translateY(-1px); }
.hstrip-orb { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; color: var(--pist); background: rgb(var(--c-ok) / .14); }
.hstrip-orb .ic { width: 20px; height: 20px; }
.hstrip-t { flex: 1; min-width: 0; display: grid; }
.hstrip-t b { font-weight: 700; }
.hstrip-t small { color: var(--mist); font-size: var(--fs-xs); }
.hstrip-go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--mist); }
.hstrip-go .ic { width: 16px; height: 16px; }
.hstrip.is-warn { background: rgb(var(--c-ac) / .08); border-color: rgb(var(--c-ac) / .4); }
.hstrip.is-warn .hstrip-orb { color: var(--gold-2); background: rgb(var(--c-ac) / .16); }
.hstrip.is-bad { background: rgb(var(--c-bad) / .07); border-color: rgb(var(--c-bad) / .4); }
.hstrip.is-bad .hstrip-orb { color: var(--pom-2); background: rgb(var(--c-bad) / .14); }
.hl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-bottom: 20px; padding: 20px 22px; border-radius: 24px; background: linear-gradient(135deg, rgb(var(--c-ok) / .12), rgb(var(--c-sf1) / .9) 60%); border: 1px solid rgb(var(--c-ok) / .3); }
.hl-hero.is-warn { background: linear-gradient(135deg, rgb(var(--c-ac) / .14), rgb(var(--c-sf1) / .9) 60%); border-color: rgb(var(--c-ac) / .4); }
.hl-hero.is-bad { background: linear-gradient(135deg, rgb(var(--c-bad) / .12), rgb(var(--c-sf1) / .9) 60%); border-color: rgb(var(--c-bad) / .4); }
.hl-orb { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--pist); background: rgb(var(--c-ok) / .16); box-shadow: 0 0 0 8px rgb(var(--c-ok) / .07); }
.hl-orb .ic { width: 30px; height: 30px; }
.hl-hero.is-warn .hl-orb { color: var(--gold-2); background: rgb(var(--c-ac) / .18); box-shadow: 0 0 0 8px rgb(var(--c-ac) / .07); }
.hl-hero.is-bad .hl-orb { color: var(--pom-2); background: rgb(var(--c-bad) / .16); box-shadow: 0 0 0 8px rgb(var(--c-bad) / .06); }
.hl-hero-t { flex: 1 1 280px; min-width: 0; }
.hl-hero-t h2 { margin: 0 0 4px; font-size: var(--fs-xl); line-height: 1.45; }
.hl-hero-t p { margin: 0; color: var(--mist); font-size: var(--fs-sm); }
.hl-counts { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.hl-counts li { min-width: 78px; padding: 8px 14px; border-radius: 14px; text-align: center; background: rgb(var(--c-bg0) / .4); border: 1px solid var(--line-2); }
.hl-counts b { display: block; font-size: var(--fs-xl); line-height: 1.3; font-variant-numeric: tabular-nums; }
.hl-counts span { font-size: var(--fs-xs); color: var(--mist); }
.hl-counts .is-ok b { color: var(--pist); }
.hl-counts .is-warn b { color: var(--gold-2); }
.hl-counts .is-bad b { color: var(--pom-2); }
.hl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.hl-group .panel-title { display: flex; align-items: center; gap: 8px; }
.hl-group .panel-title .ic { width: 18px; height: 18px; color: var(--gold-2); }
.hl-group.is-warn { border-color: rgb(var(--c-ac) / .35); }
.hl-group.is-bad { border-color: rgb(var(--c-bad) / .4); }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgb(var(--c-tx2) / .08); }
.hl-item:first-child { border-top: 0; }
.hl-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--pist); background: rgb(var(--c-ok) / .12); }
.hl-dot .ic { width: 15px; height: 15px; }
.hl-item.is-warn .hl-dot { color: var(--gold-2); background: rgb(var(--c-ac) / .16); }
.hl-item.is-bad .hl-dot { color: #fff; background: var(--pom); }
.hl-item.is-info .hl-dot { color: var(--mist); background: rgb(var(--c-hl) / .07); }
.hl-label { font-size: var(--fs-sm); color: var(--parch); line-height: 1.7; }
.hl-val { font-size: var(--fs-sm); color: var(--mist); text-align: end; font-variant-numeric: tabular-nums; }
.hl-item.is-bad .hl-val { color: var(--pom-2); font-weight: 600; }
.hl-item.is-warn .hl-val { color: var(--gold-2); }
.hl-val a { color: inherit; text-decoration: underline; text-decoration-color: rgb(var(--c-tx2) / .35); text-underline-offset: 3px; }
.hl-hint { grid-column: 2 / -1; color: var(--mist-2); font-size: var(--fs-xs); line-height: 1.8; }
.hl-errors { margin-top: 18px; }
.hl-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hl-log li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgb(var(--c-bg0) / .45); }
.hl-log time { font-size: var(--fs-xs); color: var(--mist-2); }
.hl-log code { font-family: var(--mono); font-size: .78rem; color: var(--parch); overflow-wrap: anywhere; text-align: start; }
@media (max-width: 980px) { .hl-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .hl-counts { width: 100%; }
  .hl-counts li { flex: 1; min-width: 0; }
  .hl-item { grid-template-columns: 26px minmax(0, 1fr); }
  .hl-val { grid-column: 2; text-align: start; }
}
dialog.dlg-toalb { width: min(460px, calc(100% - 24px)); }
.toalb-list { display: grid; max-height: min(50dvh, 360px); overflow-y: auto; margin-bottom: 8px; }
.toalb-list .opt.is-in { opacity: .6; cursor: default; }
.toalb-new { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; font-size: var(--fs-sm); color: var(--turq-2); text-decoration: none; }
.toalb-new:hover { text-decoration: underline; }
.toalb-new .ic { width: 16px; height: 16px; }
.toalb-new[hidden] { display: none; }

/* ============ phones: the page banners are compact cards ============
   On a phone the banner of «my images», «file requests» and «apps» was taller than the screen — a large picture, a
   paragraph, wide margins — and the page itself began a whole screen further down. Here each is one small card: the
   title, the figure worth knowing and the action, with the picture kept as a small emblem beside the title. */
@media (max-width: 640px) {
  /* the three tabs over «my images» stand in one row */
  .img-tabs { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; margin-bottom: 12px; }
  .img-tabs a { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 6px; padding: 8px 6px; white-space: nowrap; font-size: .8125rem; }      /* each as wide as its name asks, the room left over shared out */
  .img-tabs .ic, .img-tabs .tab-n { flex: none; }

  .phero { padding: 16px 16px 18px; gap: 12px; margin-bottom: 16px; border-radius: 24px; }
  .phero .phero-rays, .phero .phero-shock, .phero::after { display: none; }      /* a calm card: no rays turning behind it (the account page's own ring, outside a banner, stays) */
  .phero-main { gap: 8px; }
  .phero h1 { font-size: 1.55rem; text-shadow: none; }
  .phero-main > p { font-size: var(--fs-sm); line-height: 1.85; }

  /* «my images»: the title, the count and the upload button beside a small gauge; under them, how the space is used.
     The wrappers step aside (display: contents) so the pieces can share one grid. */
  .phero-images { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title orb" "count orb" "cta orb" "legend legend"; align-items: center; gap: 0 14px; }
  .phero-images .phero-main, .phero-images .phero-side, .phero-images .phero-row { display: contents; }
  .phero-images h1 { grid-area: title; }
  .phero-images .phero-main > p { display: none; }
  .phero-images .pstat { grid-area: count; display: flex; align-items: baseline; gap: 6px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .phero-images .pstat::after { content: none; }
  .phero-images .pstat b { display: inline; font-size: 1.15rem; line-height: 1.5; text-shadow: none; }
  .phero-images .pstat span { font-size: var(--fs-sm); }
  .phero-images .phero-row .btn { grid-area: cta; justify-self: start; height: 42px; margin-top: 10px; padding: 0 16px; border-radius: 13px; font-size: var(--fs-sm); }
  .phero-images .orb-wrap { grid-area: orb; width: 104px; filter: drop-shadow(0 0 14px rgb(var(--c-al) / .22)); }
  .phero-images .orb-center b { font-size: 1.15rem; }
  .phero-images .orb-center span { display: none; }
  .phero-images .storage-legend { grid-area: legend; max-width: none; gap: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
  .phero-images .sl-big { font-size: var(--fs-md); }
  .phero-images .sl-of { font-size: var(--fs-sm); }
  .phero-images .sl-free { display: none; }
  .phero-images .split-bar { height: 8px; margin: 8px 0; }
  .phero-images .split-keys { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .phero-images .split-keys li { gap: 6px; }
  .phero-images .split-keys li span { margin-inline-start: 0; }
  .phero-images .split-keys .is-none { display: none; }   /* a part with nothing in it is left out of the legend */

  /* «file requests»: the portal is a picture for a wide screen */
  .phero-req .phero-side { display: none; }
  .phero-req .pstrip { justify-self: stretch; max-width: none; margin: 4px 0 0; }
  /* the rainbow theme's hearts stood behind the title's place in the tall banner; here they would be under the letters */
  [data-theme="rainbow"] .phero::before { content: none; }

  /* «apps»: the kicker and the title beside a small orbit; then a visitor's sentence and two buttons, or a member's
     three steps on one line and the keys button; the counts last */
  .aps { margin-bottom: 22px; }
  .aps-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker orbit" "title orbit" "lead lead" "steps steps" "ctas ctas" "stats stats"; align-items: center; gap: 0 10px; padding: 16px 16px 18px; border-radius: 24px; }
  .aps-copy { display: contents; }
  .aps-kicker { grid-area: kicker; justify-self: start; align-self: end; padding: 4px 11px; white-space: nowrap; }
  .aps-title { grid-area: title; align-self: start; margin: 8px 0 0; font-size: 1.7rem; }
  .aps-lead { grid-area: lead; max-width: none; margin: 8px 0 0; font-size: var(--fs-sm); line-height: 1.85; }
  .aps-hero.has-steps .aps-lead { display: none; }   /* a member's banner has the three steps: they say what the sentence said */
  .aps-ctas { grid-area: ctas; margin-top: 14px; }
  .aps-stats { grid-area: stats; gap: 0 16px; margin-top: 12px; font-size: var(--fs-xs); }
  .aps-stats b { font-size: 1.05rem; }
  .aps-stats .is-none { display: none; }   /* a count of zero says nothing: a phone leaves it out */
  /* the orbit as a small flat emblem: the same platforms going round the cat, seen from above. (Tilted in 3D at this
     size the little pictures are drawn coarse while they move, and the wide glows are cut off in squares.) */
  .aps-orbit { grid-area: orbit; order: 0; --R1: 29px; --R2: 47px; width: 116px; height: 116px; perspective: none; }
  .aps-halo { width: 100%; }
  .aps-stage { transform: none; }
  .aps-ring { box-shadow: none; }
  .aps-core { width: 34px; height: 34px; margin: -17px 0 0 -17px; transform: none; box-shadow: 0 0 0 1px rgb(var(--c-ac) / .4), inset 0 1px 0 rgb(255 255 255 / .14); }
  .aps-core .brand-mark { width: 24px; height: 24px; }
  .aps-sat-f { left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 7px; transform: none; box-shadow: 0 4px 8px -5px var(--ab-sh, rgb(var(--c-glow))); }
  .aps-sat-f .ic { width: 12px; height: 12px; }
  .aps-sat.is-hot .aps-sat-f { transform: scale(1.3); box-shadow: 0 0 0 2px var(--ab-ring, rgb(var(--c-ac) / .4)); }
  /* the steps: three numbered points on one line, their names under them */
  .aps-steps { grid-area: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 16px 0 0; }
  .aps-steps li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center; font-size: .8125rem; line-height: 1.5; }
  .aps-steps b { width: 28px; height: 28px; border-radius: 50%; font-size: .82rem; }
  .aps-steps li + li::before { content: ""; position: absolute; top: 13px; inset-inline-start: calc(-50% + 19px); width: calc(100% - 38px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--c-ac) / .5), rgb(var(--c-ac) / .22)); }
  [dir="rtl"] .aps-steps li + li::before { background: linear-gradient(270deg, rgb(var(--c-ac) / .5), rgb(var(--c-ac) / .22)); }
}
@media (max-width: 380px) {
  .img-tabs .ic { display: none; }      /* a narrow phone: the names alone, so the bin's count still fits */
}
@media (max-width: 359px) {
  /* the narrowest phones: a smaller emblem and a tighter kicker, so the kicker keeps to one line beside it */
  .aps-orbit { --R1: 25px; --R2: 40px; width: 100px; height: 100px; }
  .aps-core { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .aps-core .brand-mark { width: 21px; height: 21px; }
  .aps-sat-f { left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 6px; }
  .aps-sat-f .ic { width: 11px; height: 11px; }
  .aps-kicker { gap: 5px; padding: 3px 9px; font-size: .7rem; }
  .aps-title { font-size: 1.55rem; }
}

/* ---------- 5.18: the account journal (Admin → Users → «لاگ») and the things an admin does by hand ---------- */
/* the «لاگ» button in the users list: an icon button with its word, so it reads without hovering */
.icon-btn.u-log { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; color: var(--gold-2); border-color: rgb(var(--c-ac) / .38); background: rgb(var(--c-ac) / .08); }
.icon-btn.u-log:hover { border-color: rgb(var(--c-ac) / .7); background: rgb(var(--c-ac) / .16); }
.icon-btn.u-log .ic { width: 16px; height: 16px; }

.ulog-head h1 bdi { color: var(--gold-2); overflow-wrap: anywhere; }
.ulog-id { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ulog-cats .ic { width: 15px; height: 15px; }
.ulog-cats a.is-none:not(.is-on) { opacity: .55; }
.ulog-filters .btn { height: 44px; }
.ulog-note { margin-bottom: 16px; padding: 0; }
.ulog-note > summary { display: flex; align-items: center; gap: 8px; padding: 13px 18px; cursor: pointer; list-style: none; font-size: var(--fs-sm); font-weight: 700; color: var(--mist); }
.ulog-note > summary::-webkit-details-marker { display: none; }
.ulog-note > summary:hover, .ulog-note[open] > summary { color: var(--gold-2); }
.ulog-note > summary .ic { width: 16px; height: 16px; }
.ulog-note form { display: grid; justify-items: start; padding: 0 18px 16px; }
.ulog-note .field { width: 100%; margin-bottom: 12px; }
.ulog-seed { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 11px 14px; border-radius: 14px; font-size: var(--fs-sm); color: var(--mist); background: rgb(var(--c-al) / .07); border: 1px solid rgb(var(--c-al) / .25); }
.ulog-seed .ic { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--turq-2); }
.ulog-panel { padding: 16px 18px 8px; }
.ulog-count { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--mist); }

/* the lines: a dot with the event's sign, what happened, what changed, then when / who / from where */
.ulog { display: grid; margin: 0; padding: 0; list-style: none; }
.ulog-day { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; font-size: var(--fs-xs); font-weight: 800; color: var(--mist); }
.ulog-day:first-child { margin-top: 4px; }
.ulog-day::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.ulog-sep { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 4px; padding: 10px 14px; border-radius: 12px; font-size: var(--fs-xs); line-height: 1.9; color: var(--mist); background: rgb(var(--c-hl) / .04); border: 1px dashed var(--line); }
.ulog-sep .ic { width: 15px; height: 15px; flex: none; margin-top: 4px; }
.ulog-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 90px; }
.ulog-day + .ulog-row, .ulog-sep + .ulog-row, .ulog-row:first-child { border-top: 0; }
.ulog-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--mist); background: rgb(var(--c-sf2)); border: 2px solid var(--line-2); }
.ulog-dot .ic { width: 15px; height: 15px; }
.ulog-row.is-ok .ulog-dot { color: var(--pist); border-color: rgb(var(--c-ok) / .55); background: rgb(var(--c-ok) / .12); }
.ulog-row.is-bad .ulog-dot { color: var(--pom-2); border-color: rgb(var(--c-bad) / .45); background: rgb(var(--c-bad) / .1); }
.ulog-row.is-warn .ulog-dot { color: var(--gold-2); border-color: rgb(var(--c-ac) / .5); background: rgb(var(--c-ac) / .12); }
.ulog-row.is-al .ulog-dot { color: var(--turq-2); border-color: rgb(var(--c-al) / .45); background: rgb(var(--c-al) / .1); }
.ulog-main { display: grid; gap: 4px; min-width: 0; padding-top: 3px; }
.ulog-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: var(--fs-sm); line-height: 1.8; }
.ulog-what b { font-weight: 800; color: var(--parch); }
.ulog-ref { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; color: var(--gold-2); background: rgb(var(--c-ac) / .1); border: 1px solid rgb(var(--c-ac) / .3); }
.ulog-ref:hover { background: rgb(var(--c-ac) / .2); border-color: rgb(var(--c-ac) / .6); }
.ulog-det { display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); line-height: 1.9; color: var(--mist); overflow-wrap: anywhere; }
.ulog-det li { min-width: 0; }
.ul-k { color: var(--mist-2); }
.ul-old { color: var(--mist); }
.ul-new { font-weight: 800; color: var(--parch); }
.ul-arrow { color: var(--mist-2); }
.ul-note { display: block; padding: 6px 10px; border-radius: 10px; color: var(--parch); background: rgb(var(--c-ac) / .07); border-inline-start: 3px solid rgb(var(--c-ac) / .5); }
.ulog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: var(--fs-xs); color: var(--mist-2); }
.ulog-by { padding: 1px 8px; border-radius: 99px; background: rgb(var(--c-hl) / .06); color: var(--mist); }
.by-admin .ulog-by { color: var(--gold-2); background: rgb(var(--c-ac) / .12); }
.by-user .ulog-by { color: var(--turq-2); background: rgb(var(--c-al) / .12); }
.by-gateway .ulog-by { color: var(--pist); background: rgb(var(--c-ok) / .12); }
.by-guest .ulog-by { color: var(--pom-2); background: rgb(var(--c-bad) / .1); }
.ulog-ip { font-size: .72rem; }
.ulog-acct { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--mist); text-decoration: none; overflow-wrap: anywhere; }
.ulog-acct:hover { color: var(--gold-2); }
.ulog-acct .ic { width: 13px; height: 13px; flex: none; }
.ulog.is-compact .ulog-row { padding: 9px 0; }
.ulog.is-compact .ulog-det { font-size: var(--fs-xs); }

/* the account's page: things done by hand, the latest lines, tickets and payments */
.ucare-grid { margin: 18px 0; align-items: start; }
.ucare-list { display: grid; margin: 0; padding: 0; list-style: none; }
.ucare-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.ucare-list li:first-child { border-top: 0; padding-top: 2px; }
.ucare-list form { margin: 0; }
.ucare-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: rgb(var(--c-ac) / .1); }
.ucare-ic .ic { width: 17px; height: 17px; }
.ucare-list li.is-idle .ucare-ic { color: var(--mist); background: rgb(var(--c-hl) / .05); }
.ucare-list b { display: block; font-size: var(--fs-sm); font-weight: 800; }
.ucare-list small { display: block; font-size: var(--fs-xs); line-height: 1.8; color: var(--mist); overflow-wrap: anywhere; }
.ucare-list b a { color: var(--gold-2); text-decoration: none; }
.ucare-more { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ucare-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--gold-2); }
.ucare-more > summary .ic { width: 16px; height: 16px; }
.ucare-more form { display: grid; justify-items: start; margin-top: 12px; }
.ucare-more .field { width: 100%; margin-bottom: 12px; }
.ucare-more .switch { margin-bottom: 12px; }
.ucare-all { margin-top: 12px; }
.uside-list li span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.uside-more { display: inline-block; margin-top: 10px; font-size: var(--fs-xs); color: var(--gold-2); text-decoration: none; }
.uside-more:hover { text-decoration: underline; }
@media (max-width: 560px) {
  /* a phone: the heading kept short, so the lines themselves start high on the screen */
  .ulog-head h1 { font-size: var(--fs-xl); }
  .ulog-head h1 bdi { display: block; font-size: var(--fs-md); line-height: 1.7; text-align: match-parent; }
  .ulog-head p { display: none; }
  .ulog-head .actions .btn { height: 38px; padding: 0 12px; font-size: var(--fs-xs); }
  .ulog-cats { gap: 6px; }
  .ulog-cats a { height: 32px; padding: 0 10px; font-size: var(--fs-xs); }
  .ulog-cats .ic { display: none; }
  .ulog-panel { padding: 12px 12px 4px; }
  .ulog-row { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .ulog-dot { width: 28px; height: 28px; }
  .ulog-dot .ic { width: 13px; height: 13px; }
  .ucare-list li { grid-template-columns: 36px minmax(0, 1fr); }
  .ucare-list li form { grid-column: 2; justify-self: start; }
  .row-actions { flex-wrap: wrap; }
}
@media (min-width: 900px) {
  /* a wide screen: when / who / from where stand in their own column at the end of the line, so they can be run down */
  .ulog:not(.is-compact) .ulog-main { grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: start; }
  .ulog:not(.is-compact) :is(.ulog-what, .ulog-det) { grid-column: 1; }
  .ulog:not(.is-compact) .ulog-meta { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; max-width: 360px; padding-top: 4px; }
}
.ulog-det li:has(.ul-note) { flex-basis: 100%; }
.uside-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 10px; font-size: var(--fs-xs); color: var(--mist); }
.uside-sum b { color: var(--parch); font-weight: 800; }
.uside-sum .uside-more { margin-top: 0; }
/* the log's list is there from the start: it is not one of the cards that slide in as they are scrolled to (a list
   as long as a page of the log, and the page numbers right under it, should not be caught half-way through that) */
.reveal-on .ulog-panel { opacity: 1; translate: none; }
