/* ==========================================================================
   רצף — design system
   Semantic tokens, light/dark, accents, high contrast, reduced motion.
   Structural RTL: logical properties everywhere.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Neutrals (light) */
  --bg:            #f2f2f7;
  --bg-elevated:   #ffffff;
  --bg-sunken:     #e9e9ef;
  --surface:       #ffffff;
  --surface-2:     #f7f7fa;
  --surface-3:     #ececeF;

  --text:          #11131a;
  --text-2:        #4b4f5a;
  --text-3:        #82868f;
  --text-inverse:  #ffffff;

  --line:          rgba(60, 60, 67, 0.14);
  --line-strong:   rgba(60, 60, 67, 0.28);

  /* Accent (default blue) */
  --accent:        #0a6cff;
  --accent-soft:   rgba(10, 108, 255, 0.12);
  --accent-text:   #0a5ad6;
  --on-accent:     #ffffff;

  /* Semantic */
  --ok:            #1c8f4b;
  --ok-soft:       rgba(28, 143, 75, 0.12);
  --warn:          #a2670a;
  --warn-soft:     rgba(200, 130, 10, 0.14);
  --danger:        #c02d32;
  --danger-soft:   rgba(192, 45, 50, 0.12);
  --info:          #3a5bc7;

  /* Glass */
  --glass-bg:      rgba(255, 255, 255, 0.72);
  --glass-border:  rgba(255, 255, 255, 0.55);
  --glass-blur:    20px;
  --glass-sat:     180%;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(16, 18, 27, 0.06), 0 1px 1px rgba(16, 18, 27, 0.04);
  --sh-2: 0 4px 14px rgba(16, 18, 27, 0.08), 0 1px 3px rgba(16, 18, 27, 0.05);
  --sh-3: 0 18px 48px rgba(16, 18, 27, 0.16), 0 4px 12px rgba(16, 18, 27, 0.08);

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px;

  /* Radii */
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 22px; --r5: 28px; --rf: 999px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Hebrew",
          "Assistant", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --fs-xs: 0.75rem; --fs-sm: 0.8125rem; --fs-base: 0.9375rem;
  --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 2rem;

  /* Motion */
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 340ms;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Layout */
  --nav-h: 56px;
  --bottom-h: calc(58px + env(safe-area-inset-bottom, 0px));
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 68px;
  --hour-h: 60px;
  --tap: 44px;
}

[data-theme="dark"] {
  --bg:            #000000;
  --bg-elevated:   #16161a;
  --bg-sunken:     #0a0a0c;
  --surface:       #1b1b20;
  --surface-2:     #232329;
  --surface-3:     #2c2c33;

  --text:          #f2f2f5;
  --text-2:        #a8abb4;
  /* Tertiary text still has to clear WCAG AA (4.5:1) against the darkest
     surface it ever sits on, so it cannot go dimmer than this. */
  --text-3:        #8f939c;
  --text-inverse:  #11131a;

  --line:          rgba(235, 235, 245, 0.14);
  --line-strong:   rgba(235, 235, 245, 0.26);

  --accent:        #3d8bff;
  --accent-soft:   rgba(61, 139, 255, 0.2);
  --accent-text:   #6ea8ff;

  --ok:            #3cd07a;
  --ok-soft:       rgba(60, 208, 122, 0.16);
  --warn:          #f0b429;
  --warn-soft:     rgba(240, 180, 41, 0.16);
  --danger:        #ff6b6f;
  --danger-soft:   rgba(255, 107, 111, 0.16);
  --info:          #7d9cf5;

  --glass-bg:      rgba(28, 28, 33, 0.72);
  --glass-border:  rgba(255, 255, 255, 0.1);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 4px 16px rgba(0, 0, 0, 0.5);
  --sh-3: 0 20px 52px rgba(0, 0, 0, 0.65);
}

/* Accents */
[data-accent="teal"]   { --accent:#0a8f86; --accent-soft:rgba(10,143,134,.14); --accent-text:#07756e; }
[data-accent="indigo"] { --accent:#5a4fd6; --accent-soft:rgba(90,79,214,.14);  --accent-text:#4a40bd; }
[data-accent="amber"]  { --accent:#b0700a; --accent-soft:rgba(176,112,10,.14); --accent-text:#8f5b06; }
[data-accent="rose"]   { --accent:#c2385c; --accent-soft:rgba(194,56,92,.13);  --accent-text:#a32b4c; }
[data-accent="green"]  { --accent:#1f8a4c; --accent-soft:rgba(31,138,76,.14);  --accent-text:#16713d; }

[data-theme="dark"][data-accent="teal"]   { --accent:#2fc7ba; --accent-text:#5ddbd0; }
[data-theme="dark"][data-accent="indigo"] { --accent:#8b7dff; --accent-text:#a89dff; }
[data-theme="dark"][data-accent="amber"]  { --accent:#f5b642; --accent-text:#f7c86e; }
[data-theme="dark"][data-accent="rose"]   { --accent:#ff7396; --accent-text:#ff97b1; }
[data-theme="dark"][data-accent="green"]  { --accent:#3fd07c; --accent-text:#6fdf9c; }

/* High contrast */
[data-contrast="high"] {
  --line: rgba(60,60,67,.5);
  --line-strong: rgba(0,0,0,.8);
  --text-2: #24262d;
  --text-3: #43464e;
  --glass-bg: var(--surface);
  --glass-blur: 0px;
}
[data-theme="dark"][data-contrast="high"] {
  --line: rgba(235,235,245,.45);
  --line-strong: rgba(255,255,255,.85);
  --text-2: #dcdee4;
  --text-3: #b5b8c0;
}
[data-glass="off"] { --glass-bg: var(--surface); --glass-blur: 0px; --glass-border: var(--line); }

/* ========================= base ========================= */

* { box-sizing: border-box; }
/* A single long word, a wide table or an untrimmed time range must never make the whole page
   pannable sideways. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* The app never zooms: no double tap to zoom and no pinch (the owner's choice; text size is a
   setting of its own). Panning and taps work as always. */
html, body { touch-action: pan-x pan-y; }
/* The text-size setting scales the root size, so everything sized in rem (the whole type
   scale) follows it. */
html { font-size: calc(100% * var(--text-scale, 1)); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  max-width: 100%;
  /* The desktop "will not scroll with the wheel" bug lived here. `overflow-x: hidden` on BODY
     makes body itself a scroll container, and `overscroll-behavior-y: none` on that container
     then refuses to chain the leftover scroll up to the document. */
  overflow-x: visible;
}
html { overflow-x: hidden; }

/* Rubber-band suppression belongs to touch. On a desktop it is what broke
   wheel scrolling, and there is no rubber band to suppress anyway. */
@media (hover: none) and (pointer: coarse) {
  /* `contain` rather than `none`: the page still bounces internally where that
     feels right, but the bounce is never chained to the browser UI, which is
     what dragged the fixed tab bar off the bottom of the screen. */
  html, body { overscroll-behavior-y: contain; }
}

h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0; }
ul, ol { margin: 0; padding-inline-start: 1.15em; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--accent-text); text-underline-offset: 2px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--accent-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-block-start: -80px; inset-inline-start: var(--s4);
  z-index: 999; background: var(--accent); color: var(--on-accent);
  padding: var(--s3) var(--s4); border-radius: var(--r2); font-weight: 600;
  transition: inset-block-start var(--dur-2) var(--ease);
}
.skip-link:focus { inset-block-start: var(--s4); }

/* Scrollbar */
@supports selector(::-webkit-scrollbar) {
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb {
    background: var(--line-strong); border-radius: var(--rf);
    border: 3px solid transparent; background-clip: content-box;
  }
  *::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }
}

/* ========================= boot ========================= */

/* ---- the logo ----
   The bird is a mask (public/static/img/logo-mark.png, cut out of the logo's white paper), filled
   with whatever colour it stands on: ink on white, white on the night. No square around it. */
:root {
  --paper: radial-gradient(120% 60% at 50% 115%, rgba(206, 220, 255, .32), transparent 62%), #ffffff;
}
.logo-bird {
  display: inline-block; flex: none; background-color: currentColor;
  -webkit-mask: url('/static/img/logo-mark.png') center / contain no-repeat;
  mask: url('/static/img/logo-mark.png') center / contain no-repeat;
}

/* ---- splash ----
   The logo's own white paper, and on it the bird to the left of the name. Nothing counts: the app
   loads behind it and the splash fades off as soon as the first screen is painted. */
.boot {
  position: fixed; inset: 0; display: grid; place-content: center;
  justify-items: center; z-index: 50; color-scheme: light;
  background: var(--paper);
  transition: opacity 220ms var(--ease);
}
.boot[hidden] { display: none; }
.boot.is-leaving { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; padding: var(--s6); }

/* The lockup reads left to right in any language: the bird, then "Retzef". */
.boot-lockup {
  --lock: 58px;
  display: flex; align-items: center; gap: calc(var(--lock) * .18);
  direction: ltr; color: #111217;
}
.boot-bird { width: var(--lock); height: var(--lock); }
.boot-name {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(var(--lock) * .72); font-weight: 680; letter-spacing: -.035em; line-height: 1;
  color: #111217; padding-block-end: calc(var(--lock) * .04);
}
#boot .boot-bird { animation: bootglide 700ms var(--ease) both; }
#boot .boot-name { animation: bootrise 700ms var(--ease) 90ms both; }
@keyframes bootglide { from { opacity: 0; transform: translate(-10px, 8px) rotate(-6deg); } }
@keyframes bootrise { from { opacity: 0; transform: translateX(-6px); letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) {
  #boot .boot-bird, #boot .boot-name { animation: none; }
  .boot { transition: none; }
}

/* ========================= glass ========================= */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
}

/* ========================= app layout ========================= */

#app[hidden] { display: none; }

.shell {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: auto;
    align-items: start;
  }
  .shell[data-collapsed="true"] { grid-template-columns: var(--sidebar-w-collapsed) 1fr; }
}

/* ---- top bar (mobile) ---- */
.topbar {
  position: sticky; inset-block-start: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s2);
  padding: max(env(safe-area-inset-top, 0px), var(--s2)) var(--s4) var(--s2);
  min-height: var(--nav-h);
  border-block-end: 1px solid var(--line);
}
.topbar h1 { font-size: var(--fs-md); font-weight: 680; }
.topbar .spacer { flex: 1; }
/* Settings lives up here on the phone; it lights up while it is the screen on show. */
.topbar-settings[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }

@media (min-width: 900px) { .topbar { display: none; } }

/* ---- sidebar (desktop) ---- */
.sidebar {
  display: none;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s5) var(--s3);
  border-inline-end: 1px solid var(--line);
  background: var(--bg-elevated);
  position: sticky; inset-block-start: 0; height: 100dvh; overflow-y: auto;
}
@media (min-width: 900px) { .sidebar { display: flex; } }

.brand {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s3) var(--s5);
}
/* The app's mark inside the app: the bird on a small tile of the logo's white paper, framed by day
   with a hairline, an inner light and a soft shadow so the white sits naturally on the page; by
   night the same tile in graphite with the bird in white. */
.brand-mark {
  --bm: 30px;
  width: var(--bm); height: var(--bm); border-radius: 9px; flex: none; position: relative;
  background: linear-gradient(180deg, #ffffff, #f6f6f9);
  box-shadow: 0 0 0 1px rgba(20, 22, 32, .09), inset 0 1px 0 #fff, 0 3px 8px -3px rgba(20, 24, 44, .22);
  color: #111217;
}
.brand-mark::before {
  content: ''; position: absolute; inset: 15%;
  background-color: currentColor;
  -webkit-mask: url('/static/img/logo-mark.png') center / contain no-repeat;
  mask: url('/static/img/logo-mark.png') center / contain no-repeat;
}
[data-theme="dark"] .brand-mark {
  background: linear-gradient(180deg, #23252e, #17181f); color: #f4f5f8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 10px -4px rgba(0, 0, 0, .6);
}
.brand-name { font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.02em; }
[data-collapsed="true"] .brand-name,
[data-collapsed="true"] .navitem > span:not(.avatar) { display: none; }
/* Collapsed: each item is a square around its icon, so the highlight sits exactly on it. */
[data-collapsed="true"] .navitem { justify-content: center; width: 48px; min-height: 48px; padding: 0; margin-inline: auto; border-radius: 14px; }
[data-collapsed="true"] .brand { justify-content: center; padding-inline: 0; }
/* The collapse control lives in the footer, so hiding the whole footer made the action
   irreversible: there was no way to expand the sidebar again. */
[data-collapsed="true"] .side-foot .navitem { justify-content: center; }

.navitem {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); border-radius: var(--r2);
  background: none; border: 0; cursor: pointer; text-align: start;
  color: var(--text-2); font-weight: 550; min-height: var(--tap);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  width: 100%;
}
.navitem:hover { background: var(--surface-2); color: var(--text); }
.navitem[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.navitem .ic { flex: none; width: 22px; height: 22px; }

.side-foot { margin-block-start: auto; padding-block-start: var(--s4); }

/* ---- main ---- */
.main {
  min-width: 0;
  padding-block-end: calc(var(--bottom-h) + var(--s4));
}
@media (min-width: 900px) { .main { padding-block-end: var(--s6); } }

.view { padding: var(--s4); max-width: 1400px; margin-inline: auto; min-width: 0; }
@media (min-width: 900px) { .view { padding: var(--s6) var(--s7); } }
.view[hidden] { display: none; }
/* Each tab keeps a live pane; only one is visible at a time. pan-y hands horizontal gestures
   to the swipe handler. */
/* The arriving pane slides in from the side: clipped here, so that for a moment the page is never
   wider than the screen (on the iPhone that moved the whole screen and the tab bar sideways). */
.view-stack { min-width: 0; touch-action: pan-y; min-height: 70dvh; overflow-x: clip; }
/* On the phone every screen is at least as tall as the space between the bars, so moving between
   a long tab and a short one does not shrink the page: Safari shows and hides its own bars when a
   page shrinks, and that moved the whole screen and the tab bar. */
@media (max-width: 899px) { .view-stack { min-height: calc(100svh - var(--bottom-h) - 72px); } }
/* A short settle on arrival. Deliberately restrained: it reads as responsive,
   not as a transition the user has to wait out. */
.view-enter { animation: viewin 200ms var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }

/* Lateral movement between tabs. RTL: a later tab arrives from the left. */
.pane-in-fwd { animation: panefwd 240ms var(--ease); }
.pane-in-back { animation: paneback 240ms var(--ease); }
@keyframes panefwd { from { opacity: 0; transform: translateX(-22px); } }
@keyframes paneback { from { opacity: 0; transform: translateX(22px); } }

@media (prefers-reduced-motion: reduce) {
  .view-enter, .pane-in-fwd, .pane-in-back { animation: none; }
}
:root[data-motion="reduced"] .view-enter,
:root[data-motion="reduced"] .pane-in-fwd,
:root[data-motion="reduced"] .pane-in-back { animation: none; }


.view-head {
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: wrap; margin-block-end: var(--s5);
}
.view-head h2 { flex: 1; min-width: 0; }

/* ---- bottom nav (mobile) ---- */
.bottomnav {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
  /* Seven destinations (the workout tab joined). iOS itself stops at five, so the type and the
     icons are tightened rather than letting the labels collide: at 375px each tab gets 53px,
     which holds a 22px glyph and a six-letter Hebrew word. */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  padding-block-end: env(safe-area-inset-bottom, 0px);
  border-block-start: 1px solid var(--line);
  /* Mobile browsers repaint fixed elements late while the address bar collapses, which reads as
     the bar sliding. */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
@media (min-width: 900px) { .bottomnav { display: none; } }
/* While the app opens it is built hidden behind the splash (which covers it). The iPhone, and the
   app added to its home screen most of all, then left the names under the tab icons unpainted
   until a tab was touched: the bar is the one part painted from the start (still under the
   splash), the rest of the app is not, so the opening count stays smooth. */
.bottomnav { visibility: visible; }
/* Added to the home screen there is no address bar to slide, and the bar's own layer only kept
   the iPhone from painting the names under the tab icons until a tab was touched. */
@media (display-mode: standalone) {
  .bottomnav { transform: none; will-change: auto; backface-visibility: visible; }
}
:root[data-standalone] .bottomnav { transform: none; will-change: auto; backface-visibility: visible; }

.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: var(--s2) 2px; min-height: 58px;
  background: none; border: 0; cursor: pointer; color: var(--text-3);
  font-size: 9.5px; font-weight: 560; letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.tab > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .ic { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent-text); }
.tab:active .ic { transform: scale(0.9); }
.tab .ic { transition: transform var(--dur-1) var(--spring); }

/* ========================= components ========================= */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  padding: var(--s4);
  box-shadow: var(--sh-1);
  /* Nothing inside a card may render wider than the card itself. */
  min-width: 0; overflow-wrap: anywhere;
}
.card + .card { margin-block-start: var(--s3); }
.card-head { display: flex; align-items: center; gap: var(--s2); margin-block-end: var(--s3); }
.card-head h3 { flex: 1; font-size: var(--fs-base); font-weight: 640; color: var(--text-2); }
.card-title { font-size: var(--fs-lg); font-weight: 660; }

.grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.row { display: flex; align-items: center; gap: var(--s2); min-width: 0; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--s2); }
.spacer { flex: 1; }

.muted { color: var(--text-3); }
.dim { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.strong { font-weight: 650; }
.tnum { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s4);
  border-radius: var(--r2); border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: var(--fs-base); cursor: pointer;
  transition: transform var(--dur-1) var(--spring), background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { background: var(--accent-text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 var(--s3); font-size: var(--fs-sm); border-radius: var(--r1); }
.btn-lg { min-height: 52px; font-size: var(--fs-md); border-radius: var(--r3); }
.btn-block { width: 100%; }
.btn-icon { width: var(--tap); min-height: var(--tap); padding: 0; border-radius: var(--r2); }
.btn-icon.btn-sm { width: 34px; min-height: 34px; }

.fab {
  position: fixed; inset-block-end: calc(var(--bottom-h) + var(--s4));
  inset-inline-end: var(--s4); z-index: 35;
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: var(--on-accent); border: 0;
  box-shadow: var(--sh-3); cursor: pointer;
  display: grid; place-content: center;
  transition: transform var(--dur-2) var(--spring);
}
.fab:active { transform: scale(0.92); }
@media (min-width: 900px) { .fab { inset-block-end: var(--s6); inset-inline-end: var(--s6); } }

/* Segmented control */
.segmented {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--bg-sunken); border-radius: var(--r2);
  border: 1px solid var(--line);
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  padding: var(--s2) var(--s3); border-radius: calc(var(--r2) - 3px);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
  min-height: 34px; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface); color: var(--text); box-shadow: var(--sh-1);
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px var(--s3); border-radius: var(--rf);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 560; cursor: pointer;
  min-height: 32px; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; }
.chips-scroll {
  display: flex; gap: var(--s2); overflow-x: auto; padding-block-end: var(--s1);
  scrollbar-width: none; max-width: 100%;
  /* Keep a sideways flick inside the strip instead of nudging the page. */
  overscroll-behavior-x: contain;
}
.chips-scroll > * { flex: none; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--rf);
  font-size: var(--fs-xs); font-weight: 640; line-height: 1.7;
  background: var(--surface-3); color: var(--text-2);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-block-end: var(--s4); min-width: 0; }
.field > label { font-size: var(--fs-sm); font-weight: 620; color: var(--text-2); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field .err { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }

.input, .select, .textarea {
  width: 100%; min-height: var(--tap);
  padding: var(--s3); border-radius: var(--r2);
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  /* Native date and time inputs carry an intrinsic minimum width that ignores
     width:100% and pushes past a narrow card on a phone. */
  min-width: 0; max-width: 100%;
}
/* Safari renders date/time pickers as inline-flex with their own sizing. */
.input[type="date"], .input[type="time"] {
  -webkit-appearance: none; appearance: none;
  display: block; box-sizing: border-box;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-soft);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(var(--s4) - 3px) 50%, calc(var(--s4) + 2px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-start: var(--s7);
}
.input-inline { display: flex; gap: var(--s2); align-items: center; }
.input-sm { min-height: 36px; padding: var(--s2); font-size: var(--fs-sm); }
/* On a phone, Safari zooms the whole page in when a box with text smaller than 16px is focused,
   and does not zoom back out: every screen then looks big and is cut off at the side. Every box
   that takes typing is at least 16px on a touch screen, whatever the text-size setting. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select, textarea { font-size: max(16px, 1rem) !important; }
}

/* Switch: the current iOS switch. */
.switch {
  --sw-w: 64px; --sw-h: 28px; --tw: 38px; --th: 24px;
  display: inline-flex; align-items: center; gap: var(--s3); cursor: pointer; min-height: var(--tap);
  -webkit-tap-highlight-color: transparent;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: var(--sw-w); height: var(--sw-h); border-radius: var(--rf); flex: none;
  background: rgba(120, 120, 128, 0.32);
  position: relative; transition: background 260ms var(--ease);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .switch-track { background: rgba(120, 120, 128, 0.44); }
.switch-thumb {
  position: absolute; inset-block-start: calc((var(--sw-h) - var(--th)) / 2); inset-inline-start: 2px;
  width: var(--tw); height: var(--th); border-radius: var(--rf);
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.14), inset 0 0.5px 0 rgba(255, 255, 255, 1);
  transition:
    inset-inline-start 360ms var(--spring), width 280ms var(--spring), height 280ms var(--spring),
    inset-block-start 280ms var(--spring), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.switch input:checked + .switch-track { background: var(--switch-on, #34c759); }
[data-theme="dark"] .switch input:checked + .switch-track { background: #30d158; }
.switch input:checked + .switch-track .switch-thumb { inset-inline-start: calc(100% - var(--tw) - 2px); }
/* Pressed: the thumb swells into clear glass. */
.switch:active { --tw: 52px; --th: 32px; }
.switch:active .switch-thumb {
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(2px) saturate(1.8); backdrop-filter: blur(2px) saturate(1.8);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    inset 0 3px 4px rgba(255, 255, 255, 0.9),
    inset 0 -3px 5px rgba(0, 0, 0, 0.1);
}
.switch:active input:checked + .switch-track .switch-thumb { inset-inline-start: calc(100% - var(--tw) - 1px); }
.switch input:focus-visible + .switch-track { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: 0.5; }
.switch-label { flex: 1; }
/* Setting row */
/* A row wraps its control under the label when there is no room for both, which
   is what happens at a large text size on a phone. */
.setting {
  display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap;
  padding-block: var(--s3); border-block-end: 1px solid var(--line);
}
.setting:last-child { border-block-end: 0; }
.setting-text { flex: 1 1 8rem; min-width: 0; }
.setting-text .t { font-weight: 580; }
.setting-text .d { font-size: var(--fs-xs); color: var(--text-3); margin-block-start: 2px; }
.setting-ctl { flex: none; max-width: 100%; }

/* Empty state */
.empty {
  text-align: center; padding: var(--s8) var(--s4); color: var(--text-3);
}
.empty-icon { font-size: 34px; opacity: 0.35; margin-block-end: var(--s3); }
.empty h3 { color: var(--text-2); margin-block-end: var(--s2); }

/* Skeleton */
.skel {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
  border-radius: var(--r1);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Progress bar */
.bar { height: 8px; border-radius: var(--rf); background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--rf); background: var(--accent); transition: width var(--dur-3) var(--ease); }
.bar.ok > i { background: var(--ok); }
.bar.warn > i { background: var(--warn); }
.bar.danger > i { background: var(--danger); }

/* Callout */
.callout {
  display: flex; gap: var(--s3); padding: var(--s3) var(--s4);
  border-radius: var(--r2); border: 1px solid var(--line);
  background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.5;
}
.callout-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.callout-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.callout-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.callout-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.callout .ic { flex: none; margin-block-start: 2px; }

/* A callout the user can act on: opens the thing it is talking about. */
.callout-action {
  width: 100%; text-align: start; cursor: pointer; align-items: center;
  font: inherit; color: inherit; min-height: 48px;
  transition: background var(--dur-1) var(--ease);
}
.callout-action:hover { background: var(--surface-3, var(--surface-2)); }
.callout-action .ic:last-child { margin-inline-start: auto; opacity: .5; }
.callout-details { display: block; }
.callout-details > summary {
  display: flex; gap: var(--s3); align-items: center; cursor: pointer;
  list-style: none; min-height: 32px;
}
.callout-details > summary::-webkit-details-marker { display: none; }
.overdue-row {
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; min-height: 44px; padding: var(--s2) var(--s2);
  background: none; border: 0; border-radius: var(--r2);
  cursor: pointer; font: inherit; color: inherit;
}
.overdue-row:hover { background: var(--surface); }

/* Swipe to reveal a delete button. */
.swipe-row {
  position: relative; border-radius: var(--r2);
  /* Absorb the row's bottom margin so the clip box matches the row exactly. */
  margin-block-end: var(--s2);
  overflow: hidden;
}
.swipe-row > .agenda-item { margin-block-end: 0; }
.swipe-action {
  /* Physical sides, deliberately not logical properties: the buttons sit in the space the row
     uncovers as it is dragged, and that space is on a physical side of the screen. */
  position: absolute; inset-block: 0;
  width: 104px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 660; font-size: var(--fs-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  border-radius: var(--r2);
  /* Invisible and inert until a swipe is actually in progress. */
  opacity: 0; visibility: hidden; pointer-events: none;
}
/* Dragging towards the start edge (rightwards in RTL) uncovers the left. */
.swipe-start { left: 0; }
.swipe-end { right: 0; }
.swipe-action.is-danger { background: var(--danger); }
.swipe-action.is-ok { background: var(--ok, #34C759); }
.swipe-action.is-muted { background: var(--text-3); }
.swipe-action .ic { width: 18px; height: 18px; }

.swipe-row.swiping .swipe-action,
.swipe-row.open-start .swipe-start,
.swipe-row.open-end .swipe-end { opacity: 1; visibility: visible; }
.swipe-row.open-start .swipe-start,
.swipe-row.open-end .swipe-end { pointer-events: auto; }

.swipe-track {
  position: relative; background: var(--bg);
  transition: transform 220ms var(--spring);
  will-change: transform;
}
.swipe-row.swiping .swipe-track { transition: none; }
.swipe-row.open-start .swipe-track { transform: translateX(104px); }
.swipe-row.open-end .swipe-track { transform: translateX(-104px); }
@media (min-width: 900px) { .swipe-action { display: none !important; } }

/* Toast */
.toast-host {
  position: fixed; inset-block-end: calc(var(--bottom-h) + var(--s3));
  inset-inline: var(--s4); z-index: 80;
  display: flex; flex-direction: column; gap: var(--s2); align-items: center;
  pointer-events: none;
}
@media (min-width: 900px) { .toast-host { inset-block-end: var(--s6); inset-inline: auto; inset-inline-start: var(--s6); align-items: flex-start; } }

.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--r4);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--sh-3); max-width: min(480px, 92vw);
  font-size: var(--fs-sm); font-weight: 550;
  animation: toastin var(--dur-3) var(--spring);
}
/* A reminder toast leads somewhere, so it has to look like it does. */
.toast.is-tappable { cursor: pointer; }
.toast.is-tappable:active { transform: scale(.985); }
.toast.is-tappable .truncate { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: currentColor; opacity: 1; }
.toast.out { animation: toastout var(--dur-2) var(--ease) forwards; }
.toast .undo {
  background: none; border: 0; color: var(--accent-text);
  font-weight: 700; cursor: pointer; flex: none;
  /* Full 44px tap target without inflating the toast: padding absorbs the height. */
  min-height: var(--tap); min-width: var(--tap);
  padding-inline: var(--s2); margin-block: calc(var(--s3) * -1);
  display: inline-flex; align-items: center; justify-content: center;
}
@keyframes toastin { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes toastout { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* Sheet */
.sheet-host {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.sheet-host[hidden] { display: none; }
/* Nothing scrolls or bounces the page behind an open sheet, and the two drag
   handles hand their vertical drags to the sheet instead of the browser. */
.sheet-host { overscroll-behavior: none; }
.sheet-grab, .sheet-head, .sheet-backdrop { touch-action: none; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.42);
  animation: fadein var(--dur-2) var(--ease); border: 0; width: 100%; padding: 0; cursor: default;
}
.sheet {
  position: relative; width: 100%; max-width: min(640px, 100vw);
  max-height: 92dvh; display: flex; flex-direction: column;
  overflow: hidden; /* clip children to the rounded frame, no sideways drift */
  background: var(--bg-elevated);
  border-start-start-radius: var(--r5); border-start-end-radius: var(--r5);
  box-shadow: var(--sh-3);
  animation: sheetup var(--dur-3) var(--ease);
  padding-block-end: env(safe-area-inset-bottom, 0px);
}
.sheet.closing { animation: sheetdown var(--dur-2) var(--ease) forwards; }
@media (min-width: 720px) {
  .sheet-host { align-items: center; padding: var(--s5); }
  .sheet { border-radius: var(--r5); max-height: 88dvh; animation: sheetpop var(--dur-2) var(--spring); }
}
@keyframes sheetup { from { transform: translateY(100%); } }
@keyframes sheetdown { to { transform: translateY(100%); opacity: .5; } }
@keyframes sheetpop { from { transform: scale(.94); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

.sheet-grab {
  width: 38px; height: 5px; border-radius: var(--rf);
  background: var(--line-strong); margin: var(--s2) auto var(--s1); flex: none;
}
@media (min-width: 720px) { .sheet-grab { display: none; } }
.sheet-head {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); border-block-end: 1px solid var(--line); flex: none;
}
.sheet-head h2 { flex: 1; font-size: var(--fs-md); min-width: 0; }
.sheet-body {
  padding: var(--s4); overflow-y: auto; overflow-x: hidden; flex: 1;
  -webkit-overflow-scrolling: touch;
  min-width: 0; overscroll-behavior: contain;
}
/* Long Hebrew titles, URLs and pasted text must wrap instead of widening the sheet. */
.sheet-body, .sheet-head h2 { overflow-wrap: anywhere; }
.sheet-body input, .sheet-body select, .sheet-body textarea { max-width: 100%; }
/* A horizontally scrolling strip inside a sheet scrolls itself, not the sheet. */
.sheet-body .chips-scroll { max-width: 100%; }
.sheet-foot {
  padding: var(--s3) var(--s4); border-block-start: 1px solid var(--line);
  display: flex; gap: var(--s2); flex: none; background: var(--bg-elevated);
}
.sheet-foot .btn { flex: 1; }

/* Modal (desktop dialogs, command palette) */
.modal-host {
  position: fixed; inset: 0; z-index: 75;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(8vh, var(--s6)) var(--s4) var(--s4);
}
.modal-host[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 620px;
  background: var(--bg-elevated); border-radius: var(--r4);
  box-shadow: var(--sh-3); border: 1px solid var(--line);
  max-height: 80dvh; display: flex; flex-direction: column;
  animation: sheetpop var(--dur-2) var(--spring);
}

/* Privacy veil */
#privacy-veil {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0; background: var(--bg);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  transition: opacity var(--dur-2) var(--ease);
}
body[data-veiled="true"] #privacy-veil { opacity: 1; pointer-events: all; }

/* Masked private text */
.masked { filter: blur(7px); user-select: none; pointer-events: none; }

/* ========================= calendar ========================= */

.cal-wrap { position: relative; }

.timegrid {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r3);
  background: var(--surface);
  overflow: hidden;
}
.timegrid.week-7 { grid-template-columns: 46px repeat(7, minmax(0, 1fr)); }
.timegrid.week-3 { grid-template-columns: 46px repeat(3, minmax(0, 1fr)); }

.tg-gutter { position: relative; border-inline-end: 1px solid var(--line); background: var(--surface-2); }
.tg-hour {
  position: absolute; inset-inline: 0;
  font-size: 10.5px; color: var(--text-3);
  text-align: center; font-variant-numeric: tabular-nums;
  transform: translateY(-50%); pointer-events: none;
}
.tg-col { position: relative; border-inline-end: 1px solid var(--line); }
.tg-col:last-child { border-inline-end: 0; }
/* Highlight today only when several days are side by side.
   In the single-column day view the whole grid would be tinted, which is noise. */
.timegrid.week-7 .tg-col.is-today,
.timegrid.week-3 .tg-col.is-today { background: var(--accent-soft); }
.tg-line { position: absolute; inset-inline: 0; border-block-start: 1px solid var(--line); pointer-events: none; }
.tg-line.half { border-block-start-style: dashed; opacity: .5; }

.tg-now {
  position: absolute; inset-inline: 0; height: 0; z-index: 6; pointer-events: none;
  border-block-start: 2px solid var(--danger);
}
.tg-now::before {
  content: ''; position: absolute; inset-inline-start: -1px; inset-block-start: -5px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--danger);
}

.ev {
  position: absolute; inset-inline: 3px;
  border-radius: var(--r1);
  padding: 3px 6px;
  font-size: var(--fs-xs); line-height: 1.3;
  background: var(--ev-bg, var(--accent-soft));
  border-inline-start: 3px solid var(--ev-color, var(--accent));
  color: var(--text); overflow: hidden; cursor: pointer;
  box-shadow: var(--sh-1); text-align: start;
  transition: transform var(--dur-1) var(--spring), box-shadow var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
  /* Vertical panning stays with the page so the grid scrolls normally under a finger. */
  touch-action: pan-y;
  min-height: 18px;
  /* Buttons center their content by default; a calendar block must read from the top. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1px;
}
/* On touch devices a short block must still be tappable (44px minimum). */
@media (pointer: coarse) {
  .ev { min-height: 44px; }
  .ev-handle { height: 16px; }
}
.ev:hover { box-shadow: var(--sh-2); z-index: 8; }
.ev:active { transform: scale(0.985); }
.ev.dragging {
  opacity: .8; z-index: 20; box-shadow: var(--sh-3); cursor: grabbing;
  transform: scale(1.02);
  transition: none;
}
.ev.resizing { z-index: 20; box-shadow: var(--sh-3); transition: none; }
/* A background write in flight. Deliberately quiet: a hairline, not a spinner,
   so a run of quick drags is never interrupted. */
.ev.saving { box-shadow: 0 0 0 1.5px var(--accent), var(--sh-1); }
.ev.inactive { opacity: .42; border-inline-start-style: dashed; }
.ev.done { opacity: .62; }
.ev.done .ev-title { text-decoration: line-through; }
.ev.conflict { outline: 2px solid var(--danger); outline-offset: -2px; }
.ev.locked::after {
  content: '🔒'; position: absolute; inset-block-start: 2px; inset-inline-end: 4px; font-size: 9px; opacity: .6;
}
/* A long block's title stays visible while scrolling through its hours. */
.ev-title {
  font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  position: sticky; inset-block-start: 0;
}
/* Time ranges are LTR sequences; bidi would otherwise flip 18:30–21:30 to 21:30–18:30. */
.ev-time {
  font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums;
  direction: ltr; text-align: right; unicode-bidi: isolate;
}
.ev-handle {
  position: absolute; inset-inline: 0; height: 12px; cursor: ns-resize;
  touch-action: none;
}
.ev-handle.top { inset-block-start: -2px; }
.ev-handle.bottom { inset-block-end: -2px; }
.ev-handle::after {
  content: ''; position: absolute; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 3px; border-radius: 2px; background: var(--ev-color, var(--accent));
  opacity: 0; transition: opacity var(--dur-1) var(--ease);
}
.ev:hover .ev-handle::after, .ev.resizing .ev-handle::after { opacity: .55; }
.ev-handle.top::after { inset-block-start: 3px; }
.ev-handle.bottom::after { inset-block-end: 3px; }

.ev-travel {
  position: absolute; inset-inline: 3px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--line) 0 5px, transparent 5px 10px);
  border-radius: 3px; opacity: .9;
}

.tg-daynames {
  display: grid; position: sticky; inset-block-start: 0; z-index: 10;
  border-block-end: 1px solid var(--line);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.tg-dayname {
  padding: var(--s2) 4px; text-align: center; font-size: var(--fs-xs);
  border-inline-end: 1px solid var(--line); cursor: pointer;
  background: none; border-block: 0; border-inline-start: 0; color: inherit;
}
.tg-dayname:last-child { border-inline-end: 0; }
.tg-dayname .dn { color: var(--text-3); font-weight: 560; }
.tg-dayname .dd {
  font-size: var(--fs-md); font-weight: 650; font-variant-numeric: tabular-nums;
  display: grid; place-content: center; width: 30px; height: 30px; margin: 2px auto 0; border-radius: 50%;
}
.tg-dayname.is-today .dd { background: var(--accent); color: var(--on-accent); }
.tg-dayname.is-sel .dd { background: var(--accent-soft); color: var(--accent-text); }

/* Month grid */
.month {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r3);
  overflow: hidden; background: var(--surface);
}
.month-head {
  padding: var(--s2) 2px; text-align: center; font-size: var(--fs-xs);
  font-weight: 620; color: var(--text-3); background: var(--surface-2);
  border-block-end: 1px solid var(--line);
}
.month-cell {
  min-height: 74px; padding: 4px; border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line); cursor: pointer; text-align: start;
  background: none; display: flex; flex-direction: column; gap: 3px;
  transition: background var(--dur-1) var(--ease); position: relative;
}
@media (min-width: 900px) { .month-cell { min-height: 108px; padding: var(--s2); } }
.month-cell:nth-child(7n) { border-inline-end: 0; }
.month-cell:hover { background: var(--surface-2); }
.month-cell.other { opacity: .38; }
.month-cell.is-today .md { background: var(--accent); color: var(--on-accent); }
.month-cell.is-sel { background: var(--accent-soft); }
.md {
  font-size: var(--fs-sm); font-weight: 620; font-variant-numeric: tabular-nums;
  width: 25px; height: 25px; display: grid; place-content: center; border-radius: 50%; flex: none;
}
.month-dots { display: flex; flex-wrap: wrap; gap: 2.5px; }
.month-dot { width: 6px; height: 6px; border-radius: 50%; }
.month-load {
  position: absolute; inset-block-end: 0; inset-inline: 0; height: 3px;
  background: var(--accent); opacity: .5; transform-origin: right;
}
.month-pill {
  font-size: 10px; padding: 1px 4px; border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--ev-bg); color: var(--text); font-weight: 560;
}

/* Agenda list */
.agenda-day { margin-block-end: var(--s5); }
.agenda-date {
  position: sticky; inset-block-start: 0; z-index: 5;
  padding: var(--s2) 0; margin-block-end: var(--s2);
  font-size: var(--fs-sm); font-weight: 660; color: var(--text-2);
  background: var(--bg);
}
.agenda-item {
  display: flex; gap: var(--s3); align-items: stretch;
  padding: var(--s3); border-radius: var(--r2);
  background: var(--surface); border: 1px solid var(--line);
  margin-block-end: var(--s2); cursor: pointer; text-align: start; width: 100%;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--spring);
  position: relative; overflow: hidden;
}
.agenda-item:hover { background: var(--surface-2); }
.agenda-item:active { transform: scale(0.99); }
.agenda-item.inactive { opacity: .48; }
.agenda-item.done .ai-title { text-decoration: line-through; color: var(--text-3); }
.ai-stripe { width: 4px; border-radius: 2px; flex: none; }
.ai-time {
  flex: none; width: 52px; font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm); font-weight: 620; color: var(--text-2);
}
.ai-body { flex: 1; min-width: 0; }
.ai-title { font-weight: 600; }
.ai-meta { font-size: var(--fs-xs); color: var(--text-3); margin-block-start: 2px; }
.ai-actions { flex: none; display: flex; gap: 4px; align-items: center; }

/* Timeline (Today) */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: var(--s3); position: relative; padding-block-end: var(--s3); }
.tl-rail { flex: none; width: 46px; text-align: start; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; padding-block-start: 2px; }
.tl-dot {
  position: absolute; inset-inline-start: 50px; inset-block-start: 6px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--ev-color, var(--accent));
  box-shadow: 0 0 0 3px var(--bg); z-index: 2;
}
.tl-line { position: absolute; inset-inline-start: 54px; inset-block: 12px 0; width: 1px; background: var(--line); }
.tl-body { flex: 1; min-width: 0; padding-inline-start: var(--s4); }
.tl-item.past { opacity: .5; }
.tl-item.current .tl-dot { background: var(--danger); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 7px var(--danger-soft); } }

/* Stat */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-v { font-size: var(--fs-xl); font-weight: 680; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat-l { font-size: var(--fs-xs); color: var(--text-3); font-weight: 560; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: var(--s3); }

/* Bars chart */
.hbars { display: flex; flex-direction: column; gap: var(--s2); }
.hbar { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar-track { height: 18px; border-radius: var(--r1); background: var(--surface-3); overflow: hidden; }
.hbar-fill { height: 100%; border-radius: var(--r1); transition: width var(--dur-3) var(--ease); }
.hbar-v { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; min-width: 52px; text-align: end; }

/* Line/area chart */
.spark { width: 100%; height: 110px; display: block; }

/* Tree (curriculum) */
.tree-node { border-block-end: 1px solid var(--line); }
.tree-node:last-child { border-block-end: 0; }
.tree-row {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) 0; cursor: pointer; width: 100%; text-align: start;
  background: none; border: 0; color: inherit; min-height: var(--tap);
}
.tree-caret { flex: none; width: 18px; transition: transform var(--dur-2) var(--ease); color: var(--text-3); }
.tree-node[data-open="true"] > .tree-row .tree-caret { transform: rotate(-90deg); }
.tree-children { padding-inline-start: var(--s5); display: none; }
.tree-node[data-open="true"] > .tree-children { display: block; }

/* Disclosure */
details.disc { border: 1px solid var(--line); border-radius: var(--r2); margin-block-end: var(--s2); overflow: hidden; }
details.disc > summary {
  padding: var(--s3); cursor: pointer; font-weight: 600; font-size: var(--fs-sm);
  list-style: none; display: flex; align-items: center; gap: var(--s2); min-height: var(--tap);
  background: var(--surface-2);
}
details.disc > summary::-webkit-details-marker { display: none; }
/* The arrow of every foldable row: a clear chevron in a soft round chip, turning when it opens. */
details.disc > summary::after, details.gx-plates-wrap > summary::after, details.shop-pick > summary::after {
  content: ''; flex: none; width: 30px; height: 30px; margin-inline-start: auto; border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23476fe8' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 18px;
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
details.gx-plates-wrap > summary, details.shop-pick > summary { display: flex; align-items: center; gap: 8px; }
details.disc[open] > summary::after, details.gx-plates-wrap[open] > summary::after, details.shop-pick[open] > summary::after { transform: rotate(180deg); background-color: color-mix(in srgb, var(--accent) 22%, transparent); }
details.disc > summary:hover::after, details.gx-plates-wrap > summary:hover::after, details.shop-pick > summary:hover::after { background-color: color-mix(in srgb, var(--accent) 20%, transparent); }
details.disc > .disc-body { padding: var(--s3); font-size: var(--fs-sm); line-height: 1.6; white-space: pre-wrap; }

/* Table */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th, .tbl td { padding: var(--s2) var(--s3); text-align: start; border-block-end: 1px solid var(--line); }
.tbl th { font-weight: 620; color: var(--text-3); font-size: var(--fs-xs); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; border-radius: var(--r2); border: 1px solid var(--line); }

/* Command palette */
.cmd-input {
  border: 0; border-block-end: 1px solid var(--line); border-radius: 0;
  padding: var(--s4); font-size: var(--fs-md); background: transparent;
}
.cmd-input:focus { box-shadow: none; border-color: var(--line); }
.cmd-list { overflow-y: auto; padding: var(--s2); }
.cmd-item {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  padding: var(--s3); border-radius: var(--r1); border: 0; background: none;
  cursor: pointer; text-align: start; color: inherit; min-height: 44px;
}
.cmd-item:hover, .cmd-item[data-active="true"] { background: var(--accent-soft); }
.cmd-item kbd {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-3); font-family: inherit; margin-inline-start: auto;
}

/* Running timer pill */
.timer-pill {
  position: fixed; inset-block-start: calc(env(safe-area-inset-top, 0px) + var(--s2));
  inset-inline-start: 50%; transform: translateX(50%);
  z-index: 45; display: flex; align-items: center; gap: var(--s2);
  padding: 6px var(--s3); border-radius: var(--rf);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--sh-2); font-size: var(--fs-xs); font-weight: 620; cursor: pointer;
  max-width: 78vw;
}
@media (min-width: 900px) { .timer-pill { inset-block-start: var(--s4); } }
.timer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 2s infinite; flex: none; }

/* Onboarding / auth */
.centered {
  min-height: 100dvh; display: grid; place-items: center;
  padding: var(--s5) var(--s4);
  padding-block-start: max(var(--s5), env(safe-area-inset-top, 0px));
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r4);
  padding: var(--s6); box-shadow: var(--sh-2);
}
.auth-mark {
  width: 52px; height: 52px; border-radius: 16px; margin-inline: auto;
  background: linear-gradient(160deg, var(--accent), var(--accent-text));
  margin-block-end: var(--s4);
}
.recovery-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--fs-md); font-weight: 650; letter-spacing: 0.06em;
  padding: var(--s4); border-radius: var(--r2); text-align: center;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  word-break: break-all; direction: ltr;
}

.steps { display: flex; gap: 5px; margin-block-end: var(--s5); }
.step-dot { flex: 1; height: 4px; border-radius: var(--rf); background: var(--surface-3); transition: background var(--dur-2) var(--ease); }
.step-dot.done { background: var(--accent); }
.step-dot.now { background: var(--accent); opacity: .55; }

/* Icons */
.ic { display: inline-block; vertical-align: middle; flex: none; }
svg.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* Density: the whole spacing scale moves, so cards, rows and gaps on every screen follow, and
   the calendar's hour with them. */
:root[data-density="compact"] {
  --hour-h: 44px;
  --s1: 3px; --s2: 6px; --s3: 8px; --s4: 12px; --s5: 14px; --s6: 18px; --s7: 24px; --s8: 30px;
}
:root[data-density="spacious"] {
  --hour-h: 80px;
  --s1: 5px; --s2: 10px; --s3: 16px; --s4: 22px; --s5: 26px; --s6: 32px; --s7: 40px; --s8: 50px;
}

/* Print */
@media print {
  .bottomnav, .sidebar, .topbar, .fab, .toast-host { display: none !important; }
  body { background: #fff; }
}

/* ========================= hero (Today) =========================
   One composed surface instead of a stack of boxes. The rank sigil is the
   focal point, the ring reads as progress through the current rank, and the
   day's figures sit underneath as plain numbers.
   Restraint is deliberate: the motion is slow and ambient, not a game HUD. */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r5);
  padding: var(--s5) var(--s4) var(--s4);
  margin-block-end: var(--s4);
  color: #EDF2FF;
  background: radial-gradient(120% 90% at 18% 0%, #1D2C4E 0%, #101A30 46%, #080D18 100%);
  box-shadow: 0 18px 44px rgba(6, 12, 28, .34), inset 0 1px 0 rgba(255,255,255,.06);
  isolation: isolate;
}

/* A slow drift of light behind the mark. Ambient, never attention-seeking. */
.hero-aura {
  position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(42% 38% at 72% 26%, rgba(96,165,255,.30), transparent 70%),
    radial-gradient(38% 34% at 24% 72%, rgba(255,150,70,.18), transparent 72%);
  filter: blur(6px);
  animation: heroDrift 26s ease-in-out infinite alternate;
  z-index: 0; pointer-events: none;
}
@keyframes heroDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

.hero > *:not(.hero-aura) { position: relative; z-index: 1; }

.hero-top { display: flex; align-items: flex-start; gap: var(--s3); flex-wrap: nowrap; }
.hero-greet { font-size: var(--fs-xl); font-weight: 680; letter-spacing: -.02em; color: #fff; }
.hero-date { font-size: var(--fs-sm); color: rgba(237,242,255,.62); margin-block-start: 2px; }

.btn-glass {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  flex: none;
}
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---- rank ---- */
.hero-rank {
  display: flex; align-items: center; gap: var(--s4);
  margin-block-start: var(--s4); flex-wrap: nowrap;
}
.rank-btn { background: none; border: 0; padding: 0; cursor: pointer; flex: none; border-radius: 50%; }
.rank-disc { position: relative; width: 124px; height: 124px; }
.rank-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rr-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 5; }
.rr-fill {
  fill: none; stroke: #7FC0FF; stroke-width: 5; stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--ease);
  filter: drop-shadow(0 0 6px rgba(127,192,255,.55));
}
.rank-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #E8F2FF;
  filter: drop-shadow(0 0 16px rgba(140,195,255,.6));
  animation: markBreathe 7s var(--ease) infinite;
}
@keyframes markBreathe { 0%,100% { opacity: .92; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }

/* Gilding. */
.sigil path,
.sigil circle,
.sigil ellipse {
  animation: gild 9s var(--ease) infinite;
}
/* Each stroke starts a fraction later than the one before it, so the gold
   travels along the figure instead of flipping the whole thing at once. */
.sigil > *:nth-child(1) { animation-delay: 0s; }
.sigil > *:nth-child(2) { animation-delay: .10s; }
.sigil > *:nth-child(3) { animation-delay: .20s; }
.sigil > *:nth-child(4) { animation-delay: .30s; }
.sigil > *:nth-child(5) { animation-delay: .40s; }
.sigil > *:nth-child(6) { animation-delay: .50s; }
.sigil > *:nth-child(7) { animation-delay: .60s; }
.sigil > *:nth-child(8) { animation-delay: .70s; }

@keyframes gild {
  0%,  72%  { stroke: currentColor; }
  78%       { stroke: #F3C871; }
  82%       { stroke: #FFE9B0; }
  88%       { stroke: #F0BE63; }
  96%, 100% { stroke: currentColor; }
}
/* Filled details (the marker dots) are gilded through their fill instead. */
.sigil [fill="currentColor"] { animation: gildFill 9s var(--ease) infinite; }
@keyframes gildFill {
  0%,  72%  { fill: currentColor; }
  80%       { fill: #FFE9B0; }
  90%, 100% { fill: currentColor; }
}
/* A soft warm bloom under the mark at the same moment, so the gilding has
   depth rather than looking like a flat recolour. */
.rank-mark {
  animation: markBreathe 7s var(--ease) infinite, markWarm 9s var(--ease) infinite;
}
@keyframes markWarm {
  0%,  72%, 100% { filter: drop-shadow(0 0 16px rgba(140,195,255,.60)); }
  82%            { filter: drop-shadow(0 0 22px rgba(255, 205, 120, .75)); }
}
/* The ring catches the same warmth a beat later, so the two read as one event. */
.rr-fill { animation: ringGlint 9s var(--ease) infinite; }
@keyframes ringGlint {
  0%, 74%, 100% { stroke: #7FC0FF; }
  84%           { stroke: #F3C871; }
}

/* The 3D mark. */
.rank3d { display: block; touch-action: pan-y; cursor: grab; max-width: 100%; }
.rank3d.is-dragging { cursor: grabbing; }
.rank-mark.is-3d { animation: none; filter: none; }
.rank-mark.is-3d .rank3d { aspect-ratio: 1; }
.rank-btn:focus-visible { outline: 2px solid var(--accent, #7FC0FF); outline-offset: 3px; }

/* Each tier shifts the palette, so advancing is felt as well as read. */
.rank-disc[data-tier="מחזור"] .rank-mark { color: #D8ECFF; }
.rank-disc[data-tier="מחזור"] .rr-fill { stroke: #8ECBFF; }
.rank-disc[data-tier="מבנה"] .rank-mark { color: #E4DBFF; }
.rank-disc[data-tier="מבנה"] .rr-fill { stroke: #B79BFF; filter: drop-shadow(0 0 7px rgba(183,155,255,.6)); }
.rank-disc[data-tier="אור"] .rank-mark { color: #FFE6BC; }
.rank-disc[data-tier="אור"] .rr-fill { stroke: #FFC46B; filter: drop-shadow(0 0 8px rgba(255,196,107,.65)); }
.rank-disc[data-tier="שלמות"] .rank-mark { color: #FFF3D8; }
.rank-disc[data-tier="שלמות"] .rr-fill { stroke: #FFE08A; filter: drop-shadow(0 0 12px rgba(255,224,138,.8)); }

.rank-meta { min-width: 0; flex: 1; }
.rank-tier { font-size: var(--fs-xs); letter-spacing: .14em; color: rgba(237,242,255,.55); font-weight: 620; }
.rank-name {
  font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: #fff;
  line-height: 1.1; margin-block: 2px 4px;
}
.rank-sub { font-size: var(--fs-sm); color: rgba(237,242,255,.78); }
/* The running total. Quieter than the rank name, because the name is the
   achievement and the number is only the evidence for it. */
.rank-points { font-size: 11.5px; color: rgba(237,242,255,.58); margin-block-start: 1px; }
.rank-trend { font-size: var(--fs-xs); color: rgba(237,242,255,.55); margin-block-start: 6px; }

/* ---- 14-day rhythm ---- */
.rank-spark { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin-block-start: var(--s4); }
.rank-spark i { flex: 1; border-radius: 3px; display: block; background: rgba(255,255,255,.1); height: 100%; }
.rank-spark .rs-on {
  height: var(--h, 40%);
  background: linear-gradient(180deg, rgba(160,205,255,.95), rgba(96,150,255,.6));
  align-self: flex-end;
}
.rank-spark .rs-empty { height: 5px; align-self: flex-end; background: rgba(255,255,255,.09); }

/* ---- day figures ---- */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  gap: var(--s3); margin-block-start: var(--s4);
  padding-block-start: var(--s4); border-block-start: 1px solid rgba(255,255,255,.1);
}
.hstat-v { font-size: var(--fs-lg); font-weight: 680; color: #fff; }
.hstat-l { font-size: var(--fs-xs); color: rgba(237,242,255,.6); margin-block-start: 1px; }
.hstat-s { font-size: 10px; color: rgba(237,242,255,.42); margin-block-start: 1px; }
.hero-note { font-size: var(--fs-xs); color: rgba(237,242,255,.58); margin-block-start: var(--s3); }

@media (max-width: 420px) {
  .rank-disc { width: 104px; height: 104px; }
  .rank-name { font-size: 26px; }
}

/* ---- ladder sheet ---- */
.ladder { display: flex; flex-direction: column; gap: 2px; }
.ladder-tier {
  font-size: var(--fs-xs); font-weight: 680; color: var(--text-3);
  letter-spacing: .1em; margin-block: var(--s3) var(--s1);
}
.ladder-row {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s2) var(--s2); border-radius: var(--r2); opacity: .42;
}
.ladder-row.is-reached { opacity: 1; }
.ladder-row.is-current { background: var(--accent-soft); opacity: 1; }
/* The same deep space as the hero, so the metals read the same way here in the light and dark
   themes. */
.ladder-mark {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  color: #cfe3ff; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #1d2f52 0%, #0b1222 78%);
}
.ladder-row.is-current .ladder-mark { box-shadow: 0 0 0 2px var(--accent); }
.ladder-name { font-weight: 620; }

@media (prefers-reduced-motion: reduce) {
  .hero-aura, .rank-mark { animation: none; }
  .rr-fill { transition: none; }
}
:root[data-motion="reduced"] .hero-aura,
:root[data-motion="reduced"] .rank-mark { animation: none; }
.danger-text { color: var(--danger); }


/* ---- tab bar: glass pill + swipe ----
   The pill sits behind the active tab and follows the finger while the bar
   is being swiped, the way the tab strip behaves in WhatsApp and Instagram. */
.bottomnav { position: fixed; }
/* The active-tab capsule, as iOS 26 draws it: a soft grey platter at rest, which lifts into a
   clear glass lens while the finger drags it. */
.tab-pill {
  position: absolute;
  /* Centred by inset, not by a transform: the transform is owned by the horizontal position, and
     sharing one property made the capsule land a whole bar-width away. */
  inset-block: calc((var(--bottom-h) - 44px) / 2 - env(safe-area-inset-bottom, 0px) / 2) auto;
  height: 44px;
  width: 0;
  left: 0;
  border-radius: 22px;
  /* Moved by springs in script, like every capsule. */
  pointer-events: none;
  z-index: 2;   /* above the tabs, so their content is read THROUGH the lens */
  will-change: transform, width;
}
/* The platter. */
.tab-pill::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(120,120,128,.16);
  -webkit-backdrop-filter: saturate(160%);
  backdrop-filter: saturate(160%);
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 240ms var(--spring), background-color 200ms var(--ease),
              border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
/* A very slight edge refraction on the lens: brighter where light would enter
   and leave the curve, clear across the middle. Hidden at rest. */
.tab-pill::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.22) 0%,
    rgba(255,255,255,.05) 22%,
    rgba(255,255,255,0) 45%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,.10) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease), transform 240ms var(--spring);
}
/* At night the platter is a light grey on the dark bar, as on iOS. */
:root[data-theme="dark"] .tab-pill::after { background: rgba(255,255,255,.13); }

/* While dragging: the platter lifts into a clear magnifying lens, a little
   larger than the tab, with a bright rim and highlights and almost no fill,
   so what it passes over reads through it. */
/* Touched on the capsule: it answers at once, before any movement, and without a bounce (a
   bounce belongs only to a capsule that was flicked). */
.bottomnav.pressing .tab-pill::after { transform: scale(1.06); transition-duration: 120ms; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.bottomnav.swiping .tab-pill::after,
.bottomnav.swiping .tab-pill::before { transform: scale(1.14); }
.bottomnav.swiping .tab-pill::before { opacity: 1; }
.bottomnav.swiping .tab-pill::after {
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: saturate(170%) brightness(1.06);
  backdrop-filter: saturate(170%) brightness(1.06);
  border-color: rgba(255,255,255,.7);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -1px 1px rgba(255,255,255,.35),
    0 4px 14px rgba(0,0,0,.12);
}
:root[data-theme="dark"] .bottomnav.swiping .tab-pill::after {
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: saturate(160%) brightness(1.18);
  backdrop-filter: saturate(160%) brightness(1.18);
  border-color: rgba(255,255,255,.32);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 1px rgba(255,255,255,.12),
    0 4px 14px rgba(0,0,0,.35);
}
/* With glass effects off there is no lens: the platter stays and the drag
   shows an outline in the accent colour instead. */
:root[data-glass="off"] .tab-pill::after,
:root[data-glass="off"] .bottomnav.swiping .tab-pill::after {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-glass="off"] .bottomnav.swiping .tab-pill::after { border-color: var(--accent); box-shadow: none; }
:root[data-glass="off"] .tab-pill::before { display: none; }

/* The tabs sit under the lens so their icon and label show through it. */
.bottomnav .tab { position: relative; z-index: 1; }

/* ---- the same capsule on every other row of tabs ----
   Chip strips (settings sections, insights, goals, tasks, agenda filters) and
   segmented controls (display mode, calendar view, and the rest). The capsule
   (ui.js glassTabs) takes over the chosen button's highlight and slides it;
   dragging it turns it into the clear lens of the tab bar. */
.glass-tabs { position: relative; }
.glass-fixed { touch-action: pan-y; }                       /* the whole row can be dragged */
.chips-scroll.glass-tabs > [aria-pressed="true"] { touch-action: pan-y; }   /* in a scrolling strip, from the chosen chip */
.glass-pill {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: none; z-index: 2;
  border-radius: var(--rf);
  /* Its place and width are driven by springs in script (they start from where it is and carry
     the finger's speed); only the look changes by transition. */
  will-change: transform, width;
}
.glass-pill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid transparent;
  transition: transform 240ms var(--spring), background-color 200ms var(--ease),
              border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
/* Chips: the chosen chip's tint and outline now travel with the capsule, a
   translucent wash so its label reads through. */
.chips-scroll.glass-tabs > .chip[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line); color: var(--accent-text); }
.chips-scroll .glass-pill::after {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}
/* Segmented controls: the capsule is the raised thumb, under the labels. */
/* No fade of the button's own background when the capsule takes over its highlight. */
.segmented.glass-tabs > button { position: relative; z-index: 1; transition: color var(--dur-1) var(--ease); }
.segmented.glass-tabs > button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.segmented .glass-pill { z-index: 0; border-radius: calc(var(--r2) - 3px); }
.segmented .glass-pill::after { background: var(--surface); box-shadow: var(--sh-1); }

/* Touched: the capsule answers at once, a little larger, before any movement. */
.glass-press .glass-pill::after { transform: scale(1.06); transition-duration: 120ms; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* The lens arrives as a material, not a fade: its size, its clearness and its edge change
   together, and leave together the same way. */
.glass-pill::after, .tab-pill::after {
  transition-property: transform, background-color, border-color, box-shadow, -webkit-backdrop-filter, backdrop-filter;
}

/* Less transparency asked for on the device: the capsules are solid, with no see-through glass. */
@media (prefers-reduced-transparency: reduce) {
  .tab-pill::after, .glass-drag .glass-pill::after, .segmented.glass-drag .glass-pill::after,
  .chips-scroll.glass-drag .glass-pill::after, .bottomnav.swiping .tab-pill::after {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); border-color: var(--line-strong);
  }
  .tab-pill::before { display: none; }
}
/* More contrast asked for: a clear outline on every capsule. */
@media (prefers-contrast: more) {
  .tab-pill::after, .glass-pill::after { border-color: var(--text); }
}

/* The label under the finger while dragging. */
.glass-tabs > .is-preview { color: var(--accent-text); }

/* While dragging: a clear lens above the labels, a little larger than them. */
.glass-drag .glass-pill { z-index: 2; }
.glass-drag .glass-pill::after,
.segmented.glass-drag .glass-pill::after,
.chips-scroll.glass-drag .glass-pill::after {
  transform: scale(1.1);
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: saturate(170%) brightness(1.06);
  backdrop-filter: saturate(170%) brightness(1.06);
  border-color: rgba(255,255,255,.75);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -1px 1px rgba(255,255,255,.35),
    0 4px 14px rgba(0,0,0,.14);
}
:root[data-theme="dark"] .glass-drag .glass-pill::after,
:root[data-theme="dark"] .segmented.glass-drag .glass-pill::after,
:root[data-theme="dark"] .chips-scroll.glass-drag .glass-pill::after {
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: saturate(160%) brightness(1.18);
  backdrop-filter: saturate(160%) brightness(1.18);
  border-color: rgba(255,255,255,.34);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 1px rgba(255,255,255,.12),
    0 4px 14px rgba(0,0,0,.35);
}
:root[data-glass="off"] .glass-drag .glass-pill::after {
  -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--accent); box-shadow: none;
}
@media (prefers-reduced-motion: reduce) { .glass-pill, .glass-pill::after { transition: none; } }
:root[data-motion="reduced"] .glass-pill,
:root[data-motion="reduced"] .glass-pill::after { transition: none; }

/* While the finger is dragging, the lens must track it exactly. */
.bottomnav.swiping .tab-pill { transition: none; }
.bottomnav.swiping .tab { transition: color 140ms var(--ease); }
/* The tab currently under the lens, so the destination is unmistakable
   before the finger lifts. */
.tab.tab-preview { color: var(--accent-text); font-weight: 640; }
.tab.tab-preview .ic { transform: scale(1.06); }

@media (min-width: 900px) { .tab-pill { display: none; } }
@media (prefers-reduced-motion: reduce) { .tab-pill { transition: none; } }

/* The page content follows the finger during a swipe between tabs. */
.view-stack.swiping { overflow-x: hidden; }
/* Inner tabs (settings, insights): the same clipping while their content follows the finger. */
.tab-swiping { overflow-x: hidden; overflow-x: clip; }
.view-stack.swiping .view { will-change: transform; }

/* ---- calendar header ----
   The date has a line of its own above the controls. */
.cal-headline { width: 100%; margin-block-end: var(--s3); }
.cal-title {
  font-size: var(--fs-lg); font-weight: 660; letter-spacing: -.015em;
  overflow-wrap: anywhere; min-width: 0;
}
.cal-controls {
  display: flex; align-items: center; gap: var(--s2);
  flex-wrap: wrap; width: 100%; row-gap: var(--s2);
}
/* The view switcher needs a whole row of its own on a phone: squeezed beside
   the navigation it overflowed and sat on top of the neighbouring button. */
.cal-controls .segmented {
  order: -1; flex: 1 0 100%; min-width: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.cal-controls .segmented button { min-width: 0; }
@media (min-width: 620px) {
  .cal-controls .segmented { order: 0; flex: 0 1 auto; }
}

/* ---- work shifts as rows ----
   Replaces a five-column table that could not fit a phone. */
.shift-list { display: flex; flex-direction: column; gap: 2px; }
.shift-row {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%; min-height: 56px; padding: var(--s2) var(--s2);
  background: none; border: 0; border-block-end: 1px solid var(--line);
  border-radius: var(--r2); cursor: pointer; font: inherit; color: inherit;
  text-align: start;
}
.shift-row:last-child { border-block-end: 0; }
.shift-row:hover { background: var(--surface-2); }
.sr-main { flex: 1; min-width: 0; }
.sr-date { font-weight: 620; }
.sr-times {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--text-3); margin-block-start: 2px;
}
.sr-actual { color: var(--text-2); }
.sr-side { flex: none; display: flex; align-items: center; gap: var(--s2); }
.sr-side .ic { opacity: .4; }

/* ---- bottom nav: hold it still ----
   A fixed element still repaints late on mobile while the address bar
   collapses, which reads as the bar sliding. Pinning it to its own
   compositor layer and giving it an explicit height stops the drift. */
.bottomnav {
  /* The transform is written by installViewportPin() in main.js, which keeps the bar against the
     VISUAL viewport. */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout paint;
  height: var(--bottom-h);
  /* An opaque base under the glass. */
  background: var(--bg);
  isolation: isolate;
}
/* The translucent layer sits on top of that base rather than replacing it. */
.bottomnav.glass::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  pointer-events: none;
  z-index: 0;
}

.goal-weight { flex: none; }
/* What counts for the rank: name and switch on one line, always in the same place; the way of
   measuring and the percentage on a line of their own, under the name (past the colour dot). */
.goal-row { flex-wrap: wrap; }
.goal-row > .setting-text { flex: 1 1 0; }
.goal-row > .switch { flex: none; }
.goal-row > .goal-weight { flex-basis: 100%; display: flex; align-items: center; gap: var(--s2); padding-inline-start: calc(9px + var(--s3)); }
.goal-row > .goal-weight[hidden] { display: none; }
.goal-weight .select { min-height: 36px; padding: var(--s2); font-size: var(--fs-sm); width: auto; }
.goal-weight[hidden] { display: none; }

/* ========================= objectives =========================
   Long-range goals. The visual job here is different from a task list: the
   question is not "what is on today" but "how far along am I", so every row
   leads with a proportion rather than with a checkbox. */

.obj-total {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-block-end: 14px;
  border: 1px solid var(--line); border-radius: var(--r3);
  background: var(--surface-2);
}
.obj-total-v { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; color: var(--accent-text); }
.obj-total-l { font-size: 12px; color: var(--text-3); }

.obj-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r3);
  background: var(--surface); box-shadow: var(--sh-1);
  padding: 14px; margin-block-end: 12px;
  /* (no coloured line on the leading edge: the owner, 2026-11-28; the colour stays in the ring) */
  min-width: 0;
}
.obj-card.is-done { opacity: .72; }
.obj-card.is-pinned { box-shadow: var(--sh-2); }

.obj-head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: start;
  color: inherit; min-width: 0;
}

.obj-ring { position: relative; flex: 0 0 auto; width: 58px; height: 58px; }
.obj-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.obj-ring .or-track { fill: none; stroke: var(--line); stroke-width: 5; }
.obj-ring .or-fill {
  fill: none; stroke: var(--obj, var(--accent)); stroke-width: 5; stroke-linecap: round;
  transition: stroke-dashoffset var(--dur-3) var(--ease);
}
.obj-ring-v {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 650; letter-spacing: -0.02em;
}

.obj-meta { flex: 1; min-width: 0; }
.obj-title {
  margin: 0 0 2px; font-size: 15px; font-weight: 620; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.obj-value { font-size: 12.5px; color: var(--text-2); }
.obj-pace { font-size: 11.5px; color: var(--text-3); margin-block-start: 2px; }
/* Behind schedule is stated, not shouted: amber, never red, and never bold. */
.obj-pace.is-warn { color: var(--warn-text, #B7791F); }

.obj-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 12px; }
.obj-step {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 4px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); font-size: 11.5px; font-weight: 540;
  -webkit-tap-highlight-color: transparent;
}
.obj-step > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-step.is-done {
  background: color-mix(in srgb, var(--obj, var(--accent)) 14%, transparent);
  border-color: color-mix(in srgb, var(--obj, var(--accent)) 38%, transparent);
  color: var(--accent-text);
}
.obj-step.is-more { cursor: default; opacity: .7; }
.obj-actions { margin-block-start: 12px; }
.obj-done-flag {
  display: flex; align-items: center; gap: 6px; margin-block-start: 10px;
  font-size: 12px; color: var(--ok-text, var(--accent-text));
}

.obj-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.obj-bar-fill {
  height: 100%; border-radius: 3px; background: var(--obj, var(--accent));
  transition: width var(--dur-3) var(--ease);
}

/* ---- detail sheet ---- */
.obj-detail-head { display: flex; align-items: center; gap: 14px; margin-block-end: 12px; }
.obj-detail-pct { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-text); }
.obj-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-start: 12px;
  padding: 10px 12px; border-radius: var(--r2); background: var(--surface-2);
  font-size: 15px; font-weight: 600;
}
.sheet-sub { margin: 20px 0 8px; font-size: 13px; font-weight: 620; color: var(--text-2); }

.obj-ms-list { display: flex; flex-direction: column; gap: 2px; }
.obj-ms { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-block-end: 1px solid var(--line); }
.obj-ms:last-child { border-block-end: 0; }
.obj-ms-check {
  flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--text-3);
}
.obj-ms.is-done .obj-ms-check { color: var(--accent-text); }
.obj-ms.is-done .obj-ms-t { text-decoration: line-through; color: var(--text-3); }
.obj-ms-t { font-size: 14px; font-weight: 550; }
.obj-ms-add { display: grid; grid-template-columns: 1fr 120px auto; gap: 6px; margin-block-start: 10px; }
@media (max-width: 480px) { .obj-ms-add { grid-template-columns: 1fr; } }

.obj-entry {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 7px 0; border-block-end: 1px solid var(--line);
}
.obj-newsteps { margin-block-end: 8px; }

/* ---- strip on the מסלול screen ---- */
.obj-strip .obj-mini {
  display: block; width: 100%; text-align: start; background: none; border: 0;
  padding: 8px 0; cursor: pointer; color: inherit;
}
.obj-mini-top { display: flex; justify-content: space-between; gap: 10px; margin-block-end: 5px; }
.obj-mini-t { font-size: 13.5px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-mini-p { font-size: 12.5px; color: var(--text-3); flex: 0 0 auto; }
/* Each goal on the strip with its own "+": an update without leaving the screen. */
.obj-mini-row { display: flex; align-items: center; gap: 10px; }
.obj-mini-row .obj-mini { flex: 1; min-width: 0; }
.obj-mini-add {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-text); cursor: pointer;
}
.obj-mini-add .ic { width: 16px; height: 16px; }
/* Quick amounts in the progress sheet. */
.obj-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 2px 12px; }
/* The steps of a goal, ticked on a tap. */
.obj-tick {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; font: inherit; color: inherit;
  padding: 10px 12px; margin-block-end: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.obj-tick-box {
  flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong);
  display: grid; place-items: center; color: transparent;
}
.obj-tick-box .ic { width: 14px; height: 14px; }
.obj-tick.is-done .obj-tick-box { background: var(--ok); border-color: var(--ok); color: #fff; }
.obj-tick.is-done .obj-tick-t > span:first-child { text-decoration: line-through; color: var(--text-3); }
.obj-tick-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---- parsed syllabus preview ----
   A tree that has to be scannable at a glance, because its whole job is to
   let a misread structure be spotted before it is written to the database. */
.parse-tree { margin-block-start: 10px; }
.parse-node {
  display: flex; align-items: baseline; gap: 8px;
  padding-block: 3px; min-width: 0;
}
.parse-node .small { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.parse-dot {
  flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .55; transform: translateY(-2px);
}

.btn[hidden] { display: none; }

/* A step of a goal, coloured by its level. The colours come from the settings
   and adapt to day and night by themselves (see stepLevelColors). */
.obj-lvl {
  border-radius: var(--r1); padding-block: 4px; padding-inline: 8px 6px; margin-block-end: 4px;
  border-inline-start: 4px solid var(--lvl-line, var(--line)); background: var(--lvl-fill, transparent);
}
.obj-lvl[data-lvl="1"] { --lvl-line: var(--lvl-1-line); --lvl-fill: var(--lvl-1-fill); }
.obj-lvl[data-lvl="2"] { --lvl-line: var(--lvl-2-line); --lvl-fill: var(--lvl-2-fill); }
.obj-lvl[data-lvl="3"] { --lvl-line: var(--lvl-3-line); --lvl-fill: var(--lvl-3-fill); }
.obj-lvl[data-lvl="4"] { --lvl-line: var(--lvl-4-line); --lvl-fill: var(--lvl-4-fill); }
.obj-lvl[data-lvl="5"] { --lvl-line: var(--lvl-5-line); --lvl-fill: var(--lvl-5-fill); }
.obj-lvl[data-lvl="6"] { --lvl-line: var(--lvl-6-line); --lvl-fill: var(--lvl-6-fill); }

/* ---- editable course draft (manual entry, text/JSON import) ---- */
.draft-course { margin-block-start: var(--s3); }
.draft-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: var(--s2); }
.draft-tree { margin-block-start: var(--s3); }
.draft-topic { border-block-end: 1px solid var(--line); padding-block: 6px; }
.draft-topic:last-child { border-block-end: 0; }
.draft-topic-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.draft-topic-main .input { min-width: 0; }
.draft-title { flex: 1 1 auto; }
.draft-hours { flex: 0 0 64px; width: 64px; text-align: center; }
.draft-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 6px; }
.draft-more[hidden] { display: none; }
.draft-more .input { width: 96px; }
.draft-dup { outline: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--r1); }
.draft-flag {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--warn);
  border-radius: var(--r1); padding: var(--s2) var(--s3); margin-block-start: var(--s2);
  background: var(--surface-2);
}
.draft-flag .row { flex-wrap: wrap; gap: 6px; margin-block-start: 6px; }

/* ============================================================
   Workouts (views/gym.js)
   Built for one hand between sets: big targets, the tick on the thumb's
   side, numbers in tabular figures, and nothing that moves under a finger.
   ============================================================ */
body[data-view="gym"] .fab { display: none; }
.gym-body { padding-block-end: 140px; }

.gx-hero {
  border-radius: var(--r5); padding: var(--s5) var(--s4) var(--s4); margin-block-end: var(--s4);
  color: #F3F6FF; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 100% at 85% 0%, #3A1F12 0%, #1B1220 45%, #0B0D16 100%);
  box-shadow: 0 18px 44px rgba(10, 8, 20, .34), inset 0 1px 0 rgba(255,255,255,.06);
}
.gx-hero::after {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,120,60,.28), transparent); filter: blur(8px);
}
.gx-hero-label { font-size: var(--fs-xs); letter-spacing: .14em; color: rgba(243,246,255,.6); font-weight: 640; }
.gx-hero-name { font-size: 2.4rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.05; margin-block: 2px 4px; }
.gx-hero-sub { font-size: var(--fs-sm); color: rgba(243,246,255,.72); margin-block-end: var(--s4); }
.gx-kinds { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); margin-block-end: var(--s4); }
.gx-kinds button { color: rgba(243,246,255,.78); }
/* The capsule is the only highlight here: the white thumb of an ordinary
   segmented control would show on the dark hero until the capsule takes over. */
.gx-kinds button[aria-pressed="true"], .gx-kinds.glass-tabs > button[aria-pressed="true"] { color: #fff; background: transparent; box-shadow: none; }
.gx-kinds .glass-pill::after { background: rgba(255,255,255,.18); box-shadow: none; }
/* The next workout in the rotation, said in a word rather than a dot nobody could read. */
.gx-next-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: var(--rf); background: #FF9F0A; color: #1b1205; font-size: 10px; font-weight: 760; vertical-align: middle; line-height: 1.5; }
.gx-start { min-height: 52px; font-size: var(--fs-md); font-weight: 700; border-radius: var(--r3); }
/* By day the workout card is a warm sheet of morning light instead of the night's dark one (which
   stays as it is): ember washes on cream, dark ink, the body maps in soft stone with the trained
   muscles in orange. */
:root:not([data-theme="dark"]) .gx-hero {
  color: #2a160d;
  background:
    radial-gradient(90% 80% at 88% 0%, rgba(255, 153, 102, .42), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(255, 196, 140, .38), transparent 62%),
    linear-gradient(165deg, #fffaf5 0%, #fff1e6 55%, #fde7dd 100%);
  box-shadow: 0 22px 50px -18px rgba(194, 84, 30, .32), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .8);
}
:root:not([data-theme="dark"]) .gx-hero::after { background: radial-gradient(closest-side, rgba(255, 120, 60, .22), transparent); }
:root:not([data-theme="dark"]) .gx-hero-prog { color: rgba(90, 44, 20, .6); }
:root:not([data-theme="dark"]) .gx-hero-label { color: rgba(90, 44, 20, .62); }
:root:not([data-theme="dark"]) .gx-hero-name { color: #2a160d; }
:root:not([data-theme="dark"]) .gx-hero-sub { color: rgba(60, 30, 14, .74); }
:root:not([data-theme="dark"]) .gx-hero .gx-map-body { fill: rgba(120, 72, 44, .16); }
:root:not([data-theme="dark"]) .gx-hero .gx-map-off { fill: rgba(120, 72, 44, .12); }
:root:not([data-theme="dark"]) .gx-hero .gx-map-on { fill: #f25c1f; filter: drop-shadow(0 0 3px rgba(242, 92, 31, .45)); }
:root:not([data-theme="dark"]) .gx-kinds { background: rgba(255, 255, 255, .6); border-color: rgba(194, 84, 30, .16); }
:root:not([data-theme="dark"]) .gx-kinds button { color: rgba(60, 30, 14, .72); }
:root:not([data-theme="dark"]) .gx-kinds button[aria-pressed="true"], :root:not([data-theme="dark"]) .gx-kinds.glass-tabs > button[aria-pressed="true"] { color: #2a160d; }
/* By day the capsule is white, and it stays under the names also while it is dragged (elsewhere
   it rises above them as a lens): the names are always readable through the move. */
:root:not([data-theme="dark"]) .gx-kinds .glass-pill::after { background: #fff; box-shadow: 0 2px 8px rgba(194, 84, 30, .18); }
:root:not([data-theme="dark"]) .gx-kinds.glass-drag .glass-pill { z-index: 0; }
:root:not([data-theme="dark"]) .gx-kinds.glass-drag .glass-pill::after {
  transform: scale(1.06); -webkit-backdrop-filter: none; backdrop-filter: none;
  border-color: rgba(194, 84, 30, .22); box-shadow: 0 6px 18px rgba(194, 84, 30, .22);
}
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs > button { position: relative; z-index: 1; }
/* How an exercise is done: a line under its name in the plan, the steps in its card. */
.gx-howto { margin: 2px 0 var(--s2); border-radius: var(--r2); background: var(--surface-2); }
.gx-howto > summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: var(--fs-sm); font-weight: 620; color: var(--accent-text); cursor: pointer; list-style: none; }
.gx-howto > summary::-webkit-details-marker { display: none; }
.gx-howto ol { margin: 0; padding: 0 2.2em 10px 12px; display: grid; gap: 4px; font-size: var(--fs-sm); line-height: 1.6; }
.gx-howto p { padding: 0 12px 10px; margin: 0; }
/* Men or women: a switch of its own, the thumb sliding between the two. */
.gx-aud-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--rf);
  background: var(--surface-2); border: 1px solid var(--line); isolation: isolate;
}
.gx-aud-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; background: none;
  font: inherit; font-weight: 680; color: var(--text-2); cursor: pointer; border-radius: var(--rf); transition: color 220ms var(--ease);
}
.gx-aud-switch button[aria-checked="true"] { color: #fff; }
.gx-aud-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; line-height: 0; }
.gx-aud-mark .ic { display: block; stroke-width: 2.2; }
.gx-aud-switch button > span:last-child { line-height: 18px; }
.gx-aud-thumb {
  position: absolute; z-index: -1; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: var(--rf);
  inset-inline-start: 4px; transition: inset-inline-start 300ms var(--spring), background 300ms var(--ease);
  background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 6px 16px -4px rgba(37, 99, 235, .5);
}
.gx-aud-switch[data-on="women"] .gx-aud-thumb { inset-inline-start: 50%; background: linear-gradient(135deg, #db2777, #a855f7); box-shadow: 0 6px 16px -4px rgba(219, 39, 119, .5); }
:root[data-motion="reduced"] .gx-aud-thumb { transition: none; }
.gx-aud-note { margin-block-start: var(--s3); }
.gx-aud-note p { margin: 4px 0 0; line-height: 1.6; }

.gx-deload { margin-block-end: var(--s3); align-items: center; }
.gx-finished .stats { margin-block-start: var(--s2); }

.gx-plan-row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px;
  padding: var(--s2) 0; border: 0; border-block-end: 1px solid var(--line); background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.gx-plan-row:last-child { border-block-end: 0; }
.gx-plan-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; flex: none; }
.gx-plan-t { flex: 1; min-width: 0; }
.gx-plan-last { white-space: nowrap; }

/* the bar at the top of a running workout */
.gx-bar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line); border-radius: var(--r4); padding: var(--s2) var(--s3); margin-block-end: var(--s3);
  box-shadow: var(--sh-2);
}
@media (min-width: 900px) { .gx-bar { top: var(--s3); } }
.gx-bar-main { display: flex; align-items: center; gap: var(--s2); }
.gx-bar-name { font-weight: 720; font-size: var(--fs-md); }
.gx-clock { font-size: 1.45rem; font-weight: 720; letter-spacing: -.02em; }
.gx-progress { margin-block: var(--s2) 0; height: 4px; }


.gx-warm-row { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-block-end: 1px solid var(--line); }
.gx-warm-row:last-child { border-block-end: 0; }
.gx-warm-row.is-done .small { color: var(--text-3); text-decoration: line-through; }
.gx-warm-sub { margin-block: 12px 2px; color: var(--accent-text); }
.gx-warm-row .small > span { display: block; }
.gx-warm-dose { margin-block-start: 1px; text-decoration: none; }

/* one exercise */
.gx-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r4);
  padding: var(--s3) var(--s3) var(--s2); margin-block-end: var(--s3); box-shadow: var(--sh-1);
  transition: opacity var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.gx-card.is-done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.gx-card.is-skipped { opacity: .62; }
.gx-card.is-failed { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.gx-head { display: flex; align-items: center; gap: var(--s2); }
.gx-num {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 740; font-size: var(--fs-sm);
}
.gx-card.is-done .gx-num { background: var(--ok-soft); color: var(--ok); }
.gx-title { flex: 1; min-width: 0; background: none; border: 0; padding: 4px 0; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.gx-name { font-weight: 680; font-size: var(--fs-base); line-height: 1.3; }
.gx-folded-row { display: flex; align-items: center; gap: var(--s2); padding-block: var(--s2) var(--s1); flex-wrap: wrap; }
.gx-folded-row > span { flex: 1; }
.gx-summary { display: flex; flex-wrap: wrap; gap: 6px; padding-block: var(--s2) var(--s1); }
.gx-pill { padding: 3px 9px; border-radius: var(--rf); background: var(--surface-2); border: 1px solid var(--line); }
.gx-pill.is-failed { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.gx-pill.is-todo { opacity: .5; }
.gx-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s2); margin-block: var(--s1) var(--s2); }
.gx-rec { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 640; }

.gx-sets { display: flex; flex-direction: column; gap: 6px; }
.gx-set {
  display: grid; grid-template-columns: minmax(0, 1fr) 66px 54px 46px 26px; gap: 6px; align-items: center;
  padding: 6px; border-radius: var(--r2); background: var(--surface-2);
}
.gx-set.is-warm { background: transparent; border: 1px dashed var(--line); }
.gx-set.is-warm .gx-set-l .small { color: var(--text-3); }
.gx-set.is-main { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.gx-set.is-done { background: var(--ok-soft); }
.gx-set.is-failed { background: var(--danger-soft); }
.gx-set-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gx-tag { color: var(--accent-text); font-weight: 640; }
.gx-wrow { margin-block: var(--s1) var(--s2); }
.gx-wrow-l { margin-block-end: 6px; }
.gx-wctl { display: flex; align-items: center; gap: 6px; }
.gx-wctl .gx-step { flex: 1; min-width: 0; width: auto; font-size: var(--fs-sm); }
.gx-win { flex: 1.6; min-width: 0; font-size: 1.35rem; }
.gx-set-head { display: grid; grid-template-columns: minmax(0, 1fr) 66px 54px 46px 26px; gap: 6px; padding: 0 6px; }
.gx-set-head span:nth-child(2), .gx-set-head span:nth-child(3) { text-align: center; }
.gx-doneline { color: var(--ok); font-weight: 600; margin-block-start: 2px; }
.gx-doneline:empty { display: none; }
.gx-bar-t { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.gx-log-ex { padding-block: var(--s2); border-block-end: 1px solid var(--line); }
.gx-log-row { display: grid; grid-template-columns: 64px 1fr 1fr 60px; gap: 6px; align-items: baseline; padding-block: 3px; }
.gx-plates-wrap { margin-block-end: var(--s2); border-radius: var(--r2); background: var(--bg-sunken); padding: var(--s2) var(--s3); }
.gx-plates-wrap > summary { cursor: pointer; list-style: none; }
.gx-plates-wrap > summary::-webkit-details-marker { display: none; }
.gx-plates-h { margin-block: var(--s2) 4px; }
.gx-plates-row { display: grid; grid-template-columns: 58px 62px 1fr; gap: 6px; align-items: baseline; padding-block: 3px; }
.gx-plates-alt { padding-inline-start: 126px; }
.gx-in { min-height: 44px; padding: 0 6px; text-align: center; font-size: var(--fs-md); font-weight: 640; min-width: 0; }
.gx-step {
  width: 44px; height: 44px; border: 0; border-radius: var(--r1); background: var(--surface); color: var(--text);
  font-size: 1.2rem; font-weight: 700; cursor: pointer; flex: none; box-shadow: var(--sh-1);
}
.gx-check {
  width: 46px; height: 44px; border-radius: var(--r2); border: 1.5px solid var(--line-strong, var(--line));
  background: var(--surface); color: var(--text-3); display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--spring);
}
.gx-check:active { transform: scale(.92); }
.gx-check[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.gx-check.is-half { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.gx-warm-row .gx-check { width: 40px; height: 40px; flex: none; }
.gx-fail {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3);
  display: grid; place-items: center; cursor: pointer; justify-self: center;
}
.gx-fail.is-on { background: var(--danger); color: #fff; }
.gx-pr { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.gx-plates { display: block; }
.gx-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: var(--s2); }
.gx-hint { margin-block: var(--s1) 0; }
.gx-card .input-sm { margin-block-start: var(--s2); }
.gx-foot { display: flex; gap: var(--s1); margin-block-start: var(--s1); }
.gx-note { margin-block: var(--s1) var(--s2); }
.gx-add { margin-block: var(--s2) var(--s4); min-height: 48px; }

.gx-menu { display: flex; flex-direction: column; }
.gx-menu-item {
  display: flex; align-items: center; gap: var(--s3); min-height: 52px; padding: 0 var(--s2);
  border: 0; border-block-end: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.gx-menu-item.is-danger { color: var(--danger); }
.gx-picker > .input { margin-block-end: var(--s3); }
.gx-pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 50px;
  padding: var(--s2) var(--s2); border: 0; border-block-end: 1px solid var(--line); background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.gx-pick.is-hidden { opacity: .5; }

/* ---- exercise illustrations (gymart.js) ---- */
:root {
  --art-body: #353b49; --art-hot: #ff5a2c; --art-eq: #a3a9b6; --art-pad: #6a7182;
  --art-metal: #232937; --art-metal2: #c9ced8; --art-bg: linear-gradient(160deg, #f4f1fb, #e9f6f8);
  --art-db: #5b5fd6; --art-back: #d9dce6; --art-screen: #22c3ee;
}
[data-theme="dark"] {
  --art-body: #dfe4ee; --art-hot: #ff7a4d; --art-eq: #6f7686; --art-pad: #8a91a1;
  --art-metal: #eef1f6; --art-metal2: #2a2f3a; --art-bg: linear-gradient(160deg, #1b1d2e, #13202a);
  --art-db: #a5a8ff; --art-back: #2c3142; --art-screen: #38d6ff;
}
.gx-art { display: block; flex: none; overflow: visible; }
.gx-art .ga-limb { fill: none; stroke: var(--art-body); stroke-width: 6.4; stroke-linecap: round; stroke-linejoin: round; }
.gx-art .ga-torso { stroke-width: 9.5; }
.gx-art .ga-far { opacity: .38; }
.gx-art .ga-head, .gx-art .ga-body { fill: var(--art-body); }
.gx-art .ga-body { stroke: var(--art-body); stroke-width: 4; stroke-linejoin: round; }
.gx-art .ga-muscle { fill: none; stroke: var(--art-hot); stroke-width: 4.2; stroke-linecap: round; }
.gx-art .ga-muscle-dot { fill: var(--art-hot); }
.gx-art .ga-eq { stroke: var(--art-eq); stroke-linecap: round; fill: none; }
.gx-art .ga-pad { stroke: var(--art-pad); stroke-linecap: round; fill: none; }
.gx-art .ga-pad-fill { fill: var(--art-pad); }
.gx-art .ga-floor { stroke: var(--art-eq); opacity: .55; }
.gx-art .ga-plate { fill: var(--art-metal); }
.gx-art .ga-hub { fill: var(--art-metal2); stroke: var(--art-metal); stroke-width: .8; }
.gx-art .ga-cable { stroke: var(--art-eq); fill: none; }
.gx-art .ga-db { fill: var(--art-db); }
.gx-art .ga-back { stroke: var(--art-back); stroke-linecap: round; fill: none; }
.gx-art .ga-tm-frame { fill: var(--art-pad); }
.gx-art .ga-tm-belt { stroke: var(--art-metal); stroke-linecap: round; }
.gx-art .ga-tm-marks { stroke: var(--art-eq); }
.gx-art .ga-tm-console { fill: var(--art-metal); stroke: var(--art-eq); stroke-width: .8; stroke-linejoin: round; }
.gx-art .ga-tm-screen { fill: var(--art-screen); opacity: .9; }
.gx-art-box { display: grid; place-items: center; flex: none; border-radius: var(--r2); background: var(--art-bg); overflow: hidden; }
.gx-plan-row .gx-art-box { width: 52px; height: 52px; }
.gx-head .gx-art-box { width: 46px; height: 46px; }
.gx-warm-row .gx-art-box { width: 44px; height: 44px; }
.gx-pick-row { display: flex; align-items: center; gap: var(--s3); width: 100%; }
.gx-pick-row .gx-art-box { width: 44px; height: 44px; }
.gx-pick-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gx-guide-art { margin-inline: auto; width: min(100%, 260px); aspect-ratio: 1; border-radius: var(--r4); margin-block-end: var(--s3); }
.gx-guide-art .gx-art { width: 100%; height: 100%; }
.gx-guide ol { margin-block: var(--s2); padding-inline-start: 1.3em; display: grid; gap: 6px; line-height: 1.6; }
.gx-guide-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-block-end: var(--s2); }
.gx-maps { display: flex; justify-content: center; gap: var(--s2); margin-block: var(--s1) var(--s3); }
.gx-map-body { fill: rgba(255,255,255,.14); }
.gx-map-off { fill: rgba(255,255,255,.1); }
.gx-map-on { fill: #ff7a45; filter: drop-shadow(0 0 4px rgba(255,122,69,.6)); }
.gx-pick:hover, .gx-plan-row:hover, .gx-hrow:hover { background: var(--surface-2); }

/* the rest timer, above the tab bar */
.gx-rest {
  position: fixed; z-index: 45; inset-inline: var(--s3); inset-block-end: calc(var(--bottom-h) + var(--s2));
  max-width: 560px; margin-inline: auto;
  padding: var(--s2) var(--s3); border-radius: var(--r4); color: #fff;
  background: rgba(18, 20, 30, .86); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  animation: toastin 260ms var(--spring);
}
.gx-rest.is-away { display: none; }
.gx-rest.is-over { background: rgba(28, 143, 75, .92); }
.gx-rest-main { display: flex; align-items: center; gap: var(--s2); }
.gx-rest-clock { font-size: 1.9rem; font-weight: 760; letter-spacing: -.02em; min-width: 3.2ch; }
.gx-rest-l { flex: 1; min-width: 0; opacity: .85; line-height: 1.3; }
.gx-rest-btn {
  min-width: 44px; height: 40px; padding: 0 8px; border-radius: var(--r2); border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-weight: 640; display: grid; place-items: center;
}
.gx-rest-btn:active { background: rgba(255,255,255,.26); }
.gx-rest-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; margin-block: var(--s2) 2px; }
.gx-rest-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width 250ms linear; }
@media (min-width: 900px) { .gx-rest { inset-block-end: var(--s5); } }

/* a running workout, seen from another screen */
.gx-float {
  position: fixed; z-index: 34; inset-block-end: calc(var(--bottom-h) + var(--s3)); inset-inline-start: 50%;
  transform: translateX(50%); max-width: calc(100vw - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 10px 16px; border-radius: var(--rf); border: 0; cursor: pointer; font: inherit; font-weight: 640; font-size: var(--fs-sm);
  color: #fff; background: linear-gradient(135deg, #FF7A1A, #E0262B); box-shadow: 0 10px 26px rgba(224, 38, 43, .35);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) { .gx-float { inset-block-end: var(--s5); } }

.gx-hrow {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 60px; padding: var(--s2) 0;
  border: 0; border-block-end: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.gx-hrow:last-child { border-block-end: 0; }
.gx-hdate { width: 52px; flex: none; text-align: center; }
.gx-hex { padding: var(--s2) 0; border-block-end: 1px solid var(--line); }
.gx-hex.is-skipped { opacity: .55; }
.gx-lib .gx-pick:last-child { border-block-end: 0; }
.gx-num-in { width: 74px; min-height: 40px; text-align: center; }
.gx-scheme { margin-block-end: var(--s3); }
.gx-scheme-row { display: flex; align-items: center; gap: 6px; margin-block-start: 6px; }
.gx-scheme-row > span:first-child { width: 64px; }
.gx-scheme-row .gx-num-in { width: 64px; }

@media (max-width: 380px) {
  .gx-set, .gx-set-head { grid-template-columns: minmax(0, 1fr) 60px 50px 42px 24px; gap: 4px; }
}
:root[data-motion="reduced"] .gx-rest { animation: none; }
@media (prefers-reduced-motion: reduce) { .gx-rest { animation: none; } }
.gx-hero-prog { font-size: var(--fs-xs); color: rgba(243,246,255,.55); margin-block-end: 6px; }
.gx-body { display: block; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer; margin-block-end: var(--s3); }
.gx-body-main { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.gx-vol { margin-block-start: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r2); background: var(--bg-sunken); }

/* ---- sleep card ---- */
.sleep-card .card-head h3 { min-width: 0; }
.sleep-badge { flex: none; white-space: nowrap; margin-inline-start: auto; }
.sleep-badge .ic { flex: none; }
.sleep-main { display: flex; flex-direction: column; gap: 2px; }
.sleep-main .card-title { margin-block-end: 2px; }

/* ---- password box with show/hide ---- */
.pw-field { position: relative; }
.pw-field .input { padding-left: 46px; }
.pw-eye {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-content: center;
  border: 0; border-radius: var(--r2); background: none; color: var(--text-3); cursor: pointer;
}
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--accent-text); background: var(--surface-2); }

/* ---- accounts ---- */
.cred-box { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface-2); padding: var(--s3); display: grid; gap: var(--s2); }
.cred-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.cred-val { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-md); font-weight: 650; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }

/* ---- update offer ---- */
.update-banner {
  position: fixed; z-index: 90; inset-inline: 12px;
  inset-block-end: calc(88px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3) var(--s4); border-radius: var(--r3);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong, var(--line));
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  animation: ub-in .28s var(--ease) both;
}
@media (min-width: 900px) { .update-banner { inset-block-end: 24px; } }
.update-banner .ub-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); line-height: 1.5; }
.update-banner .ub-text span { color: var(--text-2); }
.update-banner .ub-actions { display: flex; gap: var(--s2); margin-inline-start: auto; }
.ub-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-content: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.ub-icon.big { width: 56px; height: 56px; margin-inline: auto; }
@keyframes ub-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
:root[data-motion="reduced"] .update-banner { animation: none; }
.update-required {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--s4);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.update-notes { margin-block-start: var(--s2); padding: var(--s3); border-radius: var(--r2); background: var(--surface-2); }
.update-notes ul { padding-inline-start: 1.1em; }
.upd-admin { margin-block-start: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r1, 8px); background: var(--accent-soft); }
.upd-admin ul { padding-inline-start: 1.1em; }
.upd-rel + .upd-rel { margin-block-start: var(--s3); padding-block-start: var(--s3); border-block-start: 1px solid var(--line); }

/* Signed-in devices */
.device-row { align-items: flex-start; }
.device-row .setting-text .d + .d { margin-block-start: 2px; }
.device-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.user-devices { margin-block-end: var(--s3); }

/* Analytics of the accounts (administrator) */
.analytics-row { padding-block: var(--s3); border-block-end: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s2); }
.analytics-row:last-of-type { border-block-end: 0; }
.analytics-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 420px) { .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.analytics-stat { background: var(--surface-2); border-radius: var(--r1, 8px); padding: var(--s2); min-width: 0; }
.analytics-stat .xs { line-height: 1.35; }
.act-bars { display: flex; flex-direction: row; align-items: flex-end; gap: 2px; height: 28px; width: 98px; flex: none; }
.act-bars i { flex: 1; background: var(--accent); border-radius: 2px; min-height: 2px; }

/* The updates card in settings */
.upd-hero { display: flex; align-items: center; gap: var(--s3); padding-block: var(--s2) var(--s3); }
.upd-hero-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upd-title { font-size: var(--fs-lg, 1.125rem); font-weight: 700; letter-spacing: -.01em; }
.upd-tile { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
/* The version's artwork: the picture as a rounded square (the phone's icon shape), the number on it
   drawn in update.js (versionArt) as a live glass layer. In the update row it sits at the start,
   beside the name, as on the phone's own update screen. */
.upd-hero-art { align-items: center; }
.upd-hero-art .va { box-shadow: 0 8px 18px -8px rgba(64, 72, 150, .5), inset 0 0 0 1px rgba(255, 255, 255, .28); }
.upd-hero-art .upd-hero-text { gap: 1px; }
.va {
  --va: 132px; position: relative; width: var(--va); height: var(--va); flex: none;
  border-radius: 23.5%; overflow: hidden; isolation: isolate;
  background: url('/static/img/update-art.jpg') center / cover no-repeat;
  box-shadow: 0 22px 44px -22px rgba(64, 72, 150, .55), 0 2px 6px -2px rgba(30, 34, 80, .25), inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.va::after {
  /* the tile's own glass edge, faint */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 32%);
}
.va-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.upd-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; flex: none; }
.upd-badge.ok { background: var(--ok-soft); color: var(--ok); }
.upd-badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.upd-summary { line-height: 1.65; margin-block-end: var(--s1); }
.upd-more { padding-inline: 0; color: var(--accent-text); }
.upd-now { margin-block-start: var(--s3); }
.upd-status:empty { display: none; }
.upd-status { margin-block-start: var(--s2); }
.upd-progress { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); padding-block: var(--s3) var(--s2); text-align: center; }
/* the meter, as a phone's own software update draws it: a thin rounded bar on a quiet track, filling smoothly; under it what is
   happening now and the percentage. Green once full. */
.upd-bar-wrap { width: 100%; max-width: 360px; margin-inline: auto; }
.upd-bar { position: relative; height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--text) 12%, transparent); }
.upd-bar-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--accent); transition: width .45s cubic-bezier(.25, .8, .25, 1), background-color .3s ease; }
.upd-bar-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-block-start: 8px; text-align: start; }
.upd-phase { min-height: 1.5em; }
.upd-bar-pct { flex: none; font-size: .8125rem; font-weight: 600; color: var(--text-2); direction: ltr; }
.upd-bar-wrap.full .upd-bar-fill { background: var(--ok); }
@media (prefers-reduced-motion: reduce) { .upd-bar-fill { transition: none; } }
[data-nav="settings"].has-update, [data-nav="profile"].has-update { position: relative; }
[data-nav="settings"].has-update::after, [data-nav="profile"].has-update::after {
  content: ''; position: absolute; inset-block-start: 4px; inset-inline-end: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---- pay and money ---- */
.pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-block: 5px; border-block-end: 1px solid var(--line); }
.pay-row:last-child { border-block-end: 0; }
.pay-row.sub { padding-inline-start: var(--s3); color: var(--text-2); }
.pay-row.sub .small { color: var(--text-2); }
.pay-total { border-block-end: 0; padding-block-start: 8px; }
.pay-total .small, .pay-total .tnum { font-weight: 680; }
.pay-row.is-pos .tnum { color: var(--ok); }
.pay-row.is-neg .tnum { color: var(--danger); }
.money-group { display: flex; align-items: center; gap: var(--s2); margin-block: var(--s3) 2px; }
.money-row { width: 100%; background: none; border: 0; border-block-end: 1px solid var(--line); cursor: pointer; text-align: start; gap: var(--s2); }
.money-row.inactive { opacity: .5; }
.money-row .tnum { flex: none; font-weight: 620; }
.mc-wrap { width: 100%; overflow: hidden; }
/* Coordinates are laid out right to left by hand; text anchors stay physical. */
.money-chart { width: 100%; height: auto; display: block; overflow: visible; direction: ltr; }
.mc-grid { stroke: var(--line); stroke-width: 1; }
.mc-axis { font-size: 9px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.mc-label { font-size: 10px; fill: var(--text-3); }
.mc-label.is-current { fill: var(--text); font-weight: 700; }
.mc-income { fill: var(--ok); }
.mc-gross { fill: var(--ok); opacity: .28; }
.mc-zero { fill: var(--line-strong, var(--line)); }
.mc-month.is-projected .mc-income, .mc-month.is-projected .mc-exp { opacity: .45; }
.mc-month.is-sel .mc-label { fill: var(--accent-text); font-weight: 700; }
.mc-hit { fill: transparent; cursor: pointer; outline: none; }
.mc-month.is-sel .mc-hit { fill: var(--accent-soft); opacity: .5; }
.mc-balance { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 3 3; }
.mc-dot { fill: var(--accent); }
.mc-dot.neg { fill: var(--danger); }
.mc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--text-2); margin-block: var(--s2); }
.mc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mc-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-income { background: var(--ok); }
.lg-gross { background: var(--ok); opacity: .3; }
.lg-exp { background: linear-gradient(135deg, #FF9500 0 33%, #AF52DE 33% 66%, #007AFF 66%); }
.lg-balance { background: none; border-top: 2px dashed var(--accent); border-radius: 0; height: 0 !important; }
.money-detail .hbar { grid-template-columns: 110px 1fr auto; }

/* ---- Hebrew dates and marked days ---- */
.cal-hebrew { font-size: var(--fs-sm); color: var(--text-3); font-weight: 560; margin-block-start: 2px; }
.tg-dayname .dh { font-size: 10px; color: var(--text-3); margin-block-start: 1px; }
.tg-dayname .dev { font-size: 9.5px; line-height: 1.25; margin-block-start: 2px; padding: 1px 3px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-row { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.mh { font-size: 9.5px; color: var(--text-3); font-weight: 560; padding-inline-end: 2px; }
.month-ev { font-size: 9.5px; line-height: 1.25; padding: 1px 3px; border-radius: 4px; display: flex; align-items: center; gap: 2px; min-width: 0; }
.month-ev > span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.month-ev .ic { flex: none; }
.month-cell.is-holiday { background: color-mix(in srgb, var(--danger) 5%, transparent); }
.month-cell.is-sale::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; background: var(--text); opacity: .7; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: var(--s3); }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 620; padding: 3px 9px; border-radius: var(--rf); }
.sp-yomtov { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.sp-national { background: color-mix(in srgb, #0a6cff 14%, transparent); color: #0a6cff; }
.sp-memorial { background: var(--surface-3); color: var(--text); }
.sp-fast { background: var(--surface-3); color: var(--text-2); }
.sp-cholhamoed, .sp-minor { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); }
.sp-erev, .sp-roshchodesh { background: var(--surface-2); color: var(--text-3); }
.sp-sale, .sp-sale-period { background: #111; color: #fff; }
.sp-birthday { background: color-mix(in srgb, #ff2d78 16%, transparent); color: #d81b60; }
:root[data-theme="dark"] .sp-sale, :root[data-theme="dark"] .sp-sale-period { background: #f2f2f2; color: #111; }
:root[data-theme="dark"] .sp-national { color: #64a8ff; }
:root[data-theme="dark"] .sp-birthday { color: #ff7aa8; }
.agenda-heb { font-weight: 520; color: var(--text-3); }
.hero-heb { opacity: .9; }
.hero-day-mark { font-weight: 640; }

/* ---- sign-in screens: the splash's white paper, the bird and the name, a quiet white card ----
   Always light, in day and night alike: the logo is drawn on white, and this is its paper. */
.auth-scene {
  color-scheme: light;
  background: var(--paper);
  color: #14151b;
}
.auth-scene .auth-card {
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(20, 22, 32, .08);
  border-radius: 26px;
  box-shadow: 0 1px 0 rgba(20, 22, 32, .03), 0 26px 60px -30px rgba(20, 24, 44, .28);
  color: #14151b;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-block-end: var(--s5); }
.auth-lockup { --lock: 44px; }
.auth-sub { text-align: center; font-size: var(--fs-sm); line-height: 1.7; color: #5a5d68; font-weight: 520; margin-block-end: var(--s4); }
.auth-title { text-align: center; font-size: var(--fs-xl); font-weight: 760; color: #14151b; margin-block-end: 6px; letter-spacing: -.02em; }
.auth-foot { text-align: center; font-size: var(--fs-xs); color: #6b6e79; margin-block-start: var(--s3); }
.auth-scene .field > label { color: #14151b; font-weight: 650; font-size: var(--fs-sm); }
.auth-scene .field .hint, .auth-scene .hint { color: #6b6e79; font-size: var(--fs-xs); line-height: 1.6; display: block; margin-block: 4px var(--s4); }
.auth-scene .input {
  background: #f6f6f8; color: #14151b; border-color: rgba(20, 22, 32, .12); border-radius: 14px;
  font-size: 17px;
}
.auth-scene .input::placeholder { color: #9a9ca6; }
.auth-scene .input:focus { background: #fff; border-color: #14151b; box-shadow: 0 0 0 3px rgba(20, 22, 32, .1); }
.auth-scene .pw-eye { color: #6b6e79; }
.auth-scene .pw-eye:hover, .auth-scene .pw-eye[aria-pressed="true"] { background: rgba(20, 22, 32, .06); color: #14151b; }
.auth-scene .setting .t, .auth-scene .switch-label { color: #14151b; font-weight: 600; }
.auth-scene .setting .d { color: #6b6e79; }
.auth-scene .btn-primary { background: #14151b; border-color: #14151b; color: #fff; border-radius: 14px; }
.auth-scene .btn-primary:hover { background: #2a2c35; }
.auth-scene .btn-ghost { color: #3a3d48; font-weight: 600; }
.auth-scene .btn:not(.btn-primary):not(.btn-ghost) { background: #f3f3f6; color: #14151b; border-color: rgba(20, 22, 32, .1); }
.auth-scene .recovery-code { background: #f6f6f8; color: #14151b; border-color: rgba(20, 22, 32, .14); font-size: var(--fs-lg); }
.auth-scene .callout { background: #fff1f1; color: #8a1d22; border-color: rgba(192, 45, 50, .25); }
.auth-scene .bar { background: rgba(20, 22, 32, .08); }
.auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-block-start: var(--s3); }

/* ---- journeys ---- */
.route-ed { display: flex; flex-direction: column; gap: 6px; }
.route-seg { display: grid; grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 6px; align-items: end; }
.route-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-content: center; font-size: 11px; font-weight: 700; margin-block-end: 10px; }
.route-f { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--text-3); min-width: 0; }
.route-seg .select, .route-seg .input { min-height: 40px; padding: 6px 8px; }
.route-total { color: var(--text-2); font-weight: 620; margin-block-start: 4px; }
details.disc > summary { display: flex; align-items: center; gap: 8px; }
@media (max-width: 380px) { .route-seg { grid-template-columns: 20px minmax(0, 1fr) 64px 64px 30px; } }

/* ---- admin: usage table ---- */
.usage-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding-block: 8px; border-block-end: 1px solid var(--line); }
.usage-row:last-child { border-block-end: 0; }

/* ========================= page background =========================
   Soft washes of colour behind every screen, as on glassix.com: lavender in one top corner, a
   peach glow across the top, aqua in the other corner, fading to white further down. At night the
   same shapes in deep violet, rose and teal over a blue-black. Fixed, so it stays put while the
   page scrolls. */
:root {
  --bg: #f8f6fb;
  --wash-a: rgba(198, 184, 236, .64);
  --wash-b: rgba(255, 210, 192, .55);
  --wash-c: rgba(146, 228, 238, .64);
  --wash-d: rgba(255, 226, 238, .42);
  --wash-top: #f1eef8;
  --wash-bottom: #ffffff;
}
[data-theme="dark"] {
  --bg: #06070d;
  --wash-a: rgba(118, 76, 240, .44);
  --wash-b: rgba(230, 80, 150, .2);
  --wash-c: rgba(28, 186, 204, .36);
  --wash-d: rgba(76, 100, 236, .24);
  --wash-top: #0a0c18;
  --wash-bottom: #05060b;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(65% 48% at 0% 0%, var(--wash-a), transparent 70%),
    radial-gradient(55% 40% at 50% 0%, var(--wash-b), transparent 72%),
    radial-gradient(60% 50% at 100% 0%, var(--wash-c), transparent 70%),
    radial-gradient(70% 45% at 100% 72%, var(--wash-d), transparent 75%),
    linear-gradient(180deg, var(--wash-top) 0%, var(--wash-bottom) 62%);
}
[data-contrast="high"] body::before { background: var(--bg); }
/* The colours show faintly through the cards, as through frosted glass. */
.card { background: color-mix(in srgb, var(--surface) 90%, transparent); }
[data-theme="dark"] .card { background: color-mix(in srgb, var(--surface) 82%, transparent); }
[data-contrast="high"] .card { background: var(--surface); }
.topbar { border-block-end-color: color-mix(in srgb, var(--line) 55%, transparent); }
@media (min-width: 900px) {
  .sidebar {
    background: color-mix(in srgb, var(--bg-elevated) 62%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  }
}

/* ========================= profile picture ========================= */
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--av-h, 220) 72% 62%), hsl(calc(var(--av-h, 220) + 40) 78% 50%));
  color: #fff; font-weight: 700; line-height: 1; -webkit-user-select: none; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The letter sits in the exact middle: a box the size of the circle, the line box trimmed to the
   letter itself where the browser can (otherwise the font's spacing above and below pushes it). */
.avatar > span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  line-height: 1; text-align: center; text-box: trim-both cap alphabetic;
}
.avatar-limit { text-align: center; max-width: 34ch; line-height: 1.55; margin-inline: auto; }
.topbar-avatar {
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  -webkit-tap-highlight-color: transparent;
}
.topbar-avatar .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--line-strong); transition: box-shadow var(--dur-1) var(--ease); }
.topbar-avatar[aria-current="page"] .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.topbar-avatar:active .avatar { transform: scale(.94); }
.navitem .avatar { width: 22px; height: 22px; font-size: 10px; }
.avatar-editor { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.avatar-tap { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.avatar-tap .avatar { box-shadow: 0 10px 28px rgba(16, 18, 27, .18), 0 0 0 4px var(--surface); }
.avatar-cam {
  position: absolute; inset-block-end: 2px; inset-inline-end: 2px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--surface);
}
.onb-avatar { display: grid; place-items: center; padding-block: var(--s4); }

/* ========================= profile ========================= */
/* The top of the profile, drawn like an architect's sheet: a wide panel of drafting paper (by night
   a blueprint) with a fine 10/50 grid, an inner frame, crop marks, a title block of facts in cells
   divided by hairlines, and a dimension line that measures the time on רצף. */
:root {
  --arch-paper: linear-gradient(176deg, #fdfcf9 0%, #f5f3ec 100%); --arch-solid: #faf8f3;
  --arch-ink: #1b2232; --arch-ink-2: #5b6377; --arch-frame: rgba(27, 34, 50, .22);
  --arch-minor: rgba(46, 72, 128, .055); --arch-major: rgba(46, 72, 128, .12);
}
[data-theme="dark"] {
  --arch-paper: radial-gradient(130% 120% at 85% 0%, #14305c 0%, #0c1e3d 48%, #08142b 100%); --arch-solid: #0d1f3e;
  --arch-ink: #e8f0ff; --arch-ink-2: #9fb4d8; --arch-frame: rgba(170, 205, 255, .28);
  --arch-minor: rgba(150, 195, 255, .07); --arch-major: rgba(150, 195, 255, .15);
}
.pf-arch {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 24px 20px 14px; margin-block-end: var(--s4); border-radius: 10px;
  background: var(--arch-paper); color: var(--arch-ink); border: 1px solid var(--arch-frame);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 22px 44px -22px rgba(20, 30, 60, .45);
}
.pf-arch::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--arch-frame); border-radius: 4px; pointer-events: none; z-index: -1; }
.pf-arch-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--arch-major) 1px, transparent 1px), linear-gradient(90deg, var(--arch-major) 1px, transparent 1px),
    linear-gradient(var(--arch-minor) 1px, transparent 1px), linear-gradient(90deg, var(--arch-minor) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  -webkit-mask-image: radial-gradient(140% 110% at 30% 20%, #000 35%, transparent 100%); mask-image: radial-gradient(140% 110% at 30% 20%, #000 35%, transparent 100%);
}
.pf-crop { position: absolute; width: 12px; height: 12px; border: 0 solid var(--arch-ink); opacity: .45; pointer-events: none; }
.pf-crop-tl { top: 3px; left: 3px; border-top-width: 1px; border-left-width: 1px; }
.pf-crop-tr { top: 3px; right: 3px; border-top-width: 1px; border-right-width: 1px; }
.pf-crop-bl { bottom: 3px; left: 3px; border-bottom-width: 1px; border-left-width: 1px; }
.pf-crop-br { bottom: 3px; right: 3px; border-bottom-width: 1px; border-right-width: 1px; }
.pf-arch-gear { position: absolute; top: 14px; inset-inline-end: 14px; color: var(--arch-ink-2); background: transparent; border-color: var(--arch-frame); }
.pf-arch-main { display: flex; align-items: center; gap: 18px; padding-inline-end: 34px; }
.pf-arch-pic { flex: none; }
.pf-arch-pic .avatar-tap .avatar { box-shadow: 0 0 0 1px var(--arch-frame), 0 0 0 5px var(--arch-solid), 0 0 0 6px var(--arch-frame), 0 12px 26px -10px rgba(10, 20, 50, .45); }
.pf-arch-pic .avatar-cam { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--arch-solid); }
.pf-arch-id { flex: 1; min-width: 0; }
.pf-arch-kicker { font-size: 10px; letter-spacing: .16em; color: var(--arch-ink-2); font-variant-numeric: tabular-nums; }
.pf-name { font-size: clamp(1.35rem, 5.8vw, 1.8rem); font-weight: 760; letter-spacing: -.02em; line-height: 1.12; margin-block: 3px 2px; overflow-wrap: anywhere; }
.pf-user { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; color: var(--arch-ink-2); font-size: var(--fs-sm); }
.pf-role { font-size: 10px; font-weight: 650; letter-spacing: .06em; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; color: var(--accent-text); }
.pf-bio { margin: 7px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--arch-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
button.pf-bio-empty {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px dashed var(--arch-frame); border-radius: 4px;
  background: none; color: var(--arch-ink-2); font: inherit; font-size: var(--fs-xs); cursor: pointer;
}
.pf-arch-title { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border-block: 1px solid var(--arch-frame); }
.pf-arch-cell { min-width: 0; padding: 7px 9px 8px; }
.pf-arch-cell + .pf-arch-cell { border-inline-start: 1px solid var(--arch-frame); }
.pf-arch-cell dt { font-size: 9.5px; letter-spacing: .14em; color: var(--arch-ink-2); }
.pf-arch-cell dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 660; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pf-arch-dim { display: flex; align-items: center; gap: 8px; margin-block-start: 12px; font-size: 10px; color: var(--arch-ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-dim-line { flex: 1; position: relative; height: 1px; background: var(--arch-ink-2); }
.pf-dim-line::before, .pf-dim-line::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--arch-ink-2); }
.pf-dim-line::before { right: 0; } .pf-dim-line::after { left: 0; }
.pf-dim-line b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0 7px; background: var(--arch-solid); color: var(--arch-ink); font-weight: 650; border-radius: 3px; }
@media (max-width: 380px) { .pf-arch-main { gap: 12px; } .pf-arch-cell { padding-inline: 6px; } }
.pf-body { display: grid; gap: var(--s3); }
.pf-body > .card + .card { margin-block-start: 0; }
.pf-rank-row { display: flex; align-items: center; gap: var(--s3); }
.pf-rank-mark { width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
.pf-rank-name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.015em; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 640px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-tile {
  min-width: 0; padding: var(--s3) var(--s4); border-radius: var(--r3);
  background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.pf-tile-top { display: flex; align-items: center; gap: 6px; color: var(--accent-text); }
.pf-tile-l { font-size: var(--fs-xs); color: var(--text-2); font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-tile-v { font-size: 1.75rem; font-weight: 740; letter-spacing: -.03em; line-height: 1.15; margin-block-start: 4px; font-variant-numeric: tabular-nums; }
.pf-tile-s { font-size: var(--fs-xs); color: var(--text-3); margin-block-start: 2px; }
.pf-bars { display: flex; align-items: stretch; gap: 4px; height: 128px; }
.pf-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pf-bar-track { flex: 1; width: 100%; position: relative; }
.pf-bar-track > i {
  position: absolute; inset-block-end: 0; left: 50%; transform: translateX(-50%);
  display: block; width: 100%; max-width: 22px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
}
.pf-bar-track > i.pf-zero { background: var(--surface-3); }
.pf-bar-n, .pf-bar-d { font-size: 10px; color: var(--text-3); line-height: 1.2; min-height: 12px; font-variant-numeric: tabular-nums; }
.pf-cats { display: grid; gap: var(--s3); }
.pf-cat-head { display: flex; align-items: center; gap: var(--s2); margin-block-end: 4px; font-size: var(--fs-sm); }
.pf-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cat-v { color: var(--text-3); font-variant-numeric: tabular-nums; }
.pf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.pf-link {
  display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); padding: var(--s2) var(--s3);
  border-radius: var(--r2); border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font: inherit; text-align: start; cursor: pointer;
}
.pf-link > span { flex: 1; min-width: 0; }
.pf-link > svg:first-child { color: var(--accent-text); }
.pf-link > svg:last-child { color: var(--text-3); }
.pf-link:hover { background: var(--surface-3); }
.pf-signout { color: var(--danger); margin-block-start: var(--s2); }
.pf-details .input { max-width: 11rem; }
.pf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-block-start: var(--s3); }
.pf-fact { display: flex; flex-direction: column; gap: 2px; padding: var(--s2) var(--s3); border-radius: var(--r2); background: var(--surface-2); min-width: 0; }
.pf-fact bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.pf-field { display: grid; gap: 5px; min-width: 0; }
.pf-field > span { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-xs); color: var(--text-2); font-weight: 620; }
.pf-details .pf-field .input { max-width: none; width: 100%; }
.pf-hint { margin: 6px 0 var(--s3); }
.pf-bio-field { margin-block-end: var(--s2); }
.pf-bio-field .textarea { resize: none; min-height: 4.6em; line-height: 1.5; }
.pf-count { font-weight: 500; color: var(--text-3); }
.pf-count.is-full { color: var(--danger); }
.pf-head-note { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pf-bar.is-today .pf-bar-d { color: var(--accent-text); font-weight: 700; }
.pf-bar.is-today .pf-bar-track > i:not(.pf-zero) { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #ff7a45), var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
/* The tiles: each figure with an icon in a colour of its own. */
.pf-tile { position: relative; overflow: hidden; --tone: var(--accent); }
.pf-tile::after { content: ''; position: absolute; inset-inline-end: -26px; inset-block-start: -26px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 22%, transparent), transparent); pointer-events: none; }
.pf-tile[data-tone="amber"] { --tone: #f59e0b; } .pf-tile[data-tone="green"] { --tone: #16a34a; } .pf-tile[data-tone="blue"] { --tone: #2563eb; }
.pf-tile[data-tone="violet"] { --tone: #7c3aed; } .pf-tile[data-tone="teal"] { --tone: #0d9488; } .pf-tile[data-tone="orange"] { --tone: #ea580c; }
.pf-tile[data-tone="rose"] { --tone: #e11d48; } .pf-tile[data-tone="slate"] { --tone: #64748b; }
.pf-tile-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--tone); box-shadow: 0 4px 10px -3px color-mix(in srgb, var(--tone) 60%, transparent); }
.pf-tile-top { color: var(--text-2); }
/* Money of the month. */
.pf-mrow { display: grid; gap: 5px; margin-block-end: var(--s3); }
.pf-mrow-head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); }
.pf-mrow-head strong { font-size: var(--fs-lg); letter-spacing: -.01em; }
.pf-mbar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.pf-mbar > i { display: block; height: 100%; border-radius: 6px; }
.pf-mrow.is-in .pf-mbar > i { background: linear-gradient(90deg, #22c55e, #16a34a); }
.pf-mrow.is-out .pf-mbar > i { background: linear-gradient(90deg, #fb7185, #e11d48); }
.pf-mrow.is-in strong { color: #15803d; } .pf-mrow.is-out strong { color: #be123c; }
[data-theme="dark"] .pf-mrow.is-in strong { color: #4ade80; } [data-theme="dark"] .pf-mrow.is-out strong { color: #fb7185; }
.pf-balance { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r2); font-size: var(--fs-sm); font-weight: 620; }
.pf-balance-v { font-size: var(--fs-lg); font-weight: 760; }
.pf-balance.is-plus { background: color-mix(in srgb, #16a34a 12%, var(--surface)); color: #166534; }
.pf-balance.is-minus { background: color-mix(in srgb, #e11d48 12%, var(--surface)); color: #9f1239; }
[data-theme="dark"] .pf-balance.is-plus { color: #86efac; } [data-theme="dark"] .pf-balance.is-minus { color: #fda4af; }
.pf-mhist { display: flex; gap: var(--s4); justify-content: center; margin-block-start: var(--s3); }
.pf-mh { display: grid; justify-items: center; gap: 4px; }
.pf-mh-cols { display: flex; align-items: flex-end; gap: 4px; height: 54px; }
.pf-mh-cols > i { display: block; width: 14px; border-radius: 4px 4px 2px 2px; }
.pf-mh-cols > i.is-in { background: #22c55e; } .pf-mh-cols > i.is-out { background: #fb7185; }
.pf-money-foot { display: flex; justify-content: space-between; align-items: center; margin-block-start: var(--s2); }
/* The settings and the end of the page. */
.pf-link-ic { flex: none !important; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-text); }
.pf-foot { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-block-start: var(--s2); }
.pf-foot .pf-signout { margin: 0; }
/* The picture's menu, and the rules in red after a photo could not be used. */
.avatar-menu { display: grid; gap: var(--s2); }
.avatar-menu-rules { margin: var(--s2) 0 0; line-height: 1.6; text-align: center; }
.avatar-rules {
  margin: 8px 0 0; max-width: 32ch; padding: 8px 12px; border-radius: var(--r2); text-align: center;
  font-size: var(--fs-xs); line-height: 1.55; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease); animation: tourpop 260ms var(--spring);
}
.avatar-rules.is-gone { opacity: 0; transform: translateY(-4px); }
.pf-arch-pic .avatar-editor { position: relative; }
.pf-arch-pic .avatar-rules { position: absolute; top: 100%; inset-inline-start: 0; width: min(78vw, 300px); z-index: 3; box-shadow: var(--sh-2); }
/* A colour as a hex code. */
.hex-in { width: 6.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; letter-spacing: .04em; }
.hex-in.is-bad { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
/* About: the app's name and version. */
.about-head { display: flex; align-items: center; gap: var(--s3); }
.about-head h3 { margin: 0; font-size: var(--fs-xl); font-weight: 760; letter-spacing: -.02em; }
.about-tag { margin: var(--s4) 0 var(--s2); font-size: var(--fs-lg); font-weight: 720; line-height: 1.35; letter-spacing: -.01em; }
.about-p { margin: 0 0 var(--s2); font-size: var(--fs-sm); line-height: 1.75; color: var(--text-2); }
.about-end { margin: var(--s3) 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-text); }
.about-mark { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.about-sum { display: flex; align-items: center; gap: var(--s2); cursor: pointer; list-style: none; min-height: 32px; }
.about-sum::-webkit-details-marker { display: none; }
.about-sum h3 { flex: 1; margin: 0; }
.about-sum > svg:last-child { color: var(--text-3); transform: rotate(-90deg); transition: transform var(--dur-2) var(--ease); }
.about-doc[open] .about-sum > svg:last-child { transform: rotate(90deg); }
.about-text { margin-block-start: var(--s3); line-height: 1.75; font-size: var(--fs-sm); }
.about-text h4 { margin: var(--s3) 0 2px; font-size: var(--fs-base); font-weight: 700; }
.about-text h4:first-child { margin-block-start: 0; }
.about-text .about-part { display: flex; gap: 6px; margin: var(--s5) 0 var(--s1); padding-block-end: 6px; border-block-end: 1px solid var(--line); font-size: var(--fs-md); font-weight: 750; }
.about-text .about-part:first-child { margin-block-start: 0; }
.about-text h4:has(> .about-num) { display: flex; gap: 6px; }
.about-num { flex: none; color: var(--text-3); font-weight: 650; }
.about-text p { margin: 0; color: var(--text-2); }
.about-text p.xs { margin-block-start: var(--s3); }
.tour-nav { display: flex; align-items: center; gap: var(--s2); margin-block-start: 10px; }
.tour-nav .tour-hint { flex: 1; text-align: center; margin: 0; }
.tour-nav .btn { flex: none; }

/* ========================= first-visit walk ========================= */
.tour { position: fixed; inset: 0; z-index: 200; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tour-spot {
  position: fixed; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(6, 8, 18, .64), 0 0 0 2px rgba(255, 255, 255, .5);
  transition: left 320ms var(--ease), top 320ms var(--ease), width 320ms var(--ease), height 320ms var(--ease);
}
.tour-bubble {
  position: fixed; max-width: 320px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--sh-3);
  transition: left 320ms var(--ease), top 320ms var(--ease);
  animation: tourpop 260ms var(--spring);
}
.tour-bubble::after {
  content: ''; position: absolute; left: var(--arrow-x, 50%); width: 14px; height: 14px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.tour-bubble.below::after { top: -6px; }
.tour-bubble.above::after { bottom: -6px; }
.tour-bubble.center { left: 50% !important; top: 50% !important; width: min(340px, calc(100vw - 32px)); transform: translate(-50%, -50%); text-align: center; animation: none; }
.tour-bubble.center::after { display: none; }
.tour-count { font-size: var(--fs-xs); color: var(--accent-text); font-weight: 680; }
.tour-title { font-size: var(--fs-md); font-weight: 720; margin-block: 2px 4px; }
.tour-text { font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2); }
.tour-hint { font-size: var(--fs-xs); color: var(--text-3); margin-block-start: 8px; }
.tour-skip { position: fixed; inset-block-start: calc(env(safe-area-inset-top, 0px) + 12px); inset-inline-start: 12px; z-index: 1; }
@keyframes tourpop { from { opacity: 0; scale: .96; } }
:root[data-motion="reduced"] .tour-spot, :root[data-motion="reduced"] .tour-bubble { transition: none; animation: none; }

/* ========================= editing the tab bar =========================
   A long press on a tab, as on the iPhone's home screen: the tabs wobble, each but מסלול shows an
   X in its corner, a tab can be dragged to another place, and a panel above the bar brings back
   the tabs that were taken off. */
.tab { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.bottomnav.editing .tab-pill { opacity: 0; }
.bottomnav.editing .tab { touch-action: none; }
.bottomnav.editing .tab:not([data-nav="today"]) { animation: tabjiggle 240ms ease-in-out infinite alternate; }
.bottomnav.editing .tab:nth-child(odd):not([data-nav="today"]) { animation-delay: -120ms; }
@keyframes tabjiggle { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
.bottomnav.editing .tab.tab-dragging { animation: none; z-index: 5; scale: 1.14; color: var(--accent-text); }
:root[data-motion="reduced"] .bottomnav.editing .tab { animation: none; }
.tab-x {
  position: absolute; inset-block-start: 3px; inset-inline-end: calc(50% - 26px); z-index: 3;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #8e8e93; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); cursor: pointer;
}
[data-theme="dark"] .tab-x { background: #6b6b72; }
.tab-x .ic { width: 11px; height: 11px; stroke-width: 3.2; }
.tab-tray {
  position: fixed; inset-inline: 10px; inset-block-end: calc(var(--bottom-h) + 10px); z-index: 45;
  display: grid; gap: var(--s2); padding: var(--s3) var(--s4);
  border-radius: var(--r4); box-shadow: var(--sh-3);
  animation: trayin 260ms var(--spring);
}
.tab-tray-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.tab-tray .btn-ghost { justify-self: start; }
/* More tabs: a tile each, like an app on a home screen, with + to put it on the bar. */
.tab-tray-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--s2); }
.tab-tile { position: relative; }
.tab-tile-open {
  width: 100%; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px;
  border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; transition: transform var(--dur-1) var(--spring);
}
.tab-tile-open:active { transform: scale(.96); }
.tab-tile-ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff7a45));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.tab-tile-t { font-size: var(--fs-sm); font-weight: 620; }
.tab-tile-add {
  position: absolute; inset-block-start: -7px; inset-inline-end: -7px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.tab-tray-note { margin: 0; }
/* "עוד" on the bar, a little apart from the tabs. */
.bottomnav .tab-more .ic { opacity: .9; }
@keyframes trayin { from { opacity: 0; transform: translateY(12px); } }
body[data-tab-edit="1"] .fab { display: none; }
@media (min-width: 900px) { .tab-tray { display: none; } }

/* ========================= מסלול: the first screen =========================
   By day the hero is an iridescent sheet of light (violet, aqua and rose washes on white glass)
   with the rank mark set in a small night-sky orb inside a slowly turning halo, so the metal and
   crystal marks keep the dark ground they were made for. At night the hero stays the deep space
   it was. Below it, the sections stand straight on the page's colours, without boxes. */
:root:not([data-theme="dark"]) .hero {
  color: #1c1a38;
  background:
    radial-gradient(85% 70% at 8% 0%, rgba(167, 139, 250, .55), transparent 62%),
    radial-gradient(70% 62% at 100% 6%, rgba(94, 234, 212, .52), transparent 62%),
    radial-gradient(80% 70% at 62% 112%, rgba(251, 146, 160, .42), transparent 62%),
    linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(246, 242, 255, .92));
  box-shadow: 0 22px 54px rgba(104, 76, 200, .20), 0 2px 6px rgba(104, 76, 200, .08),
              inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .75);
}
:root:not([data-theme="dark"]) .hero-aura {
  background:
    radial-gradient(40% 36% at 74% 30%, rgba(129, 140, 248, .34), transparent 70%),
    radial-gradient(36% 32% at 22% 74%, rgba(253, 164, 175, .32), transparent 72%),
    radial-gradient(30% 30% at 50% 50%, rgba(110, 231, 183, .22), transparent 72%);
  filter: blur(10px);
}
:root:not([data-theme="dark"]) .hero-greet { color: #17153a; }
:root:not([data-theme="dark"]) .hero-date { color: rgba(28, 26, 56, .62); }
:root:not([data-theme="dark"]) .rank-tier { color: rgba(76, 58, 160, .72); }
:root:not([data-theme="dark"]) .rank-name {
  color: transparent; background: linear-gradient(100deg, #3b2a91 0%, #6d4bd8 45%, #0f8f9b 100%);
  -webkit-background-clip: text; background-clip: text;
}
:root:not([data-theme="dark"]) .rank-sub { color: rgba(28, 26, 56, .78); }
:root:not([data-theme="dark"]) .rank-points, :root:not([data-theme="dark"]) .rank-trend { color: rgba(28, 26, 56, .55); }
:root:not([data-theme="dark"]) .hero .btn-glass {
  background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .9); color: #2b2470;
  box-shadow: 0 4px 14px rgba(104, 76, 200, .14);
}
:root:not([data-theme="dark"]) .hero .btn-glass:hover { background: rgba(255, 255, 255, .85); color: #2b2470; }
/* The fourteen days (today.js rhythmChart): a column a day with its weekday, the average as a
   dashed line, a tap reads a day out. Night colours here, day colours below. */
.rr { margin-block-start: var(--s4); padding-block-start: var(--s3); border-block-start: 1px solid rgba(255, 255, 255, .1); }
.rr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-block-end: 10px; }
.rr-title { font-size: var(--fs-sm); font-weight: 700; color: #f1f4ff; }
.rr-sub { font-size: 11px; color: rgba(237, 242, 255, .6); margin-block-start: 2px; line-height: 1.4; }
.rr-avg { display: grid; justify-items: end; flex: none; line-height: 1.05; }
.rr-avg strong { font-size: 1.35rem; font-weight: 760; color: #fff; letter-spacing: -.02em; }
.rr-avg span { font-size: 10px; color: rgba(237, 242, 255, .6); }
.rr-plot { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; height: 92px; }
.rr-line { position: absolute; inset-inline: 0; height: 0; border-block-start: 1.5px dashed rgba(255, 255, 255, .45); pointer-events: none; z-index: 1; }
.rr-plot { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 6px; }
.rr-plot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rr-col { display: grid; grid-template-rows: 1fr 18px; min-width: 0; }
.rr-bar { position: relative; display: block; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rr-bar > i { position: absolute; inset-inline: 0; bottom: 0; display: block; border-radius: 6px 6px 3px 3px; transition: height 400ms var(--ease); }
.rr-col.is-full .rr-bar > i { background: linear-gradient(180deg, #5eead4, #22c55e); }
.rr-col.is-good .rr-bar > i { background: linear-gradient(180deg, #a78bfa, #6366f1); }
.rr-col.is-part .rr-bar > i { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.rr-col.is-low .rr-bar > i { background: linear-gradient(180deg, #fb7185, #e11d48); }
.rr-bar > i.rr-dot { inset-inline: 50% auto; bottom: 6px; width: 6px; height: 6px; margin-inline-start: -3px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.rr-day { align-self: end; font-size: 10px; line-height: 16px; text-align: center; color: rgba(237, 242, 255, .55); white-space: nowrap; overflow: hidden; }
.rr-col.is-today .rr-day { color: #fff; font-weight: 700; }
.rr-col.is-today .rr-bar { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.rr-col.is-picked .rr-bar { box-shadow: inset 0 0 0 2px #fff; }
.rr-read { margin: 8px 0 0; font-size: var(--fs-xs); font-weight: 600; color: rgba(237, 242, 255, .85); min-height: 1.4em; }
.rr-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 6px; font-size: 10px; color: rgba(237, 242, 255, .58); }
.rr-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rr-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; }
.rr-legend i.is-full { background: #22c55e; } .rr-legend i.is-part { background: #f59e0b; }
.rr-legend i.is-good { background: #7c6cf2; } .rr-legend i.is-low { background: #e11d48; }
.rr-legend i.is-rest { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.rr-legend i.is-avg { width: 12px; height: 0; border-radius: 0; border-block-start: 1.5px dashed rgba(255, 255, 255, .6); }
:root:not([data-theme="dark"]) .rr { border-block-start-color: rgba(76, 58, 160, .14); }
:root:not([data-theme="dark"]) .rr-title { color: #1c1a38; }
:root:not([data-theme="dark"]) .rr-sub, :root:not([data-theme="dark"]) .rr-avg span, :root:not([data-theme="dark"]) .rr-legend { color: rgba(28, 26, 56, .6); }
:root:not([data-theme="dark"]) .rr-avg strong { color: #2b2470; }
:root:not([data-theme="dark"]) .rr-bar { background: rgba(76, 58, 160, .07); }
:root:not([data-theme="dark"]) .rr-line { border-block-start-color: rgba(43, 36, 112, .45); }
:root:not([data-theme="dark"]) .rr-bar > i.rr-dot, :root:not([data-theme="dark"]) .rr-legend i.is-rest { background: rgba(76, 58, 160, .35); }
:root:not([data-theme="dark"]) .rr-legend i.is-avg { border-block-start-color: rgba(43, 36, 112, .55); }
:root:not([data-theme="dark"]) .rr-day { color: rgba(28, 26, 56, .55); }
:root:not([data-theme="dark"]) .rr-col.is-today .rr-day { color: #2b2470; }
:root:not([data-theme="dark"]) .rr-col.is-today .rr-bar { box-shadow: inset 0 0 0 1.5px rgba(43, 36, 112, .45); }
:root:not([data-theme="dark"]) .rr-col.is-picked .rr-bar { box-shadow: inset 0 0 0 2px #2b2470; }
:root:not([data-theme="dark"]) .rr-read { color: #2b2470; }

/* Arranging מסלול: a long press picks the parts up; each gets a handle bar to drag it by. */
.view[data-view="today"] .tw { -webkit-touch-callout: none; }
.view[data-view="today"] .tw + .tw > .card { border-block-start: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.is-arranging .tw {
  position: relative; margin-block-end: var(--s2); border-radius: var(--r3);
  outline: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  animation: twjiggle 260ms ease-in-out infinite alternate;
}
.is-arranging .tw:nth-child(even) { animation-delay: -130ms; }
@keyframes twjiggle { from { rotate: -.35deg; } to { rotate: .35deg; } }
:root[data-motion="reduced"] .is-arranging .tw { animation: none; }
.is-arranging .tw > :not(.tw-bar) { pointer-events: none; user-select: none; }
.is-arranging .tw.is-dragging { animation: none; z-index: 5; box-shadow: var(--sh-3); background: var(--surface); scale: 1.02; }
.is-arranging .tw.is-leaving { opacity: 0; transform: scale(.96); transition: opacity 200ms, transform 200ms; }
.tw-bar {
  display: flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 4px 10px;
  border-radius: var(--r3) var(--r3) 0 0; background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-text); font-size: var(--fs-sm); font-weight: 680; cursor: grab; touch-action: none; user-select: none;
}
.tw-bar:active { cursor: grabbing; }
.tw-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-hide { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 0; border-radius: var(--rf); background: var(--surface); color: var(--text-2); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.tw-top {
  position: fixed; inset-inline: 10px; bottom: calc(var(--bottom-h) + 10px); z-index: 60;
  display: flex; align-items: center; gap: var(--s3); padding: 10px 12px 10px 14px; border-radius: var(--r4);
  box-shadow: var(--sh-3); font-size: var(--fs-sm); animation: trayin 260ms var(--spring);
}
.tw-top span { flex: 1; min-width: 0; }
@media (min-width: 900px) { .tw-top { inset-inline: auto 24px; bottom: 24px; max-width: 460px; } }
.tw-hidden { display: grid; gap: 6px; padding: var(--s3) var(--s1) 90px; }
.tw-hidden[hidden], .tw[hidden] { display: none; }
body[data-arranging="1"] .fab { display: none; }

/* By day the mark stands on the light itself, no disc behind it: a soft glow of the hero's own
   colours under it, and a shadow that gives the glass and metal their edge on a light ground. */
:root:not([data-theme="dark"]) .rank-disc::before {
  content: ''; position: absolute; inset: 6%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(167, 139, 250, .38), rgba(94, 234, 212, .18) 60%, transparent);
  filter: blur(6px);
}
:root:not([data-theme="dark"]) .rank-mark.is-3d .rank3d,
:root:not([data-theme="dark"]) .rank-mark:not(.is-3d) > svg {
  filter: drop-shadow(0 5px 8px rgba(46, 30, 120, .2));
}
:root:not([data-theme="dark"]) .rank-mark:not(.is-3d) { color: #3b2a91; }

/* The sections under the hero: on the page itself, separated by a fine line. */
.view[data-view="today"] .card {
  background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: var(--s4) var(--s1);
}
.view[data-view="today"] .card + .card,
.view[data-view="today"] .card + .col > .card:first-child,
.view[data-view="today"] .col > .card + .card { margin-block-start: 0; border-block-start: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.view[data-view="today"] .card-head h3 { font-size: var(--fs-md); font-weight: 720; color: var(--text); letter-spacing: -.01em; }
.view[data-view="today"] .card-title { font-size: 1.45rem; letter-spacing: -.02em; }
.view[data-view="today"] .callout:not(.callout-warn):not(.callout-danger) {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  border-color: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.view[data-view="today"] .callout { border-radius: var(--r3); }
.view[data-view="today"] .tl-item.current .tl-body {
  background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: var(--r2); padding-inline: var(--s3);
}
.view[data-view="today"] .tl-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ev-color, var(--accent)) 18%, transparent); }
.view[data-view="today"] .btn-ghost.btn-block { background: color-mix(in srgb, var(--surface) 45%, transparent); }

/* Open items from earlier days: obviously something to press. */
.od {
  display: block; width: 100%; margin-block-end: var(--s3); border-radius: var(--r4); overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 15%, var(--surface)), color-mix(in srgb, var(--surface) 82%, transparent));
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--warn) 14%, transparent);
  font: inherit; color: inherit; text-align: start;
}
.od-head {
  display: flex; align-items: center; gap: var(--s3); min-height: 60px; padding: var(--s3) var(--s4);
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--spring);
}
button.od-head { border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent); }
/* One open item: the banner swipes like a row of the list. */
.swipe-row.od-swipe { border-radius: var(--r4); margin-block-end: var(--s3); }
.swipe-row.od-swipe .od { margin-block-end: 0; }
.swipe-row.od-swipe .swipe-action { border-radius: var(--r4); }
.od-head::-webkit-details-marker { display: none; }
.od-head:hover { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.od-head:active { transform: scale(.985); }
.od-count {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--warn); color: #fff; font-weight: 780; font-size: var(--fs-sm);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--warn) 40%, transparent);
}
.od-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.od-text strong { font-size: var(--fs-sm); font-weight: 700; }
.od-sub { font-size: var(--fs-xs); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-chev {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--warn);
  transition: transform var(--dur-2) var(--ease);
}
details.od[open] .od-chev { transform: rotate(-90deg); }
.od-list { padding: 0 var(--s2) var(--s2); display: flex; flex-direction: column; gap: 2px; }
.od-row {
  display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 48px; padding: var(--s2) var(--s3);
  border: 0; border-radius: var(--r2); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: inherit; color: inherit; cursor: pointer; text-align: start;
}
.od-row:hover { background: var(--surface); }
.od-row:active { transform: scale(.99); }
.od-row-t { flex: 1; text-align: start; }
.od-open { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: 650; color: var(--accent-text); }

/* ============================================================
   2.4 — sign-in details, character pictures, the workout redrawn
   for the night, and the calendar as a drawing sheet.
   ============================================================ */

/* ---- the administrator's sign-in details ---- */
.pf-cred {
  display: flex; align-items: center; gap: var(--s3); margin-block-start: var(--s3); padding: var(--s3);
  border-radius: var(--r3); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.pf-cred-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--accent-text); background: var(--accent-soft); }
.pf-cred-t { flex: 1; min-width: 0; }
.cred-form .field { margin-block-end: var(--s3); }
.cred-form .btn-block { min-height: 48px; margin-block-start: var(--s2); }

/* ---- character pictures ---- */
.avatar.is-char { background: none; }
.avatar .av-char { width: 100%; height: 100%; display: block; }
.av-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-block-end: 2px; }
.av-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s2); margin-block-end: var(--s3); min-height: 180px; }
.av-pick {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 4px; border: 0; background: none;
  font: inherit; color: var(--text-2); cursor: pointer; border-radius: var(--r3); -webkit-tap-highlight-color: transparent;
}
.av-pick .av-char {
  width: 100%; max-width: 68px; aspect-ratio: 1; height: auto; border-radius: 50%;
  box-shadow: 0 6px 16px -6px rgba(16, 18, 27, .35); transition: transform 220ms var(--spring), box-shadow 220ms var(--ease);
}
.av-pick:active .av-char { transform: scale(.94); }
@media (hover: hover) { .av-pick:hover .av-char { transform: translateY(-2px) scale(1.04); } }
.av-pick[aria-checked="true"] .av-char { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--accent), 0 8px 18px -6px rgba(16, 18, 27, .4); }
.av-pick[aria-checked="true"] .av-pick-n { font-weight: 700; }
.av-pick-n { font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; }
/* Sections: the four for everyone, the ones opened by rank, the collector one. Locked ones show a
   lock (at the top: the preview's seal is at the bottom) and their rank; on hover or keyboard focus the tile itself says what opens it (a tap opens
   the same in a sheet, for touch). */
.av-sections .av-grid { min-height: 0; }
.av-sections > .xs { min-height: 120px; }
.av-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.av-sec-t { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; }
.av-pic { position: relative; display: block; width: 100%; max-width: 68px; aspect-ratio: 1; border-radius: 50%; }
.av-pic > .av-char { max-width: none; }
.av-pick .av-img { object-fit: cover; display: block; background: var(--surface-2); }
.av-pick.is-locked .av-char { filter: saturate(.6) brightness(.94); }
.av-lock {
  position: absolute; inset-inline-end: -3px; top: -3px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--text-2);
  box-shadow: 0 1px 4px rgba(16, 18, 27, .28); pointer-events: none;
}
.av-pick.tier-collector .av-pick-n, .av-pick.tier-skin .av-pick-n { margin-block-start: 8px; }
.av-pick-req { font-size: 10px; line-height: 1.1; color: var(--text-3); margin-block-start: -2px; }
/* A character's role (king, gothic, herbalist…) under its name: Bellefair, an engraved-looking
   Hebrew serif (SIL Open Font License, see fonts/role-bellefair-OFL.txt), cut down to the Hebrew
   letters (5 KB). */
@font-face {
  font-family: 'RetzefRole';
  src: url('/static/fonts/role-bellefair.woff2') format('woff2');
  font-display: swap;
}
.av-pick-role, .av-info-role { font-family: 'RetzefRole', 'Times New Roman', serif; font-weight: 400; letter-spacing: .03em; }
.av-pick-role { font-size: 11.5px; line-height: 1; color: var(--text-3); margin-block-start: -3px; }
.av-pick.tier-collector .av-pick-role, .av-info.tier-collector .av-info-role { color: #a8822a; }
.av-info-role { font-size: 19px; line-height: 1.1; color: var(--text-2); margin-block-start: -2px; }
.av-pick.tier-collector .av-char { box-shadow: 0 0 0 2px #d8b25a, 0 6px 16px -6px rgba(120, 84, 10, .45); }
.av-badge {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: #3a2700;
  background: linear-gradient(135deg, #f6dd94, #d8a640); box-shadow: 0 1px 3px rgba(80, 50, 0, .35); pointer-events: none;
}
.av-tip {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; padding: 6px; text-align: center;
  font-size: 9.5px; font-weight: 700; line-height: 1.25; color: #fff; background: rgba(16, 14, 28, .78);
  opacity: 0; visibility: hidden; transition: opacity 160ms var(--ease), visibility 160ms; pointer-events: none;
}
.av-pick:focus-visible .av-tip { opacity: 1; visibility: visible; }
@media (hover: hover) { .av-pick.is-locked:hover .av-tip { opacity: 1; visibility: visible; } .av-pick.is-locked:hover .av-char { transform: none; } }
.av-pick.tier-collector .av-tip { align-content: center; gap: 1px; background: rgba(36, 24, 4, .8); color: #f6e3b0; }
.av-tip-price { font-size: 13px; font-weight: 800; color: #fff; }
/* The sheet of a locked character. */
.av-info { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; padding-block: var(--s2); }
.av-info-pic { position: relative; width: 120px; height: 120px; border-radius: 50%; display: block; }
.av-info-pic .av-char { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; box-shadow: 0 10px 26px -10px rgba(16, 18, 27, .45); }
.av-info.tier-collector .av-info-pic .av-char { box-shadow: 0 0 0 3px #d8b25a, 0 10px 26px -10px rgba(120, 84, 10, .5); }
.av-info-pic .av-lock { width: 30px; height: 30px; inset-inline-end: 2px; top: 2px; }
.av-badge-lg { position: static; transform: none; font-size: 11px; padding: 3px 10px; }
/* ---- the floating collector icon ----
   The collector character (ui.js floatingIcon): its short video loop (the character breathing, its
   hair and jewellery catching the light) in which it also drifts on a diagonal, up and to the right
   then down and to the left, with room kept above its head. The drift is made inside the loop
   (scripts: see the notes in src/lib/avatars.ts), at full resolution, so it glides by fractions of a
   pixel; moved by the browser instead, a drift this small would step from pixel to pixel. Round it,
   a gold frame whose gleam travels slowly (no halo: the owner's choice). Everything is cut by the
   round frame. To tune here: --frame-turn (one turn of the frame's gleam). */
.av-float { --frame-turn: 9s; position: relative; overflow: hidden; border-radius: 50%; isolation: isolate; background: #02010f; }
.av-float-box { display: block; aspect-ratio: 1; }
.av-float > * { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.av-float > .av-float-mover { z-index: 1; }
.av-float-mover > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* The gold frame: a thin ring inside the round edge, with one gleam travelling slowly round it. */
.av-float > .av-float-frame {
  z-index: 3; border-radius: 50%;
  --ring: max(1.5px, 4.5%);
  background: conic-gradient(from var(--frame-angle, 0deg), #8a6a24, #d8b25a 18%, #fff4cf 25%, #d8b25a 32%, #8a6a24 50%, #c9a14a 75%, #8a6a24);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + .5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + .5px));
  animation: av-frame var(--frame-turn) linear infinite;
}
@property --frame-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes av-frame { to { --frame-angle: 360deg; } }
.av-float-rest .av-float-frame { animation-play-state: paused; }
/* A mythic skin's frame: violet and gold, the same gleam travelling round it. */
.av-float.av-float-mythic > .av-float-frame { background: conic-gradient(from var(--frame-angle, 0deg), #5a2a8a, #b46bff 18%, #fff0c8 25%, #d8b25a 32%, #5a2a8a 50%, #a347ff 75%, #5a2a8a); }
.av-pick.tier-skin .av-float-box { box-shadow: 0 6px 16px -6px rgba(120, 50, 180, .5); }
@media (prefers-reduced-motion: reduce) { .av-float > .av-float-frame { animation: none; } }
:root[data-motion="reduced"] .av-float > .av-float-frame { animation: none; }
/* In the picker and the story the gold frame is the icon's own: no second ring around it. */
.av-pick.tier-collector .av-float-box, .av-info.tier-collector .av-info-pic .av-float-box { box-shadow: 0 6px 16px -6px rgba(120, 84, 10, .45); }

/* The story of a locked character: a page of a chronicle in the role's serif, an ornament rule
   above it, and what opens it as a quiet pill at the end. */
.av-lore { gap: 10px; padding-block: var(--s1) var(--s2); }
.av-lore-rule { display: flex; align-items: center; gap: 10px; width: min(220px, 70%); color: var(--text-3); opacity: .7; }
.av-lore-rule::before, .av-lore-rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to var(--rule-dir, left), currentColor, transparent); }
.av-lore-rule::after { --rule-dir: right; }
.av-lore-rule { background: radial-gradient(circle, currentColor 0 2.5px, transparent 3px) center / 8px 8px no-repeat; }
.av-lore-text {
  margin: 0; max-width: 34ch; font-family: 'RetzefRole', 'Times New Roman', serif; font-size: 18.5px; line-height: 1.65;
  letter-spacing: .01em; color: var(--text); text-wrap: pretty;
}
.av-lore-text::first-letter { font-size: 1.5em; line-height: 1; color: var(--accent-text); }
.av-lore.tier-collector .av-lore-text::first-letter { color: #a8822a; }
.av-lore-need { display: flex; align-items: center; justify-content: center; gap: 8px; margin-block-start: 4px; }
.av-lore-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 650; color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.av-lore.tier-collector .av-lore-pill { color: #6b4e12; background: #fbf1d6; box-shadow: inset 0 0 0 1px #e6cd8c; }
.av-lore-sale { gap: 8px; }
.av-was { color: #a08a5a; font-weight: 500; }
.av-sale-tag { font-size: 11px; font-weight: 800; color: #fff; background: #d33a4a; border-radius: 999px; padding: 1px 8px; }
/* Buying through WhatsApp, for now. */
.btn-whatsapp { background: #1fa855; color: #fff; border-color: transparent; text-decoration: none; justify-content: center; gap: 8px; }
.btn-whatsapp:active { filter: brightness(.94); }
.av-buy-how { text-align: center; margin: 6px 0 0; }
.av-buy-now { text-align: center; margin: 0 0 8px; font-weight: 650; color: var(--text-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.av-buy-needs { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--text-2); }

/* ---- the workout ----
   Night first (most workouts are in the evening): a near-black sheet, hairlines instead of boxes,
   one ember accent kept for what to do now, big tabular numbers, and the current exercise framed
   like a detail on a drawing. By day the same layout on white. */
.gym-view, #gx-rest {
  --gx-acc: #e2531a; --gx-acc-2: #ff8a4c; --gx-acc-soft: rgba(226, 83, 26, .1); --gx-acc-line: rgba(226, 83, 26, .42);
  --gx-card: var(--surface); --gx-card-2: var(--surface-2); --gx-hair: var(--line); --gx-field: var(--bg-sunken);
}
[data-theme="dark"] .gym-view, [data-theme="dark"] #gx-rest {
  --gx-acc: #ff7a45; --gx-acc-2: #ffb07a; --gx-acc-soft: rgba(255, 122, 69, .14); --gx-acc-line: rgba(255, 122, 69, .5);
  --gx-card: #0f1117; --gx-card-2: #161922; --gx-hair: rgba(255, 255, 255, .075); --gx-field: #08090d;
}

/* the bar of a running workout, with the map of exercises */
[data-theme="dark"] .gym-view .gx-bar { background: rgba(9, 10, 14, .8); border-color: rgba(255, 255, 255, .08); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.gx-bar .gx-progress { height: 3px; background: var(--gx-hair); }
.gx-bar .gx-progress i { background: linear-gradient(90deg, var(--gx-acc-2), var(--gx-acc)); }
.gx-bar-sub { line-height: 1.35; }
.gx-clock { font-variant-numeric: tabular-nums; }
.gx-focus-btn.is-on { background: var(--gx-acc-soft); color: var(--gx-acc); box-shadow: inset 0 0 0 1px var(--gx-acc-line); }
.gx-map { display: flex; align-items: center; gap: 6px; margin-block-start: var(--s2); }
.gx-map:empty { display: none; }
.gx-map-dots { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; padding-inline: 2px; }
.gx-map-dots::-webkit-scrollbar { display: none; }
.gx-map-step { width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--gx-card-2); color: var(--text-2); }
.gx-dot {
  --p: 0; flex: none; width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; cursor: pointer; position: relative;
  display: grid; place-items: center; font: inherit; font-size: 11px; font-weight: 720; color: var(--text-2); font-variant-numeric: tabular-nums;
  background: radial-gradient(closest-side, var(--gx-card) 79%, transparent 81% 100%), conic-gradient(var(--gx-acc) calc(var(--p) * 360deg), var(--gx-hair) 0);
  transition: transform 200ms var(--spring);
}
.gx-dot:active { transform: scale(.9); }
.gx-dot.is-now { color: #fff; background: radial-gradient(closest-side, var(--gx-acc) 79%, transparent 81% 100%), conic-gradient(var(--gx-acc-2) calc(var(--p) * 360deg), var(--gx-acc-line) 0); box-shadow: 0 0 14px -2px var(--gx-acc-line); }
.gx-dot.is-done { color: var(--ok); background: radial-gradient(closest-side, var(--gx-card) 79%, transparent 81% 100%), conic-gradient(var(--ok) 360deg, var(--ok) 0); }
.gx-dot.is-skipped, .gx-dot.is-folded { opacity: .45; }
.gx-dot.is-focus { outline: 2px solid var(--gx-acc); outline-offset: 2px; }

/* one exercise */
.gym-view .gx-card {
  position: relative; background: var(--gx-card); border: 1px solid var(--gx-hair); border-radius: 20px;
  padding: var(--s4) var(--s3) var(--s3); scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 168px);
  transition: border-color 260ms var(--ease), box-shadow 260ms var(--ease), opacity 260ms var(--ease);
}
[data-theme="dark"] .gym-view .gx-card { background: linear-gradient(180deg, #12141b, #0d0f15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.gym-view .gx-card.is-current { border-color: var(--gx-acc-line); box-shadow: 0 22px 46px -26px var(--gx-acc-line), inset 0 1px 0 rgba(255, 255, 255, .05); }
/* the current exercise framed like a detail on a drawing: crop marks at its corners */
.gym-view .gx-card.is-current::before {
  content: ''; position: absolute; inset: 6px; pointer-events: none; opacity: .8;
  background:
    linear-gradient(var(--gx-acc), var(--gx-acc)) top left / 11px 1.5px no-repeat, linear-gradient(var(--gx-acc), var(--gx-acc)) top left / 1.5px 11px no-repeat,
    linear-gradient(var(--gx-acc), var(--gx-acc)) top right / 11px 1.5px no-repeat, linear-gradient(var(--gx-acc), var(--gx-acc)) top right / 1.5px 11px no-repeat,
    linear-gradient(var(--gx-acc), var(--gx-acc)) bottom left / 11px 1.5px no-repeat, linear-gradient(var(--gx-acc), var(--gx-acc)) bottom left / 1.5px 11px no-repeat,
    linear-gradient(var(--gx-acc), var(--gx-acc)) bottom right / 11px 1.5px no-repeat, linear-gradient(var(--gx-acc), var(--gx-acc)) bottom right / 1.5px 11px no-repeat;
}
.gym-view .gx-card.is-done { border-color: color-mix(in srgb, var(--ok) 32%, var(--gx-hair)); }
.gym-view .gx-num {
  --p: 0; width: 38px; height: 38px; font-size: 12.5px; font-weight: 760; letter-spacing: .02em; color: var(--text);
  background: radial-gradient(closest-side, var(--gx-card) 82%, transparent 84% 100%), conic-gradient(var(--gx-acc) calc(var(--p) * 360deg), var(--gx-hair) 0);
}
[data-theme="dark"] .gym-view .gx-num { background: radial-gradient(closest-side, #12141b 82%, transparent 84% 100%), conic-gradient(var(--gx-acc) calc(var(--p) * 360deg), var(--gx-hair) 0); }
.gym-view .gx-card.is-done .gx-num { color: var(--ok); background: radial-gradient(closest-side, var(--ok-soft) 82%, transparent 84% 100%), conic-gradient(var(--ok) 360deg, var(--ok) 0); }
.gym-view .gx-name { font-size: 1.02rem; font-weight: 720; letter-spacing: -.01em; }
.gym-view .gx-head .xs.muted { letter-spacing: .02em; }
.gym-view .gx-head .gx-art-box { border-radius: 14px; }

/* last time, and the estimated one-rep max */
.gx-rm { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: var(--rf); border: 1px solid var(--gx-hair); background: var(--gx-card-2); font-size: var(--fs-xs); }
.gx-rm b { font-size: var(--fs-sm); font-weight: 760; color: var(--text); }
.gx-rm-k { color: var(--text-3); }
.gx-rm-d { font-weight: 720; }
.gx-rm-d.is-up { color: var(--ok); } .gx-rm-d.is-down { color: var(--danger); }

/* the plates, drawn */
.gx-plates-sum { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.gx-platebar { flex: none; overflow: visible; }
.gx-pb-sleeve { fill: color-mix(in srgb, var(--text-3) 70%, transparent); }
.gx-pb-collar { fill: var(--text-2); }
.gym-view .gx-plates-wrap { background: var(--gx-field); border: 1px solid var(--gx-hair); }

/* the sets: a ruled table, not a stack of boxes */
.gym-view .gx-sets { gap: 0; border-block-start: 1px solid var(--gx-hair); margin-block-start: var(--s1); }
.gym-view .gx-set-head { padding-block: 8px 6px; letter-spacing: .03em; }
.gym-view .gx-set {
  background: transparent; border-radius: 0; padding: 8px 6px; border-block-end: 1px solid var(--gx-hair);
  transition: background 220ms var(--ease);
}
.gym-view .gx-set.is-warm { border: 0; border-block-end: 1px dashed var(--gx-hair); background: transparent; }
.gym-view .gx-set.is-warm .gx-in { opacity: .8; }
.gym-view .gx-set.is-main { box-shadow: none; }
.gym-view .gx-set.is-main .gx-set-name { font-weight: 720; }
.gym-view .gx-set.is-done { background: color-mix(in srgb, var(--ok) 7%, transparent); }
.gym-view .gx-set.is-done .gx-in { color: var(--text-2); }
.gym-view .gx-set.is-failed { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.gym-view .gx-set.is-now {
  background: linear-gradient(270deg, var(--gx-acc-soft), transparent 85%);
  box-shadow: inset -3px 0 0 var(--gx-acc);
}
[dir="ltr"] .gym-view .gx-set.is-now { box-shadow: inset 3px 0 0 var(--gx-acc); }
.gx-set-name { display: inline-flex; align-items: center; gap: 6px; }
.gx-now-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gx-acc); box-shadow: 0 0 0 3px var(--gx-acc-soft); animation: gxpulse 1.6s ease-in-out infinite; }
@keyframes gxpulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.gym-view .gx-set.is-now .gx-check { border-color: var(--gx-acc); color: var(--gx-acc); background: var(--gx-acc-soft); }
.gym-view .gx-in { background: var(--gx-field); border-color: var(--gx-hair); border-radius: 12px; font-variant-numeric: tabular-nums; }
.gym-view .gx-in:focus { border-color: var(--gx-acc); box-shadow: 0 0 0 3px var(--gx-acc-soft); }
.gym-view .gx-check { border-radius: 13px; border-color: var(--gx-hair); background: var(--gx-card-2); }
.gym-view .gx-check[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 6px 16px -8px var(--ok); }
.gym-view .gx-step { background: var(--gx-card-2); box-shadow: none; border: 1px solid var(--gx-hair); border-radius: 12px; }
.gym-view .gx-win { font-size: 1.5rem; font-weight: 760; }
.gx-prev {
  align-self: flex-start; display: inline-flex; gap: 5px; align-items: baseline; margin-block-start: 3px; padding: 1px 8px;
  border: 1px dashed var(--gx-hair); border-radius: var(--rf); background: none; font: inherit; font-size: 11px; font-weight: 640;
  color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums;
}
.gx-prev > span { color: var(--text-3); font-weight: 560; }
.gx-prev:active { background: var(--gx-acc-soft); }
.gym-view .gx-howto { background: var(--gx-card-2); }
.gym-view .gx-opts .chip[aria-pressed="true"] { background: var(--gx-acc-soft); color: var(--gx-acc); border-color: var(--gx-acc-line); }

/* a record: the card lights up for a moment */
.gx-pr-burst { animation: gxburst 1s ease-out 2; }
@keyframes gxburst { 0% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .55); } 100% { box-shadow: 0 0 0 22px rgba(255, 196, 0, 0); } }

/* focus mode: one exercise, big */
.gx-focus .gx-card:not(.is-focus), .gx-focus .gx-warm, .gx-focus .gx-add { display: none; }
.gx-focus .gx-card.is-focus { padding: var(--s5) var(--s4) var(--s4); animation: gxin 260ms var(--ease); }
.gx-focus .gx-card .gx-name { font-size: 1.2rem; }
.gx-focus .gx-card .gx-in { min-height: 54px; font-size: 1.25rem; }
.gx-focus .gx-card .gx-check { width: 54px; height: 52px; }
.gx-focus .gx-card .gx-set, .gx-focus .gx-card .gx-set-head { grid-template-columns: minmax(0, 1fr) 76px 62px 54px 28px; }
@keyframes gxin { from { opacity: 0; transform: translateY(8px); } }

/* the rest timer: a dial, and what comes next */
#gx-rest.gx-rest { background: rgba(10, 11, 16, .9); border: 1px solid rgba(255, 255, 255, .08); padding: 10px var(--s3); }
#gx-rest.gx-rest.is-over { background: rgba(22, 120, 64, .94); }
.gx-rest-dial { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.gx-rest-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-ring-bg { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 4; }
.gx-ring-fg { fill: none; stroke: var(--gx-acc); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 250ms linear; }
.gx-rest.is-over .gx-ring-fg { stroke: #fff; }
.gx-rest-dial .gx-rest-clock { position: relative; font-size: .98rem; min-width: 0; letter-spacing: -.01em; }
.gx-rest-l { display: flex; flex-direction: column; gap: 1px; }
.gx-rest-what { opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rest-next { font-weight: 700; color: #fff; line-height: 1.3; }
#gx-rest .gx-rest-bar { display: none; }

/* by day: the same sheet on white, the accent a shade deeper */
:root:not([data-theme="dark"]) .gym-view .gx-card { box-shadow: 0 1px 0 rgba(16, 18, 27, .03), 0 10px 26px -18px rgba(16, 18, 27, .18); }
:root:not([data-theme="dark"]) .gym-view .gx-card.is-current { box-shadow: 0 18px 40px -24px rgba(226, 83, 26, .45); }

/* ---- the calendar as a drawing sheet ---- */
.cal-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--text-3); margin-block-end: 4px; }
.cal-kicker i { width: 4px; height: 4px; background: var(--line-strong); transform: rotate(45deg); flex: none; }
.cal-title { font-size: 1.7rem; font-weight: 780; letter-spacing: -.03em; line-height: 1.12; }
.cal-rule {
  display: block; height: 9px; margin-block-start: 10px; opacity: .9;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left center / 100% 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 1px 100% no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px 100% no-repeat,
    repeating-linear-gradient(to left, var(--line) 0 1px, transparent 1px 14.2857%) center / 100% 5px no-repeat;
}
.month { border-radius: 18px; box-shadow: 0 1px 0 rgba(16, 18, 27, .03), 0 14px 34px -24px rgba(16, 18, 27, .28); }
[data-theme="dark"] .month, [data-theme="dark"] .timegrid { background: linear-gradient(180deg, #121319, #0c0d12); border-color: rgba(255, 255, 255, .08); }
.month-head { background: transparent; font-size: 10.5px; letter-spacing: .06em; font-weight: 700; padding-block: 10px; }
.month-cell { padding: 6px 5px 7px; gap: 4px; border-color: var(--line); }
.month-cell .md { width: auto; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; font-size: .98rem; font-weight: 680; letter-spacing: -.01em; }
.month-cell.other .md { font-weight: 520; }
.month-cell.is-today .md { box-shadow: 0 6px 14px -6px var(--accent); }
.month-cell.is-today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.month-cell.is-sel:not(.is-today) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
/* Shabbat hatched, as a drawing marks a different material */
.month-cell.is-sat { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text) 5%, transparent) 0 1px, transparent 1px 7px); }
.month-dot { width: 5.5px; height: 5.5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 60%, transparent); }
.month-load { height: 2px; opacity: .7; background: linear-gradient(270deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent)); }
.timegrid { border-radius: 18px; }
.tg-gutter { background: transparent; }
.tg-hour { font-size: 10px; font-weight: 650; letter-spacing: .03em; }
.tg-line.half { opacity: .32; }
.tg-now::after {
  content: attr(data-t); position: absolute; inset-inline-end: 3px; top: -9px; padding: 1px 6px; border-radius: 6px;
  font-size: 10px; font-weight: 760; line-height: 16px; color: #fff; background: var(--danger); font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px -4px var(--danger);
}
.tg-dayname .dd { width: 32px; height: 32px; border-radius: 10px; font-weight: 720; }
.tg-dayname.is-today .dd { box-shadow: 0 6px 14px -6px var(--accent); }
.ev { border-radius: 10px; background-image: linear-gradient(180deg, rgba(255, 255, 255, .38), transparent 70%); }
[data-theme="dark"] .ev { background-image: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.agenda-date { display: flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .04em; }
.agenda-date::after { content: ''; flex: 1; height: 1px; background: var(--line); margin-inline-start: 6px; }
.agenda-item { border-radius: 14px; }

/* ---- the calendar's numerals ----
   Jost (Indestructible Type, SIL Open Font License), the open heir of Futura, the typeface of the
   Bauhaus and of architects' drawings: only its digits, colon, dot and dashes (4.7 KB, variable
   weight), kept in the app and loaded only when the calendar is opened. The Hebrew text keeps the
   app's font: the digits alone change, and only inside the calendar. */
@font-face {
  font-family: 'RetzefCalDigits';
  src: url('/static/fonts/cal-digits.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+2D-3A, U+2013;
}
.view[data-view="calendar"] { font-family: 'RetzefCalDigits', var(--font); }
.view[data-view="calendar"] .cal-title { font-weight: 720; }
.view[data-view="calendar"] .month-cell .md { font-weight: 500; font-size: 1.04rem; letter-spacing: .01em; }
.view[data-view="calendar"] .month-cell.is-today .md { font-weight: 600; }
.view[data-view="calendar"] .tg-dayname .dd { font-weight: 500; font-size: 1.1rem; letter-spacing: .01em; }
.view[data-view="calendar"] .tg-hour { font-weight: 450; font-size: 10.5px; letter-spacing: .06em; }
.view[data-view="calendar"] .ev-time { font-weight: 500; letter-spacing: .03em; }
.view[data-view="calendar"] .ai-time { font-weight: 500; letter-spacing: .02em; }
.view[data-view="calendar"] .tg-now::after { font-weight: 600; letter-spacing: .04em; }
.view[data-view="calendar"] .cal-kicker .tnum { font-weight: 600; }

/* ---- life modes: what each switches, with days and hours ---- */
.mode-row { align-items: flex-start; }
.mode-affects { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-block-start: 6px; }
.mode-aff { font-size: 11.5px; line-height: 1.5; padding: 2px 8px; border-radius: var(--rf); background: var(--surface-2); color: var(--text-2); }
.mode-aff b { font-weight: 700; }
.mode-aff.is-on b { color: var(--ok); }
.mode-aff.is-off b { color: var(--danger); }

/* ---- other jobs ---- */
.job-row { display: flex; align-items: center; gap: var(--s2); width: 100%; padding: var(--s2) 0; border: 0; border-block-end: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.job-row:last-of-type { border-block-end: 0; }
.job-row .t { font-weight: 640; }
.job-pay { margin-block-start: var(--s3); border-radius: var(--r2); background: var(--surface-2); padding: var(--s2) var(--s3); }
.job-pay h4 { font-size: var(--fs-sm); margin: 4px 0; }

/* ---- text size: a meter with its percentage ---- */
.scale-setting { flex-wrap: wrap; row-gap: var(--s2); }
.scale-meter { display: flex; align-items: center; gap: var(--s2); flex: 1 1 220px; justify-content: flex-end; }
.scale-pct {
  min-width: 4.2ch; padding: 3px 9px; border-radius: var(--rf); text-align: center;
  font-weight: 750; font-size: var(--fs-sm); color: var(--accent-text); background: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.scale-range {
  --fill: 27%;
  direction: rtl; flex: 1; min-width: 120px; max-width: 220px; height: 6px; border-radius: 6px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(to left, var(--accent) 0 var(--fill), var(--surface-3, var(--line)) var(--fill) 100%);
}
.scale-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .06);
}
.scale-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

/* Settings: the groups on top, the sections of the open group under them. */
.settings-groups { width: 100%; margin-block-end: 10px; }
.settings-groups .chip { min-height: 36px; padding-inline: 14px; font-weight: 620; }
.settings-groups .chip svg { flex: none; opacity: .85; }
.settings-sub { width: 100%; margin-block-end: 16px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.settings-sub .chip { min-height: 30px; padding-inline: 12px; background: transparent; font-size: var(--fs-xs); }
.benefits .job-row .d { white-space: normal; }.tax-head { text-align: center; padding: 14px 12px; margin-block: 4px 12px; border-radius: var(--r2); background: var(--surface-2); }
.tax-head.is-refund { background: var(--ok-soft); color: var(--ok); }
.tax-head.is-due { background: var(--warn-soft); color: var(--warn); }
.tax-big { font-size: 1.9rem; font-weight: 760; line-height: 1.2; margin-block: 2px; }
.tax-head .muted { color: var(--text-2); }/* Anything marked hidden stays hidden, whatever display its class gives it. */
[hidden] { display: none !important; }
/* The year's report: each part of the form, and each box in it. */
.tf-head { display: flex; align-items: flex-start; gap: 10px; margin-block-end: 4px; }
.tf-head h3 { margin: 0; }
.tf-step { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 760; font-size: var(--fs-sm); }
.tf-field { padding-block: 10px; border-block-start: 1px solid var(--line); }
.tf-top { display: flex; align-items: flex-start; gap: 10px; }
.tf-nums { display: flex; flex-direction: column; gap: 3px; flex: none; }
.tf-num { min-width: 42px; padding: 2px 6px; border: 1.5px solid var(--text-2); border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.4; }
.tf-num + .tf-num { border-style: dashed; opacity: .7; }
.tf-plain { flex: 1; min-width: 0; }
.tf-printed { color: var(--text-2); margin-block-start: 2px; line-height: 1.5; }
.tf-label { display: inline-block; margin-inline-end: 6px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); font-weight: 650; }
.tf-explain { line-height: 1.65; margin-block: 8px 0; }
.tf-from { line-height: 1.6; margin-block: 4px 0; }
.tf-val { display: flex; align-items: center; gap: 6px; margin-block-start: 8px; padding: 6px 10px; border-radius: var(--r2); background: var(--surface-2); }
.tf-val .input { width: 140px !important; }
.tf-amount { font-weight: 740; font-size: var(--fs-lg); }
.tf-val .btn-icon { margin-inline-start: auto; }

/* The workout: a suggestion for the first weight, with its reason. */
.gx-advice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; inline-size: 100%; margin-block-start: 4px; }
.gx-rec.is-down { background: var(--warn-soft); color: var(--warn); }
.gx-advice-why { color: var(--text-2); line-height: 1.55; }
/* The order of today's exercises. */
.gx-order-row { display: flex; align-items: center; gap: 8px; padding-block: 8px; border-block-end: 1px solid var(--line); }
.gx-order-row .gx-order-n { inline-size: 22px; text-align: center; font-weight: 700; color: var(--text-2); }
.gx-order-row .gx-order-name { flex: 1; min-width: 0; }
.gx-order-row.is-done { opacity: .55; }
/* A short block in the time grid: one line, its name then its hours, at its true height (not
   stretched to 44px over the block after it, which hid both). */
.ev.ev-short { flex-direction: row; align-items: center; gap: 6px; padding-block: 0; min-height: 18px; z-index: 3; }
@media (pointer: coarse) { .ev.ev-short { min-height: 18px; } .ev-short .ev-handle { height: 5px; } }
.ev-short .ev-title { position: static; font-size: 11px; line-height: 1.2; flex: 0 1 auto; min-width: 0; }
.ev-short .ev-time { font-size: 10px; flex: none; line-height: 1.2; }

/* The ranking table on the profile. */
.pf-board-list { display: flex; flex-direction: column; gap: 2px; }
.pf-board-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.pf-board-row.is-you { background: var(--accent-soft); }
.pf-board-place { width: 24px; flex: none; text-align: center; font-weight: 700; color: var(--text-3); }
.pf-board-place.is-top { color: var(--warn); }
.pf-board-pic { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: block; object-fit: cover; }
.pf-board-pic svg { width: 100%; height: 100%; display: block; }
.pf-board-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-board-who strong { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-board-pts { flex: none; font-weight: 700; font-size: var(--fs-sm); }
.pf-board-gap { text-align: center; color: var(--text-3); line-height: 1; }

/* Staff: a permission per row (as the role, given, or taken away), and the table of the roles. */
.perm-row { display: flex; align-items: center; gap: 10px; padding-block: 8px; border-block-end: 1px solid var(--line); }
.perm-row .perm-text { flex: 1; min-width: 0; }
.perm-row .select { flex: none; width: auto; min-width: 150px; max-width: 52%; padding-inline-end: 38px; }
.perm-row.is-on .perm-text .strong::after { content: ' ✓'; color: var(--ok); }
.perm-matrix-wrap { overflow-x: auto; }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.perm-matrix th, .perm-matrix td { padding: 7px 6px; border-block-end: 1px solid var(--line); text-align: center; }
.perm-matrix th:first-child, .perm-matrix td:first-child { text-align: start; }
.perm-matrix input { width: 18px; height: 18px; accent-color: var(--accent); }

/* The app moved to another address: one screen over the app, with the way there. It stays
   under the sheets (70) and messages (80) its own buttons open. */
.moved-screen {
  position: fixed; inset: 0; z-index: 65; overflow-y: auto; background: var(--bg);
  display: flex; justify-content: center; align-items: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 20px calc(env(safe-area-inset-bottom, 0px) + 32px);
}
.moved-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.moved-logo { width: 72px; height: 72px; margin-inline: auto; border-radius: 18px; }
.moved-box h1 { font-size: var(--fs-xl); margin: 0; }
.moved-lead { color: var(--text-2, var(--text)); line-height: 1.6; margin: 0; }
.moved-address {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; word-break: break-all; text-align: start;
}
.moved-box a.btn { text-decoration: none; }
.moved-steps { text-align: start; margin: 4px 0 0; padding-inline-start: 22px; line-height: 1.7; }
.moved-admin { text-align: start; margin-block-start: 12px; }
.moved-foot { margin-block-start: 8px; }
.migrate-card .btn-block + .btn-block { margin-block-start: 8px; }
/* ==========================================================================
   The lens (Liquid Glass): a touched capsule becomes a clear lens, larger than its row, with
   what lies under it magnified inside (a copy of the row, see glassLens in ui.js), a bright rim,
   a thin coloured fringe where the edge bends the light, and a soft shadow. Let go, it shrinks
   back into the flat platter that marks the chosen tab.
   ========================================================================== */
:root { --lens-scale: 1.26; }
.glass-lens {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0;
  opacity: 0; transform: scale(1);
  transition: transform 280ms cubic-bezier(.34, 1.36, .64, 1), opacity 160ms cubic-bezier(.2, .8, .2, 1);
}
.glass-lens.on { opacity: 1; transform: scale(var(--lens-scale)); }
/* The edges bend what is behind them: a slight blur and more colour at the two ends only. */
.glass-lens::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-backdrop-filter: blur(1.6px) saturate(1.6); backdrop-filter: blur(1.6px) saturate(1.6);
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 20%, transparent 80%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, transparent 20%, transparent 80%, #000 100%);
}
:root .bottomnav.lensing .tab-pill { z-index: 3; }
:root .glass-tabs.glass-press .glass-pill, :root .glass-tabs.glass-drag .glass-pill,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-press .glass-pill,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-drag .glass-pill { z-index: 3; }
:root .bottomnav.lensing .tab-pill::after,
:root .bottomnav.lensing .tab-pill::before,
:root .glass-tabs.glass-drag .glass-pill::after,
:root .glass-tabs.glass-press .glass-pill::after,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-drag .glass-pill::after,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-press .glass-pill::after {
  transform: scale(var(--lens-scale));
  transition: transform 280ms cubic-bezier(.34, 1.36, .64, 1), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
:root .bottomnav.lensing .tab-pill::before { opacity: 1; }
:root .bottomnav.lensing .tab-pill::after,
:root .glass-tabs.glass-drag .glass-pill::after,
:root .glass-tabs.glass-press .glass-pill::after,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-drag .glass-pill::after,
:root:not([data-theme="dark"]) .gx-kinds.glass-tabs.glass-press .glass-pill::after {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, .95),
    inset 0 -1.5px 2px rgba(255, 255, 255, .55),
    inset 6px 0 8px -5px rgba(255, 70, 160, .45),
    inset -6px 0 8px -5px rgba(60, 170, 255, .5),
    inset 0 -7px 10px -7px rgba(255, 190, 60, .38),
    0 9px 24px rgba(0, 0, 0, .16),
    0 1px 3px rgba(0, 0, 0, .10);
}
:root[data-theme="dark"] .bottomnav.lensing .tab-pill::after,
:root[data-theme="dark"] .glass-tabs.glass-drag .glass-pill::after,
:root[data-theme="dark"] .glass-tabs.glass-press .glass-pill::after {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, .45),
    inset 0 -1.5px 2px rgba(255, 255, 255, .18),
    inset 6px 0 8px -5px rgba(255, 70, 160, .35),
    inset -6px 0 8px -5px rgba(60, 170, 255, .4),
    0 9px 24px rgba(0, 0, 0, .45);
}
/* Glass effects off, less transparency, or less motion: no lens, the platter and an outline. */
:root[data-glass="off"] .glass-lens { display: none; }
@media (prefers-reduced-transparency: reduce) { .glass-lens { display: none; } }
@media (prefers-reduced-motion: reduce) { .glass-lens, .glass-lens.on { transition: none; } }
:root[data-motion="reduced"] .glass-lens, :root[data-motion="reduced"] .glass-lens.on { transition: none; }

/* "עוד": the tabs that are not on the bar, as large tiles in a light sheet. */
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.more-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 12px 8px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms cubic-bezier(.2, .8, .2, 1), background-color 160ms ease;
}
.more-tile:active { transform: scale(.96); }
.more-tile.is-on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.more-tile-ic { display: grid; place-items: center; color: var(--accent-text); }
.more-tile-t { font-size: var(--fs-sm); font-weight: 600; }


/* ---- the ranking table page (views/board.js) ----
   As polished competitive games show one: a hero card with the trophy and the account's own
   standing, the first three as equal champion cards in their metal, everyone else in one clean
   list where each avatar carries its rank emblem, and the own row pinned at the bottom.
   Day: white surfaces with soft layered depth, deeper metals that read on white. Night: deep navy
   panels with lit metals. Every colour is a token here, set once per theme. */
.bd-page {
  padding-block: var(--s2) calc(var(--s6) + 72px); display: flex; flex-direction: column; gap: 14px;
  --bd-card: #ffffff; --bd-card-2: #f6f7fb; --bd-line: rgba(16, 18, 27, .07); --bd-sep: rgba(16, 18, 27, .06);
  --bd-shadow: 0 1px 1px rgba(16, 18, 27, .04), 0 2px 6px -2px rgba(16, 18, 27, .06), 0 22px 44px -28px rgba(16, 18, 27, .3);
  --bd-text: #10131d; --bd-dim: #697086; --bd-faint: #9aa0b1;
  --bd-hero: radial-gradient(90% 120% at 50% -10%, #fff4d6 0%, rgba(255, 244, 214, 0) 58%), linear-gradient(180deg, #ffffff, #fbfbfe);
  --bd-rays: rgba(214, 166, 40, .16);
  --bd-gold: #a87410; --bd-silver: #6f7888; --bd-bronze: #9b5627;
  --bd-gold-metal: linear-gradient(145deg, #fff0b8 0%, #f0c64e 35%, #c8921d 70%, #a8740f 100%);
  --bd-silver-metal: linear-gradient(145deg, #ffffff 0%, #d9dee6 35%, #a9b1be 70%, #858e9c 100%);
  --bd-bronze-metal: linear-gradient(145deg, #ffd9bd 0%, #e09a66 35%, #b06a37 70%, #8c4f24 100%);
  --bd-gold-wash: linear-gradient(180deg, #fff8e2 0%, #ffffff 62%); --bd-silver-wash: linear-gradient(180deg, #f2f4f8 0%, #ffffff 62%);
  --bd-bronze-wash: linear-gradient(180deg, #fbefe6 0%, #ffffff 62%);
  --bd-you: #2f5bd3; --bd-you-wash: rgba(47, 91, 211, .07); --bd-you-ring: rgba(47, 91, 211, .38); --bd-you-pill: #e6edff;
  --bd-emblem-bg: #ffffff; --bd-emblem-fg: #3a4158; --bd-pic-bg: #eceef4;
  --bd-btn: rgba(255, 255, 255, .85); --bd-pin: rgba(255, 255, 255, .9);
}
:root[data-theme="dark"] .bd-page {
  --bd-card: #12162a; --bd-card-2: rgba(255, 255, 255, .035); --bd-line: rgba(255, 255, 255, .08); --bd-sep: rgba(255, 255, 255, .06);
  --bd-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(4, 6, 18, .9);
  --bd-text: #eef0f7; --bd-dim: #9097ad; --bd-faint: #666d84;
  --bd-hero: radial-gradient(90% 120% at 50% -10%, rgba(232, 193, 90, .2) 0%, rgba(232, 193, 90, 0) 55%), radial-gradient(120% 100% at 50% 0%, #1d2446 0%, #10142a 70%);
  --bd-rays: rgba(232, 193, 90, .12);
  --bd-gold: #f0cc68; --bd-silver: #cfd5e0; --bd-bronze: #e09a6a;
  --bd-gold-wash: linear-gradient(180deg, #34302f 0%, #161a33 72%); --bd-silver-wash: linear-gradient(180deg, #2b3047 0%, #161a33 72%);
  --bd-bronze-wash: linear-gradient(180deg, #342a30 0%, #161a33 72%);
  --bd-you: #9fb8ff; --bd-you-wash: rgba(120, 160, 255, .09); --bd-you-ring: rgba(120, 160, 255, .45); --bd-you-pill: rgba(120, 160, 255, .2);
  --bd-emblem-bg: #1a2040; --bd-emblem-fg: #dfe4f3; --bd-pic-bg: rgba(255, 255, 255, .06);
  --bd-btn: rgba(255, 255, 255, .06); --bd-pin: rgba(22, 27, 49, .92);
}
/* The hero: trophy, title, and the account's own standing. */
.bd-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: 22px 16px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--bd-hero); color: var(--bd-text); box-shadow: var(--bd-shadow), inset 0 0 0 1px var(--bd-line); }
.bd-rays { position: absolute; z-index: -1; width: 520px; height: 520px; top: -300px; left: 50%; margin-left: -260px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--bd-rays) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
  animation: bd-spin 90s linear infinite; }
@keyframes bd-spin { to { transform: rotate(1turn); } }
.bd-emblem-big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #3b2800; margin-block-end: 6px;
  background: var(--bd-gold-metal);
  box-shadow: 0 0 0 4px rgba(240, 198, 78, .18), 0 12px 26px -10px rgba(190, 140, 20, .75), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(120, 80, 0, .25); }
.bd-hero h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.bd-hero-sub { font-size: 12.5px; color: var(--bd-dim); }
.bd-me-btn { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
  border-radius: 999px; border: 1px solid var(--bd-line); background: var(--bd-btn); color: var(--bd-text); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* (the icon alone: a round button) */
.bd-me-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
.bd-stand { width: 100%; margin-block-start: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 16px; background: var(--bd-card-2); box-shadow: inset 0 0 0 1px var(--bd-line); }
.bd-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; min-width: 0; }
.bd-stat + .bd-stat { border-inline-start: 1px solid var(--bd-sep); }
.bd-stat-l { font-size: 11px; color: var(--bd-dim); white-space: nowrap; }
.bd-stat-v { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 17px; font-weight: 800; color: var(--bd-text); white-space: nowrap; max-width: 100%; }
.bd-stat-v small { font-size: 10.5px; font-weight: 600; color: var(--bd-dim); }
.bd-stat-v.is-lead { flex-direction: row; align-items: center; gap: 4px; font-size: 14px; color: var(--bd-gold); }
.bd-nick-hint { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 12px; border-radius: 14px;
  border: 1px dashed var(--bd-gold); background: transparent; color: var(--bd-gold); font: inherit; font-weight: 650; cursor: pointer; }
/* The first three: equal cards, each in its metal. */
.bd-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bd-champ { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 4px; min-width: 0;
  padding: 18px 8px 12px; border-radius: 20px; color: var(--bd-text); box-shadow: var(--bd-shadow);
  border: 1.5px solid transparent; animation: bd-rise 420ms cubic-bezier(.2, .8, .2, 1) both; }
.bd-champ.is-gold { background: var(--bd-gold-wash) padding-box, var(--bd-gold-metal) border-box; }
.bd-champ.is-silver { background: var(--bd-silver-wash) padding-box, var(--bd-silver-metal) border-box; animation-delay: 60ms; }
.bd-champ.is-bronze { background: var(--bd-bronze-wash) padding-box, var(--bd-bronze-metal) border-box; animation-delay: 120ms; }
/* A slow light passing over the gold card. */
.bd-champ.is-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) no-repeat; background-size: 250% 100%;
  background-position: 160% 0; animation: bd-sheen 6s ease-in-out 1s infinite; mix-blend-mode: soft-light; }
@keyframes bd-sheen { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@keyframes bd-rise { from { opacity: 0; transform: translateY(8px); } }
.bd-coin { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(0, 0, 0, .15), 0 3px 8px -3px rgba(16, 18, 27, .45); }
.bd-champs { padding-block-start: 13px; }
.is-gold > .bd-coin { background: var(--bd-gold-metal); }
.is-silver > .bd-coin { background: var(--bd-silver-metal); }
.is-bronze > .bd-coin { background: var(--bd-bronze-metal); }
.bd-champ .bd-av { margin-block-end: 4px; }
.bd-champ.is-gold .bd-pic { box-shadow: 0 0 0 2.5px var(--bd-gold), 0 8px 18px -8px rgba(190, 140, 20, .7); }
.bd-champ.is-silver .bd-pic { box-shadow: 0 0 0 2.5px var(--bd-silver), 0 8px 18px -8px rgba(90, 100, 120, .55); }
.bd-champ.is-bronze .bd-pic { box-shadow: 0 0 0 2.5px var(--bd-bronze), 0 8px 18px -8px rgba(150, 80, 30, .55); }
.bd-champ .bd-name { justify-content: center; max-width: 100%; }
.bd-champ .bd-name strong { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.25; overflow-wrap: anywhere; }
.bd-champ .bd-you { display: none; }
.bd-champ.is-you { box-shadow: var(--bd-shadow), 0 0 0 3px var(--bd-you-ring); }
.bd-champ-rank { font-size: 11px; color: var(--bd-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bd-champ-pts { display: flex; flex-direction: column; align-items: center; line-height: 1.1; margin-block-start: auto; padding-block-start: 4px; max-width: 100%; }
.bd-champ-pts strong { font-size: 18px; font-weight: 800; }
.bd-champ-pts span { font-size: 10.5px; color: var(--bd-dim); }
.bd-champ.is-gold .bd-champ-pts strong { color: var(--bd-gold); }
/* The picture with its rank emblem on the corner. */
.bd-av { position: relative; display: inline-block; flex: none; line-height: 0; }
.bd-pic { display: block; border-radius: 50%; overflow: hidden; background: var(--bd-pic-bg); box-shadow: 0 0 0 1.5px var(--bd-line); }
.bd-pic img, .bd-pic svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.bd-emblem { position: absolute; bottom: -3px; inset-inline-end: -4px; width: 44%; aspect-ratio: 1; min-width: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bd-emblem-bg); color: var(--bd-emblem-fg);
  box-shadow: 0 0 0 1.5px var(--bd-line), 0 2px 5px -1px rgba(16, 18, 27, .25); }
.bd-emblem svg { stroke-width: 5; }
/* Everyone else: one clean list. */
.bd-list { border-radius: 22px; background: var(--bd-card); color: var(--bd-text); box-shadow: var(--bd-shadow), inset 0 0 0 1px var(--bd-line); padding: 4px 0; overflow: hidden; }
.bd-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; position: relative;
  animation: bd-rise 360ms cubic-bezier(.2, .8, .2, 1) both; }
.bd-list .bd-row:not(.bd-head) + .bd-row { box-shadow: inset 0 1px 0 var(--bd-sep); }
.bd-head { padding-block: 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--bd-faint); animation: none; }
.bd-head-pts { text-align: end; }
.bd-place { text-align: center; font-weight: 800; font-size: 15px; color: var(--bd-dim); }
.bd-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bd-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.bd-name strong { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bd-text); }
.bd-sub { font-size: 11.5px; color: var(--bd-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-you { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--bd-you-pill); color: var(--bd-you); flex: none; }
.bd-pts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.bd-pts strong { font-size: 15px; font-weight: 800; color: var(--bd-text); }
.bd-pts span { font-size: 10.5px; color: var(--bd-dim); white-space: nowrap; }
.bd-row.is-you { background: var(--bd-you-wash); }
.bd-row.is-you::before { content: ''; position: absolute; inset-block: 10px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--bd-you); }
/* The own row, pinned at the bottom while it is out of view. */
.bd-pin { position: fixed; inset-inline: 12px; bottom: calc(var(--bottomnav-h, 64px) + env(safe-area-inset-bottom) + 10px); z-index: 30;
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 200ms ease; }
.bd-pin.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.bd-pin .bd-row { animation: none; border-radius: 18px; background: var(--bd-pin); color: var(--bd-text);
  box-shadow: 0 16px 36px -16px rgba(16, 18, 27, .45), inset 0 0 0 1px var(--bd-you-ring);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.bd-pin .bd-row::before { display: none; }
@media (min-width: 900px) { .bd-pin { inset-inline: auto 24px; width: 520px; bottom: 20px; } .bd-page { max-width: 720px; } }
@media (max-width: 360px) {
  .bd-champs { gap: 7px; } .bd-champ { padding-inline: 5px; } .bd-champ-pts strong { font-size: 16px; }
  .bd-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; } .bd-stat-v { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .bd-rays, .bd-champ, .bd-row, .bd-champ.is-gold::after { animation: none; } }
/* The premium badge: bronze, or gold after six months in a row. */
.prem-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; color: #fff; }
.prem-badge.is-bronze { background: linear-gradient(135deg, #e3a77c, #9a5a30); }
.prem-badge.is-gold { background: linear-gradient(135deg, #f8dc7a, #c08f1a); box-shadow: 0 0 0 1.5px rgba(255, 236, 170, .6); }
/* The top bar's medal and crown. */
.topbar-trophy { color: #b8860b; } .topbar-crown { color: #a0701a; }
/* The small menu with night mode and privacy. */
.quick-menu { display: grid; gap: 8px; }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 14px; background: var(--surface-2); font: inherit; text-align: start; cursor: pointer; color: var(--text); }
.quick-tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); flex: none; }
.quick-tile-t { display: flex; flex-direction: column; }
.pf-board-top3 { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-board-top-one { display: inline-flex; align-items: center; gap: 6px; }
.pf-board-medal { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e3e6ec, #9aa1ad); }
.pf-board-medal.is-1 { background: linear-gradient(135deg, #f6d36b, #c9971f); }
.pf-board-medal.is-3 { background: linear-gradient(135deg, #e7b08a, #a8653a); }

/* ---- the plans page (views/plans.js) ---- */
.pl-page { padding-block: var(--s3) var(--s6); display: flex; flex-direction: column; gap: var(--s3); max-width: 860px; margin-inline: auto; }
.pl-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: var(--s2); }
.pl-hero h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.pl-hero p { margin: 0; color: var(--text-2); max-width: 34ch; line-height: 1.55; }
.pl-hero-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #3a2700;
  background: linear-gradient(145deg, #fde9a8, #d9a636); box-shadow: 0 14px 30px -14px rgba(190, 140, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.pl-hero-ic.is-small { width: 48px; height: 48px; border-radius: 14px; margin-inline: auto; }
.pl-status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-1); font-weight: 650; }
.pl-status.is-paid { background: linear-gradient(90deg, rgba(232, 193, 90, .18), var(--surface)); }
.pl-cards { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pl-cards { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.pl-card { position: relative; border-radius: 22px; padding: 18px 16px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
/* Day: a plain white card with a fine gold frame (the gold only on the edge), as pricing pages
   highlight their one plan; night: the deep card. */
.pl-card.is-premium {
  --pl-gold: #8a5f00; --pl-gold-soft: var(--surface-2); --pl-dim: var(--text-3);
  border: 2px solid transparent; color: var(--text);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #f3d77f, #c4922a 45%, #f0cf6e 70%, #b8861f) border-box;
  box-shadow: 0 20px 40px -26px rgba(16, 18, 27, .35); }
.pl-card.is-premium .muted, .pl-card.is-premium .xs.muted { color: var(--pl-dim); }
:root[data-theme="dark"] .pl-card.is-premium {
  --pl-gold: #f2cf6b; --pl-gold-soft: rgba(242, 207, 107, .12); --pl-dim: #b9b2cc; border: 0;
  background: radial-gradient(130% 90% at 50% 0%, #2a2148 0%, #141226 65%); color: #f3efe2;
  box-shadow: 0 22px 44px -24px rgba(20, 14, 40, .8), inset 0 0 0 1px rgba(232, 193, 90, .45); }
.pl-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pl-card-top h3 { margin: 0; font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.pl-card.is-premium h3 { color: var(--pl-gold); }
.pl-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.pl-price strong { font-size: 28px; font-weight: 800; } .pl-price span { font-size: 12px; color: var(--text-3); }
.pl-card.is-premium .pl-price span { color: var(--pl-dim); }
.pl-ribbon { position: absolute; top: -10px; inset-inline-start: 16px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #3a2700; background: linear-gradient(135deg, #fbe39a, #d7a531); }
.pl-plus { margin: 0; font-weight: 650; }
.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.pl-list li > svg { color: var(--ok, #2f9e5c); flex: none; margin-top: 2px; }
.pl-list.is-rich li > span:last-child { display: flex; flex-direction: column; }
.pl-li-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--pl-gold); background: var(--pl-gold-soft); }
.pl-trial { background: transparent; color: var(--pl-gold); border: 1px solid currentColor; text-decoration: none; justify-content: center; gap: 8px; }
.pl-note { margin: 0; text-align: center; }
.pl-chars { text-align: center; margin: 0; }
.pl-sheet { text-align: center; display: flex; flex-direction: column; gap: 8px; padding-block: 6px; }
.pl-sheet h3 { margin: 4px 0 0; font-size: 17px; }
/* A premium part locked for a free account (ui.js premiumLock). */
.prem-lock { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px; border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(232, 193, 90, .16), var(--surface) 70%); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(232, 193, 90, .35); }
.prem-lock.is-compact { flex-direction: row; text-align: start; padding: 12px 14px; border-radius: 16px; }
.prem-lock-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #3a2700; flex: none;
  background: linear-gradient(145deg, #fde9a8, #d9a636); box-shadow: 0 10px 22px -12px rgba(190, 140, 20, .8); }
.prem-lock.is-compact .prem-lock-ic { width: 36px; height: 36px; border-radius: 11px; }
.prem-lock-t { display: flex; flex-direction: column; gap: 4px; max-width: 36ch; }
.prem-lock.is-compact .prem-lock-t { flex: 1; min-width: 0; }
.prem-lock-t strong { font-size: 17px; } .prem-lock.is-compact .prem-lock-t strong { font-size: 15px; }
.btn-premium { background: linear-gradient(135deg, #f6d36b, #c9971f); color: #2a1d00; border-color: transparent; font-weight: 750; gap: 6px; }
.prem-page { padding-block: var(--s4); max-width: 520px; margin-inline: auto; }
body[data-view="plans"] .fab, body[data-view="board"] .fab { display: none; }
/* The subscription on the users screen (views/users.js): the list badge, the meter, the banner. */
.prem-list-badge { display: inline-flex; align-items: center; gap: 4px; }
.prem-list-badge.is-gold { background: rgba(214, 166, 40, .14); color: #8a5f00; }
.prem-list-badge.is-bronze { background: rgba(168, 97, 47, .12); color: #8c4f24; }
:root[data-theme="dark"] .prem-list-badge.is-gold { color: #f0cc68; } :root[data-theme="dark"] .prem-list-badge.is-bronze { color: #e8a87c; }
.prem-list-badge .prem-badge { width: 14px; height: 14px; }
.prem-status-line { display: flex; align-items: center; gap: 8px; }
.prem-meter-wrap { display: flex; flex-direction: column; gap: 6px; margin-block-start: 10px; color: var(--text-2); }
.prem-meter { height: 8px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.prem-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(to left, #f0c64e, #c8921d); transition: width 300ms ease; }
.prem-meter-wrap.is-over { color: var(--danger); font-weight: 650; }
.prem-meter-wrap.is-over .prem-meter > span { background: var(--danger); }
.prem-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.prem-trial { margin-block-start: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.prem-trial .field { width: 100%; margin: 0; }
.prem-due { box-shadow: var(--sh-1), inset 0 0 0 1px var(--danger-soft); }
.prem-due-row { display: flex; align-items: center; gap: 8px; padding-block: 10px; border-block-start: 1px solid var(--line); }
.prem-due-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-premium-sep { border: 0; border-block-start: 1px solid var(--line); margin-block: 16px 4px; }
/* The plans page right after the first setup (views/plans.js welcomePlans). */
.pl-welcome { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin-block-end: 8px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--ok-soft); color: var(--ok); }
.pl-later { align-self: center; }
/* The subscriptions tab (views/users.js drawPremium). */
.prem-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prem-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.prem-stat strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.prem-stat.is-over { background: var(--danger-soft); color: var(--danger); }
.prem-stat.is-over .muted { color: inherit; }
.prem-group.is-over { box-shadow: var(--sh-1), inset 0 0 0 1px var(--danger-soft); }
.prem-item { padding-block: 14px; border-block-start: 1px solid var(--line); }
.prem-item-who { display: flex; align-items: center; gap: 10px; margin-block-end: 8px; }
.prem-item-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.prem-due-note { display: flex; align-items: center; gap: 8px; width: 100%; margin-block: 0 12px; padding: 12px 14px; border-radius: 16px; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; text-align: start; background: var(--danger-soft); color: var(--danger); }
.prem-due-note > span:nth-child(2) { flex: 1; }
.prem-due-go { font-size: 12px; text-decoration: underline; }
@media (max-width: 380px) { .prem-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Numbered steps on the purchases tab and its sheets (views/users.js stepsList). */
.how-steps { margin: 6px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.how-steps li::marker { font-weight: 800; color: var(--accent-text); }
/* The workout's exercises as large cards (views/gym.js drawStart, pickExercise). */
.gx-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .gx-ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gx-ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gx-ex-card { position: relative; display: flex; flex-direction: column; align-items: stretch; border-radius: 18px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -12px rgba(16, 18, 27, .35); }
.gx-ex-card.is-optional { opacity: .82; }
.gx-ex-card > .gx-art-box { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; cursor: zoom-in; }
.gx-ex-card > .gx-art-box svg { width: 70%; height: auto; max-height: 100%; }
.gx-ex-empty { color: var(--text-3); }
.gx-ex-n { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface); color: var(--text); box-shadow: 0 2px 6px -2px rgba(16, 18, 27, .3); }
.gx-ex-up { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--ok); color: #fff; }
.gx-ex-main { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 10px; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; flex: 1; }
.gx-ex-main:hover { background: var(--surface-2); }
.gx-ex-slot { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-ex-name { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.gx-ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-block-start: auto; padding-block-start: 6px; }
.gx-ex-last { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.gx-ex-last.is-new { font-weight: 500; color: var(--text-3); background: none; padding-inline: 0; }
.gx-ex-swap { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; color: var(--accent-text); white-space: nowrap; }
.gx-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-block: 4px 8px; }
.gx-pick-card { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 10px; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: inherit; text-align: start; }
.gx-pick-card:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.gx-pick-card > .gx-art-box { width: 100%; aspect-ratio: 16 / 10; height: auto; border-radius: 0; margin-block-end: 4px; }
.gx-pick-card > .gx-art-box svg { width: 62%; height: auto; max-height: 100%; }
.gx-pick-name { padding-inline: 10px; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.gx-pick-meta { padding-inline: 10px; font-size: 11px; color: var(--text-3); }
/* Two-step sign-in (views/settings.js twoStepCard, views/auth.js renderSecondStep). */
.qr-box { width: min(220px, 70vw); margin: 10px auto 12px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 14px; }
.backup-codes code { padding: 10px 6px; border-radius: 12px; background: var(--surface-2); text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.totp-key { display: block; margin-block: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; font-size: 14px; letter-spacing: .06em; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.totp-field { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-block: 8px; border-block-start: 1px solid var(--line); }
.totp-field-l { font-size: 12px; color: var(--text-3); }
.totp-field-v { font-weight: 700; font-size: 14px; word-break: normal; overflow-wrap: anywhere; word-spacing: .15em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.totp-field-v[dir="auto"] { font-family: inherit; }
/* ---- the skill card (ui.js skillCard): a character's power, as top games show one ----
   One accent per card, by rarity (the character's rank band): common jade, rare sapphire, epic
   amethyst, legendary amber, mythic (the collector) gold with a slowly turning frame. A tinted
   header band with the icon in a framed square and a type badge on its corner; a well of stat rows
   (type, uses, shields); an ornament divider; the effect; numbered rules. Day: white card, colour
   only as ink and a coloured bottom edge (no gold on white); night: deep card, glowing icon. */
.sk-wrap { --r: #E08A1E; --r-ink: #A35A00; --r-soft: #fbf1e4; --r-line: #e5c8a0; --r-icon: #734e25;
  --card: #FFFFFF; --well: #F7F5F0; --text: #171A26; --dim: #5E6475; --hair: #ECE8E0;
  display: flex; flex-direction: column; gap: 12px; width: 100%; margin-block-start: 16px; text-align: start; }
.sk-wrap[data-r="common"] { --r: #2F9E7A; --r-ink: #17775A; --r-soft: #e6f3ef; --r-line: #b0cebc; --r-icon: #23574f; }
.sk-wrap[data-r="rare"] { --r: #3A6FE0; --r-ink: #2453C2; --r-soft: #e7eefb; --r-line: #b3c0da; --r-icon: #28427c; }
.sk-wrap[data-r="epic"] { --r: #8B4FE0; --r-ink: #6B32C2; --r-soft: #f1eafb; --r-line: #cbb6da; --r-icon: #4d347c; }
.sk-wrap[data-r="legendary"] { --r: #E08A1E; --r-ink: #A35A00; --r-soft: #fbf1e4; --r-line: #e5c8a0; --r-icon: #734e25; }
.sk-wrap[data-r="mythic"] { --r: #D4A437; --r-ink: #9A6400; --r-soft: #faf4e7; --r-line: #e1cfa8; --r-icon: #6e5a30; }
:root[data-theme="dark"] .sk-wrap { --card: #141724; --well: rgba(255, 255, 255, .045); --text: #EEF0F7; --dim: #A2A8BC; --hair: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .sk-wrap[data-r="common"] { --r-ink: #6FE3B8; --r-soft: #1b3a3a; --r-line: #2c645e; }
:root[data-theme="dark"] .sk-wrap[data-r="rare"] { --r-ink: #93B4FF; --r-soft: #1e2e55; --r-line: #324e8f; }
:root[data-theme="dark"] .sk-wrap[data-r="epic"] { --r-ink: #C9A4FF; --r-soft: #332655; --r-line: #593e8f; }
:root[data-theme="dark"] .sk-wrap[data-r="legendary"] { --r-ink: #FFBE5C; --r-soft: #493522; --r-line: #815b32; }
:root[data-theme="dark"] .sk-wrap[data-r="mythic"] { --r-ink: #F6D57E; --r-soft: #463c29; --r-line: #7c673e; }
.sk-card { border-radius: 20px; border: 1px solid var(--r-line); background: var(--card); color: var(--text); overflow: hidden;
  box-shadow: 0 3px 0 var(--r-line), 0 1px 2px rgba(23, 26, 38, .06), 0 14px 30px -18px var(--r); }
:root[data-theme="dark"] .sk-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(0, 0, 0, .35), 0 22px 44px -22px var(--r-icon); }
/* The header band: icon, rarity and type, name. */
.sk-band { display: flex; gap: 12px; align-items: center; padding: 16px 16px 14px; background: linear-gradient(180deg, var(--r-soft), transparent); }
:root[data-theme="dark"] .sk-band { background: radial-gradient(120% 140% at 85% 0%, var(--r-soft), transparent 70%); }
.sk-icon { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, #fff, var(--r-soft)); border: 1.5px solid var(--r); box-shadow: inset 0 0 0 3px #fff, 0 2px 0 var(--r-line); color: var(--r-ink); }
.sk-icon > svg { width: 24px; height: 24px; stroke-width: 2; }
:root[data-theme="dark"] .sk-icon { background: radial-gradient(circle at 50% 30%, var(--r-icon), #0C0E17); color: #fff; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35);
  filter: drop-shadow(0 0 8px var(--r-icon)); }
.sk-type { position: absolute; inset-block-end: -5px; inset-inline-end: -5px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); box-shadow: 0 0 0 1.5px var(--r); color: var(--r-ink); font-size: 12px; font-weight: 800; line-height: 1; }
.sk-type > svg { width: 12px; height: 12px; }
.sk-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-kicker { font: 700 11.5px/1.2 system-ui, sans-serif; letter-spacing: .03em; color: var(--r-ink); }
.sk-name { font-family: 'RetzefRole', 'Times New Roman', serif; font-weight: 400; font-size: 23px; line-height: 1.15; color: var(--text); }
:root[data-theme="dark"] .sk-name { text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.sk-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
/* The ornament divider: a hairline fading at both ends, a small diamond in the middle. */
.sk-div { height: 7px; position: relative; background: linear-gradient(90deg, transparent, var(--r-line) 18% 82%, transparent) center / 100% 1px no-repeat; }
.sk-div::after { content: ''; position: absolute; top: 0; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--r); border-radius: 1px; }
.sk-effect { margin: 0; font-size: 15px; line-height: 1.6; }
.sk-effect b { font-weight: 700; color: var(--r-ink); }
.sk-rules-h { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; color: var(--dim); }
/* The skill in plain words: what happens in practice, and where in the app. */
.sk-plain { margin-block: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--r-ink, var(--accent)) 7%, transparent); border: 1px solid color-mix(in srgb, var(--r-ink, var(--accent)) 16%, transparent); }
.sk-how { margin: 0; font-size: 14px; line-height: 1.6; }
.sk-where { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.sk-where svg { flex: none; margin-block-start: 3px; }
.sk-rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.sk-rules li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--dim); }
.sk-rules li::before { counter-increment: r; content: counter(r); width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; background: var(--r-soft); color: var(--r-ink); margin-block-start: 1px; }
.sk-foot { list-style: none; margin: 0; padding: 10px 4px 0; border-block-start: 1px solid var(--hair); display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--dim); }
.sk-foot li { display: flex; align-items: center; gap: 6px; }
.sk-foot svg { color: var(--r-ink); flex: none; }
/* Mythic (the collector): a frame of gold, rose and violet that turns slowly. */
@property --sk-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sk-wrap[data-r="mythic"] .sk-card { border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--sk-a), #D4A437, #F6E3A1, #E0559A, #8B4FE0, #D4A437) border-box;
  animation: sk-turn 8s linear infinite; }
@keyframes sk-turn { to { --sk-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sk-wrap[data-r="mythic"] .sk-card { animation: none; } }
.sk-none { display: flex; align-items: center; gap: 8px; margin-block-start: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); text-align: start; }
.av-switch-note { margin: 6px 0 0; text-align: center; }
/* The profile's streak card (views/profile.js streakCard). */
.st-top { display: flex; align-items: center; gap: 16px; margin-block: 4px 10px; }
.st-count { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 10px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(240, 198, 78, .22), rgba(240, 198, 78, .06)); box-shadow: inset 0 0 0 1px rgba(200, 146, 29, .3); }
.st-count strong { font-size: 30px; font-weight: 800; line-height: 1; color: #a8771a; }
:root[data-theme="dark"] .st-count strong { color: #f0cc68; }
.st-count span { font-size: 11px; color: var(--text-2); }
.st-today { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.st-bar { height: 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.st-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(to left, #3fbf7f, #2f9e5c); transition: width 300ms ease; }
.st-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: var(--surface-2); }
.st-note.is-gold { background: rgba(240, 198, 78, .14); color: #8a5f00; }
:root[data-theme="dark"] .st-note.is-gold { color: #f0cc68; }
.st-note svg { flex: none; margin-block-start: 2px; }
.st-shields { display: flex; align-items: center; gap: 10px; margin-block: 2px 10px; }
.st-shield-row { display: flex; gap: 4px; }
.st-shield { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #2f5bd3; background: rgba(47, 91, 211, .1); box-shadow: inset 0 0 0 1px rgba(47, 91, 211, .25); }
:root[data-theme="dark"] .st-shield { color: #a9c1ff; background: rgba(120, 160, 255, .14); }
.st-shield.is-used { opacity: .35; filter: grayscale(1); }
.st-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin-block: 4px 12px; }
.st-day { aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.st-day.is-full { background: #2f9e5c; box-shadow: none; }
.st-day.is-kept { background: #4a74e0; box-shadow: none; }
.st-day.is-broken { background: rgba(192, 45, 50, .18); box-shadow: inset 0 0 0 1px rgba(192, 45, 50, .35); }
.st-day.is-open { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.st-char { display: flex; flex-direction: column; gap: 2px; padding-block: 10px 2px; border-block-start: 1px solid var(--line); margin: 0; }
.st-skill { display: flex; flex-direction: column; gap: 8px; margin-block-start: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.st-skill p { margin: 0; }
.st-skill .input { flex: 1; min-width: 0; }
/* The skill's word on the day screen (views/today.js skillNudge). */
.st-nudge { box-shadow: var(--sh-1), inset 0 0 0 1px rgba(200, 146, 29, .35); background: linear-gradient(160deg, rgba(240, 198, 78, .12), var(--surface) 60%); }
.st-nudge-h { display: flex; align-items: center; gap: 8px; margin-block-end: 4px; }
.st-nudge-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #3b2800; background: linear-gradient(145deg, #fff0b8, #f0c64e 40%, #c8921d); flex: none; }
.st-nudge p { margin: 0 0 6px; }
.st-nudge-list { margin: 0; padding-inline-start: 20px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
/* An account's character ladder on the admin screens (views/users.js boughtBox). */
.lad-rank { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 650; }
.lad { display: flex; flex-direction: column; gap: 6px; }
.lad-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); }
.lad-pic { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.lad-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lad-t { display: flex; flex-direction: column; min-width: 0; }
.lad-t strong { font-size: 14px; }
.lad-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lad-state { font-size: 11px; font-weight: 750; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lad-row.is-rank .lad-state { background: var(--ok-soft); color: var(--ok); }
.lad-row.is-bought .lad-state { background: rgba(214, 166, 40, .16); color: #8a5f00; }
:root[data-theme="dark"] .lad-row.is-bought .lad-state { color: #f0cc68; }
.lad-row.is-next { box-shadow: inset 0 0 0 2px var(--accent); background: var(--surface); }
.lad-row.is-next .lad-state { background: var(--accent-soft); color: var(--accent-text); }
.lad-row.is-locked { opacity: .55; }
.lad-row.is-locked .lad-state { background: transparent; color: var(--text-3); }
.sk-short { font-size: 12.5px; line-height: 1.45; color: var(--dim); margin-block-start: 2px; }

/* ---- the ranking table: character frames on names and the collector's number (views/board.js) ----
   A player who shows a picture character it holds wears that character's colour round its name
   (src/lib/charstyle.ts): a thin line and the faintest tint, the name itself in the table's own text
   colour so it reads alike in both themes. At night the colour is lifted towards white, so the deep
   ones (indigo, amethyst) still show on navy. Eclipse wears crimson with an arc of corona gold. The
   collector's frame is living gold: one gleam travelling slowly round it, as on its icon, and still
   when less motion is asked for. Its number ("אספן #N") is a small gold coin beside the name. */
.bd-tag { --tag-c: var(--tag); position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; flex: 0 1 auto;
  padding: 1px 8px; border-radius: 999px; border: 1.5px solid var(--tag-c); background: color-mix(in srgb, var(--tag-c) 9%, transparent); }
:root[data-theme="dark"] .bd-tag { --tag-c: color-mix(in oklab, var(--tag) 64%, #fff); background: color-mix(in srgb, var(--tag-c) 11%, transparent); }
.bd-tag > strong { min-width: 0; }
/* In the narrow champion cards the frame reaches a little into the card's padding, so a long name keeps its line. */
.bd-champ .bd-tag { border-radius: 12px; padding: 2px 5px; margin-inline: -4px; max-width: calc(100% + 8px); }
/* The two drawn frames: a ring cut out of a gradient, so the pill keeps whatever is behind it. */
.bd-tag.is-living, .bd-tag[data-char="eclipse-sovereign-king"] { border-color: transparent; }
.bd-tag.is-living::before, .bd-tag[data-char="eclipse-sovereign-king"]::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  -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 exclude, linear-gradient(#000 0 0); }
.bd-tag[data-char="eclipse-sovereign-king"]::before { background: linear-gradient(115deg, var(--tag-c) 0%, var(--tag-c) 48%, #d9a73e 72%, #f3d27a 80%, var(--tag-c) 100%); }
.bd-tag.is-living { background: linear-gradient(90deg, rgba(232, 186, 70, .08), rgba(232, 186, 70, .2) 50%, rgba(232, 186, 70, .08)); }
.bd-tag.is-living::before { background: conic-gradient(from var(--bd-tag-turn), #8a6a24, #c99b3c 14%, #fff1c4 25%, #d8b25a 34%, #8a6a24 50%, #c9a14a 75%, #8a6a24);
  animation: bd-tag-turn 7s linear infinite; }
:root[data-theme="dark"] .bd-tag.is-living::before { filter: brightness(1.3) saturate(1.1); }
@property --bd-tag-turn { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes bd-tag-turn { to { --bd-tag-turn: 360deg; } }
@media (prefers-reduced-motion: reduce) { .bd-tag.is-living::before { animation: none; } }
:root[data-motion="reduced"] .bd-tag.is-living::before { animation: none; }
.bd-serial { flex: none; font-size: 10px; font-weight: 800; line-height: 1.6; padding: 0 7px; border-radius: 999px; white-space: nowrap;
  color: #4a3200; background: var(--bd-gold-metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 3px -1px rgba(120, 84, 10, .55); }
.bd-champ .bd-name.has-serial { flex-wrap: wrap; row-gap: 5px; }

/* ---- the profile character's line for the day (views/today.js characterLine) ----
   A small speech bubble from the character's picture: the picture on the start side, the bubble's
   corner nearest it drawn in, the character's name small above its line. Theme surfaces only. */
.ch-line { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding-inline: 2px; }
.ch-line > .avatar { flex: none; box-shadow: 0 0 0 2px var(--surface), 0 4px 10px -4px rgba(16, 18, 27, .35); }
.ch-line-b { flex: 1; min-width: 0; padding: 9px 14px 10px; border-radius: 18px; border-end-start-radius: 6px;
  background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.ch-line-who { display: block; font-size: 11.5px; font-weight: 750; color: var(--text-3); margin-block-end: 2px; }
.ch-line-q { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
/* Other languages (public/static/js/i18n.js): the page reads left to right, the arrows turn with it;
   Japanese in the system's Japanese fonts. */
:root[dir="ltr"] .ic[data-icon="back"], :root[dir="ltr"] .ic[data-icon="forward"] { transform: scaleX(-1); }
:root[lang="ja"] { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
.lang-pick { display: flex; justify-content: center; margin-block-start: 14px; }
.lang-pick select { width: auto; min-width: 140px; }
/* The WhatsApp button keeps its green on hover (the plain buttons' hover is near the background). */
.btn.btn-whatsapp:hover { background: #17924a; color: #fff; border-color: transparent; }
.btn.btn-whatsapp:focus-visible { outline: 2px solid #17924a; outline-offset: 2px; }
/* Desktop: the ranking table and the plans centred in the screen, the champions wider, the two plans
   side by side at the same height. */
@media (min-width: 900px) {
  .bd-page { max-width: 820px; margin-inline: auto; padding-inline: var(--s4); }
  .bd-hero { padding: 26px 24px 20px; }
  .bd-champs { gap: 16px; }
  .bd-champ { padding: 22px 12px 16px; }
  .bd-pin { inset-inline: auto; left: calc(50% - var(--sidebar-w) / 2); transform: translate(-50%, 16px); width: min(780px, calc(100vw - var(--sidebar-w) - 48px)); }
  .bd-pin.is-shown { transform: translate(-50%, 0); }
  .pl-page { max-width: 980px; padding-inline: var(--s4); }
  .pl-cards { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 24px; }
  .pl-card { padding: 24px 22px; }
  .pl-card.is-free { justify-content: flex-start; }
}
/* The lens is frosted glass, not a solid sheet: the page's own colours show through between the
   tabs, and the real labels under the magnified copy are blurred away instead of covered. */
.glass-lens { -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); background: color-mix(in srgb, var(--surface) 30%, transparent); }
:root[data-theme="dark"] .glass-lens { background: color-mix(in srgb, var(--surface) 22%, transparent); }

/* The phone number screen: why it is asked, in three short lines. */
.phone-why { list-style: none; margin: 4px 0 16px; padding: 12px 14px; display: grid; gap: 8px; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.08)); }
.phone-why li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-2, inherit); line-height: 1.45; }
.phone-why li svg { flex: none; opacity: .75; }
.user-phone { margin-block: 6px 10px; }

/* The users screen while its next tab loads: the old one stays, dimmed, instead of emptying. */
.users-host { transition: opacity .16s ease; }
.users-host.is-loading { opacity: .5; pointer-events: none; }

/* Free premium in the users screen: one row per kind, its state and its buttons. */
.free-box { display: grid; gap: 8px; margin-block: 6px 10px; }
.free-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(127,127,127,.08)); }
.free-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.free-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* The code an account sends in WhatsApp to verify its phone. */
.verify-code { margin: 10px auto 12px; padding: 10px 18px; width: fit-content; border-radius: 12px; font: 800 1.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; background: var(--accent-soft); color: var(--accent-text); }
.rank-board { display: flex; align-items: center; min-height: 32px; margin-block-start: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--accent-text); opacity: .9; cursor: pointer; text-align: start; }

/* The phone's top bar: the picture at the start, the controls each on its own, the view ones grouped. */
.topbar { gap: 4px; }
.topbar #topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-start: 6px; }
.topbar-group { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--line) 35%, transparent); }
.topbar-group .btn-icon { border-color: transparent; background: transparent; }
@media (max-width: 360px) { .topbar #topbar-title { display: none; } }
.av-theme { margin-block-start: 12px; }

/* The top bar never widens the page (200% text zoom): its buttons scroll sideways inside it. */
.topbar { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.topbar::-webkit-scrollbar { display: none; }
.topbar .topbar-group, .topbar .btn, .topbar .topbar-avatar { flex: none; }

/* Longer words in other languages: buttons and segmented controls wrap instead of sticking out of the screen. */
html:not([lang="he"]) .btn { white-space: normal; text-align: center; max-width: 100%; padding-block: 6px; line-height: 1.25; }
html:not([lang="he"]) .btn-icon { padding: 0; }
html:not([lang="he"]) .segmented { flex-wrap: wrap; max-width: 100%; }
html:not([lang="he"]) .segmented button { white-space: normal; flex: 1 1 auto; line-height: 1.25; }
/* The file picker: the browser writes its own words in its own language, so another language gets our own. */
.file-pick { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.file-pick-name { font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }

/* The capsule of the tab strips grows into a lens when it is touched; the strip clips whatever sticks out of it, so it
   gets room around its row (the same amount pulled back as a negative margin: nothing moves) and rises above its neighbours. */
.chips-scroll.glass-tabs { padding-inline: 18px; margin-inline: -18px; scroll-padding-inline: 18px; padding-block: 8px; margin-block-start: -8px; }
/* (the settings strips keep their own spacing: the room comes out of it) */
.settings-groups.chips-scroll.glass-tabs { margin-block-end: 2px; }
.settings-sub.chips-scroll.glass-tabs { padding-block-start: 10px; margin-block-start: 0; margin-block-end: 8px; }
.glass-tabs.glass-press, .glass-tabs.glass-drag { z-index: 6; }
/* Telegram: the verification button in Telegram's own blue, waiting (dimmed) until its link is ready. */
/* (the sign-in screens give their plain buttons a grey of their own: this one stays blue there too) */
.btn.btn-telegram, .auth-scene .btn.btn-telegram:not(.btn-primary):not(.btn-ghost) { background: #229ED9; color: #fff; border-color: transparent; text-decoration: none; }
.btn.btn-telegram:hover, .auth-scene .btn.btn-telegram:not(.btn-primary):not(.btn-ghost):hover { background: #1c8bc0; }
.btn-telegram[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.tg-box { display: grid; gap: 8px; margin-block: 6px 10px; }
.tg-note { text-align: center; line-height: 1.6; }
/* What an advanced character takes: a short checklist under its story. */
.av-rules { margin-block-start: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); text-align: start; }
.av-rules-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-block-end: 8px; }
.av-rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.av-rules-list li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.av-rules-list li svg { flex: none; opacity: .7; }
.av-rules-list li.is-done { color: var(--text); }
.av-rules-list li.is-done svg { color: var(--ok, #2fae63); opacity: 1; }
.av-rule-t { flex: 1; line-height: 1.4; }
.av-rule-n { flex: none; font-weight: 650; }
/* One workout a day: the day's is done. */
.gx-done-today { display: flex; align-items: center; justify-content: center; gap: 6px; margin-block-start: 10px; text-align: center; }
/* A select's arrow sits at the end of the line (left in Hebrew, right in English), always with room kept for
   it, so it never sits on the text or under it (some narrow selects set their own padding: the room stays). */
.select { padding-inline-end: 34px !important; padding-inline-start: var(--s3); background-position: 14px 50%, 19px 50%; }
[dir="ltr"] .select { background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; }
.av-earn { margin: 8px 0 0; line-height: 1.6; }
.av-self-open { margin-block-start: 14px; }
.about-mail { margin: 4px 0 0; }
.about-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.about-copy { margin-inline-start: 4px; }
.about-mail a { color: var(--accent-text, var(--accent)); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
/* Inside the store app (core.js NATIVE): no paying for digital goods there (the stores' rules); what was bought works. */
html[data-native] a[href^="#pay:"], html[data-native] .pp-pay, html[data-native] .pl-note, html[data-native] .av-buy-now, html[data-native] .av-buy-how, html[data-native] .sp-pbuy, html[data-native] .pl-trial { display: none !important; }
/* The prices card: the price, and beside it a standing discount in percent. */
.shop-price-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.shop-off { display: inline-flex; align-items: center; gap: 4px; }
.shop-after { margin-block-start: 2px; color: var(--ok, #059669); }
/* The sale's checklist: quick marks, then a box for each item. */
.shop-pick { margin-block: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.shop-pick > summary { cursor: pointer; padding-block: 4px; list-style-position: inside; }
.shop-pick-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 8px; }
.shop-pick-list { display: grid; gap: 2px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; }
.shop-pick-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 40px; padding-inline: 4px; border-radius: 10px; cursor: pointer; }
.shop-pick-row:hover { background: var(--bg-sunken); }
.shop-pick-row input { width: 18px; height: 18px; accent-color: var(--accent); }
/* Paying for premium (views/plans.js): the year line, the buttons, and the sheet. */
.pl-wait { padding: 10px 12px; border-radius: 12px; background: var(--bg-sunken); display: grid; gap: 6px; }
.pl-wait p { display: flex; gap: 6px; align-items: flex-start; margin: 0; line-height: 1.6; }
.pl-paysheet { display: grid; gap: 14px; }
.pl-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pl-opt { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-height: 56px; }
.pl-opt.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pl-save { color: var(--ok, #059669); font-weight: 600; }
.pl-details { display: grid; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--bg-sunken); }
.pl-copy { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; min-height: 44px; }
.pl-copy-v { font-weight: 700; overflow-wrap: anywhere; }
.pl-steps { margin: 0; padding-inline-start: 1.3em; line-height: 1.8; }
/* Against bots (views/auth.js humanGuard): the trap field no person sees, and the human check's place. */
.hp-field { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ts-box { min-height: 65px; margin-block: 4px 12px; }
/* A place reached from another screen (revealAnchor in core.js): lit for a moment. */
.anchor-flash { animation: anchor-flash 2.4s ease-out; border-radius: 14px; }
[data-anchor] { scroll-margin-block-start: 84px; }
@keyframes anchor-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .anchor-flash { animation-duration: 1.2s; } }

/* ---- skins: the mythic badge, what opens a skin, a bundle; the collector outside its event ---- */
.av-badge-mythic { color: #fff; background: linear-gradient(135deg, #ff5a7a, #a347ff 55%, #f1c25a); box-shadow: 0 1px 4px rgba(120, 30, 120, .45); }
.av-pick.tier-skin .av-char { box-shadow: 0 0 0 2px #b46bff, 0 6px 16px -6px rgba(140, 60, 200, .5); }
.av-pick.tier-skin .av-pick-role, .av-info.tier-skin .av-info-role { color: #9a4fe0; }
.av-skin-need, .av-event-closed { flex-direction: column; gap: 6px; }
.av-skin-line { display: flex; align-items: flex-start; gap: 6px; text-align: start; line-height: 1.55; color: var(--text-2); }
.av-skin-line .ic { flex: none; margin-block-start: 3px; color: #9a4fe0; }
.av-lte { font-family: Georgia, "Times New Roman", serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; direction: ltr;
  padding: 3px 12px; border-radius: 999px; color: #8a5d0c; border: 1px solid rgba(184, 134, 43, .5); background: rgba(217, 168, 67, .08); }
[data-theme="dark"] .av-lte { color: #f0cf7c; border-color: rgba(233, 196, 106, .5); }
.av-event-note { color: var(--text-2); line-height: 1.6; }
.av-bundle { width: 100%; margin-block-start: var(--s2); padding: var(--s3); border-radius: var(--r3); text-align: start;
  background: linear-gradient(135deg, rgba(163, 71, 255, .08), rgba(241, 194, 90, .1)); box-shadow: inset 0 0 0 1px rgba(163, 71, 255, .25); display: grid; gap: 8px; }
.av-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ========================= the shop (views/shop.js) =========================
   The owner's design (2026-10-16): a rail of large icons on the side instead of tabs; the event as a
   splash: the collector large and free (no frame), his world behind him (a forest of light by day, by
   night a forest under the moon), fireflies rising slowly, a frosted panel with the time and the price. */
.shop { display: flex; gap: var(--s3); align-items: flex-start; min-width: 0; }
.shop-rail { width: 80px; flex: none; display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 8px); }
.shop-pane { flex: 1; min-width: 0; }
.shop-loading { padding: var(--s6) 0; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.shop-rt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: .7rem; font-weight: 650; cursor: pointer; border-radius: 16px; }
.shop-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform var(--dur-1) var(--ease); }
.shop-rt:active .shop-ic { transform: scale(.94); }
.shop-rt.is-on { color: var(--text); }
.shop-rt.is-on .shop-ic { color: #fff; border-color: transparent; background: linear-gradient(160deg, #7a5cff, #3b1fb8); box-shadow: 0 10px 22px -8px rgba(122, 92, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.shop-rt.is-on::before { content: ""; position: absolute; inset-inline-start: -7px; top: 18px; width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: #7a5cff; }
.shop-rt-event .shop-ic { color: #8a5d0c; background: radial-gradient(120% 120% at 30% 20%, #fff8e6, #f1dfb0); border-color: rgba(184, 134, 43, .4); }
[data-theme="dark"] .shop-rt-event .shop-ic { color: #ffe3a0; background: radial-gradient(120% 120% at 30% 20%, #3b2d6b, #120f22); border-color: rgba(233, 196, 106, .35); }
.shop-rt-event.is-on .shop-ic { box-shadow: 0 10px 22px -8px rgba(233, 196, 106, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.shop-rt-event.is-on::before { background: #e9c46a; }
.shop-dot { position: absolute; top: 3px; inset-inline-end: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 2px var(--bg); animation: shop-pulse 1.6s ease-in-out infinite; z-index: 1; }
@keyframes shop-pulse { 50% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px rgba(255, 77, 94, .25); } }
.shop-soon { font-size: .58rem; color: var(--text-3); font-weight: 500; margin-block-start: -3px; }
.shop-h { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-block: 2px 10px; }
.shop-h h3 { font-size: var(--fs-md); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.shop-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 9px; text-align: start; border-radius: 16px; cursor: pointer; font: inherit; color: var(--text);
  background: linear-gradient(180deg, #fffdf8, #fbf3e2); border: 0; box-shadow: inset 0 0 0 1px rgba(198, 150, 52, .55), inset 0 0 0 3px #fff, 0 10px 20px -14px rgba(150, 105, 25, .7); }
[data-theme="dark"] .shop-card { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .35), 0 10px 20px -14px rgba(0, 0, 0, .8); }
.shop-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin-block-end: 4px; }
.shop-card .n { font-size: .82rem; font-weight: 750; }
.shop-card .r { font-size: .68rem; color: var(--text-3); }
.shop-card .m { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: .66rem; color: var(--text-3); margin-block-start: 2px; }
.shop-card .m b { color: #7a520a; font-size: .8rem; }
[data-theme="dark"] .shop-card .m b { color: #ffe3a0; }
.shop-card .own { color: var(--ok); font-weight: 700; }
.shop-card.is-skin { box-shadow: inset 0 0 0 1px rgba(163, 71, 255, .55), inset 0 0 0 3px #fff, 0 10px 20px -14px rgba(140, 60, 200, .7); }
[data-theme="dark"] .shop-card.is-skin { box-shadow: inset 0 0 0 1px rgba(180, 107, 255, .55), 0 10px 20px -14px rgba(0, 0, 0, .8); }
.shop-mythic { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; font-size: .6rem; font-weight: 800; letter-spacing: .04em; color: #fff; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5a7a, #a347ff 55%, #f1c25a); box-shadow: 0 2px 8px -2px rgba(120, 30, 120, .6); }
.shop-svcs { display: grid; gap: 10px; }
.shop-svc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: start; font: inherit; color: var(--text); cursor: pointer; }
.shop-svc .shop-ic { width: 44px; height: 44px; border-radius: 14px; }
.shop-svc-t { flex: 1; display: grid; gap: 2px; }

/* the event's splash */
.splash { position: relative; height: 566px; border-radius: 26px; overflow: hidden; isolation: isolate; text-align: center;
  --ink: #fff8e6; --soft: rgba(255, 248, 230, .72); --gold1: #ffe9a8; --gold2: #d6a23f;
  --cbg: rgba(255, 255, 255, .08); --cline: rgba(255, 226, 160, .3); --cnum: #ffe3a0; --clab: #cdbf9c;
  box-shadow: 0 24px 50px -26px rgba(10, 20, 40, .9); }
.splash .sp-sky { position: absolute; inset: 0; z-index: -3; background:
  radial-gradient(60% 40% at 50% 26%, rgba(150, 220, 200, .35), transparent 70%), radial-gradient(90% 60% at 80% 0%, rgba(120, 110, 255, .45), transparent 60%),
  linear-gradient(180deg, #0d1e2c 0%, #13283a 38%, #1b1636 72%, #0b0a18 100%); }
.splash .sp-bokeh { position: absolute; inset: 0; z-index: -3; filter: blur(14px); opacity: .7; background:
  radial-gradient(40px 40px at 14% 18%, rgba(160, 255, 220, .5), transparent 70%), radial-gradient(56px 56px at 86% 30%, rgba(255, 230, 160, .35), transparent 70%),
  radial-gradient(34px 34px at 22% 52%, rgba(200, 180, 255, .45), transparent 70%), radial-gradient(48px 48px at 80% 62%, rgba(160, 255, 220, .3), transparent 70%); }
.splash .sp-motes i { position: absolute; bottom: 120px; border-radius: 50%; z-index: -1; background: #fff6d6; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255, 230, 150, .85), 0 0 18px 4px rgba(160, 255, 220, .35); animation: shop-rise 9s linear infinite; }
@keyframes shop-rise { 0% { transform: translate(0, 0); opacity: 0 } 12% { opacity: 1 } 60% { transform: translate(10px, -240px) } 100% { transform: translate(-6px, -420px); opacity: 0 } }
.splash .sp-hero { position: absolute; left: 50%; top: 48px; width: 280px; margin-left: -140px; z-index: 0; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 52%, transparent 80%); mask: linear-gradient(180deg, #000 52%, transparent 80%);
  animation: shop-float 6s ease-in-out infinite; }
@keyframes shop-float { 50% { transform: translateY(-6px); } }
/* The seal on the collector while he is not bought: floats with him, on his chest. */
.splash .sp-seal { position: absolute; left: 50%; top: 205px; width: 62px; height: 62px; margin-left: -31px; z-index: 0; pointer-events: none; animation: shop-float 6s ease-in-out infinite; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.splash .sp-glass { position: absolute; inset-inline: 10px; bottom: 10px; z-index: 1; padding: 10px 12px 12px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(180deg, rgba(20, 18, 40, .35), rgba(12, 10, 26, .62)); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.splash .sp-stars { display: flex; justify-content: center; align-items: center; gap: 6px; }
.splash .sp-stars > span:first-child { color: #ffd76a; letter-spacing: 1px; font-size: .78rem; text-shadow: 0 0 8px rgba(255, 200, 80, .7); }
.shop-rar { font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, #ff6ad5, #c774e8, #ad8cff, #8795e8, #94d0ff); box-shadow: 0 2px 10px -2px rgba(173, 140, 255, .7); }
.shop-chip { display: inline-flex; align-items: center; font-size: .64rem; font-weight: 800; letter-spacing: .04em; color: #1b1405;
  background: linear-gradient(180deg, #ffe7a6, #d9a843); border-radius: 999px; padding: 3px 9px; box-shadow: 0 2px 8px -2px rgba(233, 196, 106, .6); }
.splash .sp-corner { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.splash h3 { margin: 4px 0 0; font-size: 1.45rem; font-weight: 850; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fffbea, var(--gold1) 55%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash .sp-role { font-size: .78rem; color: var(--soft); margin-block-start: 1px; }
.splash .sp-count { display: flex; gap: 5px; justify-content: center; margin-block-start: 10px; }
.splash .sp-count div { min-width: 44px; text-align: center; padding: 5px 0 3px; border-radius: 10px; background: var(--cbg); border: 1px solid var(--cline); }
.splash .sp-count b { display: block; font-size: 1rem; color: var(--cnum); line-height: 1.1; }
.splash .sp-count span { font-size: .56rem; color: var(--clab); }
.splash .sp-pbuy { display: flex; align-items: center; gap: 10px; margin-block-start: 10px; }
.splash .sp-price { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.splash .sp-price b { font-size: 1.35rem; color: var(--cnum); }
.splash .sp-price s { opacity: .55; font-size: .74rem; }
.splash .sp-price em { font-style: normal; font-size: .64rem; font-weight: 800; background: #ff4d5e; color: #fff; padding: 2px 6px; border-radius: 6px; margin-block-start: 3px; }
.splash .sp-buy { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: .88rem; color: #1b1405; border: 0; border-radius: 14px; padding: 11px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #ffe7a6, #d9a843); box-shadow: 0 8px 20px -8px rgba(217, 168, 67, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.splash .sp-lte { display: inline-block; margin-block-start: 10px; font-family: Georgia, "Times New Roman", serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; direction: ltr;
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(233, 196, 106, .55); color: #f0cf7c; background: rgba(233, 196, 106, .08); }
.splash .sp-ended { font-size: .78rem; opacity: .85; margin-block-start: 8px; line-height: 1.55; }
.splash .sp-notify { margin-block-start: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 750; font-size: .84rem; border-radius: 14px; padding: 10px; cursor: pointer;
  color: #f0cf7c; border: 1px solid rgba(233, 196, 106, .55); background: rgba(233, 196, 106, .08); }
/* By day: an elven dawn, mist, pale gold light, the forest's green in the air. */
:root:not([data-theme="dark"]) .splash { --ink: #2c2210; --soft: #6d5a35; --gold1: #c99a3a; --gold2: #7a520a;
  --cbg: rgba(255, 255, 255, .7); --cline: rgba(201, 154, 58, .45); --cnum: #7a520a; --clab: #8a7552; box-shadow: 0 24px 50px -28px rgba(120, 90, 30, .55); }
:root:not([data-theme="dark"]) .splash .sp-sky { background:
  radial-gradient(55% 38% at 50% 24%, rgba(255, 255, 255, .95), transparent 72%), radial-gradient(80% 55% at 85% 0%, rgba(190, 215, 255, .75), transparent 62%),
  radial-gradient(70% 50% at 10% 30%, rgba(200, 240, 215, .7), transparent 65%), linear-gradient(180deg, #eef5ff 0%, #f5f8ee 36%, #fbf1dc 70%, #f3e2bd 100%); }
:root:not([data-theme="dark"]) .splash .sp-bokeh { opacity: .9; background:
  radial-gradient(44px 44px at 12% 20%, rgba(255, 214, 120, .55), transparent 70%), radial-gradient(60px 60px at 88% 26%, rgba(170, 230, 200, .6), transparent 70%),
  radial-gradient(36px 36px at 20% 56%, rgba(255, 200, 150, .5), transparent 70%), radial-gradient(50px 50px at 84% 64%, rgba(255, 226, 150, .55), transparent 70%); }
:root:not([data-theme="dark"]) .splash .sp-motes i { background: #fff3c4; box-shadow: 0 0 8px 2px rgba(230, 180, 70, .8), 0 0 16px 4px rgba(255, 220, 130, .45); }
:root:not([data-theme="dark"]) .splash .sp-hero { filter: drop-shadow(0 0 24px rgba(255, 230, 170, .6)); }
:root:not([data-theme="dark"]) .splash .sp-glass { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 250, 238, .82)); box-shadow: inset 0 1px 0 #fff, 0 12px 28px -14px rgba(120, 90, 30, .5); }
:root:not([data-theme="dark"]) .splash .sp-stars > span:first-child { color: #e2a92c; text-shadow: none; }
:root:not([data-theme="dark"]) .splash .sp-lte, :root:not([data-theme="dark"]) .splash .sp-notify { color: #7a520a; border-color: rgba(184, 134, 43, .5); }
:root:not([data-theme="dark"]) .splash .sp-notify { background: rgba(255, 255, 255, .6); }
@media (prefers-reduced-motion: reduce) { .splash .sp-hero, .splash .sp-seal, .shop-dot { animation: none; } .splash .sp-motes { display: none; } }
:root[data-motion="reduced"] .splash .sp-motes { display: none; }
:root[data-motion="reduced"] .splash .sp-hero, :root[data-motion="reduced"] .splash .sp-seal, :root[data-motion="reduced"] .shop-dot { animation: none; }

/* the "more" sheet: the shop first, wide */
.more-shop { grid-column: 1 / -1; flex-direction: row !important; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: start; position: relative; width: 100%; margin-block-end: 10px;
  color: #2a2111; background: radial-gradient(120% 160% at 90% 0%, #fffaf0 0%, #f6efff 60%, #ece6f7 100%); border: 1px solid rgba(184, 134, 43, .4); border-radius: 18px; display: flex; align-items: center; cursor: pointer; font: inherit; }
[data-theme="dark"] .more-shop { color: #f5ecd6; background: radial-gradient(120% 160% at 90% 0%, #2a2148 0%, #120f22 55%, #07060d 100%); border-color: rgba(233, 196, 106, .35); }
.more-shop-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe7a6, #d9a843); color: #2b1d04; flex: none; }
.more-shop-t { display: grid; gap: 2px; }
.more-shop-t strong { font-size: .98rem; }
.more-shop-t .xs { opacity: .75; }
.more-shop-tag { position: absolute; top: 10px; inset-inline-end: 12px; font-size: .62rem; font-weight: 800; background: #ff4d5e; color: #fff; padding: 2px 8px; border-radius: 999px; }

/* Nothing is added from the shop: no + button there. */
body[data-view="shop"] .fab { display: none; }

/* ---- Path: the collector's event as a row of the top card (today.js eventRow) ---- */
.ev-row { position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% + 12px); margin: var(--s3) -6px 0; padding: 10px; border: 0; border-radius: 18px;
  font: inherit; color: inherit; text-align: start; cursor: pointer;
  background: linear-gradient(100deg, rgba(233, 196, 106, .16), rgba(160, 120, 255, .10) 60%, transparent); }
.ev-row::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ev-a, 0deg), rgba(233, 196, 106, .25) 0 66%, rgba(255, 226, 150, .95) 78%, rgba(233, 196, 106, .25) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  /* Three rounds when it appears, then at rest: a gradient that moves is painted again every frame. */
  animation: ev-edge 6s linear 3; }
@property --ev-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ev-edge { to { --ev-a: 360deg; } }
.ev-row:active { transform: scale(.985); }
.ev-orb { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: radial-gradient(circle at 50% 30%, #3b2d6b, #120f22);
  box-shadow: 0 0 0 2px rgba(233, 196, 106, .85), 0 0 18px 2px rgba(150, 120, 255, .45); }
.ev-orb img { width: 118%; height: 118%; margin: -2% 0 0 -9%; object-fit: cover; display: block; }
.ev-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ev-lab { font-size: .64rem; font-weight: 800; letter-spacing: .04em; color: #f0cf7c; }
.ev-nm { font-size: .92rem; font-weight: 750; }
.ev-left { font-size: .72rem; opacity: .78; }
.ev-left b { font-weight: 700; opacity: 1; }
.ev-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #2b1d04;
  background: linear-gradient(180deg, #ffe7a6, #d9a843); box-shadow: 0 6px 14px -6px rgba(217, 168, 67, .9); }
:root:not([data-theme="dark"]) .ev-lab { color: #a8761d; }
:root:not([data-theme="dark"]) .ev-orb { background: radial-gradient(circle at 50% 30%, #fffaf0, #f1e3c4); }
@media (prefers-reduced-motion: reduce) { .ev-row::after { animation: none; } }
:root[data-motion="reduced"] .ev-row::after { animation: none; }

/* ---- the help center (help.js): the "?" beside the screen's name, a screen's guide, the first steps ---- */
/* A small mark at the name's shoulder, so the name keeps its room; the touch area is larger than the mark. */
.topbar-help { position: relative; flex: none; width: 14px; height: 14px; margin-inline-start: 2px; align-self: flex-start; margin-block-start: 9px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  font: inherit; font-size: 9.5px; font-weight: 800; line-height: 1; color: var(--text-3); background: transparent; border: 1.2px solid currentColor; opacity: .9; }
.topbar-help::after { content: ""; position: absolute; inset: -12px -8px; }
.topbar-help:active { transform: scale(.92); }
@media (max-width: 360px) { .topbar-help { display: none; } }
.help-lines { display: grid; gap: 10px; padding-inline-start: 1.3em; margin: 0; }
.help-lines li { line-height: 1.6; }
.help-lines li::marker { color: var(--accent-text); font-weight: 800; }
.help-tip { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 14px; padding: 10px 12px; border-radius: var(--r2); background: var(--accent-soft); color: var(--text); line-height: 1.55; font-size: var(--fs-sm); }
.help-tip .ic { flex: none; margin-block-start: 3px; color: var(--accent-text); }
.help-steps .card-head { justify-content: flex-start; }
.help-steps .card-head h3 { flex: 1; }
.help-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-steps-list li { display: flex; align-items: center; gap: 10px; }
.help-step-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); }
.help-steps-list li.is-done .help-step-n { color: #fff; background: var(--ok); }
.help-steps-list li.is-done .help-step-t strong { text-decoration: line-through; opacity: .6; }
.help-step-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.help-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 2px; border: 0; border-block-start: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; text-align: start; }
.help-row:first-of-type { border-block-start: 0; }
.help-row .ic { color: var(--text-3); }

/* A narrow phone: the bar's gaps a little tighter, so the screen's name keeps its room beside the "?". */
@media (max-width: 389px) {
  .topbar { gap: 4px; padding-inline: 12px; }
  .topbar #topbar-title { margin-inline-start: 2px; }
  .topbar .btn-icon.btn-sm { width: 32px; height: 32px; }
}

/* ---- reserve duty and emergencies (profile.js dutyBlock, users.js dutyCard) ---- */
.duty-on { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 650; }
.duty-box .btn { margin-block-start: 6px; }
.duty-preview { display: block; max-width: 100%; max-height: 240px; margin: 10px auto 0; border-radius: var(--r2); box-shadow: var(--sh-1); }
.duty-req { display: grid; gap: 8px; padding: 10px 0; border-block-end: 1px solid var(--line); }
.duty-photo { display: block; max-width: 100%; max-height: 320px; border-radius: var(--r2); box-shadow: var(--sh-1); }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }

/* ============================================================
   The plans page (views/plans.js): soft pastel stage, a serif title, and plan cards like a pricing
   showcase: frosted card, a glassy emblem, the plan's name in serif, a divider with its sign, the
   list (dark ticks, greyed x), a dark pill button, the plan's colour rising from the bottom. The
   cards are a little concave from top to bottom (lit edges, a shaded middle).
   ============================================================ */
.pp { --pp-ink: #1c1d22; --pp-dim: #6c6f78; --pp-card: rgba(255, 255, 255, .78); --pp-line: rgba(28, 29, 34, .08);
  position: relative; isolation: isolate; gap: 18px; }
.pp::before { content: ''; position: absolute; inset: -16px -16px -40px; z-index: -1; border-radius: 28px;
  background: radial-gradient(120% 70% at 0% 0%, #f6e3d6 0%, transparent 60%), radial-gradient(120% 70% at 100% 10%, #dcefe6 0%, transparent 60%), radial-gradient(140% 80% at 50% 100%, #d9ecf6 0%, transparent 65%), #f4f2f1; }
:root[data-theme="dark"] .pp { --pp-ink: #f1f2f6; --pp-dim: #a5a9b4; --pp-card: rgba(32, 34, 42, .78); --pp-line: rgba(255, 255, 255, .09); }
:root[data-theme="dark"] .pp::before { background: radial-gradient(120% 70% at 0% 0%, #3a2a22 0%, transparent 60%), radial-gradient(120% 70% at 100% 10%, #1f3329 0%, transparent 60%), radial-gradient(140% 80% at 50% 100%, #1c2c38 0%, transparent 65%), #14151b; }

.pp-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 6px; }
.pp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--pp-ink);
  font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), inset 0 0 0 1px var(--pp-line); }
:root[data-theme="dark"] .pp-pill { background: rgba(255, 255, 255, .08); }
.pp-pill i { font-style: normal; opacity: .55; font-size: 13px; }
.pp-title { margin: 0; font-family: 'RetzefRole', Georgia, 'Times New Roman', serif; font-size: clamp(28px, 8vw, 36px); line-height: 1.1; font-weight: 400; -webkit-text-stroke: .6px currentColor; letter-spacing: .01em; color: var(--pp-ink); max-width: 15ch; }
.pp-feats { display: flex; justify-content: center; margin-top: 4px; }
.pp-feat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-inline: 16px; font-size: 12.5px; color: var(--pp-ink); }
.pp-feat + .pp-feat { border-inline-start: 1px solid var(--pp-line); }
.pp-feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--pp-ink);
  background: linear-gradient(180deg, #fff, #eef0f3); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .25), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .05); }
:root[data-theme="dark"] .pp-feat-ic { background: linear-gradient(180deg, #2c2f39, #22242c); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* one under the other on a phone (free first), side by side on a computer */
.pp-cards { display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; gap: 22px; padding-block: 8px 18px; }
/* the wrapper casts the card's shadow along its concave sides */
.pp-wrap { filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .95)) drop-shadow(0 18px 26px rgba(30, 30, 40, .16)) drop-shadow(0 1px 1px rgba(30, 30, 40, .08)); min-width: 0; }
:root[data-theme="dark"] .pp-wrap { filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(255, 255, 255, .12)); }
.pp-cards::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .pp-cards { grid-template-columns: repeat(2, minmax(0, 360px)); align-items: start; } }
.pp-card { --tone: #ff8a3d; --tone-soft: #ffc49b; position: relative; scroll-snap-align: center; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 20px 20px; border-radius: 28px;
  background: linear-gradient(180deg, var(--pp-card) 0%, var(--pp-card) 55%, color-mix(in srgb, var(--tone-soft) 70%, var(--pp-card)) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--pp-line), 0 22px 44px -26px rgba(30, 30, 40, .35);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); color: var(--pp-ink); }
.pp-card.tone-sky { --tone: #1ea7e8; --tone-soft: #a8def5; }
/* the card's sides bow gently inward (concave from top to bottom); the light falls on the near
   sides and the middle sinks back, softly, with no hard lines */
.pp-card { --cl: -57%; --cr: 157%; padding-inline: 26px;
  -webkit-mask: radial-gradient(60% 125% at var(--cl) 50%, transparent 99.4%, #000 100%), radial-gradient(60% 125% at var(--cr) 50%, transparent 99.4%, #000 100%); -webkit-mask-composite: source-in; mask: radial-gradient(60% 125% at var(--cl) 50%, transparent 99.4%, #000 100%), radial-gradient(60% 125% at var(--cr) 50%, transparent 99.4%, #000 100%); mask-composite: intersect; }
.pp-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 26%, rgba(30, 30, 50, .05) 50%, rgba(255, 255, 255, 0) 74%, rgba(255, 255, 255, .55)); }
:root[data-theme="dark"] .pp-card::before { background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 26%, rgba(0, 0, 0, .2) 50%, transparent 74%, rgba(255, 255, 255, .07)); }
.pp-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 16%, rgba(20, 20, 40, .045) 50%, rgba(255, 255, 255, 0) 84%, rgba(255, 255, 255, .35) 100%);
  box-shadow: inset 0 16px 22px -18px rgba(0, 0, 0, .14), inset 0 -16px 22px -18px rgba(0, 0, 0, .1); }
:root[data-theme="dark"] .pp-card { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 0 0 1px var(--pp-line), 0 22px 44px -26px rgba(0, 0, 0, .8);
  background: linear-gradient(180deg, var(--pp-card) 0%, var(--pp-card) 55%, color-mix(in srgb, var(--tone) 34%, var(--pp-card)) 100%); }
:root[data-theme="dark"] .pp-card::after { background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, transparent 16%, rgba(0, 0, 0, .14) 50%, transparent 84%, rgba(255, 255, 255, .05) 100%); }
.pp-stars { position: absolute; inset: 0 0 auto; height: 120px; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle at 18% 30%, rgba(160, 160, 175, .25) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 18%, rgba(160, 160, 175, .3) 0 2px, transparent 2.5px), radial-gradient(circle at 86% 52%, rgba(160, 160, 175, .22) 0 1.5px, transparent 2px), radial-gradient(circle at 40% 64%, rgba(160, 160, 175, .2) 0 1.2px, transparent 1.7px), radial-gradient(circle at 10% 70%, rgba(160, 160, 175, .2) 0 2px, transparent 2.5px);
  -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); }
.pp-emblem { width: 64px; height: 64px; filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--tone) 40%, transparent)); animation: pp-float 6s ease-in-out infinite; }
.pp-emblem svg { width: 100%; height: 100%; display: block; }
@keyframes pp-float { 50% { transform: translateY(-3px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .pp-emblem { animation: none; } }
.pp-name { margin: 2px 0 0; font-family: 'RetzefRole', Georgia, 'Times New Roman', serif; font-size: 30px; -webkit-text-stroke: .5px currentColor; font-weight: 400; line-height: 1.1; }
.pp-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--pp-dim); max-width: 28ch; }
.pp-plan { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.pp-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--pp-ink) 7%, transparent); box-shadow: inset 0 0 0 1px var(--pp-line); }
.pp-sw { border: 0; background: transparent; color: var(--pp-dim); font: inherit; font-size: 13.5px; font-weight: 650; padding: 7px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; transition: background .2s, color .2s; }
.pp-sw.is-on { background: #1c1d22; color: #fff; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .pp-sw.is-on { background: #f1f2f6; color: #14151b; }
.pp-sw em { font-style: normal; font-size: 11px; font-weight: 750; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 22%, transparent); color: color-mix(in srgb, var(--tone) 75%, #000); }
.pp-sw.is-on em { background: var(--tone); color: #fff; }
.pp-price { display: flex; align-items: baseline; gap: 6px; }
.pp-price strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.pp-price span { font-size: 13px; color: var(--pp-dim); }
.pp-div { display: flex; align-items: center; gap: 10px; width: 78%; margin-block: 4px; }
.pp-div i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tone) 70%, transparent), transparent); }
.pp-div-sign { width: 12px; height: 12px; background: var(--tone); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.tone-sky .pp-div-sign { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pp-list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.pp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.pp-ck { width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: #1c1d22; color: #fff; }
:root[data-theme="dark"] .pp-ck { background: #f1f2f6; color: #14151b; }
.pp-list li.is-off { color: var(--pp-dim); }
.pp-list li.is-off .pp-ck { background: color-mix(in srgb, var(--pp-dim) 40%, transparent); color: var(--pp-card); }
.pp-cta { margin-top: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .01em;
  background: linear-gradient(180deg, #34353b, #121317); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pp-cta:active { transform: scale(.98); }
.pp-cta.is-quiet { background: color-mix(in srgb, var(--pp-ink) 8%, transparent); color: var(--pp-dim); box-shadow: none; cursor: default; }
:root[data-theme="dark"] .pp-cta:not(.is-quiet) { background: linear-gradient(180deg, #ffffff, #dcdde2); color: #14151b; }
.pp-trial { font-size: 13px; font-weight: 650; color: color-mix(in srgb, var(--tone) 80%, #000); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
:root[data-theme="dark"] .pp-trial { color: color-mix(in srgb, var(--tone) 70%, #fff); }
.pp .pl-wait { width: 100%; text-align: start; }

/* ============================================================
   The skill card as a collectible (ui.js skillCard): a foil over the card that follows the pointer
   (none on common, a light glare on rare, holographic from epic up), a slow light passing over it on a
   touch screen, a small 3D tilt under a mouse, the sigil inside a turning ring of runes, the rarity
   in gems, tiles for the numbers, the effect as an inscription, the rules as steps on a line.
   ============================================================ */
.sk-card { position: relative; isolation: isolate; --mx: 50%; --my: 30%; --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .3s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -22px color-mix(in srgb, var(--r) 55%, transparent), 0 2px 6px -2px rgba(0, 0, 0, .08); }
.sk-card.is-lit { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 26px 50px -22px color-mix(in srgb, var(--r) 70%, transparent), 0 2px 6px -2px rgba(0, 0, 0, .1); }
.sk-holo, .sk-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2; }
.sk-glare { background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 28%, transparent 60%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s; }
.sk-card.is-lit .sk-glare { opacity: 1; }
.sk-holo { opacity: 0; mix-blend-mode: color-dodge; transition: opacity .3s;
  background:
    repeating-linear-gradient(115deg, #ff7eb3 0%, #ffd36e 6%, #8cffc1 12%, #7cc4ff 18%, #c49bff 24%, #ff7eb3 30%),
    radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 55%);
  background-size: 300% 300%, 100% 100%; background-position: var(--mx) var(--my), center;
  -webkit-mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
  mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); }
.sk-wrap[data-r="epic"] .sk-card.is-lit .sk-holo { opacity: .22; }
.sk-wrap[data-r="legendary"] .sk-card.is-lit .sk-holo { opacity: .3; }
.sk-wrap[data-r="mythic"] .sk-card.is-lit .sk-holo { opacity: .4; }
.sk-wrap[data-r="common"] .sk-card:not(.is-lit) .sk-glare { display: none; }
/* on a touch screen, a slow light passes over the rarer cards by itself */
@media (hover: none) {
  .sk-wrap:not([data-r="common"]) .sk-glare { opacity: 1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .1) 54%, transparent 64%);
    background-size: 250% 100%; animation: sk-sweep 6s ease-in-out infinite; }
  .sk-wrap:is([data-r="epic"], [data-r="legendary"], [data-r="mythic"]) .sk-holo { opacity: .16; animation: sk-foil 9s ease-in-out infinite alternate; -webkit-mask: none; mask: none; }
}
@keyframes sk-sweep { 0%, 20% { background-position: 130% 0; } 70%, 100% { background-position: -30% 0; } }
@keyframes sk-foil { from { background-position: 0% 20%, center; } to { background-position: 100% 80%, center; } }

/* the head: a lit band with a fine pattern, the sigil in its rune ring, the gems */
.sk-band { position: relative; padding: 18px 16px 16px; gap: 14px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--r) 22%, transparent), transparent 60%), linear-gradient(180deg, var(--r-soft), transparent); }
.sk-band::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--r) 30%, transparent) 1px, transparent 1.4px); background-size: 12px 12px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%); }
.sk-band::after { content: ''; position: absolute; inset-inline: 16px; inset-block-end: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--r) 55%, transparent), transparent); }
.sk-icon { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--r) 30%, var(--card)), var(--card) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--r) 35%, transparent), 0 8px 22px -8px color-mix(in srgb, var(--r) 80%, transparent), inset 0 2px 6px rgba(255, 255, 255, .5); }
.sk-sigil { display: grid; place-items: center; color: var(--r-ink); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--r) 60%, transparent)); }
.sk-sigil svg { width: 26px; height: 26px; stroke-width: 2; }
.sk-icon > .sk-rune { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; pointer-events: none; }
.sk-rune circle { fill: none; stroke: color-mix(in srgb, var(--r) 70%, transparent); transform-origin: 32px 32px; }
.sk-rune-a { stroke-width: 1.1; stroke-dasharray: 1.5 4.2; animation: sk-turn-a 40s linear infinite; }
.sk-rune-b { stroke-width: .7; stroke-dasharray: 9 2.5 1.5 2.5; opacity: .7; animation: sk-turn-a 28s linear infinite reverse; }
.sk-rune-m path { fill: var(--r); }
.sk-rune-m { transform-origin: 32px 32px; animation: sk-turn-a 40s linear infinite; }
@keyframes sk-turn-a { to { transform: rotate(360deg); } }
.sk-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-transform: none; }
.sk-gems { display: inline-flex; gap: 3px; }
.sk-gems i { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1.5px; background: color-mix(in srgb, var(--r) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 40%, transparent); }
.sk-gems i.on { background: linear-gradient(135deg, #fff 0%, var(--r) 45%, var(--r-ink) 100%); box-shadow: 0 0 6px color-mix(in srgb, var(--r) 70%, transparent); }
.sk-name { font-size: 25px; background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--r-ink) 75%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the numbers as tiles */
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.sk-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 10px; border-radius: 14px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 9%, var(--card)), var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 22%, var(--hair)); }
.sk-tile::before { content: ''; position: absolute; inset-inline: 22%; inset-block-start: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, var(--r), transparent); }
.sk-tile-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--r-ink); background: color-mix(in srgb, var(--r) 14%, transparent); margin-block-end: 2px; }
.sk-tile-v { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.sk-tile-l { font-size: 11.5px; color: var(--dim); line-height: 1.3; }
.sk-sh { display: inline-flex; gap: 1px; color: var(--r-ink); }
.sk-tile-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--dim); }
.sk-tile-note svg { color: var(--r-ink); flex: none; }

/* the effect as an inscription */
.sk-effect { position: relative; padding: 4px 16px 4px 0; font-size: 15.5px; line-height: 1.7; font-weight: 500; border-inline-start: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--r), color-mix(in srgb, var(--r) 10%, transparent)) 1; padding-inline-start: 14px; }
.sk-effect::before { content: '”'; position: absolute; inset-inline-end: 0; inset-block-start: -14px; font: 400 46px/1 'RetzefRole', Georgia, serif; color: color-mix(in srgb, var(--r) 35%, transparent); }
.sk-rules-h { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: .01em; color: var(--r-ink); }
.sk-rules-h svg { flex: none; }
.sk-plain { position: relative; overflow: hidden; }
.sk-plain::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: linear-gradient(180deg, var(--r), transparent); }

/* the rules as steps on a line */
.sk-rules { gap: 0; }
.sk-rules li { position: relative; grid-template-columns: 26px 1fr; gap: 10px; padding-block-end: 12px; color: var(--text-2, var(--dim)); }
.sk-rules li::before { width: 26px; height: 26px; border-radius: 50%; font: 800 12px/1 system-ui, sans-serif; color: #fff; position: relative; z-index: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--r) 70%, #fff), var(--r-ink)); box-shadow: 0 0 0 3px var(--card), 0 4px 10px -3px color-mix(in srgb, var(--r) 80%, transparent); }
.sk-rules li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 12.5px; inset-block: 26px 0; width: 1.5px; background: linear-gradient(180deg, color-mix(in srgb, var(--r) 60%, transparent), color-mix(in srgb, var(--r) 15%, transparent)); }
.sk-rules li > span { padding-block-start: 3px; }
.sk-foot-wrap { border-block-start: 1px solid var(--hair); padding-block-start: 12px; }
.sk-foot { border: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.sk-foot li { padding: 5px 10px 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--r) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 22%, transparent); color: var(--text); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .sk-card { transform: none !important; } .sk-rune circle, .sk-rune-m, .sk-glare, .sk-holo { animation: none !important; } }

/* ============================================================
   The way to a character (ui.js pointsMeter): a dial with an arc for each condition and an inner
   ring for the whole (a spark at its tip, the percent in the middle), a slow ring of runes and
   ticks around it, then a line for each condition with its own bar.
   ============================================================ */
.gx { --gx-a: #ec4899; margin-block-start: 14px; width: 100%; box-sizing: border-box; padding: 16px 14px 14px; border-radius: 22px; text-align: start; position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, #7c3aed 14%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 36px -24px rgba(124, 58, 237, .55); }
.gx.is-done { background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, #f59e0b 20%, transparent), transparent 70%), var(--surface); }
.gx-head { display: flex; justify-content: space-between; align-items: center; }
.gx-kicker { font-size: 12px; font-weight: 750; letter-spacing: .02em; color: color-mix(in srgb, #7c3aed 75%, var(--text)); }
:root[data-theme="dark"] .gx-kicker { color: #c4a6ff; }
.gx-count { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, #7c3aed 12%, transparent); color: var(--text); }
.gx-dial { position: relative; width: min(230px, 72%); aspect-ratio: 1; margin: 6px auto 4px; }
.gx-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gx-svg circle { fill: none; }
.gx-ticks { stroke: color-mix(in srgb, var(--text) 22%, transparent); stroke-width: 3; stroke-dasharray: .25 1.75; }
.gx-rune { stroke: color-mix(in srgb, #7c3aed 40%, transparent); stroke-width: .8; stroke-dasharray: 6 1.5 1 1.5; transform-origin: 100px 100px; animation: sk-turn-a 60s linear infinite; }
.gx-track { stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: 11; stroke-linecap: butt; }
.gx-fill { stroke-width: 11; stroke-linecap: butt; transition: stroke-dasharray 1.3s cubic-bezier(.22, 1, .36, 1); filter: drop-shadow(0 0 5px rgba(236, 72, 153, .55)); }
.gx-fill.is-done { filter: drop-shadow(0 0 6px rgba(245, 158, 11, .75)); }
.gx-inner-track { stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: 3; }
.gx-inner { stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1.6s cubic-bezier(.22, 1, .36, 1); }
.gx-spark { transform-origin: 100px 100px; transition: transform 1.6s cubic-bezier(.22, 1, .36, 1); }
.gx-spark circle { fill: #fff; filter: drop-shadow(0 0 4px #f9a8d4) drop-shadow(0 0 8px #ec4899); }
.gx-spark .gx-spark-halo { fill: rgba(236, 72, 153, .22); filter: none; animation: gx-pulse 2.4s ease-in-out infinite; transform-origin: 100px 38px; }
@keyframes gx-pulse { 50% { transform: scale(1.6); opacity: .3; } }
.gx-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; pointer-events: none; }
.gx-pct { font-size: clamp(24px, 7.6vw, 30px); font-weight: 850; letter-spacing: -.02em; line-height: 1.05; background: linear-gradient(120deg, #7c3aed, #ec4899 55%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx.is-done .gx-pct { background: linear-gradient(120deg, #b45309, #f59e0b 50%, #fbbf24); -webkit-background-clip: text; background-clip: text; }
.gx-cap { font-size: 11.5px; font-weight: 700; color: var(--text-2, var(--dim)); }
.gx-sub { font-size: 11px; color: var(--dim); max-width: 64%; overflow-wrap: anywhere; }

.gx-ledger { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gx-row { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2, var(--surface)) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.gx-row-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: color-mix(in srgb, #7c3aed 80%, var(--text));
  background: linear-gradient(135deg, color-mix(in srgb, #7c3aed 14%, transparent), color-mix(in srgb, #ec4899 12%, transparent)); }
:root[data-theme="dark"] .gx-row-ic { color: #d8c4ff; }
.gx-row.is-done { box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 45%, var(--line)); background: color-mix(in srgb, #f59e0b 7%, var(--surface)); }
.gx-row.is-done .gx-row-ic { color: #fff; background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 12px -4px rgba(217, 119, 6, .7); }
.gx-row-main { min-width: 0; display: grid; gap: 4px; }
.gx-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gx-row-t { font-size: 14px; font-weight: 750; }
.gx-row-st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, #ec4899 12%, transparent); color: color-mix(in srgb, #be185d 85%, var(--text)); }
:root[data-theme="dark"] .gx-row-st { color: #f9a8d4; }
.gx-row.is-done .gx-row-st { background: color-mix(in srgb, #f59e0b 18%, transparent); color: color-mix(in srgb, #b45309 85%, var(--text)); }
:root[data-theme="dark"] .gx-row.is-done .gx-row-st { color: #fcd34d; }
.gx-row-d { font-size: 12px; line-height: 1.5; color: var(--dim); }
.gx-row-bar { position: relative; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; margin-block: 2px; }
.gx-row-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #ec4899 60%, #f59e0b); box-shadow: 0 0 8px rgba(236, 72, 153, .5); transition: width 1.3s cubic-bezier(.22, 1, .36, 1) .2s; }
[dir="rtl"] .gx-row-bar i { background: linear-gradient(270deg, #7c3aed, #ec4899 60%, #f59e0b); }
.gx-row.is-done .gx-row-bar i { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
.gx-row-n { font-size: 12px; font-weight: 650; color: var(--text-2, var(--dim)); overflow-wrap: anywhere; }
.gx-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.55; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .gx-fill, .gx-inner, .gx-spark, .gx-row-bar i { transition: none; } .gx-rune, .gx-spark-halo { animation: none; } }

/* On a phone the light follows the finger on the card (a sideways slide) and the phone's tilt. */
.sk-card.is-touch { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .sk-card.is-lit .sk-glare { animation: none; opacity: 1; background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .6), rgba(255, 255, 255, .14) 28%, transparent 60%); background-size: auto; }
  .sk-wrap:is([data-r="epic"], [data-r="legendary"], [data-r="mythic"]) .sk-card.is-lit .sk-holo { animation: none; opacity: .3; background-position: var(--mx) var(--my), center;
    -webkit-mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
    mask: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%); }
  .sk-wrap[data-r="rare"] .sk-card.is-lit .sk-holo { opacity: .14; }
  .sk-card.is-held { transition: transform .08s linear; }
}

/* ============================================================
   The character's system window (ui.js systemWindow), in the manner of a hunter's status screen:
   dark glass with lit blue edges and corner marks, faint scan lines, the status, the gauges, the
   attributes, the quest notice and the keys. Dark in both themes (it is a screen of its own).
   ============================================================ */
.sys { --sys: #5fc8ff; --sys-2: #9fe3ff; --sys-ink: #e6f6ff; --sys-dim: #8fb3cf; --sys-bg: rgba(7, 14, 30, .94);
  position: relative; isolation: isolate; overflow: hidden; margin-block: 14px 4px; padding: 14px 14px 12px; border-radius: 6px; text-align: start; color: var(--sys-ink);
  background: radial-gradient(120% 70% at 50% -10%, rgba(95, 200, 255, .16), transparent 60%), linear-gradient(180deg, rgba(10, 22, 46, .96), var(--sys-bg));
  border: 1px solid color-mix(in srgb, var(--sys) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(95, 200, 255, .12), 0 0 22px -4px rgba(95, 200, 255, .55), inset 0 0 26px rgba(95, 200, 255, .12);
  font-variant-numeric: tabular-nums; }
.sys.sys-epic { --sys: #a78bfa; --sys-2: #d8c8ff; }
.sys.sys-legendary { --sys: #fbbf24; --sys-2: #fde68a; }
.sys.sys-mythic { --sys: #f0abfc; --sys-2: #fde68a; }
.sys::before, .sys::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--sys-2); pointer-events: none; filter: drop-shadow(0 0 4px var(--sys)); }
.sys::before { inset-block-start: 4px; inset-inline-start: 4px; border-inline-end: 0; border-block-end: 0; }
.sys::after { inset-block-end: 4px; inset-inline-end: 4px; border-inline-start: 0; border-block-start: 0; }
.sys-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(150, 220, 255, .05) 0 1px, transparent 1px 3px); }
.sys-scan::after { content: ''; position: absolute; inset-inline: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(95, 200, 255, .1), transparent); animation: sys-sweep 5s linear infinite; }
@keyframes sys-sweep { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

.sys-head { display: flex; align-items: center; gap: 10px; padding-block-end: 10px; border-block-end: 1px solid rgba(95, 200, 255, .3); }
.sys-bang { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 15px/1 system-ui, sans-serif; color: var(--sys-2);
  border: 1.5px solid var(--sys-2); box-shadow: 0 0 10px var(--sys), inset 0 0 6px rgba(95, 200, 255, .5); animation: sys-pulse 2.6s ease-in-out infinite; }
@keyframes sys-pulse { 50% { box-shadow: 0 0 18px var(--sys), inset 0 0 8px rgba(95, 200, 255, .7); } }
.sys-title { display: flex; flex-direction: column; line-height: 1.15; flex: 1; min-width: 0; }
.sys-tag { font: 700 10px/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .32em; color: var(--sys); text-shadow: 0 0 8px var(--sys); }
.sys-title strong { font-size: 16px; letter-spacing: .02em; text-shadow: 0 0 10px rgba(95, 200, 255, .5); }
.sys-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 3px; color: var(--sys-dim); border: 1px solid rgba(143, 179, 207, .35); white-space: nowrap; }
.sys-state i { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.sys-state.is-on { color: #8ff7c3; border-color: rgba(52, 211, 153, .5); }
.sys-state.is-on i { background: #34d399; box-shadow: 0 0 8px #34d399; }

.sys-k { font-size: 11.5px; color: var(--sys-dim); letter-spacing: .02em; white-space: nowrap; }
.sys-v { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sys-ink); overflow-wrap: anywhere; text-align: end; }
.sys-gems { display: inline-flex; gap: 2px; }
.sys-gems i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(95, 200, 255, .2); }
.sys-gems i.on { background: var(--sys-2); box-shadow: 0 0 6px var(--sys); }
.sys-sep { height: 1px; margin-block: 8px; background: linear-gradient(90deg, transparent, var(--sys), transparent); opacity: .6; }

.sys-gauges { display: grid; gap: 8px; }
.sys-gauge { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; }
.sys-bar { position: relative; height: 9px; border-radius: 1px; background: rgba(95, 200, 255, .1); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .3); overflow: hidden; }
.sys-bar i { position: absolute; inset-block: 1px; inset-inline-start: 1px; width: calc(var(--w, 0%) - 2px); max-width: calc(100% - 2px); border-radius: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sys) 60%, #1e3a8a), var(--sys-2)); box-shadow: 0 0 10px var(--sys); animation: sys-fill 1.2s cubic-bezier(.22, 1, .36, 1) both; transform-origin: right center; }
[dir="ltr"] .sys-bar i { transform-origin: left center; }
@keyframes sys-fill { from { transform: scaleX(0); } }
.sys-bar i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(7, 14, 30, .55) 6px 7px); }
.sys-gauge.is-sync .sys-bar i { background: linear-gradient(90deg, #2563eb, #5fc8ff 60%, #c4f1ff); }
.sys-gauge.is-act .sys-bar i { background: linear-gradient(90deg, #b45309, #fbbf24); box-shadow: 0 0 10px #f59e0b; }
.sys-gauge.is-pas .sys-bar i { background: linear-gradient(90deg, #047857, #34d399); box-shadow: 0 0 10px #10b981; }
.sys-gv { font-size: 12px; font-weight: 800; color: var(--sys-2); text-shadow: 0 0 6px rgba(95, 200, 255, .5); white-space: nowrap; }

.sys-h { margin: 2px 0 8px; font: 700 11px/1.2 system-ui, sans-serif; letter-spacing: .08em; color: var(--sys); }


.sys-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; margin-block-start: 12px; }
.sys-key { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 6px 8px; border-radius: 3px; cursor: pointer;
  font: 700 12px/1 system-ui, sans-serif; color: var(--sys-2); background: rgba(95, 200, 255, .07); border: 1px solid rgba(95, 200, 255, .45);
  box-shadow: inset 0 0 10px rgba(95, 200, 255, .1); transition: background .15s, box-shadow .15s, transform .1s; }
.sys-key:hover { background: rgba(95, 200, 255, .16); box-shadow: 0 0 12px rgba(95, 200, 255, .45), inset 0 0 10px rgba(95, 200, 255, .2); }
.sys-key:active { transform: scale(.96); }
.sys-key[hidden] { display: none; }
.sys-flash { animation: sys-flash 1.2s ease-out; }
@keyframes sys-flash { 0%, 30% { box-shadow: 0 0 0 2px var(--accent, #5fc8ff), 0 0 24px rgba(95, 200, 255, .6); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .sys-scan::after, .sys-bang, .sys-bar i { animation: none; } }

/* The status window, second form: the name in the middle, three screens, notes, the trust ladder. */
.sys-id { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 14px 10px; text-align: center; }
.sys-name { font-family: 'RetzefRole', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.1; color: #fff; letter-spacing: .02em;
  text-shadow: 0 0 14px var(--sys), 0 0 2px rgba(255, 255, 255, .8); }
.sys-titleword { font: 800 10.5px/1.5 system-ui, sans-serif; letter-spacing: .14em; padding: 1px 10px; border-radius: 2px; color: #1a1205; background: linear-gradient(90deg, #fde68a, #fbbf24); box-shadow: 0 0 12px rgba(251, 191, 36, .6); }
.sys-sub { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--sys-dim); }
.sys-sub > span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; margin-inline-end: 10px; vertical-align: middle; border-radius: 50%; background: var(--sys); box-shadow: 0 0 4px var(--sys); }
.sys-sub .sys-gems::before { display: none !important; }
.sys-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-block: 4px 12px; border-radius: 4px; background: rgba(95, 200, 255, .06); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .25); }
.sys-tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 0; border-radius: 3px; cursor: pointer; background: transparent;
  font: 700 12.5px/1 system-ui, sans-serif; color: var(--sys-dim); transition: background .15s, color .15s, box-shadow .15s; }
.sys-tab-n { font: 700 9.5px/1 ui-monospace, Consolas, monospace; opacity: .7; }
.sys-tab.is-on { color: #fff; background: linear-gradient(180deg, rgba(95, 200, 255, .28), rgba(95, 200, 255, .1)); box-shadow: inset 0 0 0 1px var(--sys), 0 0 12px rgba(95, 200, 255, .35); text-shadow: 0 0 8px var(--sys); }
.sys-pane { display: grid; gap: 10px; animation: sys-in .25s ease-out; }
@keyframes sys-in { from { opacity: 0; transform: translateY(4px); } }
.sys-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 6px; border-block-end: 1px dashed rgba(95, 200, 255, .16); }
.sys-line .sys-v { font-size: 13px; font-weight: 700; color: var(--sys-ink); text-align: end; }
.sys-line.is-cold .sys-v { color: #a5b4fc; text-shadow: 0 0 8px #6366f1; }
.sys-line.is-night .sys-v { color: #f0abfc; text-shadow: 0 0 8px #c026d3; }
.sys-gauge.is-trust .sys-bar i { background: linear-gradient(90deg, #be185d, #f472b6 60%, #fbcfe8); box-shadow: 0 0 10px #ec4899; }
.sys.is-cold .sys-gauge.is-trust .sys-bar i { background: linear-gradient(90deg, #3730a3, #818cf8); box-shadow: 0 0 10px #6366f1; }
.sys-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sys-note { display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; border-radius: 3px; font-size: 12.5px; line-height: 1.5; color: var(--sys-ink);
  background: rgba(95, 200, 255, .06); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .25); }
.sys-note-tag { flex: none; font: 800 10px/1.7 system-ui, sans-serif; letter-spacing: .04em; padding: 0 6px; border-radius: 2px; color: #04121f; background: var(--sys-2); }
.sys-note.is-warn { background: rgba(251, 191, 36, .07); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .38); color: #fde9b5; }
.sys-note.is-warn .sys-note-tag { background: #fbbf24; }
.sys-note.is-good { background: rgba(52, 211, 153, .07); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4); color: #c9fbe4; }
.sys-note.is-good .sys-note-tag { background: #34d399; }
.sys-note.is-cold { background: rgba(129, 140, 248, .08); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .45); color: #dfe3ff; }
.sys-note.is-cold .sys-note-tag { background: #818cf8; }
.sys-quiet { margin: 0; font-size: 12.5px; color: var(--sys-dim); text-align: center; padding-block: 6px; }
.sys-rule { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--sys-dim); }
.sys-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.sys-ladder li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 3px; opacity: .55; }
.sys-ladder li.is-past { opacity: .85; }
.sys-ladder li.is-now { opacity: 1; background: rgba(95, 200, 255, .1); box-shadow: inset 0 0 0 1px var(--sys), 0 0 14px rgba(95, 200, 255, .25); }
.sys-step { width: 26px; height: 26px; display: grid; place-items: center; font: 800 12px/1 system-ui, sans-serif; color: var(--sys-2); border: 1px solid rgba(95, 200, 255, .5); transform: rotate(45deg); }
.sys-step::first-line { line-height: 1; }
.sys-ladder li > .sys-step { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 0; background: rgba(95, 200, 255, .18); }
.sys-ladder li.is-past > .sys-step, .sys-ladder li.is-now > .sys-step { background: linear-gradient(135deg, var(--sys-2), var(--sys)); color: #04121f; }
.sys-step-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sys-step-t strong { font-size: 13px; color: #fff; }
.sys-step-t span { font-size: 11.5px; color: var(--sys-dim); line-height: 1.45; }
.sys-step-n { font: 700 11px/1 ui-monospace, Consolas, monospace; color: var(--sys); }
.sys-hist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sys-hist span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 3px; font-size: 10.5px; color: var(--sys-dim); text-align: center;
  background: rgba(95, 200, 255, .06); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .22); }
.sys-hist strong { font-size: 17px; color: #fff; text-shadow: 0 0 8px var(--sys); }
.sys.is-cold { --sys: #818cf8; --sys-2: #c7d2fe; }
.sys.is-cold .sys-scan { filter: hue-rotate(20deg); }
@media (max-width: 360px) { .sys-hist { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sys-pane { animation: none; } }

/* Trust on the picker's tiles: the seal of a bond, and a cold character greyed with a crack. */
.av-seal { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; z-index: 3; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: radial-gradient(circle at 35% 30%, #fde68a, #d97706); box-shadow: 0 0 0 2px var(--card, #fff), 0 0 10px rgba(217, 119, 6, .7); }
.av-pick.is-cold .av-pic img, .av-pick.is-cold .av-pic video, .av-pick.is-cold .av-pic svg.av-char { filter: grayscale(.85) brightness(.85) hue-rotate(190deg); }
.av-pick.is-cold .av-pic::after { content: ''; position: absolute; inset: 18% 30% 22% 38%; z-index: 2; pointer-events: none; opacity: .75;
  background: linear-gradient(115deg, transparent 46%, rgba(199, 210, 254, .95) 48%, transparent 51%), linear-gradient(70deg, transparent 52%, rgba(199, 210, 254, .7) 54%, transparent 56%); }

/* The character's line as trust colours it (today.js). */
.ch-line[data-mood="cold"] .ch-line-q { color: color-mix(in srgb, #6366f1 55%, var(--text)); }
.ch-line[data-mood="night"] .ch-line-q { color: color-mix(in srgb, #a21caf 55%, var(--text)); font-style: italic; }
.ch-line[data-mood="close"] .ch-line-q { color: color-mix(in srgb, #db2777 45%, var(--text)); }

/* The status window breathes: room between its keys, boxes and lines, and clear of the corner marks. */
.sys { padding: 16px 16px 20px; }
.sys-pane { gap: 14px; }
.sys-notes { gap: 8px; }
.sys-hist { gap: 8px; }
.sys-ladder { gap: 8px; }
.sys-tabs { gap: 6px; margin-block: 6px 16px; }
.sys-keys { gap: 10px; margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid rgba(95, 200, 255, .2); padding-inline: 10px; }

/* The status window: the character's own words on trust, the rules as chips, its dark pact. */
.sys-voice { margin: 10px 0 0; padding: 10px 12px; border-inline-start: 2px solid var(--sys); font-size: 13px; line-height: 1.65; color: #fff; font-style: italic; background: rgba(95, 200, 255, .05); }
.sys-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.sys-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 3px; font-size: 11.5px; color: var(--sys-dim); background: rgba(95, 200, 255, .07); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .3); }
.sys-chip-n { font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 0 6px var(--sys); }
.sys-pact { margin-block-start: 14px; padding: 12px; border-radius: 4px; background: linear-gradient(180deg, rgba(88, 28, 135, .35), rgba(15, 5, 25, .5)); box-shadow: inset 0 0 0 1px rgba(192, 132, 252, .45), 0 0 18px -6px rgba(168, 85, 247, .6); }
.sys-pact .sys-h { color: #d8b4fe; }
.sys-pact-n { display: block; font-family: 'RetzefRole', Georgia, serif; font-weight: 400; font-size: 20px; color: #f5e9ff; text-shadow: 0 0 12px #a855f7; }
/* The Path: the night ritual and the curse. */
.st-nudge.is-dark { color: #f3e8ff; border-color: rgba(168, 85, 247, .5); background: radial-gradient(120% 90% at 100% 0%, rgba(168, 85, 247, .35), transparent 60%), linear-gradient(180deg, #1a0b2e, #0d0618); box-shadow: 0 10px 30px -14px rgba(168, 85, 247, .7); }
.st-nudge.is-dark .st-nudge-ic { color: #e9d5ff; background: rgba(168, 85, 247, .25); }
.st-nudge.is-dark .small { color: #e9d5ff; }
.st-pact-btn { margin-block-start: 8px; color: #fff; background: linear-gradient(180deg, #7e22ce, #4c1d95); border-color: rgba(216, 180, 254, .6); box-shadow: 0 0 14px -2px rgba(168, 85, 247, .7); }

/* The status window's lines read right to left: the label, and under it its value, both from the start. */
.sys { direction: inherit; }
.sys-line { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; text-align: start; }
.sys-line .sys-k { white-space: normal; }
.sys-line .sys-v { text-align: start; font-size: 13.5px; line-height: 1.55; }

/* The dark pact's own screen in the status window: a purple key. */
.sys-tab { font-size: 12px; gap: 4px; padding-inline: 4px; }
.sys-tab.is-pact { color: #e9d5ff; }
.sys-tab.is-pact.is-on { color: #fff; background: linear-gradient(180deg, rgba(168, 85, 247, .45), rgba(88, 28, 135, .3)); box-shadow: inset 0 0 0 1px #c084fc, 0 0 14px rgba(168, 85, 247, .55); text-shadow: 0 0 8px #a855f7; }
.sys-pane > .sys-pact { margin-block-start: 0; }

/* Four screens: their names on one line, without the numbers. */
.sys-tab { white-space: nowrap; }
.sys-tabs.is-four .sys-tab-n { display: none; }

/* The pact follows the status window's own colours, like the rest of it. */
.sys-tab.is-pact { color: var(--sys-dim); }
.sys-tab.is-pact.is-on { color: #fff; background: linear-gradient(180deg, rgba(95, 200, 255, .28), rgba(95, 200, 255, .1)); box-shadow: inset 0 0 0 1px var(--sys), 0 0 12px rgba(95, 200, 255, .35); text-shadow: 0 0 8px var(--sys); }
.sys-pact { background: rgba(95, 200, 255, .06); box-shadow: inset 0 0 0 1px rgba(95, 200, 255, .3); }
.sys-pact .sys-h { color: var(--sys); }
.sys-pact-n { color: #fff; text-shadow: 0 0 12px var(--sys); }

/* Plans page at night: deep glass cards with the plan's colour glowing up from the bottom (not a muddy grey). */
:root[data-theme="dark"] .pp { --pp-card: rgba(22, 27, 44, .96); --pp-dim: #aab2c8; --pp-line: rgba(160, 180, 230, .16); }
:root[data-theme="dark"] .pp::before { background: radial-gradient(110% 60% at 0% 0%, rgba(120, 60, 40, .35), transparent 60%), radial-gradient(110% 60% at 100% 20%, rgba(30, 90, 150, .35), transparent 60%), radial-gradient(140% 80% at 50% 100%, rgba(40, 60, 110, .4), transparent 65%), #0b0e19; }
:root[data-theme="dark"] .pp-card { background: radial-gradient(90% 46% at 50% 108%, color-mix(in srgb, var(--tone) 52%, transparent), transparent 72%), radial-gradient(80% 30% at 50% -6%, rgba(150, 175, 255, .16), transparent 70%), linear-gradient(180deg, #1c2338 0%, #151a2c 58%, #121627 100%);
  box-shadow: inset 0 1px 0 rgba(190, 205, 255, .16), inset 0 0 0 1px var(--pp-line); }
:root[data-theme="dark"] .pp-card::before { background: linear-gradient(90deg, rgba(150, 175, 255, .16), transparent 24%, transparent 76%, rgba(150, 175, 255, .16)); }
:root[data-theme="dark"] .pp-card::after { background: none; box-shadow: none; }
:root[data-theme="dark"] .pp-stars { opacity: .9; filter: brightness(1.6); }
:root[data-theme="dark"] .pp-name { color: #fff; }
:root[data-theme="dark"] .pp-list li.is-on { color: #eef1fb; }
:root[data-theme="dark"] .pp-ck { background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 80%, #fff), var(--tone)); color: #0b1020; box-shadow: 0 0 10px -2px var(--tone); }
:root[data-theme="dark"] .pp-list li.is-off .pp-ck { background: rgba(160, 175, 210, .18); color: rgba(200, 210, 235, .55); box-shadow: none; }
:root[data-theme="dark"] .pp-list li.is-off { color: #7f89a3; }
:root[data-theme="dark"] .pp-emblem { filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--tone) 75%, transparent)); }
:root[data-theme="dark"] .pp-cta.is-quiet { background: rgba(160, 180, 230, .12); color: #b9c2dc; box-shadow: inset 0 0 0 1px rgba(160, 180, 230, .2); }
:root[data-theme="dark"] .pp-switch { background: rgba(160, 180, 230, .1); }
:root[data-theme="dark"] .pp-wrap { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 1px rgba(170, 190, 255, .35)); }

/* Plans cards: a little more concave, and fully solid at night (nothing of the page shows through). */
:root[data-theme="dark"] .pp-card { background-color: #151a2c; -webkit-backdrop-filter: none; backdrop-filter: none; }
:root[data-theme="dark"] .pp-stars { opacity: .55; filter: none; }

/* The plans page's colour wash covers the whole screen behind everything, not a box over part of the page. */
.pp::before { position: fixed; inset: 0; border-radius: 0; z-index: -1; pointer-events: none; }


/* At night the card is its plan's colour: orange for free, sky blue for premium (solid, nothing shows through). */
:root[data-theme="dark"] .pp-card { background-color: #1a1626;
  background-image: linear-gradient(180deg, #1c2236 0%, color-mix(in srgb, var(--tone) 28%, #1a1d30) 55%, color-mix(in srgb, var(--tone) 70%, #231a22) 100%); }
:root[data-theme="dark"] .pp-card.tone-sky { background-image: linear-gradient(180deg, #182036 0%, color-mix(in srgb, var(--tone) 26%, #152036) 55%, color-mix(in srgb, var(--tone) 62%, #10203a) 100%); }

/* Insights: plain sentences, explained numbers, estimates shown on a small scale. */
.ins-what { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2, var(--dim)); }
.ins-sub { margin: 4px 0 12px; font-size: 13px; line-height: 1.6; color: var(--text-2, var(--dim)); }
.ins-card { margin-block-end: 14px; }
.ins-brief { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ins-brief li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.6; }
.ins-brief-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--accent-text, var(--accent)); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ins-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.ins-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--well, color-mix(in srgb, var(--text) 5%, transparent)); }
.ins-stat strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ins-stat-l { font-size: 13px; font-weight: 700; }
.ins-stat-h { font-size: 12px; line-height: 1.45; color: var(--text-2, var(--dim)); }
.ins-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-block-start: 8px; font-size: 12.5px; color: var(--text-2, var(--dim)); }
.ins-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ins-key { display: inline-block; width: 22px; height: 0; border-block-start: 2px dashed var(--text-2, #888); }
.ins-key.is-real { border-block-start: 3px solid var(--accent-text, var(--accent)); }
.ins-accs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ins-acc { padding: 12px; border-radius: 14px; background: var(--well, color-mix(in srgb, var(--text) 5%, transparent)); }
.ins-acc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ins-acc-n { font-size: 12px; color: var(--text-2, var(--dim)); }
.ins-meter { position: relative; height: 8px; margin: 10px 4px 8px; border-radius: 999px; background: linear-gradient(90deg, #34d399, #fbbf24 50%, #f87171); opacity: .75; }
.ins-meter-mid { position: absolute; inset-block: -3px; inset-inline-start: 50%; width: 2px; background: var(--text); opacity: .5; }
.ins-meter-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin-inline-start: -8px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--text), 0 2px 6px rgba(0, 0, 0, .3); }
.ins-acc-say { margin: 0; font-size: 14px; line-height: 1.55; }

/* The planned-against-actual chart (insights.js activityChart). */
.ins-chart { position: relative; }
.ins-chart-svg { width: 100%; height: auto; display: block; touch-action: pan-y; overflow: visible; }
.ins-grid { stroke: color-mix(in srgb, var(--text) 14%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
.ins-grid.is-base { stroke-dasharray: none; stroke: color-mix(in srgb, var(--text) 26%, transparent); }
.ins-ytick, .ins-xtick { font-size: 9.5px; fill: var(--text-2, #777); font-variant-numeric: tabular-nums; }
.ins-line { stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--accent) 45%, transparent)); }
.ins-dot { fill: var(--card, #fff); stroke: var(--accent); stroke-width: 2; }
.ins-guide { stroke: var(--text); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 2 3; }
.ins-gdot { fill: var(--accent); stroke: var(--card, #fff); stroke-width: 2.5; }
.ins-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 42px; margin-block-end: 8px; padding: 8px 12px; border-radius: 12px; font-size: 13px; background: var(--well, color-mix(in srgb, var(--text) 5%, transparent)); }
.ins-tip strong { font-size: 13.5px; }
.ins-tip span { display: inline-flex; align-items: center; gap: 6px; }
.ins-tip-share { font-weight: 700; color: var(--accent-text, var(--accent)); }
.ins-key.is-plan { width: 12px; height: 12px; border: 0; border-radius: 3px; background: color-mix(in srgb, var(--text) 22%, transparent); }

.about-text p { white-space: pre-line; }

/* ============================================================
   The profile's top card (views/profile.js drawHero), made from nothing: a soft cover in the rank's colour, the picture
   half over it in a thin progress ring, the name, a line of small facts, three figures divided by hairlines, and
   the rank with a slim bar. No boxes, no grid. --pc-h is the rank's hue.
   ============================================================ */
.pc { --pc-a: hsl(var(--pc-h, 230) 70% 52%); --pc-a2: hsl(calc(var(--pc-h, 230) + 40) 85% 62%);
  --pc-bg: #fff; --pc-ink: #15172b; --pc-ink2: #636a82; --pc-line: rgba(21, 23, 43, .09);
  position: relative; overflow: hidden; margin-block-end: var(--s4); padding: 0 20px 18px; border-radius: 26px; text-align: center;
  background: var(--pc-bg); color: var(--pc-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--pc-line), 0 24px 48px -26px hsl(var(--pc-h, 230) 50% 30% / .45); }
:root[data-theme="dark"] .pc { --pc-bg: #131728; --pc-ink: #f2f4ff; --pc-ink2: #9aa3c0; --pc-line: rgba(160, 175, 230, .16); --pc-a: hsl(var(--pc-h, 230) 85% 68%); --pc-a2: hsl(calc(var(--pc-h, 230) + 40) 90% 72%);
  box-shadow: 0 0 0 1px var(--pc-line), 0 24px 48px -26px rgba(0, 0, 0, .8); }
.pc-cover { height: 96px; margin-inline: -20px;
  background: radial-gradient(70% 140% at 12% 0%, hsl(var(--pc-h, 230) 90% 86%) 0%, transparent 62%), radial-gradient(70% 140% at 90% 10%, hsl(calc(var(--pc-h, 230) + 60) 90% 85%) 0%, transparent 60%), radial-gradient(90% 120% at 50% 120%, hsl(calc(var(--pc-h, 230) - 40) 90% 90%) 0%, transparent 60%), hsl(var(--pc-h, 230) 80% 94%); }
:root[data-theme="dark"] .pc-cover { background: radial-gradient(70% 140% at 12% 0%, hsl(var(--pc-h, 230) 70% 34%) 0%, transparent 62%), radial-gradient(70% 140% at 90% 10%, hsl(calc(var(--pc-h, 230) + 60) 70% 30%) 0%, transparent 60%), radial-gradient(90% 120% at 50% 120%, hsl(calc(var(--pc-h, 230) - 40) 70% 26%) 0%, transparent 60%), hsl(var(--pc-h, 230) 50% 16%); }
.pc-gear { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer; color: var(--pc-ink);
  background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
:root[data-theme="dark"] .pc-gear { background: rgba(20, 24, 44, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pc-avatar { position: relative; width: 108px; height: 108px; margin: -54px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--pc-bg); box-shadow: 0 8px 22px -8px hsl(var(--pc-h, 230) 60% 30% / .5); }
.pc-avatar .avatar-editor { position: relative; z-index: 1; }
.pc-avatar .avatar-tap .avatar { box-shadow: none; }
.pc-avatar .avatar-cam { width: 26px; height: 26px; box-shadow: 0 0 0 3px var(--pc-bg); }
.pc-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-ring-track { fill: none; stroke: color-mix(in srgb, var(--pc-a) 16%, transparent); stroke-width: 3; }
.pc-ring-fill { fill: none; stroke: var(--pc-a); stroke-width: 3.4; stroke-linecap: round; transition: stroke-dasharray 1.4s cubic-bezier(.22, 1, .36, 1); }
.pc-id { margin-block-start: 12px; }
.pc-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--pc-ink); }
.pc-facts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-block-start: 4px; font-size: 13.5px; color: var(--pc-ink2); }
.pc-facts i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.pc-tag { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--pc-a); background: color-mix(in srgb, var(--pc-a) 12%, transparent); }
.pc-bio { margin: 8px auto 0; max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--pc-ink2); overflow-wrap: anywhere; }
button.pc-bio-empty { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px dashed var(--pc-line); border-radius: 999px; background: transparent; color: var(--pc-ink2); font: inherit; font-size: 13px; cursor: pointer; }
.pc-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-start: 16px; padding-block: 12px; border-block: 1px solid var(--pc-line); }
.pc-fig { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pc-fig + .pc-fig { border-inline-start: 1px solid var(--pc-line); }
.pc-fig strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.pc-fig span { font-size: 12px; color: var(--pc-ink2); }
.pc-rank { margin-block-start: 14px; text-align: start; }
.pc-rank-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.pc-rank-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; }
.pc-rank-name b { min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--pc-a), var(--pc-a2)); }
.pc-rank-next { color: var(--pc-ink2); font-size: 12.5px; }
.pc-bar { position: relative; height: 6px; margin-block-start: 9px; border-radius: 999px; background: color-mix(in srgb, var(--pc-a) 14%, transparent); overflow: hidden; }
.pc-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pc-a), var(--pc-a2)); }
@media (prefers-reduced-motion: reduce) { .pc-ring-fill { transition: none; } }

/* The cover's landscape (profile.js coverArt): sky, a low sun or moon, four ranges of hills. */
.pc-cover { height: 120px; background: none; overflow: hidden; }
.pc-art { width: 100%; height: 100%; display: block; }
.pc { --pc-sky0: hsl(var(--pc-h, 230) 85% 90%); --pc-sky1: hsl(calc(var(--pc-h, 230) + 70) 90% 92%); --pc-sunc: hsl(calc(var(--pc-h, 230) + 150) 100% 96%); --pc-sung: hsl(calc(var(--pc-h, 230) + 150) 100% 85%);
  --pc-hill3: hsl(var(--pc-h, 230) 55% 82%); --pc-hill2: hsl(var(--pc-h, 230) 50% 74%); --pc-hill1: hsl(var(--pc-h, 230) 46% 64%); --pc-hill0: hsl(var(--pc-h, 230) 42% 54%); }
:root[data-theme="dark"] .pc { --pc-sky0: hsl(var(--pc-h, 230) 60% 12%); --pc-sky1: hsl(calc(var(--pc-h, 230) + 40) 55% 26%); --pc-sunc: hsl(var(--pc-h, 230) 40% 92%); --pc-sung: hsl(var(--pc-h, 230) 60% 70%);
  --pc-hill3: hsl(var(--pc-h, 230) 45% 30%); --pc-hill2: hsl(var(--pc-h, 230) 45% 22%); --pc-hill1: hsl(var(--pc-h, 230) 45% 15%); --pc-hill0: hsl(var(--pc-h, 230) 45% 10%); }
.pc-s0 { stop-color: var(--pc-sky0); } .pc-s1 { stop-color: var(--pc-sky1); }
.pc-sun-a { stop-color: var(--pc-sung); stop-opacity: .75; } .pc-sun-b { stop-color: var(--pc-sung); stop-opacity: 0; }
.pc-sun { fill: var(--pc-sunc); }
.pc-h3 { fill: var(--pc-hill3); } .pc-h2 { fill: var(--pc-hill2); } .pc-h1 { fill: var(--pc-hill1); } .pc-h0 { fill: var(--pc-hill0); }
.pc-stars { fill: #fff; display: none; }
:root[data-theme="dark"] .pc-stars { display: block; }
.pc-avatar { margin-top: -54px; }
.pc-avatar::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--pc-a), var(--pc-a2), var(--pc-a)); -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 exclude, linear-gradient(#000 0 0); mask-composite: exclude; }
.pc-avatar .avatar-editor { margin: 0; }
/* The picture fills its frame (a thin gradient ring, a thin card-coloured gap) and the edit key sits outside it, on the rim. */
.pc-avatar { width: 104px; height: 104px; margin-top: -52px; }
.pc-avatar::before { padding: 3px; }
.pc-avatar::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--pc-bg); }
.pc-avatar .avatar-editor { z-index: 1; }
.pc-avatar .avatar-cam { inset-block-end: -4px; inset-inline-end: -6px; inset-inline-start: auto; top: auto; width: 28px; height: 28px; box-shadow: 0 0 0 3px var(--pc-bg), 0 3px 8px rgba(0, 0, 0, .25); }
.pc-avatar .avatar-editor, .pc-avatar .avatar-tap { display: block; width: 92px; height: 92px; margin: 0; padding: 0; line-height: 0; }
.pc-avatar .avatar-tap .avatar { width: 92px; height: 92px; }
.pc-avatar .avatar-editor { position: absolute; inset: 6px; z-index: 1; }

/* A character's portrait is shown whole inside its round frame (the owner: never cut the character). */
.avatar img.av-face, .bd-pic img.av-face { object-position: 50% 50%; transform: none; }
.topbar-avatar { width: 44px; height: 44px; }

/* Tables kept from an imported file, shown in the course. */
.ac-tables { margin-block: 12px; }
.ac-table-wrap { margin-block-start: 10px; }
.ac-tables .tbl-wrap { overflow-x: auto; border-radius: 12px; }
.ac-tables .tbl th { white-space: nowrap; }

/* Imported tables, set like a document's own: a coloured header row, soft stripes, hairlines, the first column narrow when it is a number. */
.ac-tables .tbl-wrap { border-radius: 14px; box-shadow: 0 0 0 1px var(--line, rgba(0, 0, 0, .1)), 0 10px 24px -16px rgba(40, 30, 90, .35); overflow-x: auto; background: var(--card, #fff); }
.ac-tables .tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.55; }
.ac-tables .tbl th { padding: 11px 14px; text-align: start; font-size: 13px; font-weight: 750; letter-spacing: .01em; color: #fff; background: linear-gradient(135deg, var(--accent, #5b5bd6), color-mix(in srgb, var(--accent, #5b5bd6) 55%, #7c3aed)); white-space: nowrap; }
.ac-tables .tbl td { padding: 10px 14px; text-align: start; vertical-align: top; border-block-start: 1px solid var(--line, rgba(0, 0, 0, .08)); }
.ac-tables .tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent, #5b5bd6) 6%, transparent); }
.ac-tables .tbl td:first-child, .ac-tables .tbl th:first-child { width: 1%; white-space: nowrap; }
.ac-tables .tbl td:first-child { font-weight: 700; color: var(--accent-text, var(--accent)); font-variant-numeric: tabular-nums; }
.ac-tables .tbl tbody tr:last-child td:first-child { border-end-start-radius: 14px; }
.ac-tables .tbl tbody tr:last-child td:last-child { border-end-end-radius: 14px; }
.ac-table-wrap .strong { margin-block-end: 8px; font-size: 15px; }

/* Imported tables: columns divided by lines, like the document's own. */
.ac-tables .tbl th, .ac-tables .tbl td { border-inline-start: 1px solid color-mix(in srgb, var(--line, rgba(0, 0, 0, .1)) 100%, transparent); }
.ac-tables .tbl th { border-inline-start-color: rgba(255, 255, 255, .3); }
.ac-tables .tbl th:first-child, .ac-tables .tbl td:first-child { border-inline-start: 0; }
.ac-tables .card-head .btn { gap: 5px; }

/* The course's topics as levels: a stage is a heading with its lessons counted, a module sits inside it, the lessons inside that. */
.tree-d0 { margin-block: 8px; border: 1px solid color-mix(in srgb, var(--accent, #5b5bd6) 28%, var(--line)); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--accent, #5b5bd6) 5%, transparent); }
.tree-d0 > .tree-row { background: color-mix(in srgb, var(--accent, #5b5bd6) 10%, transparent); }
.tree-d0 > .tree-row .strong { font-size: 15px; }
.tree-d1 { border-inline-start: 3px solid color-mix(in srgb, var(--accent, #5b5bd6) 55%, transparent); margin-inline-start: 6px; }
.tree-d1 > .tree-row .strong { font-size: 14px; }
.tree-d2, .tree-d3 { border-inline-start: 2px dotted var(--line); margin-inline-start: 6px; }
.tree-d0 > .tree-children { padding-inline-start: 6px; }
.tree-row .small.strong { white-space: normal; }
/* ...and in the draft: the same levels, with a line down the side of what is inside a stage or a module. */
.draft-topic.draft-d0 { margin-block-start: 12px; padding-block: 6px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #5b5bd6) 8%, transparent); }
.draft-topic.draft-d0 .draft-title { font-weight: 750; }
.draft-topic.draft-d1 { border-inline-start: 3px solid color-mix(in srgb, var(--accent, #5b5bd6) 50%, transparent); margin-inline-start: 4px; }
.draft-topic.draft-d1 .draft-title { font-weight: 650; }
.draft-topic.draft-d2, .draft-topic.draft-d3 { border-inline-start: 2px dotted var(--line); margin-inline-start: 4px; }

/* The studies screen: bundles, the timetable's week. */
.ac-bundle { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-block: 14px 4px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent, #5b5bd6) 9%, transparent); }
.tt-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-block-end: 12px; }
.tt-day { border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tt-day-h { padding: 6px 10px; font-size: 12.5px; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--accent, #5b5bd6), color-mix(in srgb, var(--accent, #5b5bd6) 55%, #7c3aed)); }
.tt-lesson { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; font-size: 13px; line-height: 1.4; border-block-start: 1px solid var(--line); }
.tt-lesson:nth-child(odd) { background: color-mix(in srgb, var(--accent, #5b5bd6) 5%, transparent); }

/* ===== The studies screen: a cover with the figures, bundles, courses as cards with a progress ring ===== */
.st-hero { position: relative; overflow: hidden; margin-block-end: 14px; padding: 18px 16px 16px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 90% at 0% 0%, #8b7cf6 0%, transparent 60%), radial-gradient(110% 100% at 100% 0%, #38bdf8 0%, transparent 60%), linear-gradient(160deg, #4f46e5, #7c3aed 60%, #0ea5e9);
  box-shadow: 0 22px 44px -24px rgba(79, 70, 229, .75); }
:root[data-theme="dark"] .st-hero { background: radial-gradient(120% 90% at 0% 0%, #4338ca 0%, transparent 60%), radial-gradient(110% 100% at 100% 0%, #0e7490 0%, transparent 60%), linear-gradient(160deg, #1e1b4b, #312e81 60%, #134e6b); }
.st-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .25), transparent 28%), radial-gradient(circle at 12% 90%, rgba(255, 255, 255, .15), transparent 30%); }
.st-hero-top { position: relative; display: flex; align-items: center; gap: 12px; }
.st-hero-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.st-hero h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.st-hero p { margin: 2px 0 0; font-size: 13.5px; opacity: .88; }
.st-figs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-block-start: 16px; text-align: center; }
.st-fig { display: flex; flex-direction: column; gap: 1px; }
.st-fig + .st-fig { border-inline-start: 1px solid rgba(255, 255, 255, .28); }
.st-fig strong { font-size: 24px; font-weight: 850; line-height: 1.15; }
.st-fig span { font-size: 12px; opacity: .85; }
.st-bar { position: relative; height: 7px; margin-block: 14px 0; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.st-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.st-actions { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block-start: 16px; }
.st-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 6px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, transform .1s; }
.st-act:hover { background: rgba(255, 255, 255, .26); }
.st-act:active { transform: scale(.97); }
.st-courses { display: grid; gap: 10px; margin-block-end: 14px; }
.st-h { margin: 6px 4px 0; font-size: 15px; font-weight: 800; }
.ac-bundle { margin-block: 10px 0; }
.st-course { display: grid; grid-template-columns: 46px 1fr 52px; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 18px; text-align: start; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface, #fff); box-shadow: 0 0 0 1px var(--line, rgba(0, 0, 0, .08)), 0 10px 22px -16px hsl(var(--h) 60% 35% / .55); transition: transform .12s, box-shadow .2s; }
.st-course:hover { box-shadow: 0 0 0 1px hsl(var(--h) 60% 60% / .5), 0 14px 26px -16px hsl(var(--h) 60% 35% / .7); }
.st-course:active { transform: scale(.985); }
.st-course-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 80% 48%)); box-shadow: 0 6px 14px -6px hsl(var(--h) 70% 40% / .8); }
.st-course-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-course-n { font-size: 15.5px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.st-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.st-chips i { font-style: normal; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; color: hsl(var(--h) 45% 32%); background: hsl(var(--h) 80% 94%); }
:root[data-theme="dark"] .st-chips i { color: hsl(var(--h) 70% 82%); background: hsl(var(--h) 40% 22%); }
.st-ring { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(hsl(var(--h) 75% 52%) calc(var(--p) * 1%), hsl(var(--h) 40% 90%) 0); }
:root[data-theme="dark"] .st-ring { background: conic-gradient(hsl(var(--h) 75% 62%) calc(var(--p) * 1%), hsl(var(--h) 30% 24%) 0); }
.st-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface, #fff); }
.st-ring b { position: relative; font-size: 11.5px; font-weight: 800; }

.ac-bundle-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ac-bundle-sub { font-size: 13px; color: var(--text-2, var(--dim)); }
.ac-pick { display: grid; gap: 4px; max-height: 38vh; overflow-y: auto; padding: 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ac-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.ac-pick-row:hover { background: color-mix(in srgb, var(--accent, #5b5bd6) 7%, transparent); }
.ac-pick-row input { width: 18px; height: 18px; flex: none; }

/* The table editor: a grid of cells to type in. */
.te-scroll { overflow-x: auto; padding-block-end: 6px; }
.te-table { border-collapse: separate; border-spacing: 6px; min-width: 100%; }
.te-table td { padding: 0; min-width: 110px; vertical-align: middle; }
.te-table td.is-head .input { font-weight: 750; background: color-mix(in srgb, var(--accent, #5b5bd6) 10%, var(--surface, #fff)); }
.te-table .te-tools, .te-cols td { min-width: 0; width: 1%; text-align: center; }
.te-cols td { text-align: center; }

.ac-bundle-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* The timetable as a table: hours down, days across, coloured blocks. */
.tt-wrap { overflow-x: auto; margin-block-end: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tt-table th { padding: 8px 6px; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--accent, #5b5bd6), color-mix(in srgb, var(--accent, #5b5bd6) 55%, #7c3aed)); border-inline-start: 1px solid rgba(255,255,255,.25); }
.tt-table th.tt-hours { color: var(--text); background: color-mix(in srgb, var(--accent, #5b5bd6) 8%, var(--surface, #fff)); font-size: 11.5px; white-space: nowrap; border-block-start: 1px solid var(--line); }
.tt-table td { padding: 4px; min-width: 92px; vertical-align: top; border-block-start: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.tt-block { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 9px; line-height: 1.35; background: hsl(var(--h) 80% 92%); color: hsl(var(--h) 55% 22%); box-shadow: inset 3px 0 0 hsl(var(--h) 65% 50%); }
:root[data-theme="dark"] .tt-block { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 90%); }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.tt-manual { display: flex; flex-direction: column; gap: 8px; }

.tt-until { opacity: .7; }
.tt-table td { min-width: 104px; }

/* Timetable, second look: on a phone one day at a time; wide, a real grid with each lesson over its hours. */
.tt-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
.tt-phone { display: block; }
.tt-wide { display: none; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 720px) { .tt-phone { display: none; } .tt-wide { display: block; } }
.tt-agenda { display: flex; flex-direction: column; gap: 8px; }
.tt-card { display: flex; align-items: stretch; gap: 12px; padding: 12px 14px; border-radius: 14px; background: hsl(var(--h) 80% 93%); color: hsl(var(--h) 55% 20%); box-shadow: inset -4px 0 0 hsl(var(--h) 65% 50%); }
:root[data-theme="dark"] .tt-card { background: hsl(var(--h) 38% 21%); color: hsl(var(--h) 80% 92%); }
.tt-card-t { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 52px; font-size: 13px; line-height: 1.5; padding-inline-end: 12px; border-inline-end: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.tt-card-t strong { font-size: 16px; }
.tt-card-b { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 16px; line-height: 1.35; }
.tt-card-b .muted { color: inherit; opacity: .75; }
.tt-table { border-spacing: 3px; }
.tt-table th, .tt-table td { border: 0; }
.tt-table th { border-radius: 9px; }
.tt-table th.tt-hours { text-align: center; }
.tt-table td { min-width: 110px; padding: 0; }
.tt-table td.tt-lessoncell { padding: 6px 8px; border-radius: 10px; vertical-align: middle; text-align: center; background: hsl(var(--h) 80% 92%); color: hsl(var(--h) 55% 22%); box-shadow: inset -3px 0 0 hsl(var(--h) 65% 50%); }
:root[data-theme="dark"] .tt-table td.tt-lessoncell { background: hsl(var(--h) 40% 22%); color: hsl(var(--h) 80% 90%); }
.tt-blk { display: flex; flex-direction: column; line-height: 1.35; }
.tt-blk + .tt-blk { margin-block-start: 6px; padding-block-start: 6px; border-block-start: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
/* An hour is never broken across two lines. */
.tt-until, .tt-card-t, .tt-card-t span, .tt-card-t strong, .tt-table th.tt-hours { white-space: nowrap; }
.tt-table td { min-width: 124px; }
.tt-table th.tt-hours { vertical-align: top; padding-block-start: 7px; }

/* A bundle is folded until it is tapped. */
.ac-bundle-main { cursor: pointer; flex: 1; }
.ac-fold { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: color-mix(in srgb, var(--accent, #5b5bd6) 14%, transparent); color: var(--accent, #5b5bd6); cursor: pointer; }
.ac-fold svg { transition: transform .2s ease; transform: rotate(90deg); }
.ac-bundle.is-open .ac-fold svg { transform: rotate(0deg); }
.ac-bundle-body { display: flex; flex-direction: column; gap: 10px; margin-block-start: 8px; }
.ac-bundle-body[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ac-fold svg { transition: none; } }
.ac-bundle { flex-wrap: wrap; }
.ac-bundle-main { flex: 1 1 140px; }
.ac-bundle-btns { flex: 1 1 100%; justify-content: flex-start; }

.tt-end { display: block; margin-block-start: 6px; padding-block-start: 6px; border-block-start: 1px solid var(--line); opacity: .75; font-weight: 600; }

/* A table on a phone: each row a card. */
.tbl-phone { display: flex; flex-direction: column; gap: 8px; }
.tbl-wide { display: none; }
@media (min-width: 720px) { .tbl-phone { display: none; } .tbl-wide { display: block; } }
.tbl-card { padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(120, 120, 160, .08)); box-shadow: inset 0 0 0 1px var(--line, rgba(0, 0, 0, .08)); }
.tbl-card-t { display: block; font-size: 15px; line-height: 1.4; margin-block-end: 4px; }
.tbl-card-f { display: flex; flex-direction: column; gap: 1px; padding-block: 6px; border-block-start: 1px solid var(--line, rgba(0, 0, 0, .08)); }
.tbl-card-l { font-size: 12px; font-weight: 700; color: var(--accent, #5b5bd6); }
.tbl-card-v { font-size: 14px; line-height: 1.55; margin: 0; }
/* The tables card's head: the title stays whole, the buttons wrap under it on a narrow screen. */
.ac-tables > .card-head { flex-wrap: wrap; row-gap: 8px; }
.ac-tables > .card-head h3 { white-space: nowrap; }
.ac-tables > .card-head .spacer { flex: 1 1 0; min-width: 0; }
.ac-tables > .card-head .btn { flex: 0 0 auto; }
.shop-effect { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-effect li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-block-end: 1px solid var(--line); }

/* The limits of each plan side by side, and the system's own log. */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding-block: 4px; }
.plan-head { text-align: center; font-size: 13px; }
.plan-head strong { color: var(--accent, #5b5bd6); }
.syslog { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.syslog li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2, rgba(120, 120, 160, .08)); }
.syslog li.is-bad { box-shadow: inset 3px 0 0 #e5484d; }
/* The moving skin in the shop has the card picture's box from the first moment (it jumped when its loop loaded). */
.shop-card .shop-loop { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin-block-end: 4px; background: #02010f; }
.more-tile { position: relative; }
.more-dot { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 2px var(--surface, #fff); }

/* The top bar's one menu, and the order of the bar: the day or night and the language stay in view. */
.menu-list { display: flex; flex-direction: column; gap: 4px; padding-block: 2px 6px; }
.menu-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border: 0; border-radius: 16px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.menu-row:active { background: var(--surface-2, rgba(120, 120, 160, .12)); }
.menu-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft, rgba(91, 91, 214, .12)); color: var(--accent-text, var(--accent)); }
.menu-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.menu-t strong { font-size: 16px; }
.topbar-group .btn-icon { width: 36px; height: 36px; }
.topbar .topbar-menu { color: var(--text-2); }

/* ===== מועצת הדמויות: a royal throne hall at night. One painted picture behind, gold frames, a wax seal for the vote ===== */
.cn { --gold-1: #fff3c4; --gold-2: #e6b54a; --gold-3: #9a6a17; --ink: #f6ead0; --wax: #a3162b; position: relative; color: var(--ink); }
.cf-sans { font-family: inherit; }
.cf-role { font-family: 'RetzefRole', 'Times New Roman', serif; font-weight: 400; letter-spacing: .02em; }
.cf-serif { font-family: Georgia, 'Times New Roman', serif; }
.cf-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.cf-hall { font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-weight: 700; letter-spacing: .01em; }

/* The hall: the picture fixed behind the page, darker at the edges and toward the bottom so the words read on it. */
.cn-hall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0b0910 url('/static/img/council/hall.webp') center top / cover no-repeat; }
.cn-vignette { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 38%, transparent 30%, rgba(6, 4, 10, .72) 100%), linear-gradient(180deg, rgba(6, 4, 10, .25) 0%, rgba(6, 4, 10, .1) 30%, rgba(6, 4, 10, .55) 62%, rgba(6, 4, 10, .9) 100%); }

/* The page in the hall. */
.cn-stage { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 4px 6px 120px; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.cn-hero { text-align: center; padding: 16px 12px 4px; }
.cn-crest { display: block; width: 96px; height: auto; margin: 0 auto 4px; filter: drop-shadow(0 0 12px rgba(230, 181, 74, .55)); }
.cn-h { margin: 0; font-size: clamp(34px, 10vw, 48px); line-height: 1.1; background: linear-gradient(180deg, var(--gold-1) 10%, var(--gold-2) 55%, var(--gold-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(60, 30, 0, .8)) drop-shadow(0 0 18px rgba(230, 181, 74, .35)); }
.cn-orn { display: block; height: 12px; margin: 10px auto 0; width: min(260px, 72%); background: linear-gradient(90deg, transparent, var(--gold-2) 50%, transparent) center / 100% 1px no-repeat; position: relative; }
.cn-orn::after { content: ''; position: absolute; inset-inline-start: 50%; top: 50%; width: 8px; height: 8px; transform: translate(50%, -50%) rotate(45deg); background: var(--gold-2); box-shadow: 0 0 0 3px rgba(230, 181, 74, .22), 0 0 12px rgba(230, 181, 74, .8); }
.cn-sub { margin: 10px auto 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: rgba(246, 234, 208, .92); }

/* One vote: a heading like a herald's line, then the two portraits facing each other. */
.cn-poll { position: relative; margin-block: 30px 0; }
.cn-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-block-end: 14px; }
.cn-title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--gold-1); min-width: 0; }
.cn-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: rgba(20, 12, 6, .55); box-shadow: inset 0 0 0 1px rgba(230, 181, 74, .55); text-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cn-gem { width: 8px; height: 8px; transform: rotate(45deg); background: #8a7a5a; }
.cn-chip.is-open .cn-gem { background: #5ef2a0; box-shadow: 0 0 8px #5ef2a0; animation: cn-glint 2.4s ease-in-out infinite; }
.cn-chip.is-soon .cn-gem { background: var(--gold-2); }
@keyframes cn-glint { 50% { opacity: .45; } }
.cn-countw { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: rgba(246, 234, 208, .9); }
.cn-countw svg { color: var(--gold-2); }
.cn-count { margin: 0; min-height: 18px; }
.cn-duel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cn-vs { position: absolute; z-index: 4; inset-inline-start: 50%; top: 34%; transform: translate(50%, -50%) rotate(45deg); width: 34px; height: 34px; display: grid; place-items: center; background: linear-gradient(135deg, #2a1a08, #120a04); box-shadow: 0 0 0 2px var(--gold-2), 0 0 0 4px rgba(20, 10, 0, .9), 0 0 18px rgba(230, 181, 74, .6); color: var(--gold-1); }
.cn-vs svg { transform: rotate(-45deg); }

/* The portrait: a gold frame (outer gilt, a dark inner bevel), four corner studs and a plaque at its foot. */
.cn-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.cn-frame { position: relative; padding: 7px; border-radius: 16px; background: linear-gradient(145deg, var(--gold-1), var(--gold-2) 30%, var(--gold-3) 55%, var(--gold-2) 78%, var(--gold-1)); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(60, 30, 0, .8), 0 0 26px -8px rgba(230, 181, 74, .5); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, filter .3s ease; }
.cn-pearl { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #140d08; box-shadow: inset 0 0 0 2px rgba(40, 20, 0, .9), inset 0 0 22px rgba(0, 0, 0, .8); }
.cn-pearl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-pearl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 30%, transparent 58%, rgba(10, 5, 0, .85) 100%); pointer-events: none; }
.cn-corner { position: absolute; width: 12px; height: 12px; transform: rotate(45deg); background: radial-gradient(circle at 35% 35%, var(--gold-1), var(--gold-3)); box-shadow: 0 0 0 1.5px rgba(50, 25, 0, .9); z-index: 3; }
.cn-corner.c1 { top: -4px; inset-inline-start: -4px; } .cn-corner.c2 { top: -4px; inset-inline-end: -4px; }
.cn-corner.c3 { bottom: -4px; inset-inline-start: -4px; } .cn-corner.c4 { bottom: -4px; inset-inline-end: -4px; }
.cn-plate { position: absolute; z-index: 2; inset-inline: 7px; bottom: 7px; padding: 22px 10px 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border-radius: 0 0 10px 10px; }
.cn-name { font-size: 19px; line-height: 1.15; color: #fff8e6; overflow-wrap: anywhere; text-shadow: 0 2px 8px #000; }
.cn-role { font-size: 13px; color: var(--gold-2); text-shadow: 0 1px 6px #000; }

/* The seal: a round of red wax with a crown pressed in, under each portrait. */
.cn-sealbtn { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font: inherit; text-shadow: none; -webkit-tap-highlight-color: transparent; }
.cn-wax { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 214, 190, .85); background: radial-gradient(circle at 34% 30%, #e0465e, var(--wax) 48%, #5c0815 100%); box-shadow: inset 0 2px 3px rgba(255, 180, 180, .45), inset 0 -4px 8px rgba(40, 0, 6, .7), 0 0 0 3px rgba(120, 10, 28, .55), 0 0 0 5px rgba(80, 6, 18, .25), 0 10px 18px -6px rgba(0, 0, 0, .9); transition: transform .12s ease, filter .2s ease; }
.cn-wax svg { filter: drop-shadow(0 1px 0 rgba(60, 0, 8, .9)); }
.cn-seal-t { font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.cn-sealbtn:active:not(:disabled) .cn-wax { transform: scale(.88); }
@media (hover: hover) { .cn-sealbtn:hover:not(:disabled) .cn-wax { filter: brightness(1.12); } }
.cn-sealbtn:focus-visible { outline: none; } .cn-sealbtn:focus-visible .cn-wax { box-shadow: 0 0 0 3px var(--gold-1), 0 0 18px var(--gold-2); }
.cn-sealbtn:disabled { cursor: default; }
.cn-sealbtn:disabled:not(.is-on) .cn-wax { filter: grayscale(.85) brightness(.6); }
.cn-sealbtn.is-on .cn-wax { background: radial-gradient(circle at 34% 30%, var(--gold-1), var(--gold-2) 50%, var(--gold-3) 100%); color: #4a2a00; box-shadow: inset 0 2px 3px rgba(255, 255, 230, .7), inset 0 -4px 8px rgba(90, 50, 0, .55), 0 0 0 3px rgba(230, 181, 74, .45), 0 0 22px rgba(230, 181, 74, .65); }
.cn-sealbtn.is-on .cn-seal-t { color: var(--gold-1); }

/* The chosen portrait: the frame glows and the seal is stamped on its corner. */
.cn-card.is-mine .cn-frame { box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(60, 30, 0, .8), 0 0 34px 2px rgba(255, 200, 90, .7); }
.cn-stamp { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; width: 44px; height: 44px; color: var(--wax); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)); transform: rotate(-12deg); }
.cn-card.is-pop .cn-stamp { animation: cn-stamp .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.cn-card.is-pop .cn-frame { animation: cn-thud .35s ease-out .2s both; }
@keyframes cn-stamp { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 60% { transform: scale(.92) rotate(-10deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); } }
@keyframes cn-thud { 0% { transform: scale(1); } 40% { transform: scale(.975); } 100% { transform: scale(1); } }
.cn-burst { position: absolute; inset-inline-end: 30px; top: 30px; width: 0; height: 0; z-index: 5; pointer-events: none; }
.cn-burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-1); box-shadow: 0 0 6px var(--gold-2); animation: cn-fleck .8s cubic-bezier(.1, .7, .3, 1) .2s both; }
@keyframes cn-fleck { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) scale(.2); opacity: 0; } }

/* The result: a thin gilt bar; the one ahead burns brighter. */
.cn-res { display: flex; flex-direction: column; gap: 5px; }
.cn-num { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; color: rgba(246, 234, 208, .8); }
.cn-num strong { font-family: 'RetzefMapLand', Georgia, serif; font-size: 20px; color: var(--gold-1); }
.cn-bar { height: 6px; border-radius: 999px; background: rgba(20, 12, 6, .7); box-shadow: inset 0 0 0 1px rgba(230, 181, 74, .35); overflow: hidden; }
.cn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-1)); transform: scaleX(var(--w, 0)); transform-origin: right center; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.cn-res.is-lead .cn-bar i { box-shadow: 0 0 10px var(--gold-2); }

/* The winner: a crown over the frame and light turning slowly behind it; the other portrait fades. */
.cn-card.is-win .cn-frame { box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .9), 0 0 40px 4px rgba(255, 205, 100, .6); }
.cn-rays { position: absolute; inset: -30%; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .22) 0 8deg, transparent 8deg 22deg); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%); mask-image: radial-gradient(circle, #000 25%, transparent 68%); animation: cn-turn 40s linear infinite; }
@keyframes cn-turn { to { transform: rotate(360deg); } }
.cn-crown { position: absolute; z-index: 4; top: -13px; inset-inline-start: 50%; transform: translateX(50%); display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #3d2400; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); text-shadow: none; box-shadow: 0 0 0 1px rgba(80, 40, 0, .8), 0 6px 14px -4px #000; }
.cn-card.is-lose .cn-frame { filter: grayscale(.7) brightness(.62); }
.cn-card.is-lose .cn-res { opacity: .7; }

.cn-more { align-self: center; padding: 2px 6px; border: 0; background: none; color: rgba(246, 234, 208, .85); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(230, 181, 74, .6); text-underline-offset: 3px; text-shadow: none; }
.cn-desc { padding: 10px 12px; border-radius: 12px; background: rgba(14, 8, 4, .72); box-shadow: inset 0 0 0 1px rgba(230, 181, 74, .3); font-size: 13px; line-height: 1.6; color: var(--ink); text-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cn-note, .cn-ended { margin: 18px 2px 0; font-size: 14px; line-height: 1.5; display: flex; flex-wrap: wrap; justify-content: center; text-align: center; align-items: center; gap: 6px; color: var(--ink); }
.cn-note.is-go { font-weight: 700; color: var(--gold-1); }
.cn-note.is-go svg { color: var(--gold-2); }
.cn-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--gold-1); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-shadow: none; }
/* The dates: a stone tablet, gold hairlines above and below. */
.cn-dates { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-block-start: 16px; padding: 12px; background: linear-gradient(90deg, transparent, rgba(12, 7, 3, .7) 15%, rgba(12, 7, 3, .7) 85%, transparent); border-block: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(230, 181, 74, .7), transparent) 1; font-size: 12.5px; color: rgba(246, 234, 208, .92); text-shadow: none; }
.cn-dates > div { display: flex; align-items: center; gap: 7px; }
.cn-dates svg { color: var(--gold-2); }
.cn-locked { margin: 40px 8px 8px; padding: 12px 0; text-align: center; }
.cn-locked p { margin: 14px auto 16px; max-width: 30ch; line-height: 1.6; font-size: 16px; }
.cn-lock-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--gold-1); background: radial-gradient(circle at 35% 30%, #3a2610, #120a04); box-shadow: 0 0 0 2px var(--gold-2), 0 0 26px rgba(230, 181, 74, .45); }
.cn-locked .btn { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #3d2400; border: 0; }
.cn-foot { margin: 20px 6px 0; text-align: center; font-size: 13px; color: rgba(246, 234, 208, .85); }
.cn-refresh { display: flex; align-items: center; gap: 6px; margin: 18px auto 0; padding: 7px 18px; border: 0; border-radius: 999px; background: rgba(14, 8, 4, .6); box-shadow: inset 0 0 0 1px rgba(230, 181, 74, .55); color: var(--gold-1); font: inherit; font-size: 13px; cursor: pointer; text-shadow: none; }
.cn-rest .cn-rays, .cn-rest .cn-gem { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cn *, .cn *::after { animation: none !important; } }
:root[data-motion="reduced"] .cn *, :root[data-motion="reduced"] .cn *::after { animation: none !important; }
@media (max-width: 380px) { .cn-name { font-size: 16px; } .cn-duel { gap: 12px; } .cn-wax { width: 52px; height: 52px; } }

/* The editor's footer on a phone: the buttons wrap and fill the width instead of being squeezed in one row. */
.sheet-foot { flex-wrap: wrap; }
.sheet-foot .btn { flex: 1 1 130px; }
@media (max-width: 560px) { .sheet-foot:has(.btn:nth-child(4)) .btn { flex: 1 1 calc(50% - var(--s2)); } }

/* In the administrator's preview the sea fills only its own box, not the whole screen. */
.cn-in { overflow: hidden; border-radius: 18px; isolation: isolate; }
.cn-in .cn-hall { position: absolute; }
.cn-in .cn-stage { padding-block-end: 40px; }

/* Friends and followers, the limited profile and the checks. */
.chk { width: 18px; height: 18px; margin-inline-start: 4px; vertical-align: -3px; flex: none; }
.chk-tick { fill: #fff; }
.chk.is-blue .chk-body { fill: #1d9bf0; }
.chk.is-gold .chk-body { fill: #e0a526; }
.bd-row.is-tap, .bd-champ.is-tap { cursor: pointer; }
.sc { display: flex; flex-direction: column; gap: 12px; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-title { margin: 0; font-size: 22px; }
.sc-tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 2px; }
.sc-tab { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; color: var(--text); background: var(--surface-2, rgba(128, 128, 128, .14)); cursor: pointer; }
.sc-tab[aria-pressed="true"] { background: var(--accent, #2a6df4); color: #fff; }
.sc-n { font-size: 12px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; font: inherit; text-align: start; color: inherit; background: var(--surface-2, rgba(128, 128, 128, .12)); cursor: pointer; }
.sc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-name { font-weight: 800; display: inline-flex; align-items: center; min-width: 0; }
.sc-sub { margin: 10px 0 0; font-size: 14px; }
.sc-empty { text-align: center; padding: 28px 8px; }
.sc-req { display: flex; flex-direction: column; gap: 6px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-block-start: 10px; }
.sc-actions .btn { flex: 1 1 120px; }
.sc-quiet .btn { opacity: .8; }
.sc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 6px 0 4px; }
.sc-rel { margin-block-start: 4px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(42, 109, 244, .14); }
.sc-stats { display: flex; justify-content: center; gap: 22px; margin-block: 10px; }
.sc-stat { display: flex; flex-direction: column; align-items: center; }
.sc-crit { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sc-crit li { display: flex; align-items: center; gap: 8px; }
.sc-crit .is-ok { color: #1c9a5b; } .sc-crit .is-no { color: #c0392b; }
.sc-admin { margin-block-start: 14px; padding-block-start: 10px; border-top: 1px solid rgba(128, 128, 128, .25); }
.sc-lv { padding: 10px; margin-block-start: 10px; }
.pf-soc { position: relative; display: flex; justify-content: space-around; gap: 6px; padding: 8px; }
.pf-soc-c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 14px; font: inherit; color: inherit; background: none; cursor: pointer; }
.pf-soc-c strong { font-size: 20px; }
.pf-soc .more-dot { position: absolute; top: 8px; inset-inline-end: 10px; }

/* The top card of the profile: name and counts on the start side, the picture on the other. */
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-top .pc-id { flex: 1; min-width: 0; margin-block-start: 12px; text-align: start; }
.pc-top .pc-avatar { flex: none; width: 96px; height: 96px; margin: -48px 0 0; }
.pc-top .pc-name { font-size: 22px; }
.pc-top .pc-facts { justify-content: flex-start; }
.pc-top .pc-bio { margin-inline: 0; }
.pc-soc { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-block-start: 10px; }
.pc-soc-c { display: inline-flex; align-items: baseline; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--pc-ink2); cursor: pointer; }
.pc-soc-c b { font-size: 15px; font-weight: 800; color: var(--pc-ink); letter-spacing: -.01em; }
.pc-soc-c span { font-size: 12.5px; font-weight: 500; }
.pc-soc-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; align-self: center; }
.pc-top .pc-avatar { display: block; }
.pc-top .pc-avatar .avatar-editor { position: absolute; inset: 2px; width: auto; height: auto; display: block; }
.pc-top .pc-avatar .avatar-tap { display: block; width: 100%; height: 100%; padding: 0; }
.pc-top .pc-avatar .avatar-tap .avatar { width: 100% !important; height: 100% !important; }
.pc-top .pc-avatar .avatar-editor { inset: 5px; }
.pc-top .pc-avatar .avatar-tap { border-radius: 50%; overflow: visible; }
.pc-top .pc-avatar .avatar-tap .avatar { border-radius: 50%; overflow: hidden; }
.pc-name .chk { width: 20px; height: 20px; }

/* The chat between friends. */
.sc-chat { display: flex; flex-direction: column; gap: 8px; min-height: 55vh; }
.sc-chat-head { display: flex; align-items: center; gap: 10px; }
.sc-chat-head .btn { margin-inline-start: auto; }
.sc-chat-list { flex: 1; min-height: 220px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; }
.sc-msg { max-width: 82%; align-self: flex-start; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-2, rgba(128, 128, 128, .16)); overflow-wrap: anywhere; }
.sc-msg.is-mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; color: #fff; background: var(--accent, #2a6df4); }
.sc-sticker { font-size: 38px; line-height: 1.1; }
.sc-chat-note { text-align: center; }
.sc-chat-bar { display: flex; gap: 6px; align-items: center; }
.sc-chat-bar .input { flex: 1; min-width: 0; }
.sc-stickers { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 14px; background: var(--surface-2, rgba(128, 128, 128, .12)); }
.sc-pack-items { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; }
.sc-pick-st { position: relative; width: 48px; height: 48px; border: 0; border-radius: 12px; font-size: 26px; background: rgba(255, 255, 255, .5); cursor: pointer; }
.sc-pack-items.is-locked .sc-pick-st { opacity: .55; filter: grayscale(.6); cursor: default; }
.sc-lock { position: absolute; inset-block-end: 2px; inset-inline-end: 2px; display: grid; }
.topbar-avatar { position: relative; }
.topbar-chk { position: absolute; inset-block-end: -6px; inset-inline-start: -6px; display: grid; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); pointer-events: none; }
.topbar-chk .chk { width: 18px; height: 18px; margin: 0; }

.logo-bird-line { width: 26px; height: 26px; -webkit-mask: url('/static/img/logo-outline.png') center / contain no-repeat; mask: url('/static/img/logo-outline.png') center / contain no-repeat; }
.sc-send { width: 46px; }
img.sc-sticker { width: 72px; height: 72px; object-fit: contain; display: block; }
.sc-pick-st img { width: 40px; height: 40px; object-fit: contain; display: block; margin: auto; }
.sc-pick-st { width: 54px; height: 54px; }
.sc-msg:has(.sc-sticker) { background: none; padding: 0; }
.topbar-chk { inset-block-end: -3px; inset-inline-start: -3px; }
.sc-pick-st { width: 46px; height: 46px; }
.sc-pick-st img { width: 36px; height: 36px; }
.sc-stickers { max-height: 30vh; overflow-y: auto; }
.sc-chat:has(.sc-stickers:not([hidden])) .sc-chat-list { min-height: 90px; max-height: 20vh; }

/* Phone: the discount label stays on one line and the row wraps instead of cutting it; the counts on the profile stand over their word. */
.shop-off { white-space: nowrap; flex: none; }
.shop-off .xs { white-space: nowrap; }
.shop-price-ctl .input { width: 76px; }
.setting:has(.shop-price-ctl) { flex-wrap: wrap; }
.shop-price-ctl { min-width: 0; }
.pc-soc { justify-content: space-between; gap: 6px; max-width: 340px; }
.pc-soc-c { flex-direction: column; align-items: center; gap: 0; }
.pc-soc-c b { font-size: 17px; line-height: 1.2; }
.pc-soc-c span { font-size: 12px; }

/* Settings as on the iPhone: grouped lists of rows, each opening its own page with a back button. */
.ios-list { display: flex; flex-direction: column; gap: 22px; padding-block-end: 24px; }
.ios-group-t { margin: 0 14px 6px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text-dim, #6b7280); }
.ios-card { border-radius: 14px; overflow: hidden; background: var(--surface, #fff); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 0 0 1px var(--line, rgba(0, 0, 0, .06)); }
.ios-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 14px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); text-align: start; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.ios-row + .ios-row::before { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 56px; inset-inline-end: 0; height: 1px; background: var(--line, rgba(0, 0, 0, .08)); }
.ios-row:active { background: color-mix(in srgb, var(--text) 8%, transparent); }
.ios-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.ios-ic svg { stroke: #fff; }
.ios-label { flex: 1; min-width: 0; }
.ios-chev { flex: none; display: grid; color: var(--text-dim, #9ca3af); opacity: .7; }
.ios-nav { position: relative; display: flex; align-items: center; min-height: 44px; margin-block-end: 10px; }
.ios-back { display: inline-flex; align-items: center; gap: 2px; padding: 6px 4px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--accent, #0a84ff); cursor: pointer; position: relative; z-index: 1; }
.ios-title { position: absolute; inset-inline: 90px; margin: 0; text-align: center; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-push-in { animation: ios-push 320ms cubic-bezier(.2, .8, .2, 1); }
.ios-back-in { animation: ios-pop 280ms cubic-bezier(.2, .8, .2, 1); }
@keyframes ios-push { from { transform: translateX(calc(-1 * var(--ios-dir, 1) * 28%)); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes ios-pop { from { transform: translateX(calc(var(--ios-dir, 1) * 18%)); opacity: .4; } to { transform: none; opacity: 1; } }
:root[dir="ltr"] { --ios-dir: -1; }
@media (prefers-reduced-motion: reduce) { .ios-push-in, .ios-back-in { animation: none; } }
:root[data-motion="reduced"] .ios-push-in, :root[data-motion="reduced"] .ios-back-in { animation: none; }
.ios-nav { justify-content: flex-start; }
.ios-back { margin: 0; margin-inline-end: auto; }
.ios-back-ic { display: grid; }

.st-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.st-ask-btns .btn { flex: 1 1 120px; }

.st-ask-picks { display: flex; flex-direction: column; gap: 6px; margin-block-start: 8px; }
.st-ask-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, rgba(0, 0, 0, .1)); border-radius: 12px; background: var(--surface, #fff); font: inherit; color: inherit; text-align: start; cursor: pointer; }
.st-ask-pick:active { transform: scale(.99); }

/* The back button: a clear glass capsule with its arrow in a small circle, always in reach (the bar stays under the top bar while the page scrolls). */
.ios-nav { position: sticky; inset-block-start: var(--topbar-real, 0px); z-index: 20; margin-inline: calc(-1 * var(--s4, 16px)); padding: 8px var(--s4, 16px); min-height: 56px;
  background: color-mix(in srgb, var(--bg, #f6f7fb) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.ios-back { gap: 8px; padding: 6px 14px 6px 6px; padding-inline: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 650; color: var(--accent, #0a84ff);
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); border: 1px solid color-mix(in srgb, var(--accent, #0a84ff) 22%, var(--line, rgba(0,0,0,.08)));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -10px rgba(10, 60, 140, .45); transition: transform .12s ease, background .2s ease; }
.ios-back:active { transform: scale(.96); }
.ios-back:hover { background: color-mix(in srgb, var(--accent, #0a84ff) 8%, var(--surface, #fff)); }
.ios-back-ic { width: 26px; height: 26px; border-radius: 50%; place-items: center; color: #fff; background: var(--accent, #0a84ff); box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--accent, #0a84ff) 70%, transparent); }
.ios-back-ic svg { stroke: #fff; stroke-width: 2.6; width: 15px; height: 15px; }
.ios-title { inset-inline: 120px; font-size: 16px; }
:root[data-theme="dark"] .ios-back { background: color-mix(in srgb, var(--surface, #1c1c1e) 85%, transparent); }
/* No band behind the back button: the page's own background shows; the row scrolls with the page. */
.ios-nav { position: relative; inset-block-start: auto; margin-inline: 0; padding: 4px 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chk.is-bronze .chk-body { fill: #b8733a; }
/* The character window's keys keep their word on one line (longer words in English). */
.sys-keys { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.sys-key { white-space: nowrap; min-width: 0; }
:root[dir="ltr"] .sys-key { font-size: 12px; letter-spacing: 0; padding-inline: 6px; }

/* Framing the profile photo. */
.crop-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.crop-stage { position: relative; overflow: hidden; border-radius: 18px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-img { position: absolute; inset-block-start: 0; inset-inline-start: 0; max-width: none; transform-origin: 0 0; pointer-events: none; left: 0; right: auto; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -2px; pointer-events: none; }
.crop-zoom-row { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); }
.crop-zoom { flex: 1; }
.crop-zoom { direction: ltr; }
/* The character sits in the middle of its round frame, in Hebrew and in English alike. */
.ev-orb { position: relative; }
.ev-orb img { position: absolute; left: 50%; top: 50%; width: 118%; height: 118%; margin: 0; transform: translate(-50%, -48%); }

/* The workout's map of exercises: room around the dots so the focused one's ring is not cut. */
.gx-map-dots { padding: 6px; }
.gx-in.is-last { color: var(--text-2, #8e8e93); font-style: italic; }

/* The notice at the bottom: a dark capsule as the phone itself shows them, a coloured round sign, clear text on up to two lines. */
.toast { border-radius: 999px; padding: 10px 18px 10px 10px; padding-inline: 10px 18px; gap: 10px; min-height: 48px; border: 0;
  background: rgba(28, 28, 30, .94); color: #fff; -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .08) inset; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
:root[data-theme="dark"] .toast { background: rgba(58, 58, 62, .92); }
.toast-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0a84ff; }
.toast-ic svg { stroke: #fff; stroke-width: 2.6; }
.toast.is-ok .toast-ic { background: #30d158; }
.toast.is-error .toast-ic { background: #ff453a; }
.toast .toast-t { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; text-overflow: ellipsis; }
.toast .undo { color: #64d2ff; }
.toast.is-tappable .truncate { text-decoration: none; }

/* The exercises: muscle groups as cards, then the group's exercises as cards. */
.gx-lib-bar { display: flex; gap: 8px; align-items: center; margin-block-end: 14px; }
.gx-lib-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline: 12px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); color: var(--text-2); }
.gx-lib-q .input { border: 0; background: none; padding-inline: 0; box-shadow: none; }
.gx-mus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gx-mus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gx-mus-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line, rgba(0,0,0,.07)); border-radius: 18px; background: var(--surface, #fff);
  font: inherit; color: inherit; text-align: start; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px -14px rgba(0,0,0,.35); transition: transform .12s ease; }
.gx-mus-card:active { transform: scale(.97); }
.gx-mus-art { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--gx-card-2, rgba(128,128,128,.1)); margin-block-end: 4px; }
.gx-mus-name { font-weight: 750; font-size: 16px; }
.gx-mus-n { font-size: 12.5px; color: var(--text-2); }
.gx-lib-head { position: relative; display: flex; align-items: center; min-height: 48px; margin-block-end: 10px; }
.gx-lib-title { position: absolute; inset-inline: 120px; margin: 0; text-align: center; font-size: 17px; font-weight: 750; }
.gx-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gx-ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gx-ex-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line, rgba(0,0,0,.07)); border-radius: 18px; background: var(--surface, #fff);
  font: inherit; color: inherit; text-align: start; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px -14px rgba(0,0,0,.35); transition: transform .12s ease; min-width: 0; }
.gx-ex-card:active { transform: scale(.97); }
.gx-ex-card.is-hidden { opacity: .55; }
.gx-ex-art { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--gx-card-2, rgba(128,128,128,.1)); }
.gx-ex-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.gx-ex-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-ex-tag { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent, #0a84ff) 12%, transparent); color: var(--accent-text, #0a84ff); }
.gx-ex-tag.is-muted { background: rgba(128,128,128,.15); color: var(--text-2); }
.gx-ex-best { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #b8862b; margin-block-start: auto; }
.gx-ex-best.is-new { color: var(--text-2); font-weight: 500; }
/* The whole message shows, on as many lines as it needs; a message of several lines is a rounded card, not a capsule. */
.toast .toast-t { display: block; -webkit-line-clamp: unset; overflow: visible; white-space: normal; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.toast { border-radius: 24px; max-width: min(520px, calc(100vw - 24px)); }

/* ============================================================
   The social network, redesigned (views/social.js, views/social-plus.js): a network of effort, not of image.
   One page drilled into like the iPhone; rings of today's share around the characters; cards for doing together;
   the chat on the Retzef backdrop (a continuous line, "רצף", warm gold by day and moonlit threads by night).
   ============================================================ */
.sc { --sc-ring: #20c997; --sc-ring2: #0a84ff; --sc-gold1: #ffe9a6; --sc-gold2: #d9a325; --sc-rose: #ff375f; display: flex; flex-direction: column; gap: 22px; padding-block-end: 28px; }
.sc-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.sc-hero h2 { margin: 0; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 850; }
.sc-hero-s { margin: 4px 0 0; font-size: 13.5px; color: var(--text-3); }
.sc-hero-act { display: flex; gap: 6px; flex: none; }
.sc-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-pill:active { transform: scale(.96); }
.sc-meta { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }
.sc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: start; }
.sc-name { font-weight: 800; display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.sc-name bdi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-chev { flex: none; display: grid; color: var(--text-3); opacity: .6; }

/* A face: the character's frame; around it the ring of today (0..100) — the inner circle in gold. */
.sc-face { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.sc-face.has-ring { padding: 3px; background: conic-gradient(from -90deg, var(--sc-ring) 0, var(--sc-ring2) calc(var(--ring) * 1%), color-mix(in srgb, var(--text) 10%, transparent) 0); }
.sc-face.has-ring > .bd-av { box-shadow: 0 0 0 2.5px var(--bg); border-radius: 50%; }
.sc-face.is-inner { padding: 3px; background: conic-gradient(from -90deg, #fff4c8, var(--sc-gold2) 30%, #fff1b8 55%, #b98510 80%, #fff4c8); }
.sc-face.is-inner.has-ring { background: conic-gradient(from -90deg, var(--sc-gold1) 0, var(--sc-gold2) calc(var(--ring) * 1%), color-mix(in srgb, var(--sc-gold2) 22%, transparent) 0); }
.sc-face.is-inner > .bd-av { box-shadow: 0 0 0 2.5px var(--bg); border-radius: 50%; }

/* The day of the friends: a rail of rings. */
.sc-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; margin-inline: -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.sc-rail::-webkit-scrollbar { display: none; }
.sc-rail-i { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; scroll-snap-align: start; }
.sc-rail-i:active .sc-face { transform: scale(.95); }
.sc-rail-n { max-width: 74px; font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-rail-p { font-size: 11px; font-weight: 800; color: var(--text-3); margin-block-start: -3px; }
.sc-rail-empty { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 18px; font-size: 13.5px; color: var(--text-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* Sections. */
.sc-sec { display: flex; flex-direction: column; gap: 10px; }
.sc-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-inline: 4px; }
.sc-sec-h h3 { margin: 0; font-size: 19px; font-weight: 820; letter-spacing: -0.01em; }
.sc-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.sc-group { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; border-radius: 0; font: inherit; text-align: start; color: inherit; background: none; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.sc-row + .sc-row::before { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 70px; inset-inline-end: 0; height: 1px; background: var(--line); }
.sc-row:active { background: color-mix(in srgb, var(--text) 6%, transparent); }
.sc-empty { margin: 0; padding: 26px 18px; text-align: center; color: var(--text-3); font-size: 14px; }
.sc-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5e5ce6, #0a84ff); }
.sc-ic svg { stroke: #fff; }
.sc-ic.is-circle { background: linear-gradient(135deg, #30d158, #0a9f6e); }
.sc-ic.is-pact { background: linear-gradient(135deg, #5e5ce6, #8e5cf7); }
.sc-ic.is-chain { background: linear-gradient(135deg, #ff9f0a, #ff6a00); }
.sc-ic.is-race { background: linear-gradient(135deg, #ff375f, #ff6b8a); }
.sc-ic.is-cowork { background: linear-gradient(135deg, #0a84ff, #34c3ff); }

/* Waiting for an answer. */
.sc-waits { display: flex; flex-direction: column; gap: 8px; }
.sc-wait { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, var(--line)), 0 10px 26px -18px color-mix(in srgb, var(--accent) 70%, transparent); }
.sc-wait .sc-who { min-width: 120px; }
.sc-wait .btn { flex: none; }

/* Conversations. */
.sc-chat-row { padding-block: 11px; }
.sc-who-top { display: flex; align-items: baseline; gap: 8px; }
.sc-who-top .sc-name { flex: 1; min-width: 0; }
.sc-time { flex: none; font-size: 12px; color: var(--text-3); }
.sc-last { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--text-3); }
.sc-last > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-chat-row.is-unread .sc-last { color: var(--text); font-weight: 650; }
.sc-chat-row.is-unread .sc-time { color: var(--accent); font-weight: 700; }
.sc-unread { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); }
.sc-tag-intro { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff375f, #ff8a5c); }

/* Doing together. */
.sc-bonds { display: grid; gap: 10px; }
.sc-bond { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 18px; border: 0; border-radius: 20px; font: inherit; text-align: start; color: inherit; cursor: pointer; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-bond::before { content: ''; position: absolute; inset: 0; opacity: .1; background: radial-gradient(120% 140% at 100% 0%, var(--k1), transparent 60%); pointer-events: none; }
.sc-bond:active { transform: scale(.985); }
.sc-bond.is-pact { --k1: #7c5cff; --k2: #5e5ce6; } .sc-bond.is-chain { --k1: #ff9f0a; --k2: #ff6a00; } .sc-bond.is-race { --k1: #ff375f; --k2: #ff6b8a; } .sc-bond.is-cowork { --k1: #0a84ff; --k2: #34c3ff; }
.sc-bond-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 8px 18px -10px var(--k1); }
.sc-bond-ic svg { stroke: #fff; }
.sc-bond-faces { display: flex; flex: none; }
.sc-bond-faces .sc-face + .sc-face { margin-inline-start: -9px; }
.sc-bond-faces .bd-av { box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; }
.sc-bond-bar { position: absolute; inset-inline: 14px; inset-block-end: 8px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.sc-bond-bar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: 4px; background: linear-gradient(90deg, var(--k1), var(--k2)); }
.sc-invite { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 20px; font: inherit; text-align: start; color: inherit; background: color-mix(in srgb, var(--accent) 4%, transparent); cursor: pointer; }
.sc-invite > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sc-invite-art { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #5e5ce6, #ff375f); }
.sc-invite-art svg { stroke: #fff; }

/* Circles. */
.sc-circles { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.sc-circles::-webkit-scrollbar { display: none; }
.sc-circles > p { margin: 0; padding: 4px; }
.sc-circle { flex: none; width: 148px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 0; border-radius: 20px; font: inherit; text-align: start; color: inherit; cursor: pointer; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-circle strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-circle-ring { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; color: #0a9f6e; background: radial-gradient(circle, var(--surface) 58%, transparent 60%), conic-gradient(#30d158, #0a9f6e, #30d158); }
.sc-circle-ring.is-big { width: 78px; height: 78px; font-size: 26px; }

.sc-lists { gap: 0; padding: 0; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.ios-value { flex: none; color: var(--text-3); font-size: 15px; }
.ios-sub { display: block; font-size: 12.5px; color: var(--text-3); }
.ios-label > span:first-child { display: block; }
.sc-match { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 850; color: #fff; background: linear-gradient(135deg, #ff375f, #ff8a5c); }

/* A page inside the network. */
.sc-page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sc-page-t { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -0.02em; }

/* The profile: a character card under a soft aurora. */
.sc-prof { display: flex; flex-direction: column; gap: 14px; }
.sc-pcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 16px; border-radius: 26px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface)); box-shadow: 0 0 0 1px var(--line); }
.sc-pcard-glow { position: absolute; inset: -40% -20% auto; height: 220px; pointer-events: none; opacity: .55;
  background: radial-gradient(closest-side at 30% 50%, rgba(10, 132, 255, .35), transparent), radial-gradient(closest-side at 70% 40%, rgba(94, 92, 230, .32), transparent), radial-gradient(closest-side at 50% 80%, rgba(32, 201, 151, .25), transparent); filter: blur(10px); animation: sc-aurora 14s ease-in-out infinite alternate; }
.sc-pcard.is-inner { background: linear-gradient(180deg, rgba(255, 214, 120, .2), var(--surface)); }
.sc-pcard.is-inner .sc-pcard-glow { background: radial-gradient(closest-side at 30% 50%, rgba(255, 196, 70, .45), transparent), radial-gradient(closest-side at 70% 40%, rgba(255, 55, 95, .22), transparent); }
.sc-pcard.is-circle .sc-pcard-glow { background: radial-gradient(closest-side at 40% 50%, rgba(48, 209, 88, .38), transparent), radial-gradient(closest-side at 70% 40%, rgba(10, 132, 255, .25), transparent); }
@keyframes sc-aurora { to { transform: translateX(8%) scale(1.08); } }
.sc-pcard > * { position: relative; }
.sc-pcard .sc-name { font-size: 20px; margin-block-start: 6px; }
.sc-pcard-t { margin: 6px 0 0; font-size: 20px; }
.sc-rel { margin-block-start: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: var(--accent-text); background: var(--accent-soft); }
.sc-stats { display: flex; justify-content: center; gap: 26px; margin-block-start: 12px; }
.sc-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sc-stat strong { font-size: 18px; font-weight: 850; }
.sc-stat span { font-size: 12px; color: var(--text-3); }
.sc-feats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sc-feat { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: color-mix(in srgb, var(--text) 6%, transparent); }
.sc-feat.is-inner { color: #8a5a00; background: linear-gradient(135deg, #fff2c6, #ffd77a); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-actions .btn { flex: 1 1 130px; }
.sc-quiet .btn { flex: 0 1 auto; color: var(--text-3); }
.sc-inner-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 18px; font: inherit; text-align: start; color: inherit; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 214, 120, .18), rgba(255, 55, 95, .08)); box-shadow: 0 0 0 1px rgba(217, 163, 37, .35); }
.sc-inner-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f5c542, #d9a325); }
.sc-inner-ic svg { stroke: #fff; }
.sc-inner-line.is-in .sc-inner-ic { background: linear-gradient(135deg, #ff375f, #f5a623); }

/* ---------------------------------------------------------------- the chat */
.sheet.is-chat-sheet { height: 92dvh; }
.sheet.is-chat-sheet .sheet-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sc-chat { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; isolation: isolate; }
/* The Retzef backdrop: one continuous thread woven through the page (the name: a continuum), beads of light on it,
   a small swift now and then. Warm parchment and gold by day; deep night, moonlit threads and stars by night. */
.sc-chat-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23b8892c' stroke-linecap='round'%3E%3Cpath d='M0 40C55 10 55 70 110 40S165 10 220 40' stroke-opacity='.22' stroke-width='1.3'/%3E%3Cpath d='M0 150C55 180 55 120 110 150S165 180 220 150' stroke-opacity='.16' stroke-width='1.1'/%3E%3Cpath d='M70 0C40 55 100 55 70 110S40 165 70 220' stroke-opacity='.1' stroke-width='1'/%3E%3C/g%3E%3Cg fill='%23c99a3a'%3E%3Ccircle cx='110' cy='40' r='2' fill-opacity='.4'/%3E%3Ccircle cx='70' cy='110' r='1.6' fill-opacity='.3'/%3E%3Ccircle cx='165' cy='165' r='1.4' fill-opacity='.3'/%3E%3Ccircle cx='28' cy='150' r='1.2' fill-opacity='.28'/%3E%3C/g%3E%3Cpath d='M160 86c6-5 13-6 19-3-5 0-9 2-12 5 4-1 8 0 11 3-6-1-11 0-15 3l-4-2 1-6z' fill='%23b8892c' fill-opacity='.14'/%3E%3C/svg%3E") 0 0 / 220px 220px,
    radial-gradient(120% 70% at 85% 0%, rgba(255, 214, 150, .55), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(255, 190, 170, .35), transparent 60%),
    linear-gradient(180deg, #fbf6ec, #f4ecdc); }
[data-theme="dark"] .sc-chat-bg {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%238fb4ff' stroke-linecap='round'%3E%3Cpath d='M0 40C55 10 55 70 110 40S165 10 220 40' stroke-opacity='.16' stroke-width='1.2'/%3E%3Cpath d='M0 150C55 180 55 120 110 150S165 180 220 150' stroke-opacity='.11' stroke-width='1'/%3E%3Cpath d='M70 0C40 55 100 55 70 110S40 165 70 220' stroke-opacity='.07' stroke-width='1'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='110' cy='40' r='1.6' fill-opacity='.55'/%3E%3Ccircle cx='70' cy='110' r='1.2' fill-opacity='.4'/%3E%3Ccircle cx='165' cy='165' r='1' fill-opacity='.45'/%3E%3Ccircle cx='190' cy='20' r='.8' fill-opacity='.5'/%3E%3Ccircle cx='24' cy='86' r='.9' fill-opacity='.35'/%3E%3Ccircle cx='130' cy='200' r='.7' fill-opacity='.4'/%3E%3C/g%3E%3Cpath d='M160 86c6-5 13-6 19-3-5 0-9 2-12 5 4-1 8 0 11 3-6-1-11 0-15 3l-4-2 1-6z' fill='%23a9c3ff' fill-opacity='.12'/%3E%3C/svg%3E") 0 0 / 220px 220px,
    radial-gradient(90% 55% at 80% 0%, rgba(94, 92, 230, .35), transparent 62%),
    radial-gradient(80% 50% at 0% 100%, rgba(10, 132, 255, .22), transparent 60%),
    linear-gradient(180deg, #0b1022, #070a16); }
.sc-chat.is-intro .sc-chat-bg { filter: hue-rotate(-28deg) saturate(1.15); }
[data-theme="dark"] .sc-chat.is-intro .sc-chat-bg { filter: hue-rotate(95deg) saturate(1.2); }
.sc-chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--bg-elevated) 70%, transparent); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-block-end: 1px solid var(--line); }
.sc-chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 10px; overscroll-behavior: contain; }
.sc-day { align-self: center; margin: 10px 0 6px; }
.sc-day span { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-2); background: color-mix(in srgb, var(--bg-elevated) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); }
.sc-msg { position: relative; max-width: 78%; align-self: flex-start; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 8px; padding: 8px 12px 6px; border-radius: 20px 20px 20px 6px; font-size: 15.5px; line-height: 1.38; overflow-wrap: anywhere;
  color: var(--text); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: 0 1px 1px rgba(60, 40, 10, .06), 0 6px 16px -10px rgba(60, 40, 10, .25); animation: sc-pop 260ms cubic-bezier(.2, .9, .3, 1.2); }
[dir="rtl"] .sc-msg { border-radius: 20px 20px 6px 20px; }
.sc-msg.is-mine { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #2f6bff, #6a4cff); box-shadow: 0 8px 20px -12px rgba(60, 70, 255, .8); border-radius: 20px 20px 6px 20px; }
[dir="rtl"] .sc-msg.is-mine { border-radius: 20px 20px 20px 6px; }
[data-theme="dark"] .sc-msg:not(.is-mine) { background: rgba(255, 255, 255, .09); color: #f1f3fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sc-chat.is-intro .sc-msg.is-mine { background: linear-gradient(135deg, #ff375f, #ff8a5c); box-shadow: 0 8px 20px -12px rgba(255, 55, 95, .8); }
.sc-msg.is-sticker { padding: 2px; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sc-msg.is-sticker .sc-msg-meta { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; padding: 1px 6px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .35); }
.sc-sticker { width: 96px; height: 96px; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.sc-msg-t { white-space: pre-wrap; }
.sc-msg-meta { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: auto; font-size: 11px; opacity: .62; line-height: 1; padding-block-start: 4px; }
.sc-seen { display: inline-flex; }
.sc-seen svg { width: 12px; height: 12px; stroke-width: 2.6; }
.sc-seen svg + svg { margin-inline-start: -7px; }
.sc-seen.is-seen { opacity: 1; color: #9be7ff; }
@keyframes sc-pop { from { transform: translateY(6px) scale(.97); opacity: 0; } }
.sc-chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; color: var(--text-2); font-size: 13.5px; max-width: 280px; }
.sc-chat-empty strong { color: var(--text); font-size: 16px; }
.sc-chat-note { flex: none; text-align: center; font-size: 11.5px; color: var(--text-3); padding: 2px 0 4px; }
.sc-chat-note.is-low { color: var(--warn); font-weight: 700; }
.sc-chat-bar { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg-elevated) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-block-start: 1px solid var(--line); }
.sc-chat-in { flex: 1; min-width: 0; min-height: 40px; max-height: 120px; resize: none; padding: 9px 14px; border: 0; border-radius: 20px; font: inherit; font-size: 15.5px; line-height: 1.35; color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line); outline: none; }
.sc-chat-in:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.sc-send, .sc-st-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.sc-send { color: #fff; background: linear-gradient(135deg, #2f6bff, #6a4cff); box-shadow: 0 6px 14px -8px rgba(60, 70, 255, .9); transition: transform 120ms, opacity 160ms; }
.sc-send svg { stroke: #fff; }
[dir="rtl"] .sc-send svg { transform: scaleX(-1); }
.sc-send:disabled { opacity: .35; cursor: default; box-shadow: none; }
.sc-send:not(:disabled):active { transform: scale(.92); }
.sc-chat.is-intro .sc-send { background: linear-gradient(135deg, #ff375f, #ff8a5c); }
.sc-st-btn { color: var(--text-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sc-stickers { flex: none; max-height: 40%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-block-start: 1px solid var(--line); }
.sc-stickers[hidden] { display: none; }
.sc-pack-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-pack-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin-block-start: 6px; }
.sc-pick-st { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 5%, transparent); cursor: pointer; transition: transform 120ms; }
.sc-pick-st:not(:disabled):active { transform: scale(.9); }
.sc-pack-items.is-locked .sc-pick-st { opacity: .5; filter: grayscale(.7); cursor: default; }
.sc-lock { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; }

/* ---------------------------------------------------------------- doing together, the inner circle, the card */
.sp-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block-end: 12px; }
.sp-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 0; border-radius: 18px; font: inherit; text-align: start; color: inherit; cursor: pointer; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 160ms, transform 120ms; }
.sp-kind.is-pact { --k1: #7c5cff; --k2: #5e5ce6; } .sp-kind.is-chain { --k1: #ff9f0a; --k2: #ff6a00; } .sp-kind.is-race { --k1: #ff375f; --k2: #ff6b8a; } .sp-kind.is-cowork { --k1: #0a84ff; --k2: #34c3ff; }
.sp-kind[aria-checked="true"] { box-shadow: 0 0 0 2px var(--k1), 0 10px 24px -16px var(--k1); background: color-mix(in srgb, var(--k1) 7%, var(--surface)); }
.sp-kind:active { transform: scale(.98); }
.sp-kind-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--k1, #5e5ce6), var(--k2, #0a84ff)); }
.sp-kind-ic svg { stroke: #fff; }
.sp-kind-l { font-size: 12px; line-height: 1.35; color: var(--text-3); }
@media (max-width: 380px) { .sp-kinds { grid-template-columns: 1fr; } }
.sp-bond, .sp-inner, .sp-intro { display: flex; flex-direction: column; gap: 14px; }
.sp-bond-head { display: flex; align-items: center; gap: 12px; }
.sp-bond-head.is-pact { --k1: #7c5cff; --k2: #5e5ce6; } .sp-bond-head.is-chain { --k1: #ff9f0a; --k2: #ff6a00; } .sp-bond-head.is-race { --k1: #ff375f; --k2: #ff6b8a; } .sp-bond-head.is-cowork { --k1: #0a84ff; --k2: #34c3ff; }
.sp-bond-head h3 { margin: 0; font-size: 20px; }
.sp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sp-day { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 11px; color: var(--text-3); background: color-mix(in srgb, var(--text) 6%, transparent); }
.sp-day.is-held { color: #fff; background: linear-gradient(135deg, #30d158, #0a9f6e); }
.sp-day.is-broken { color: #fff; background: linear-gradient(135deg, #ff453a, #c02d32); }
.sp-day.is-part { color: #8a5a00; background: rgba(255, 196, 70, .35); }
.sp-big { margin: 0; text-align: center; font-size: 22px; font-weight: 850; }
.sp-clock { display: flex; flex-direction: column; align-items: center; padding: 18px; border-radius: 22px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #34c3ff, #0a64d6); box-shadow: 0 14px 30px -18px #0a84ff; }
.sp-clock strong { font-size: 44px; font-weight: 850; letter-spacing: -0.02em; }
.sp-board { display: flex; flex-direction: column; gap: 8px; }
.sp-board-r { display: flex; align-items: center; gap: 10px; }
.sp-place { width: 22px; text-align: center; font-weight: 850; color: var(--text-3); }
.sp-bar { flex: 1 1 80px; height: 8px; border-radius: 8px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--text) 8%, transparent); }
.sp-bar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: 8px; background: linear-gradient(90deg, #0a84ff, #20c997); }
.sp-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, .2); animation: sp-pulse 1.6s ease-in-out infinite; }
@keyframes sp-pulse { 50% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } }
.sp-inner-head { display: flex; align-items: center; gap: 14px; }
.sp-inner-head .sc-name { font-size: 19px; }
.sp-cond { list-style: none; margin: 0; padding: 12px 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sp-cond li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.sp-cond .is-ok svg { stroke: #1c9a5b; } .sp-cond .is-no svg { stroke: #c0392b; }
.sp-h { margin: 6px 0 0; font-size: 15px; font-weight: 800; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { padding: 7px 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); cursor: pointer; }
.sp-chip[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #ff375f, #ff8a5c); }
.sp-card-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 55, 95, .09), rgba(255, 214, 120, .14)); box-shadow: 0 0 0 1px rgba(255, 55, 95, .18); }
.sp-card-intro p { margin: 4px 0 0; }
.sp-card-gem { flex: none; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff375f, #f5a623); box-shadow: 0 10px 20px -12px #ff375f; }
.sp-card-gem svg { stroke: #fff; }
.sp-card-edit, .sp-card-form { display: flex; flex-direction: column; gap: 12px; }

/* The rare card: holographic foil that moves with time, a light sweep, a gold edge; deeper with each layer. */
.sp-rare { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 26px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #2a1440 0%, #48163f 45%, #6d2a2a 100%); box-shadow: 0 0 0 1.5px rgba(255, 214, 120, .65), 0 24px 50px -28px rgba(120, 20, 60, .9); }
.sp-rare > * { position: relative; }
.sp-rare-holo { position: absolute !important; inset: 0; opacity: .32; mix-blend-mode: color-dodge; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 120, 200, .6) 32%, rgba(120, 220, 255, .6) 44%, rgba(255, 240, 150, .6) 56%, transparent 70%); background-size: 250% 250%; animation: sp-holo 7s ease-in-out infinite alternate; }
.sp-rare-glare { position: absolute !important; inset: -50% -10%; pointer-events: none; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); animation: sp-glare 6s ease-in-out infinite; }
@keyframes sp-holo { to { background-position: 100% 100%; } }
@keyframes sp-glare { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.sp-rare.is-l2 { box-shadow: 0 0 0 2px rgba(255, 214, 120, .9), 0 24px 50px -24px rgba(255, 120, 60, .7); }
.sp-rare.is-l3 { box-shadow: 0 0 0 2.5px #ffd36e, 0 0 32px -6px rgba(255, 196, 70, .7), 0 24px 50px -24px rgba(255, 120, 60, .8); }
.sp-rare-top { display: flex; align-items: center; gap: 14px; }
.sp-rare-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-rare-id .sc-name { font-size: 20px; color: #fff; }
.sp-rare-sub { font-size: 13px; color: rgba(255, 255, 255, .78); }
.sp-rare-line { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; background: rgba(255, 255, 255, .1); border-inline-start: 3px solid #ffd36e; }
.sp-rare-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-tag { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: #3a2400; background: linear-gradient(135deg, #fff2c6, #ffd36e); }
.sp-tag.is-soft { color: #fff; background: rgba(255, 255, 255, .14); }
.sp-rare-portrait { display: flex; flex-direction: column; gap: 2px; padding-block-start: 10px; border-block-start: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.sp-rare-qa { display: flex; flex-direction: column; gap: 8px; }
.sp-rare-qa .sc-meta { color: rgba(255, 255, 255, .7); }
.sp-rare-qa p { margin: 2px 0 0; }
.sp-match { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sp-match-ring { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--surface) 60%, transparent 61%), conic-gradient(#ff375f calc(var(--p) * 1%), color-mix(in srgb, var(--text) 8%, transparent) 0); }
.sp-match-ring strong { font-size: 20px; font-weight: 850; }
.sp-match-parts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-match-r { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sp-match-r > span:first-child { flex: 0 0 86px; color: var(--text-2); }
.sp-match-r .sp-bar::after { background: linear-gradient(90deg, #ff375f, #ff8a5c); }
.sp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: st; }
.sp-steps li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 14px 10px 14px; padding-inline-start: 48px; border-radius: 16px; font-size: 13px; color: var(--text-3); background: var(--surface); box-shadow: 0 0 0 1px var(--line); counter-increment: st; }
.sp-steps li strong { color: var(--text); font-size: 14.5px; }
.sp-steps li::before { content: counter(st); position: absolute; inset-inline-start: 12px; inset-block-start: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; color: var(--text-3); background: color-mix(in srgb, var(--text) 8%, transparent); }
.sp-steps li.is-on::before { content: '✓'; color: #fff; background: linear-gradient(135deg, #ff375f, #ff8a5c); }
.sp-photos { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 55, 95, .08), rgba(255, 214, 120, .12)); box-shadow: 0 0 0 1px rgba(255, 55, 95, .2); }
.sp-photos p { margin: 0; }
.sp-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-photo-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-photo, .sp-photo-add, .sp-photo-wait { width: 100%; aspect-ratio: 1; border-radius: 20px; object-fit: cover; }
.sp-photo { cursor: pointer; transition: filter 260ms; }
.sp-photo-slot.is-veiled:not(.is-open) .sp-photo { filter: blur(18px) saturate(.6); }
.sp-photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed rgba(255, 55, 95, .45); font-weight: 750; color: #ff375f; cursor: pointer; background: rgba(255, 255, 255, .5); }
.sp-photo-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--text-3); background: color-mix(in srgb, var(--text) 6%, transparent); }
.sc-row.is-intro .sc-face { background: conic-gradient(from -90deg, #ff375f, #ffb35c, #ff375f); padding: 2.5px; }
.tab-more { position: relative; }
.tab-dot { position: absolute; inset-block-start: 6px; inset-inline-end: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: #ff375f; box-shadow: 0 0 0 2px var(--bg); }
.tab-dot[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sc-pcard-glow, .sp-rare-holo, .sp-rare-glare, .sp-live, .sc-msg { animation: none; } }
/* The older chat sizes give way to the full-height chat. */
.sheet.is-chat-sheet .sc-chat { min-height: 0; gap: 0; }
.sheet.is-chat-sheet .sc-chat-list { max-height: none; }
.sc-pack-items .sc-pick-st { width: auto; height: auto; font-size: inherit; }
.sc-actions { justify-content: stretch; margin-block-start: 0; }
.sc-row { border-radius: 0; background: none; }

/* A person's card (views/social.js openProfile): like a phone's contact card — the character in its ring, the name and
   rank, the quick actions as round signs over short words, three even numbers, then the quiet actions as a list. */
.sheet.is-person-sheet .sheet-head { border-block-end: 0; padding-block-end: 0; }
.prs { display: flex; flex-direction: column; gap: 16px; max-width: 520px; width: 100%; margin-inline: auto; padding-block-end: 8px; }
.prs-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 12px 4px; text-align: center; isolation: isolate; }
.prs-hero-bg { position: absolute; inset: -60px -40px 10px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), radial-gradient(40% 50% at 80% 10%, rgba(32, 201, 151, .16), transparent 70%); }
.prs-hero.is-inner .prs-hero-bg { background: radial-gradient(60% 70% at 50% 30%, rgba(255, 196, 70, .3), transparent 70%), radial-gradient(40% 50% at 80% 10%, rgba(255, 55, 95, .14), transparent 70%); }
.prs-hero .sc-face { filter: drop-shadow(0 10px 22px rgba(10, 30, 80, .18)); }
.prs-id { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.prs-id .sc-name { font-size: 22px; font-weight: 850; letter-spacing: -0.01em; max-width: 100%; }
.prs-rank { font-size: 13.5px; color: var(--text-3); }
.prs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.prs-chip { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.prs-chip.is-friend { color: #0b7a48; background: rgba(48, 209, 88, .16); }
.prs-hero.is-inner .prs-chip.is-friend { color: #8a5a00; background: linear-gradient(135deg, #fff2c6, #ffd77a); }
[data-theme="dark"] .prs-chip.is-friend { color: #7ee2a8; }
.prs-quick { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.prs-q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 0; border-radius: 18px; font: inherit; color: var(--accent); cursor: pointer; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); transition: transform 120ms; -webkit-tap-highlight-color: transparent; }
.prs-q:active { transform: scale(.95); }
.prs-q-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.prs-q-t { font-size: 13px; font-weight: 750; color: var(--text); line-height: 1.2; text-align: center; }
.prs-q.is-main .prs-q-ic { color: #fff; background: linear-gradient(135deg, #2f6bff, #6a4cff); box-shadow: 0 8px 16px -10px rgba(60, 70, 255, .9); }
.prs-q.is-main .prs-q-ic svg, .prs-q.is-gold .prs-q-ic svg { stroke: #fff; }
.prs-q.is-gold .prs-q-ic { color: #fff; background: linear-gradient(135deg, #f5c542, #d9a325); }
.prs-stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.prs-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; min-width: 0; }
.prs-stat + .prs-stat { border-inline-start: 1px solid var(--line); }
.prs-stat strong { font-size: 17px; font-weight: 850; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prs-stat span { font-size: 12px; color: var(--text-3); }
.prs-feats { display: flex; flex-direction: column; gap: 8px; }
.prs-sec { font-size: 13px; font-weight: 800; color: var(--text-3); padding-inline: 4px; }
.prs-feats .sc-feats { justify-content: flex-start; }
.prs-note { margin: 0; text-align: center; font-size: 13.5px; color: var(--text-3); }
.prs-more { margin-block-start: 4px; }
.prs-more .ios-row { min-height: 48px; font-size: 15.5px; }
.ios-row.is-danger .ios-label { color: #ff3b30; }
@media (max-width: 360px) { .prs-q-t { font-size: 12px; } .prs-q { padding-inline: 2px; } }
.topbar-social, .navitem-social { position: relative; }
.topbar-social .tab-dot { inset-block-start: 4px; inset-inline-end: 4px; }
.navitem-social .tab-dot { inset-block-start: 10px; inset-inline-start: 30px; inset-inline-end: auto; }
.sc-hero { align-items: center; }
.sc-wait { flex-wrap: nowrap; }
.sc-wait .sc-who { min-width: 0; }
.sc-wait-act { flex: none; display: flex; gap: 6px; }
.sc-wait-act .btn { padding-inline: 12px; }
@media (max-width: 370px) { .sc-wait { flex-wrap: wrap; } .sc-wait-act { width: 100%; } .sc-wait-act .btn { flex: 1; } }

/* The gold check, for the administrator (views/social.js adminBox): a card with the seal, where it stands, the
   conditions as a checklist with their values, and the action at the bottom. */
.ga { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 214, 120, .16), var(--surface) 55%); box-shadow: 0 0 0 1px rgba(217, 163, 37, .35); }
.ga-head { display: flex; align-items: center; gap: 12px; }
.ga-seal { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #fff6d6, #ffe08a); box-shadow: inset 0 0 0 1px rgba(217, 163, 37, .4); }
.ga-seal .chk { width: 26px; height: 26px; margin: 0; }
.ga-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ga-t strong { font-size: 17px; }
.ga-pill { flex: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.ga-pill.is-ready { color: #0b7a48; background: rgba(48, 209, 88, .16); }
.ga-pill.is-on { color: #6b4500; background: linear-gradient(135deg, #fff2c6, #ffd36e); }
.ga-reports { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.ga-list { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ga-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.ga-row + .ga-row { border-block-start: 1px solid var(--line); }
.ga-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ga-mark svg { stroke: #fff; stroke-width: 3; }
.ga-row.is-ok .ga-mark { background: #30d158; }
.ga-row.is-no .ga-mark { background: #ff453a; }
.ga-label { flex: 1; min-width: 0; }
.ga-row.is-no .ga-label { color: var(--text); }
.ga-note { flex: none; font-size: 12.5px; color: var(--text-3); }
.ga-give { display: flex; flex-direction: column; gap: 8px; }
.ga-give p { margin: 0; text-align: center; }
.ga-remove { color: #ff3b30; }
.prs-top { display: flex; margin-block-end: -8px; }
.sheet.is-person-sheet .sheet-head h2:empty { visibility: hidden; }
.sc-chat-back { padding: 2px; flex: none; }
/* The chat and the person's card carry their own top row (back, close): the sheet's own title row stands down. */
.sheet.is-chat-sheet .sheet-head, .sheet.is-person-sheet .sheet-head { display: none; }
.prs-top { align-items: center; justify-content: space-between; margin-block-end: -6px; }
.prs-top .ios-back, .sc-chat-head .ios-back { margin: 0; }
.sheet.is-chat-sheet .sheet-grab { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 2; }
.sc-chat-head { padding-block-start: 16px; }
/* The person's card: a solid page of its own (the grouped grey of the phone's settings under white cards), and its top
   row (back, close) stays put while the card scrolls, on frosted glass — nothing of the page behind shows through. */
.sheet.is-person-sheet { background: var(--bg); }
.sheet.is-person-sheet .sheet-body { padding-block-start: 0; }
.prs-top { position: sticky; inset-block-start: 0; z-index: 3; margin-inline: calc(-1 * var(--s4)); margin-block-end: 0; padding: 8px var(--s4);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
.prs-hero-bg { inset: -20px -40px 10px; }
.sheet.is-person-sheet { background: #f2f2f7; box-shadow: 0 -10px 40px -12px rgba(16, 18, 27, .28); }
[data-theme="dark"] .sheet.is-person-sheet { background: #111114; }
.sheet.is-person-sheet .prs-top { background: color-mix(in srgb, #f2f2f7 84%, transparent); }
[data-theme="dark"] .sheet.is-person-sheet .prs-top { background: color-mix(in srgb, #111114 84%, transparent); }
/* The owner: no band behind the back button — the top row scrolls with the card, on nothing. */
.prs-top, .sheet.is-person-sheet .prs-top, [data-theme="dark"] .sheet.is-person-sheet .prs-top { position: static; margin: 0; padding: 4px 0 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet.is-person-sheet .sheet-body { padding-block-start: 4px; }
/* The Retzef bird on the round send signs (the chat's send button, the card's "message"). */
.prs-q-ic .logo-bird-line { width: 22px; height: 22px; color: #fff; }
.sc-send .logo-bird-line { width: 22px; height: 22px; color: #fff; }
[dir="rtl"] .sc-send .logo-bird-line { transform: scaleX(-1); }
/* The light behind the character fades out before any edge (no straight line where it starts). */
.prs-hero-bg, .prs-hero.is-inner .prs-hero-bg { inset: -30px -16px 0; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }





/* The Retzef chat wallpaper (scratchpad doodle.cjs): a dense doodle of small line drawings from the app's own world —
   the swift, a check, the flame of a streak, stars, the moon, a dumbbell, a book, an hourglass, a target, the rune ᚱ,
   a crown, a trophy — over a soft four-colour gradient, as on Telegram and WhatsApp. Warm dawn by day, deep night by night. */
.sc-chat-bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath transform='translate(17.8 21.3) rotate(29) scale(0.0396) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18.3' cy='17.2' r='1.7' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(68.9 21.0) rotate(-7) scale(1.06) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='68.2' cy='21.2' r='1.3' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(120.1 21.8) rotate(28) scale(0.94) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(170.4 26.6) rotate(1) scale(1.04) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(224.0 23.8) rotate(15) scale(0.0419) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='229.3' cy='17.5' r='1.3' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(272.3 29.5) rotate(-27) scale(0.90) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(317.6 20.8) rotate(-30) scale(0.80) translate(-12 -12)' d='M3 19l6-9 4 5 3-4 5 8z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(370.3 20.7) rotate(-3) scale(0.85) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(36.3 79.6) rotate(27) scale(0.82) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(84.4 72.3) rotate(-34) scale(1.05) translate(-12 -12)' d='M2 12c3-3 5-3 8 0s5 3 8 0' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='53.8' cy='50.1' r='1.6' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(134.1 74.9) rotate(13) scale(0.85) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='144.1' cy='61.8' r='1.4' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(176.7 74.9) rotate(-35) scale(1.05) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(236.3 69.3) rotate(28) scale(0.97) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='248.4' cy='78.3' r='1.7' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(277.9 71.5) rotate(5) scale(0.86) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='288.5' cy='85.0' r='1.7' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(325.6 70.3) rotate(29) scale(0.93) translate(-12 -12)' d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19l8-8' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='334.4' cy='94.7' r='1.0' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(385.6 80.9) rotate(32) scale(1.04) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(15.7 127.7) rotate(27) scale(0.91) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(67.6 129.6) rotate(4) scale(0.85) translate(-12 -12)' d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(121.6 123.0) rotate(16) scale(0.97) translate(-12 -12)' d='M8 3v18M8 3l7 4-7 4 7 9' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(166.5 130.8) rotate(35) scale(0.84) translate(-12 -12)' d='M12 3c3 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3 0-3-1-5 0-7z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(223.8 121.4) rotate(10) scale(1.04) translate(-12 -12)' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='224.9' cy='127.9' r='1.8' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(268.5 121.2) rotate(-4) scale(1.06) translate(-12 -12)' d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='283.1' cy='126.1' r='1.6' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(321.8 123.3) rotate(18) scale(0.93) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='314.9' cy='127.1' r='1.2' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(366.2 121.8) rotate(11) scale(1.00) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(34.5 178.9) rotate(29) scale(0.80) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(86.8 169.3) rotate(18) scale(0.0418) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(136.0 169.4) rotate(-25) scale(1.00) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='105.4' cy='154.2' r='1.0' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(186.6 171.3) rotate(-26) scale(0.96) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='183.7' cy='162.2' r='1.5' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(230.3 177.1) rotate(19) scale(1.08) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(276.0 171.8) rotate(22) scale(0.90) translate(-12 -12)' d='M6 8v8M3 10v4M18 8v8M21 10v4M6 12h12' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(336.4 175.1) rotate(-26) scale(0.83) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='330.1' cy='158.5' r='1.1' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(383.0 175.7) rotate(-1) scale(0.0366) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(17.7 222.8) rotate(-35) scale(0.80) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='20.7' cy='204.6' r='1.2' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(72.1 228.2) rotate(-4) scale(1.06) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(122.4 226.9) rotate(5) scale(1.07) translate(-12 -12)' d='M2 12c3-3 5-3 8 0s5 3 8 0' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(168.7 224.9) rotate(5) scale(0.90) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(220.3 227.7) rotate(27) scale(0.98) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(268.0 224.8) rotate(32) scale(1.08) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(313.7 223.1) rotate(27) scale(0.89) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(374.2 228.4) rotate(-21) scale(1.00) translate(-12 -12)' d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19l8-8' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='389.9' cy='205.2' r='1.9' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(32.9 277.5) rotate(3) scale(1.02) translate(-12 -12)' d='M3 19l6-9 4 5 3-4 5 8z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(82.0 279.5) rotate(-16) scale(1.04) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(130.0 271.3) rotate(6) scale(0.91) translate(-12 -12)' d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='144.9' cy='291.1' r='1.3' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(185.8 270.4) rotate(-13) scale(0.98) translate(-12 -12)' d='M8 3v18M8 3l7 4-7 4 7 9' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(226.8 273.8) rotate(-33) scale(0.78) translate(-12 -12)' d='M12 3c3 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3 0-3-1-5 0-7z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(277.3 271.5) rotate(31) scale(1.05) translate(-12 -12)' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(326.7 276.5) rotate(-34) scale(0.83) translate(-12 -12)' d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(384.3 270.5) rotate(-12) scale(0.96) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(19.3 326.1) rotate(19) scale(0.0453) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(69.9 320.2) rotate(-32) scale(1.00) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(119.7 322.0) rotate(-19) scale(0.85) translate(-12 -12)' d='M5 12l4 4 10-10' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(172.5 321.9) rotate(28) scale(0.97) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='184.5' cy='320.3' r='1.8' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(222.4 320.3) rotate(29) scale(0.98) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(267.8 329.4) rotate(20) scale(1.03) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(323.0 321.3) rotate(15) scale(1.05) translate(-12 -12)' d='M6 8v8M3 10v4M18 8v8M21 10v4M6 12h12' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='306.3' cy='347.4' r='2.0' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(363.7 322.1) rotate(31) scale(0.80) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(28.6 371.4) rotate(-33) scale(1.07) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(76.9 372.9) rotate(-1) scale(0.95) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='52.7' cy='352.2' r='1.1' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(130.9 378.7) rotate(16) scale(0.97) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(179.9 376.4) rotate(33) scale(0.0421) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(233.8 376.2) rotate(21) scale(1.07) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='203.3' cy='386.3' r='1.6' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(281.8 373.6) rotate(0) scale(0.91) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='253.3' cy='354.0' r='1.4' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(327.7 376.7) rotate(-26) scale(0.88) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='300.1' cy='391.8' r='1.9' fill='%236b4a1e' fill-opacity='0.2'/%3E%3Cpath transform='translate(384.5 372.8) rotate(-7) scale(0.79) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%236b4a1e' stroke-opacity='0.2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 400px 400px,
    radial-gradient(70% 55% at 100% 0%, rgba(255, 200, 140, .75), transparent 70%),
    radial-gradient(60% 50% at 0% 30%, rgba(255, 236, 170, .7), transparent 70%),
    radial-gradient(70% 55% at 100% 75%, rgba(176, 228, 205, .7), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(196, 216, 255, .75), transparent 70%),
    linear-gradient(180deg, #fbf1e1, #eef2ea);
}
[data-theme="dark"] .sc-chat-bg {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath transform='translate(17.8 21.3) rotate(29) scale(0.0396) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18.3' cy='17.2' r='1.7' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(68.9 21.0) rotate(-7) scale(1.06) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='68.2' cy='21.2' r='1.3' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(120.1 21.8) rotate(28) scale(0.94) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(170.4 26.6) rotate(1) scale(1.04) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(224.0 23.8) rotate(15) scale(0.0419) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='229.3' cy='17.5' r='1.3' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(272.3 29.5) rotate(-27) scale(0.90) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(317.6 20.8) rotate(-30) scale(0.80) translate(-12 -12)' d='M3 19l6-9 4 5 3-4 5 8z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(370.3 20.7) rotate(-3) scale(0.85) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(36.3 79.6) rotate(27) scale(0.82) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(84.4 72.3) rotate(-34) scale(1.05) translate(-12 -12)' d='M2 12c3-3 5-3 8 0s5 3 8 0' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='53.8' cy='50.1' r='1.6' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(134.1 74.9) rotate(13) scale(0.85) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='144.1' cy='61.8' r='1.4' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(176.7 74.9) rotate(-35) scale(1.05) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(236.3 69.3) rotate(28) scale(0.97) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='248.4' cy='78.3' r='1.7' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(277.9 71.5) rotate(5) scale(0.86) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='288.5' cy='85.0' r='1.7' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(325.6 70.3) rotate(29) scale(0.93) translate(-12 -12)' d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19l8-8' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='334.4' cy='94.7' r='1.0' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(385.6 80.9) rotate(32) scale(1.04) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(15.7 127.7) rotate(27) scale(0.91) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(67.6 129.6) rotate(4) scale(0.85) translate(-12 -12)' d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(121.6 123.0) rotate(16) scale(0.97) translate(-12 -12)' d='M8 3v18M8 3l7 4-7 4 7 9' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(166.5 130.8) rotate(35) scale(0.84) translate(-12 -12)' d='M12 3c3 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3 0-3-1-5 0-7z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(223.8 121.4) rotate(10) scale(1.04) translate(-12 -12)' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='224.9' cy='127.9' r='1.8' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(268.5 121.2) rotate(-4) scale(1.06) translate(-12 -12)' d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='283.1' cy='126.1' r='1.6' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(321.8 123.3) rotate(18) scale(0.93) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='314.9' cy='127.1' r='1.2' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(366.2 121.8) rotate(11) scale(1.00) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(34.5 178.9) rotate(29) scale(0.80) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(86.8 169.3) rotate(18) scale(0.0418) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(136.0 169.4) rotate(-25) scale(1.00) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='105.4' cy='154.2' r='1.0' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(186.6 171.3) rotate(-26) scale(0.96) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='183.7' cy='162.2' r='1.5' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(230.3 177.1) rotate(19) scale(1.08) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(276.0 171.8) rotate(22) scale(0.90) translate(-12 -12)' d='M6 8v8M3 10v4M18 8v8M21 10v4M6 12h12' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(336.4 175.1) rotate(-26) scale(0.83) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='330.1' cy='158.5' r='1.1' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(383.0 175.7) rotate(-1) scale(0.0366) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(17.7 222.8) rotate(-35) scale(0.80) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='20.7' cy='204.6' r='1.2' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(72.1 228.2) rotate(-4) scale(1.06) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(122.4 226.9) rotate(5) scale(1.07) translate(-12 -12)' d='M2 12c3-3 5-3 8 0s5 3 8 0' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(168.7 224.9) rotate(5) scale(0.90) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(220.3 227.7) rotate(27) scale(0.98) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(268.0 224.8) rotate(32) scale(1.08) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(313.7 223.1) rotate(27) scale(0.89) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(374.2 228.4) rotate(-21) scale(1.00) translate(-12 -12)' d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19l8-8' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='389.9' cy='205.2' r='1.9' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(32.9 277.5) rotate(3) scale(1.02) translate(-12 -12)' d='M3 19l6-9 4 5 3-4 5 8z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(82.0 279.5) rotate(-16) scale(1.04) translate(-12 -12)' d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(130.0 271.3) rotate(6) scale(0.91) translate(-12 -12)' d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.5-7 10-7 10z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='144.9' cy='291.1' r='1.3' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(185.8 270.4) rotate(-13) scale(0.98) translate(-12 -12)' d='M8 3v18M8 3l7 4-7 4 7 9' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(226.8 273.8) rotate(-33) scale(0.78) translate(-12 -12)' d='M12 3c3 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3 0-3-1-5 0-7z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(277.3 271.5) rotate(31) scale(1.05) translate(-12 -12)' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM12 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(326.7 276.5) rotate(-34) scale(0.83) translate(-12 -12)' d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(384.3 270.5) rotate(-12) scale(0.96) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(19.3 326.1) rotate(19) scale(0.0453) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(69.9 320.2) rotate(-32) scale(1.00) translate(-12 -12)' d='M4 20l4-1 11-11-3-3L5 16zM14 6l3 3' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(119.7 322.0) rotate(-19) scale(0.85) translate(-12 -12)' d='M5 12l4 4 10-10' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(172.5 321.9) rotate(28) scale(0.97) translate(-12 -12)' d='M7 3h10M7 21h10M8 3c0 5 8 6 8 9s-8 4-8 9M16 3c0 5-8 6-8 9s8 4 8 9' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='184.5' cy='320.3' r='1.8' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(222.4 320.3) rotate(29) scale(0.98) translate(-12 -12)' d='M5 8h11v6a5 5 0 0 1-10 0zM16 10h2a2 2 0 0 1 0 4h-2M8 3v2M11 3v2' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(267.8 329.4) rotate(20) scale(1.03) translate(-12 -12)' d='M4 5h16v11H9l-5 4z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(323.0 321.3) rotate(15) scale(1.05) translate(-12 -12)' d='M6 8v8M3 10v4M18 8v8M21 10v4M6 12h12' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='306.3' cy='347.4' r='2.0' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(363.7 322.1) rotate(31) scale(0.80) translate(-12 -12)' d='M3 8l4 4 5-7 5 7 4-4-2 11H5z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(28.6 371.4) rotate(-33) scale(1.07) translate(-12 -12)' d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(76.9 372.9) rotate(-1) scale(0.95) translate(-12 -12)' d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2zM4 19V5' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='52.7' cy='352.2' r='1.1' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(130.9 378.7) rotate(16) scale(0.97) translate(-12 -12)' d='M7 4h10v5a5 5 0 0 1-10 0zM7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3M10 14v3h4v-3M8 20h8' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(179.9 376.4) rotate(33) scale(0.0421) translate(-306 -306)' vector-effect='non-scaling-stroke' d='M60 12C150 20 300 90 400 200C430 215 450 200 470 185C495 170 525 175 550 183C535 195 525 205 515 225C500 260 480 280 460 295C500 360 540 460 545 595C500 540 450 450 400 400C360 370 320 365 285 375C240 390 170 430 125 472C135 445 145 425 152 410C125 405 100 400 82 393C120 370 200 350 240 335C275 320 280 280 260 250C200 180 120 90 60 12ZM180 68C250 80 305 135 322 195C290 150 240 100 180 68Z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath transform='translate(233.8 376.2) rotate(21) scale(1.07) translate(-12 -12)' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='203.3' cy='386.3' r='1.6' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(281.8 373.6) rotate(0) scale(0.91) translate(-12 -12)' d='M12 3l1.8 6.2L20 11l-6.2 1.8L12 19l-1.8-6.2L4 11l6.2-1.8z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='253.3' cy='354.0' r='1.4' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(327.7 376.7) rotate(-26) scale(0.88) translate(-12 -12)' d='M9 18V5l10-2v13M9 18a3 3 0 1 1-6 0 3 3 0 0 1 6 0zM19 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='300.1' cy='391.8' r='1.9' fill='%23cfe0ff' fill-opacity='0.11'/%3E%3Cpath transform='translate(384.5 372.8) rotate(-7) scale(0.79) translate(-12 -12)' d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z' fill='none' stroke='%23cfe0ff' stroke-opacity='0.11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 400px 400px,
    radial-gradient(70% 55% at 100% 0%, rgba(88, 56, 190, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 35%, rgba(20, 90, 120, .45), transparent 70%),
    radial-gradient(70% 55% at 100% 80%, rgba(120, 40, 120, .4), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(20, 50, 120, .55), transparent 70%),
    linear-gradient(180deg, #0c0f24, #070913);
}
.sc-chat.is-intro .sc-chat-bg { filter: hue-rotate(-30deg) saturate(1.1); }
[data-theme="dark"] .sc-chat.is-intro .sc-chat-bg { filter: hue-rotate(60deg) saturate(1.15); }
/* A character sticker in the chat: the die-cut picture, its line under it as a small printed label. */
.sc-st { display: flex; flex-direction: column; align-items: center; gap: 0; }
.sc-st.is-char .sc-sticker { width: 118px; height: 118px; }
.sc-st-cap { margin-block-start: -12px; padding: 4px 11px 5px; border-radius: 999px; font-size: 13px; font-weight: 850; letter-spacing: -0.01em; color: #1d1d1f; background: #fff;
  box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4), 0 0 0 1.5px rgba(0, 0, 0, .06); transform: rotate(-3deg); position: relative; }

/* The chat bubble (bubble.js): a floating face over the app, above the tab bar and under sheets; the X to drop it on. */
.cb { position: fixed; top: 0; left: 0; right: auto; bottom: auto; z-index: 60; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  background: #fff; box-shadow: 0 10px 24px -8px rgba(10, 20, 60, .45), 0 2px 6px rgba(10, 20, 60, .2), 0 0 0 2.5px #fff; will-change: transform; }
.cb[hidden] { display: none; }
.cb-face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.cb-face .bd-av { border-radius: 50%; }
.cb-face .bd-emblem { display: none; }
.cb.is-held { cursor: grabbing; box-shadow: 0 18px 34px -10px rgba(10, 20, 60, .55), 0 0 0 2.5px #fff; }
.cb.is-held .cb-face { transform: scale(1.06); transition: transform 120ms; }
.cb-badge { position: absolute; inset-block-start: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 850; color: #fff; background: #ff3b30; box-shadow: 0 0 0 2.5px #fff; pointer-events: none; }
.cb-badge[hidden] { display: none; }
.cb.cb-in { animation: cb-in 420ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cb-in { from { scale: .2; opacity: 0; } }
.cb.cb-ping { animation: cb-ping 700ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cb-ping { 30% { scale: 1.16; } }
.cb.cb-out { transition: scale 200ms ease-in, opacity 200ms; scale: .2; opacity: 0; }
.cb-trash { position: fixed; z-index: 59; left: 50%; bottom: calc(var(--bottom-h, 70px) + 26px); width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  color: #fff; background: rgba(30, 30, 36, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .25);
  opacity: 0; transform: translateY(30px) scale(.7); transition: opacity 180ms, transform 260ms cubic-bezier(.2, 1.2, .4, 1), background 160ms; }
.cb-trash.is-on { opacity: 1; transform: none; }
.cb-trash.is-near { background: rgba(255, 59, 48, .9); transform: scale(1.18); }
.cb-trash-x { font-size: 30px; line-height: 1; font-weight: 300; margin-block-start: -3px; }
@media (min-width: 900px) { .cb-trash { bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .cb.cb-in, .cb.cb-ping { animation: none; } }
/* The sticker picker shows each character sticker's line, so it is known before sending. */
.sc-pack-items.is-chars { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.sc-pack-items.is-chars .sc-pick-st { aspect-ratio: auto; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sc-pick-cap { font-size: 11.5px; font-weight: 750; line-height: 1.2; color: var(--text); text-align: center; }
/* The bubble feels like a bubble (the owner): no white edge and no frame around the face — the character fills a glossy
   sphere (a light catching its top, a soft rim of shade), it floats a little, and squeezes under the finger. */
.cb { background: transparent; box-shadow: 0 12px 26px -10px rgba(10, 20, 60, .5), 0 3px 8px rgba(10, 20, 60, .18); animation: cb-float 4.6s ease-in-out infinite; }
.cb.is-held { box-shadow: 0 22px 40px -12px rgba(10, 20, 60, .55); animation: none; }
.cb .bd-pic, .cb .bd-av { box-shadow: none !important; border: 0 !important; }
.cb-face { position: relative; }
.cb-face .bd-pic { width: 100% !important; height: 100% !important; }
.cb-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 45% at 32% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%), radial-gradient(90% 90% at 50% 50%, transparent 62%, rgba(0, 0, 0, .22) 100%); }
.cb.is-held .cb-face { transform: scale(.94, .97); transition: transform 140ms cubic-bezier(.3, 1.4, .5, 1); }
.cb-badge { box-shadow: 0 2px 6px rgba(255, 59, 48, .45); }
@keyframes cb-float { 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .cb { animation: none; } }
/* No bounce (the owner): the bubble rests still and glides without overshoot. */
.cb, .cb.cb-in, .cb.cb-ping { animation: none; }
.cb.cb-in { animation: cb-fade 200ms ease-out; }
@keyframes cb-fade { from { opacity: 0; } }
.sheet.is-chat-sheet .sc-chat:has(.sc-stickers:not([hidden])) .sc-chat-list { max-height: none; min-height: 90px; }

/* The chat, as WhatsApp and beyond (views/social.js openChat): a quote above a reply, "deleted", a sealed letter, a later
   send, reactions under a bubble, the strip of what the next message carries, the actions of a long press. */
.sc-chat-head .sc-meta.is-live { color: #1c9a5b; font-weight: 700; }
[data-theme="dark"] .sc-chat-head .sc-meta.is-live { color: #4cd38a; }
.sc-sys span { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.sc-quote { display: flex; flex-direction: column; gap: 1px; width: 100%; margin-block-end: 2px; padding: 5px 9px; border-radius: 10px; font-size: 13px; line-height: 1.3;
  background: rgba(0, 0, 0, .06); border-inline-start: 3px solid #6a4cff; }
.sc-quote b { font-size: 12px; color: #6a4cff; }
.sc-quote > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.sc-msg.is-mine .sc-quote { background: rgba(255, 255, 255, .18); border-inline-start-color: #fff; }
.sc-msg.is-mine .sc-quote b { color: #fff; }
[data-theme="dark"] .sc-msg:not(.is-mine) .sc-quote { background: rgba(255, 255, 255, .08); }
.sc-msg-t.is-gone { display: inline-flex; align-items: center; gap: 5px; font-style: italic; opacity: .7; }
.sc-msg.is-deleted { background: rgba(255, 255, 255, .55) !important; color: var(--text-2) !important; box-shadow: none; }
.sc-msg.is-mine.is-deleted { background: rgba(120, 110, 255, .22) !important; }
.sc-msg.is-later { opacity: .72; border: 1.5px dashed rgba(255, 255, 255, .6); }
.sc-later { display: inline-flex; align-items: center; gap: 3px; }
.sc-fade-ic { display: inline-flex; }
.sc-seal { display: flex; gap: 10px; align-items: center; min-width: 210px; }
.sc-seal-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, #ffe6a8, #f5b942); box-shadow: inset 0 0 0 1px rgba(160, 100, 0, .25); }
.sc-seal > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.sc-seal strong { font-size: 14px; }
.sc-reacts { position: absolute; inset-block-end: -14px; inset-inline-start: 10px; display: flex; gap: 3px; }
.sc-msg.is-mine .sc-reacts { inset-inline-start: auto; inset-inline-end: 10px; }
.sc-msg:has(.sc-reacts) { margin-block-end: 14px; }
.sc-react { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 6px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer;
  background: var(--bg-elevated, #fff); box-shadow: 0 2px 6px rgba(0, 0, 0, .14), 0 0 0 1px var(--line); color: var(--text); }
.sc-react b { font-size: 11px; }
.sc-react.is-mine { box-shadow: 0 2px 6px rgba(0, 0, 0, .14), 0 0 0 1.5px #6a4cff; }
.sc-msg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sc-msg:focus-visible { outline: 2px solid #6a4cff; outline-offset: 2px; }
.sc-strip { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 10px 0; background: color-mix(in srgb, var(--bg-elevated) 78%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-block-start: 1px solid var(--line); }
.sc-strip[hidden] { display: none; }
.sc-strip-i { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); border-inline-start: 3px solid #6a4cff; }
.sc-strip-i.is-seal { border-inline-start-color: #f5a623; }
.sc-strip-i.is-later { border-inline-start-color: #0a84ff; }
.sc-strip-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.sc-strip-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.sc-strip-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); cursor: pointer; }
.sc-chat-head .btn-icon { flex: none; }
.sc-act { display: flex; flex-direction: column; gap: 12px; }
.sc-act-reacts { display: flex; justify-content: space-between; gap: 4px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-act-r { width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; background: none; cursor: pointer; transition: transform 120ms; }
.sc-act-r:active { transform: scale(1.25); }
.sheet.is-act-sheet .sheet-head { display: none; }
.sc-menu { display: flex; flex-direction: column; gap: 14px; }
.sc-mark { flex: none; display: inline-flex; color: var(--text-3); }
.sc-arch-h { display: flex; align-items: center; gap: 6px; padding: 10px 14px 4px; font-size: 13px; font-weight: 800; color: var(--text-3); }

/* The + (main.js): only where things are added; it opens wide with its word on arriving, folds to a circle, and steps
   aside while scrolling down. */
.fab { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: auto; min-width: 56px; padding-inline: 16px; border-radius: 28px;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 200ms, padding 260ms cubic-bezier(.2, .8, .2, 1), gap 260ms; }
.fab[hidden] { display: none; }
.fab-t { max-width: 0; overflow: hidden; white-space: nowrap; font: inherit; font-size: 15px; font-weight: 750; transition: max-width 300ms cubic-bezier(.2, .8, .2, 1), opacity 200ms; opacity: 0; }
.fab.is-wide { gap: 8px; padding-inline: 18px 20px; }
.fab.is-wide .fab-t { max-width: 160px; opacity: 1; }
.fab.is-away { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .fab, .fab-t { transition: none; } }

/* Retzef's emoji (remoji.js): inside the text, a little bigger than a letter; alone in a message, big and animated. */
.rze { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -0.32em; margin: 0 .04em; object-fit: contain; }
.rze.is-face { border-radius: 50%; }
/* Alone in a message, as on the other networks: one a little larger, two smaller, three smaller still. */
.rze.is-big { width: 40px; height: 40px; vertical-align: middle; margin: 1px; }
.rze.is-big.is-n2 { width: 34px; height: 34px; }
.rze.is-big.is-n3 { width: 30px; height: 30px; }
.sc-msg:has(.rze.is-big) { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 2px; }
.sc-msg:has(.rze.is-big) .sc-msg-meta { color: var(--text-2); }
/* The field: editable (it holds the emoji), grows to five lines, a placeholder while empty. */
div.sc-chat-in { overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; -webkit-user-select: text; user-select: text; }
div.sc-chat-in.is-empty::before { content: attr(data-ph); color: var(--text-3); pointer-events: none; }
.sc-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin-block-start: 6px; }
.sc-emoji-grid.is-locked { opacity: .55; filter: grayscale(.5); }
.sc-pick-em { aspect-ratio: 1; border: 0; border-radius: 12px; display: grid; place-items: center; background: none; cursor: pointer; transition: transform 120ms, background 120ms; }
.sc-pick-em:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.sc-pick-em:active { transform: scale(.88); }
.sc-pick-em img.is-face { border-radius: 50%; }
div.sc-chat-in { unicode-bidi: plaintext; text-align: start; }

/* The flock's gestures (views/social.js): a note over a face for 24 hours, the streak shared with a friend, moments with a
   cheer, the week's table by each one's own share. */
.sc-rail { padding-block-start: 30px; }
.sc-rail-i { position: relative; }
.sc-rail-face, .sc-me-face { position: relative; display: inline-grid; }
.sc-note { position: absolute; inset-block-start: -28px; left: 50%; transform: translateX(-50%); max-width: 92px; padding: 4px 9px; border-radius: 14px; font-size: 11.5px; font-weight: 650; line-height: 1.2;
  color: var(--text); background: var(--bg-elevated, #fff); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 1; }
.sc-note::after { content: ''; position: absolute; inset-block-end: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); box-shadow: 1px 1px 0 var(--line); }
.sc-note.is-none { display: none; }
.sc-note.is-add { color: var(--text-3); font-weight: 700; }
.sc-me-plus { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 0 0 2.5px var(--bg); }
.sc-me-plus svg { stroke: #fff; stroke-width: 3; }
.sc-duo { position: absolute; inset-block-end: -4px; inset-inline-start: -6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 850; color: #b33a00; background: linear-gradient(135deg, #fff1d6, #ffd29a); box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(200, 80, 0, .3); }
.prs-chip.is-duo { color: #b33a00; background: linear-gradient(135deg, #fff1d6, #ffd29a); }
.prs-q.is-warm .prs-q-ic { color: #fff; background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.prs-q.is-warm .prs-q-ic svg { stroke: #fff; }
.sc-moments { display: flex; flex-direction: column; gap: 8px; }
.sc-moment { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-cheer-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 19px; cursor: pointer; background: linear-gradient(135deg, #fff1d6, #ffd29a); box-shadow: 0 6px 14px -8px rgba(255, 120, 0, .8); transition: transform 120ms; }
.sc-cheer-btn:active { transform: scale(.9); }
.sc-cheer-btn.is-done { font-size: 16px; color: #1c9a5b; background: rgba(48, 209, 88, .14); box-shadow: none; cursor: default; }
.sc-table { padding: 6px 0; }
.sc-trow { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.sc-trow.is-me { background: var(--accent-soft); }
.sc-tplace { width: 18px; text-align: center; font-weight: 850; color: var(--text-3); }
.sc-tname { flex: 0 0 auto; min-width: 64px; max-width: 110px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-trow .sp-bar { flex: 1; }
.sc-last .rze.is-big, .sc-quote .rze.is-big, .sc-strip .rze.is-big { width: 1.35em; height: 1.35em; margin: 0 .04em; vertical-align: -0.32em; }

.sp-date { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 6px; align-items: center; }
.sp-sign { grid-column: 1 / -1; font-size: 13.5px; font-weight: 750; color: #6a4cff; }
.sp-sign:empty { display: none; }
/* The privacy cover shows the swift, not an empty white page. */
#privacy-veil { display: grid; place-items: center; }
#privacy-veil .pv-bird { width: 64px; height: 64px; color: var(--text-3); opacity: .5; background-color: currentColor;
  -webkit-mask: url('/static/img/logo-mark.png') center / contain no-repeat; mask: url('/static/img/logo-mark.png') center / contain no-repeat; }

/* The note's colours (a swatch row in its sheet; the bubble over the face takes the colour). */
.sc-note.is-sun { color: #5a3a00; background: linear-gradient(135deg, #fff1b8, #ffd25a); }
.sc-note.is-rose { color: #fff; background: linear-gradient(135deg, #ff7aa2, #ff375f); }
.sc-note.is-sky { color: #fff; background: linear-gradient(135deg, #5ac8fa, #0a84ff); }
.sc-note.is-mint { color: #0b4a33; background: linear-gradient(135deg, #b6f5d6, #34c759); }
.sc-note.is-violet { color: #fff; background: linear-gradient(135deg, #b18cff, #6a4cff); }
.sc-note.is-night { color: #fff; background: linear-gradient(135deg, #3a3f5c, #11131f); }
.sc-note-edit { display: flex; flex-direction: column; gap: 12px; }
.sc-note-stage { display: grid; place-items: center; padding: 22px 0 10px; }
.sc-note.sc-note-preview { position: static; transform: none; max-width: 260px; font-size: 14px; padding: 8px 14px; white-space: normal; }
.sc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, .12); transition: transform 120ms, box-shadow 120ms; }
.sc-swatch.is-sun { background: linear-gradient(135deg, #fff1b8, #ffd25a); } .sc-swatch.is-rose { background: linear-gradient(135deg, #ff7aa2, #ff375f); }
.sc-swatch.is-sky { background: linear-gradient(135deg, #5ac8fa, #0a84ff); } .sc-swatch.is-mint { background: linear-gradient(135deg, #b6f5d6, #34c759); }
.sc-swatch.is-violet { background: linear-gradient(135deg, #b18cff, #6a4cff); } .sc-swatch.is-night { background: linear-gradient(135deg, #3a3f5c, #11131f); }
.sc-swatch[aria-pressed="true"] { transform: scale(1.12); box-shadow: 0 0 0 2.5px var(--bg-elevated), 0 0 0 4.5px var(--accent); }
.sc-rail { padding-inline: 16px; margin-inline: -16px; scroll-padding-inline: 16px; }
.sc-note:not(.sc-note-preview) { max-width: 104px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; inset-block-start: -36px; }
.sc-rail { padding-block-start: 40px; }
/* Empty notes stay hidden (a later rule had brought them back as white pills); the rail's focus ring is round. */
.sc-note.is-none { display: none !important; }
.sc-rail-i:focus { outline: none; }
.sc-rail-i:focus-visible .sc-face { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 50%; }

/* The chat on a computer: wide, the conversations on the side, the conversation beside them. */
@media (min-width: 1000px) {
  .sheet.is-chat-sheet.is-wide-chat { max-width: min(1180px, 94vw); width: min(1180px, 94vw); height: 88dvh; }
  .sc-chat-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; }
  .sc-side { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--line); background: var(--bg-elevated); }
  .sc-side-h { padding: 18px 18px 10px; font-size: 20px; }
  .sc-side-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
  .sc-side-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 14px; font: inherit; text-align: start; color: inherit; background: none; cursor: pointer; }
  .sc-side-row:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
  .sc-side-row.is-on { background: var(--accent-soft); }
  .sc-side-row.is-unread .sc-last { color: var(--text); font-weight: 650; }
  .sc-chat-wrap .sc-chat { min-height: 0; }
  .sheet.is-wide-chat .sc-msg { max-width: 62%; }
  .sheet.is-wide-chat .sc-chat-list { padding-inline: 8%; }
  .sheet.is-wide-chat .sc-chat-back { display: none; }
}
.sc-note:not(.sc-note-preview) { width: max-content; max-width: 112px; }
.sc-rail { gap: 20px; } .sc-rail-i { width: 82px; } .sc-rail-n { max-width: 82px; } .sc-note:not(.sc-note-preview) { max-width: 98px; }

/* On a computer, a page's full-screen backdrop (the council's sea, the plans' light) stays beside the side menu, never
   over it: the menu sits above the page layers, and the backdrops start where the content starts. */
@media (min-width: 900px) {
  .sidebar { z-index: 30; }
  .cn-hall, .pp::before { inset-inline-start: var(--sidebar-w); }
  .shell[data-collapsed="true"] .cn-hall, .shell[data-collapsed="true"] .pp::before { inset-inline-start: var(--sidebar-w-collapsed); }
}
/* On a computer the council's and the plans' words take the room they have (no narrow column of short lines). */
@media (min-width: 900px) {
  .cn-sub { max-width: 52ch; font-size: 16px; }
  .cn-locked p { max-width: 46ch; }
  .cn-stage { max-width: 860px; padding-block-start: 24px; }
  .pp-title { max-width: 26ch; font-size: 40px; }
}

/* Trust in an introduction (views/social-plus.js): the trust box, the meeting code, the live photo with its colour flash,
   the photo for a moment, the mirror moment. */
.sp-trust { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sp-trust-h { display: flex; align-items: center; gap: 10px; }
.sp-trust-meter { flex: 1; height: 6px; border-radius: 6px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--text) 8%, transparent); }
.sp-trust-meter::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: 6px; background: linear-gradient(90deg, #f5c542, #1c9a5b); }
.sp-trust-r { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sp-trust-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: color-mix(in srgb, var(--text) 7%, transparent); }
.sp-trust-r.is-ok .sp-trust-ic { color: #fff; background: #30d158; }
.sp-trust-r.is-ok .sp-trust-ic svg { stroke: #fff; }
.sp-gold-ask { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 214, 120, .2), transparent); box-shadow: inset 0 0 0 1px rgba(217, 163, 37, .3); }
.sp-meet { display: flex; flex-direction: column; gap: 14px; }
.sp-code-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #1f2a44, #0b1022); color: #fff; overflow: hidden; }
.sp-code { font-size: 46px; font-weight: 850; letter-spacing: .3em; font-variant-numeric: tabular-nums; direction: ltr; }
.sp-code-box .sc-meta { color: rgba(255, 255, 255, .7); }
.sp-code-ring { position: absolute; inset-block-end: 0; left: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #5ac8fa, #30d158); transform-origin: left; }
@keyframes sp-code { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sp-code-in { text-align: center; font-size: 28px; letter-spacing: .3em; direction: ltr; }
.sp-live { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sp-live-frame { position: relative; width: min(320px, 80vw); aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #000; }
.sp-live-v { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.sp-live-oval { position: absolute; inset: 12% 22%; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .8); }
.sp-live-msg { margin: 0; text-align: center; font-size: 14px; color: var(--text-2); max-width: 34ch; }
.sp-flash { position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: 0; transition: background 60ms linear; }
.sp-flash.is-on { opacity: .92; }
.sp-photo-wait.is-done { color: #1c9a5b; }
.sp-photo-add.is-ready { color: #fff; background: linear-gradient(135deg, #ff375f, #ff8a5c); border-style: solid; border-color: transparent; }
.sp-moment { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; -webkit-user-select: none; user-select: none; touch-action: none; }
.sp-moment-img { width: min(320px, 80vw); aspect-ratio: 1; border-radius: 24px; object-fit: cover; transition: filter 160ms; -webkit-user-drag: none; pointer-events: none; }
.sp-moment-img.is-veiled { filter: blur(26px) saturate(.6); }
.sp-moment-bar { display: block; height: 4px; width: 100%; max-width: 320px; border-radius: 4px; background: linear-gradient(90deg, #ff375f, #ff8a5c); }
.sp-moment-t { margin: 0; font-size: 13.5px; color: var(--text-2); }
.sp-calling { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #6a4cff, #ff375f); }
.sp-calling strong { flex: 1; }
.sp-calling-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: sp-pulse 1.4s ease-in-out infinite; }
.sp-mirror { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 70dvh; border-radius: 24px; overflow: hidden; background: #000; }
.sp-mirror-remote { width: 100%; height: 100%; object-fit: cover; transition: filter 220ms; }
.sp-mirror-remote.is-frosted { filter: blur(30px) saturate(.5) brightness(1.1); }
.sp-mirror-local { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 28%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; transform: scaleX(-1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.sp-mirror-clock { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .4); }
.sp-mirror-t { position: absolute; inset-inline: 0; inset-block-start: 45%; margin: 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.sp-mirror-hold { position: absolute; inset-block-end: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 84px; border-radius: 50%; border: 0; color: #fff; font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; touch-action: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.sp-mirror-hold.is-held { transform: translateX(-50%) scale(.92); background: radial-gradient(circle at 35% 30%, #ff8aa8, #ff375f); }

/* The Flock, refined: a quiet header (the name, today's date, icon buttons), the day at a glance in four tiles, and two
   columns on a computer (talk beside doing together); every section the same card, the same heading, the same rhythm. */
.sc { gap: 18px; max-width: 1180px; margin-inline: auto; }
.sc-hero { align-items: flex-end; padding-block: 2px 0; }
.sc-hero h2 { font-size: 34px; }
.sc-hero-s { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--text-3); }
.sc-ib { width: 40px; height: 40px; border: 0; border-radius: 14px; display: grid; place-items: center; color: var(--text); cursor: pointer;
  background: var(--glass-bg); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 0 0 1px var(--line), var(--sh-1); transition: transform 120ms; }
.sc-ib:active { transform: scale(.94); }
.sc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sc-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 0; border-radius: 18px; font: inherit; text-align: start; color: var(--text); cursor: pointer; min-width: 0;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); transition: transform 120ms; }
.sc-kpi:active { transform: scale(.97); }
.sc-kpi strong { font-size: 22px; font-weight: 850; letter-spacing: -.01em; line-height: 1.1; }
.sc-kpi > span:last-child { font-size: 12px; color: var(--text-3); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sc-kpi-ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-block-end: 4px; }
.sc-kpi-ic svg { stroke: #fff; }
.sc-kpi.is-green .sc-kpi-ic { background: linear-gradient(135deg, #30d158, #0a9f6e); }
.sc-kpi.is-orange .sc-kpi-ic { background: linear-gradient(135deg, #ff9f0a, #ff6a00); }
.sc-kpi.is-blue .sc-kpi-ic { background: linear-gradient(135deg, #5ac8fa, #0a84ff); }
.sc-kpi.is-violet .sc-kpi-ic { background: linear-gradient(135deg, #b18cff, #6a4cff); }
@media (max-width: 420px) { .sc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-cols { display: flex; flex-direction: column; gap: 22px; }
.sc-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 1000px) {
  .sc-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 26px; }
  .sc-hero h2 { font-size: 40px; }
}
.sc-sec-h h3 { font-size: 18px; }
.sc-group, .sc-bond, .sc-circle, .sc-moment, .sc-wait, .sc-lists { box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 18, 27, .04), 0 8px 24px -18px rgba(16, 18, 27, .25); }
.sc-wait { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line)), 0 8px 24px -18px rgba(16, 18, 27, .25); }

/* The accounts list, built for many (views/users.js accountList, userPicker): a search with the order beside it,
   groups to narrow by as chips with counts (they wrap; no strip to scroll), short rows, 25 at a time. */
.ul { display: flex; flex-direction: column; gap: 12px; margin-block: 16px; }
.ul-bar { display: flex; gap: 8px; align-items: center; position: sticky; top: calc(var(--topbar-h, 56px) + 6px); z-index: 5; }
.ul-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline: 12px; height: 44px; border-radius: 14px; color: var(--text-3);
  background: var(--glass-bg, var(--surface)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.ul-q { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--text); }
.ul-sort { flex: none; height: 44px; max-width: 42%; padding-inline: 10px; border: 0; border-radius: 14px; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--text);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.ul-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ul-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
  color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); transition: background 140ms, color 140ms; }
.ul-chip span { font-size: 12px; font-weight: 800; opacity: .7; }
.ul-chip.is-warn { color: #b25000; background: rgba(255, 159, 10, .14); }
.ul-chip.is-on { color: #fff; background: var(--accent); }
.ul-chip.is-on span { opacity: .9; }
.ul-meta { font-size: 12.5px; color: var(--text-3); padding-inline: 4px; min-height: 1em; }
.ul-meta:empty { display: none; }
.ul-rows { padding: 4px 0; overflow: hidden; }
.ul-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; position: relative; }
.ul-row + .ul-row::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 66px 0; height: 1px; background: var(--line); }
.ul-row:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.ul-row.is-off { opacity: .55; }
.ul-row.is-look { box-shadow: inset 3px 0 0 #ff9f0a; }
[dir='rtl'] .ul-row.is-look { box-shadow: inset -3px 0 0 #ff9f0a; }
.ul-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ul-txt strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.ul-badges .badge { white-space: nowrap; }
.ul-chev { flex: none; color: var(--text-3); display: grid; }
.ul-empty { margin: 0; padding: 18px 14px; text-align: center; font-size: 14px; color: var(--text-3); }
.ul-more { display: contents; }
@media (max-width: 480px) { .ul-badges { max-width: 38%; } .ul-row { gap: 10px; padding-inline: 12px; } }
.up { display: flex; flex-direction: column; gap: 8px; }
.up .ul-search { box-shadow: 0 0 0 1px var(--line); }
.up-list { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.up-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; }
.up-row + .up-row { border-block-start: 1px solid var(--line); }
.up-row.is-on { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.up-row.is-on svg { color: var(--accent); stroke: var(--accent); }
.up-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.up-more { margin: 0; padding: 8px 12px; font-size: 12.5px; color: var(--text-3); border-block-start: 1px solid var(--line); }
/* The accounts list: the badges sit on a line of their own under the name (never squeezing it); no side stripe. */
.ul-row.is-look, [dir='rtl'] .ul-row.is-look { box-shadow: none; }
.ul-txt .ul-badges { max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow: hidden; margin-block-start: 3px; }
.ul-txt .ul-badges .badge { font-size: 11.5px; padding: 2px 8px; }
.ul-sort { max-width: 38%; }
.ul-bar .ul-search { background: var(--surface); }
@media (min-width: 900px) {
  .ul-txt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
  .ul-txt > strong, .ul-txt > .ul-sub { grid-column: 1; }
  .ul-txt .ul-badges { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 360px; flex-wrap: wrap; justify-content: flex-end; }
  .ul-row { padding-block: 9px; }
}
/* The chat bubble is a speech bubble (the owner): the friend's face in a round body with a ring of the app's colour, and
   a tail curling out of its lower corner toward the edge it rests on (it turns over when dragged to the other side). */
.cb { --cb-c: var(--accent, #0a84ff); background: var(--cb-c); border-radius: 50%; overflow: visible;
  box-shadow: 0 12px 26px -10px rgba(10, 20, 60, .5), 0 3px 8px rgba(10, 20, 60, .18); }
.cb::before { content: ''; position: absolute; inset-block-end: -1px; right: -1px; width: 24px; height: 24px; background: var(--cb-c); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6c1 7-1 12 0 12 0 0 7 6 21 6-5-3-7-7-7-12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6c1 7-1 12 0 12 0 0 7 6 21 6-5-3-7-7-7-12z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cb.is-left::before { right: auto; left: -1px; transform: scaleX(-1); }
.cb-face { position: absolute; inset: 3px; width: auto; height: auto; z-index: 1; }
.cb-badge { z-index: 2; }
.cb.is-held::before { opacity: .9; }
.cb::before { width: 26px; height: 26px; }
.cb .cb-badge { inset-inline: auto; left: -4px; right: auto; }
.cb.is-left .cb-badge { left: auto; right: -4px; }
/* The tail points inward, toward the screen (the owner): bottom-left when the bubble rests on the right, and the mirror. */
.cb::before { right: auto; left: -1px; transform: scaleX(-1); }
.cb.is-left::before { left: auto; right: -1px; transform: none; }
/* The chat's options (views/social.js openChatMenu): the choices fill the width in equal parts, and the switch rows keep
   their padding inside the card (nothing touches the frame), on every phone width. */
.sc-menu .segmented { display: flex; width: 100%; }
.sc-menu .segmented > button { flex: 1 1 0; min-width: 0; padding-inline: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-menu .ios-card { padding: 0; overflow: hidden; }
.sc-menu .ios-card > .setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 16px; min-height: 52px; box-sizing: border-box; width: 100%; }
.sc-menu .ios-card > .setting + .setting { border-block-start: 1px solid var(--line); }
.sc-menu .ios-card > .setting .setting-text { flex: 1; min-width: 0; }
.sc-menu .ios-card > .setting input[role="switch"] { flex: none; }

/* The chat bubble, drawn as one speech bubble (the owner: more natural): a soft light body whose tail flows out of it
   toward the screen, a shadow that follows the shape, and the friend's face inside. */
.cb { --cb-body: linear-gradient(160deg, #ffffff, #eef0f6); background: none; box-shadow: none; overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(10, 20, 60, .28)) drop-shadow(0 1px 2px rgba(10, 20, 60, .18)); }
.cb.is-held { box-shadow: none; filter: drop-shadow(0 16px 22px rgba(10, 20, 60, .34)) drop-shadow(0 2px 4px rgba(10, 20, 60, .2)); }
.cb::before { inset: -10px; width: auto; height: auto; left: -10px; right: -10px; background: var(--cb-body); transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M34.79 69.54C27.9 68.3 16 76.4 4.5 76.2C8.6 72.4 13.35 56.45 11.02 47.76A30 30 0 1 1 34.79 69.54Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M34.79 69.54C27.9 68.3 16 76.4 4.5 76.2C8.6 72.4 13.35 56.45 11.02 47.76A30 30 0 1 1 34.79 69.54Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.cb.is-left::before { left: -10px; right: -10px; transform: scaleX(-1); }
.cb.is-held::before { opacity: 1; }
.cb-face { inset: 3.5px; }
[data-theme="dark"] .cb { --cb-body: linear-gradient(160deg, #3a3a3e, #262629); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cb { --cb-body: linear-gradient(160deg, #3a3a3e, #262629); } }

/* The chat bubble is a drop that melts into the edge (bubble.js shapeGoo): the liquid body is drawn live (the drop and its
   neck to the edge), the face sits inside it, and the count hangs below as a small drop on the inner side. */
.cb { --cb-fill: #f6f7fb; background: none; box-shadow: none; border-radius: 50%; overflow: visible;
  filter: drop-shadow(0 6px 12px rgba(10, 20, 60, .26)) drop-shadow(0 1px 2px rgba(10, 20, 60, .16)); }
.cb::before { display: none; }
.cb-goo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cb-goo path { fill: var(--cb-fill); }
.cb-face { position: absolute; inset: 3.5px; z-index: 1; }
.cb.is-melted { filter: drop-shadow(0 4px 10px rgba(10, 20, 60, .2)); }
[data-theme="dark"] .cb { --cb-fill: #2f2f34; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cb { --cb-fill: #2f2f34; } }
.cb .cb-badge { top: auto; bottom: -9px; left: auto; right: -6px; inset-inline: auto; min-width: 22px; height: 24px; padding: 0 6px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%; box-shadow: 0 3px 6px rgba(255, 59, 48, .4); }
.cb .cb-badge::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 9px; margin-left: -5px; background: inherit;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 4.6px, #000 5px) left / 50% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 4.6px, #000 5px) right / 50% 100% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent 4.6px, #000 5px) left / 50% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 4.6px, #000 5px) right / 50% 100% no-repeat; }
.cb:not(.is-left) .cb-badge { right: auto; left: -6px; }
.cb .cb-badge.is-drip { animation: cb-drip 420ms cubic-bezier(.3, .7, .3, 1); transform-origin: 50% 0; }
@keyframes cb-drip { from { transform: translateY(-16px) scale(.5, .9); opacity: .4; } 60% { transform: translateY(1px) scale(.96, 1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cb .cb-badge.is-drip { animation: none; } }
.cb-snap { position: fixed; z-index: 59; width: 18px; height: 18px; margin: calc(-9px * var(--inv)) 0 0 calc(-9px * var(--inv)); border-radius: 50%; background: var(--cb-fill, #f6f7fb); pointer-events: none;
  box-shadow: 0 2px 6px rgba(10, 20, 60, .2); animation: cb-snap 380ms cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes cb-snap { from { transform: scale(1); } to { transform: scale(0); } }
[data-theme="dark"] .cb-snap { background: #2f2f34; }

/* A circle as a small server (views/social-circle.js): one full-height window; its page (a hero in the circle's colour,
   the focus room, the channels, events, members by role; two columns on a computer) and a channel's conversation. */
.sheet.is-circle-sheet .sheet-body { background: var(--bg, #f2f2f7); }
.cc { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cc-pad { padding: 20px 16px; }
.cc-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; }
.cc-top-t { flex: 1; text-align: center; font-weight: 750; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .0; }
.cc-top-gap { width: 36px; }
.cc-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 28px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.cc-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 18px; border-radius: 26px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--cc) 30%, transparent), transparent 70%), var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cc-emblem { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; font-size: 38px; font-weight: 850; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cc) 70%, #fff), var(--cc)); box-shadow: 0 12px 26px -12px var(--cc), inset 0 1px 0 rgba(255, 255, 255, .45); }
.cc-name { margin: 6px 0 0; font-size: 26px; font-weight: 850; letter-spacing: -.01em; }
.cc-topic { margin: 0; font-size: 14.5px; color: var(--text-2); max-width: 46ch; }
.cc-meta { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-3); }
.cc-on { display: inline-flex; align-items: center; gap: 5px; color: #1c9a5b; font-weight: 700; }
.cc-on i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .2); }
.cc-hero-act { display: flex; gap: 8px; margin-block-start: 8px; flex-wrap: wrap; justify-content: center; }
.cc-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border: 0; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  color: var(--text); background: color-mix(in srgb, var(--cc) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 30%, transparent); }
.cc-btn:active { transform: scale(.97); }
.cc-grid { display: flex; flex-direction: column; gap: 18px; }
.cc-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 1000px) { .cc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 22px; } .cc-top-t { opacity: 1; } }
.cc-sec { display: flex; flex-direction: column; gap: 8px; }
.cc-h { margin: 0; padding-inline: 4px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--text-3); text-transform: uppercase; }
.cc-h-row { display: flex; align-items: center; justify-content: space-between; }
.cc-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; padding: 4px; }
.cc-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cc-empty { margin: 0; padding: 14px 16px; border-radius: 18px; font-size: 14px; color: var(--text-3); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cc-ch, .cc-mem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; position: relative; }
.cc-ch + .cc-ch::before, .cc-mem + .cc-mem::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 62px 0; height: 1px; background: var(--line); }
.cc-ch:active, .cc-mem:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cc-ch-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.cc-ch-ic b { font-size: 19px; font-weight: 800; }
.cc-ch-ic.is-head { width: 34px; height: 34px; }
.cc-ch-ic.is-big { width: 64px; height: 64px; border-radius: 22px; font-size: 30px; }
.cc-ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-ch-t strong { font-size: 15.5px; font-weight: 650; }
.cc-ch.is-unread .cc-ch-t strong { font-weight: 850; }
.cc-ch-last { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ch.is-add .cc-ch-ic { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cc-ch.is-add strong { color: var(--accent); }
.cc-pill { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 850; color: #fff; background: var(--accent); }
.cc-pill.is-at { background: #ff375f; }
.cc-room { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cc-room.is-live { background: linear-gradient(135deg, rgba(48, 209, 88, .12), transparent 60%), var(--surface); box-shadow: 0 0 0 1px rgba(48, 209, 88, .35), var(--sh-1); }
.cc-room-h { display: flex; align-items: center; gap: 10px; }
.cc-room-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-room-h > div span { font-size: 13px; color: var(--text-3); }
.cc-room-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #30d158, #0a9f6e); }
.cc-room-ic svg { stroke: #fff; }
.cc-room-list { display: flex; flex-direction: column; gap: 8px; }
.cc-room-p { display: flex; align-items: center; gap: 10px; }
.cc-room-who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.cc-room-who span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-room-t { flex: none; font-size: 12.5px; font-weight: 750; color: #1c9a5b; }
.cc-events { display: flex; flex-direction: column; gap: 10px; }
.cc-event { display: flex; gap: 12px; padding: 12px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cc-date { flex: none; width: 52px; height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 75%, #fff), var(--cc)); }
.cc-date b { font-size: 22px; font-weight: 850; line-height: 1; }
.cc-date span { font-size: 11.5px; font-weight: 700; opacity: .9; }
.cc-event-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cc-event-t strong { font-size: 15.5px; }
.cc-event-when { font-size: 13px; color: var(--text-3); }
.cc-going { display: flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-2); }
.cc-going .sc-face { margin-inline-end: -6px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; }
.cc-going > span:last-child { margin-inline-start: 12px; }
.cc-rsvps { display: flex; gap: 6px; margin-block-start: 4px; }
.cc-rsvp { flex: 1; height: 32px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); }
.cc-rsvp.is-on { color: #fff; background: var(--accent); }
.cc-mem-face { position: relative; flex: none; }
.cc-mem-face.is-online::after { content: ''; position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 12px; height: 12px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 2.5px var(--surface); }
.cc-mem-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-mem-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-role { flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #8a6400; background: rgba(217, 163, 37, .16); }
.cc-role.is-admin { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cc-quiet { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cc-quiet .is-danger { color: #ff3b30; }
.cc-form { display: flex; flex-direction: column; gap: 12px; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { height: 34px; padding-inline: 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.cc-chip.is-on { color: #fff; background: var(--accent); }
.cc-emo-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 380px) { .cc-emo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cc-emo { aspect-ratio: 1; border: 0; border-radius: 12px; font-size: 22px; cursor: pointer; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cc-emo.is-on { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.cc-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-color { width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; }
.cc-color.is-on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px currentColor; color: var(--text); }
/* A channel's conversation. */
.cc-chat { height: 100%; }
.cc-pinbar { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 0; font: inherit; font-size: 13px; text-align: start; cursor: pointer; position: relative; z-index: 1;
  color: var(--text); background: var(--glass-bg, var(--surface)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.cc-pinbar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.cc-row > .sc-msg { margin: 0; }
.cc-row-face { flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.cc-row-gap { flex: none; width: 30px; }
.cc-from { display: block; font-size: 12px; font-weight: 800; color: #6a4cff; margin-block-end: 1px; }
.cc-row.is-grouped { margin-block-start: -4px; }
.sc-msg.is-mention { box-shadow: inset 3px 0 0 #ff9f0a, 0 1px 1px rgba(0, 0, 0, .06); background: #fff7e6; }
[dir='rtl'] .sc-msg.is-mention { box-shadow: inset -3px 0 0 #ff9f0a, 0 1px 1px rgba(0, 0, 0, .06); }
[data-theme="dark"] .sc-msg.is-mention { background: #3a2f17; }
.sc-msg.is-flash { animation: cc-flash 1.3s ease-out; }
@keyframes cc-flash { 0%, 40% { filter: brightness(.86); } }
.cc-at { font-weight: 800; color: #6a4cff; background: rgba(106, 76, 255, .1); border-radius: 6px; padding: 0 3px; }
.sc-msg.is-mine .cc-at { color: #fff; background: rgba(255, 255, 255, .22); }
.sc-msg.is-poll { min-width: min(280px, 72vw); }
.cc-poll { display: flex; flex-direction: column; gap: 6px; }
.cc-poll-q { font-size: 15px; }
.cc-opt { position: relative; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; text-align: start; cursor: pointer; overflow: hidden;
  color: inherit; background: rgba(0, 0, 0, .05); }
.cc-opt::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); background: rgba(106, 76, 255, .16); transition: width 260ms; }
.cc-opt > * { position: relative; }
.cc-opt-t { flex: 1; min-width: 0; }
.cc-opt-n { font-size: 12.5px; font-weight: 800; opacity: .8; }
.cc-opt.is-mine { box-shadow: inset 0 0 0 1.5px #6a4cff; }
.sc-msg.is-mine .cc-opt { background: rgba(255, 255, 255, .16); }
.sc-msg.is-mine .cc-opt::before { background: rgba(255, 255, 255, .28); }
.sc-msg.is-mine .cc-opt.is-mine { box-shadow: inset 0 0 0 1.5px #fff; }
.cc-poll-n { font-size: 12px; opacity: .75; }
.cc-suggest { display: flex; gap: 6px; padding: 6px 12px; overflow-x: auto; background: var(--glass-bg, var(--surface)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); position: relative; z-index: 1; }
.cc-sug { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding-inline: 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cc-sug-at { color: #6a4cff; font-weight: 850; }
.cc-in { flex: 1; min-width: 0; min-height: 40px; max-height: 140px; resize: none; padding: 9px 14px; border: 0; border-radius: 20px; font: inherit; font-size: 15.5px; line-height: 1.4; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); outline: 0; }
.cc-lock { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-2); background: var(--glass-bg, var(--surface)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); position: relative; z-index: 1; }
.cc-lock span { flex: 1; }
.cc-pins { display: flex; flex-direction: column; gap: 4px; }
.cc-pin { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 14px; background: none; font: inherit; text-align: start; cursor: pointer; color: var(--text); }
.cc-pin:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cc-pin-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.cc-pin-t > span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The Flock: a circle tile with its emblem, its colour and what waits in it; a face's status; my status in the header. */
.sc-circle { position: relative; }
.sc-circle .sc-circle-ring.has-emoji span { font-size: 22px; }
.sc-circle[style*="--cc"] .sc-circle-ring { background: linear-gradient(145deg, color-mix(in srgb, var(--cc) 65%, #fff), var(--cc)); color: #fff; }
.sc-circle-badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 850; color: #fff; background: var(--accent); }
.sc-circle-badge.is-at { background: #ff375f; }
.sc-face { position: relative; }
.sc-status { position: absolute; inset-block-end: -2px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1;
  background: var(--surface); box-shadow: 0 0 0 2px var(--surface), 0 2px 6px rgba(0, 0, 0, .15); pointer-events: none; z-index: 2; }
.sc-status.is-dnd { box-shadow: 0 0 0 2px #ff3b30, 0 2px 6px rgba(0, 0, 0, .15); }
.sc-ib-status span { font-size: 19px; line-height: 1; }
.sc-ib-status.is-set { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), var(--sh-1); }
.cc-scroll > *, .cc-col > *, .cc-grid { flex-shrink: 0; }
.cc-scroll { padding-block-start: 4px; }
/* On a computer the wide chat and circle windows sit in the content area, beside the side menu (never over it). */
@media (min-width: 1000px) {
  .sheet.is-chat-sheet.is-wide-chat { max-width: min(1180px, calc(100vw - var(--sidebar-w, 240px) - 56px)); width: min(1180px, calc(100vw - var(--sidebar-w, 240px) - 56px)); translate: calc(var(--sidebar-w, 240px) / -2) 0; }
  [dir='ltr'] .sheet.is-chat-sheet.is-wide-chat { translate: calc(var(--sidebar-w, 240px) / 2) 0; }
}

/* The chat bubble as an edge tab (bubble.js, the owner): resting, glass fused to the edge (flat against it, round inward),
   a strip of light on the edge side that fills with the friend's day; held or away from the edge, a round bubble.
   A new message runs along the edge into it and it glows; a long press peeks at the last message. */
.cb { --cb-glass: rgba(255, 255, 255, .78); background: var(--cb-glass); border-radius: 50%; overflow: visible;
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 1px rgba(10, 20, 60, .06);
  filter: drop-shadow(0 8px 16px rgba(10, 20, 60, .2)); transition: border-radius 220ms cubic-bezier(.3, 0, .2, 1), width 220ms; }
.cb::before { display: none; }
.cb-face { position: absolute; inset: 5px; z-index: 1; transition: inset 220ms cubic-bezier(.3, 0, .2, 1); }
.cb.is-docked { border-radius: 32px 0 0 32px; }
.cb.is-docked.is-left { border-radius: 0 32px 32px 0; }
.cb.is-docked .cb-face { inset: 6px 9px 6px 4px; }
.cb.is-docked.is-left .cb-face { inset: 6px 4px 6px 9px; }
.cb-seam { position: absolute; z-index: 1; inset-block: 9px; right: 0; width: 3px; border-radius: 3px 0 0 3px; opacity: 0; transition: opacity 200ms; pointer-events: none;
  background: linear-gradient(to top, #30d158 0 var(--day, 0%), rgba(120, 120, 140, .28) var(--day, 0%)); }
.cb.is-left .cb-seam { right: auto; left: 0; border-radius: 0 3px 3px 0; }
.cb.is-docked.has-day .cb-seam { opacity: 1; }
.cb .cb-badge { top: -4px; bottom: auto; left: -4px; right: auto; inset-inline: auto; height: 22px; min-width: 22px; border-radius: 999px; animation: none; }
.cb .cb-badge::before { display: none; }
.cb.is-left .cb-badge { left: auto; right: -4px; }
.cb.is-glow { animation: cb-glow 900ms ease-out; }
@keyframes cb-glow { 0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 0 rgba(10, 132, 255, .55); } 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 0 0 14px rgba(10, 132, 255, 0); } }
.cb-beam { position: fixed; z-index: 61; top: 0; width: 3px; height: 120px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--accent, #0a84ff), transparent); box-shadow: 0 0 12px var(--accent, #0a84ff);
  animation: cb-beam 560ms cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes cb-beam { from { transform: translateY(-120px); opacity: .2; } to { transform: translateY(var(--to)); opacity: 1; } }
.cb-peek { position: fixed; z-index: 61; display: flex; flex-direction: column; gap: 3px; max-width: min(260px, 64vw); padding: 10px 14px; border-radius: 18px; font-size: 14px; color: var(--text);
  background: var(--glass-bg, rgba(255, 255, 255, .9)); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -12px rgba(10, 20, 60, .35); animation: cb-peek 180ms ease-out; }
@keyframes cb-peek { from { opacity: 0; transform: scale(.94); } }
.cb-peek strong { font-size: 13px; }
.cb-peek-t { line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.cb-peek-h { font-size: 11.5px; color: var(--text-3); }
[data-theme="dark"] .cb { --cb-glass: rgba(44, 44, 48, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cb { --cb-glass: rgba(44, 44, 48, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); } }
/* Fused to the edge: no outline along the edge itself (only around the round side), on either side. */
.cb.is-docked { box-shadow: none; border: 1px solid rgba(255, 255, 255, .75); border-right-width: 0; }
.cb.is-docked.is-left { border-right-width: 1px; border-left-width: 0; }
[data-theme="dark"] .cb.is-docked { box-shadow: none; border-color: rgba(255, 255, 255, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cb.is-docked { box-shadow: none; border-color: rgba(255, 255, 255, .1); } }
.cb.is-docked .cb-seam { inset-block: 10px; }
/* The strip shows only what the friend's day filled (no grey track, which read as a gap in the joint). */
.cb-seam { background: linear-gradient(to top, #30d158 0 var(--day, 0%), transparent var(--day, 0%)); }

/* The course list, built for many (views/academic.js): search and filters, each framework one row that opens, short course
   rows with a small ring; two columns on a computer. */
.cs-bar { margin-block: 10px 8px; }
.st-courses .ul-chips { margin-block-end: 10px; }
.cs-groups { display: flex; flex-direction: column; gap: 12px; }
.cs-group { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cs-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; }
.cs-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-head-t strong { font-size: 16px; font-weight: 800; }
.cs-chev { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); transition: transform 200ms; }
.cs-head:not(.is-open) .cs-chev { transform: rotate(90deg); }
[dir='ltr'] .cs-head:not(.is-open) .cs-chev { transform: rotate(-90deg); }
.cs-bar-p { display: block; height: 5px; border-radius: 5px; margin-block-start: 3px; max-width: 320px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.cs-bar-p i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #30d158, #0a84ff); }
.cs-pct { flex: none; font-size: 15px; font-weight: 800; color: var(--text-2); }
.cs-more { flex: none; width: 36px; height: 36px; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); }
.cs-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.cs-group .cs-list { border-block-start: 1px solid var(--line); }
.cs-groups > .cs-list { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.cs-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; position: relative; min-width: 0; }
.cs-row + .cs-row::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 62px 0; height: 1px; background: var(--line); }
.cs-row:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cs-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; font-weight: 850; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 40) 78% 48%)); }
.cs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-t strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-ring { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 850; color: var(--text-2);
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(#30d158 calc(var(--p) * 1%), color-mix(in srgb, var(--text) 9%, transparent) 0); }
.cs-row.is-done .cs-ring { color: #fff; background: #30d158; }
.cs-row.is-done .cs-ring svg { stroke: #fff; }
.cs-row.is-done .cs-t strong { color: var(--text-2); }
.cs-all { width: 100%; padding: 12px; border: 0; border-block-start: 1px solid var(--line); background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; }
@media (min-width: 900px) {
  .cs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-row + .cs-row::before { display: none; }
  .cs-row { border-block-end: 1px solid var(--line); }
  .cs-row:nth-child(odd) { border-inline-end: 1px solid var(--line); }
}
.st-courses, .cs-groups, .cs-groups > *, .cs-head-t, .cs-list > * { min-width: 0; }
.st-courses { max-width: 100%; }
.cs-head-t .cs-sub { display: block; }
/* The Flock's own mark beside its name (three swifts that are one). */
.sc-title { display: flex; align-items: center; gap: 10px; }
.sc-title-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #5b8cff, #7a5cff); box-shadow: 0 10px 22px -10px rgba(91, 92, 255, .7); }

/* The workout tab's body card: where the phase stands (a bulk's weeks, a mini cut's weeks, the body fat to start a bulk). */
.gx-phase { margin-block-start: 6px; padding: 6px 10px; border-radius: 10px; color: var(--text-2); background: color-mix(in srgb, var(--text) 5%, transparent); line-height: 1.5; }
.gx-phase.is-warn { color: #9a5b00; background: rgba(255, 159, 10, .14); }
[data-theme="dark"] .gx-phase.is-warn { color: #ffb44d; }

/* The course list, smarter: "continue where you stopped", finished courses folded, hidden ones at the end. */
.cs-bar.ul-bar { position: static; }
.cs-recent { display: flex; flex-direction: column; gap: 8px; }
.cs-recent-h { margin: 0; padding-inline: 4px; font-size: 13px; font-weight: 800; color: var(--text-3); }
.cs-recent .cs-list { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, var(--line)), var(--sh-1); }
.cs-all.is-done { display: flex; align-items: center; justify-content: center; gap: 6px; color: #1c9a5b; }
.cs-all.is-done svg { stroke: #1c9a5b; }
.cs-group.is-hidden { opacity: .8; }
.cs-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* The chat's header: the face and the name open the person's card. */
.sc-chat-who { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: 12px; }
button.sc-who.sc-chat-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-chat-who:active { opacity: .7; }
.sc-kpi-ic .logo-bird-line, .ios-ic .logo-bird-line { color: #fff; }

/* The shop's stickers and emoji (views/shop.js stickersPart): a card per pack with its preview, its price and the way to buy. */
.shop-pack { display: flex; flex-direction: column; gap: 10px; margin-block-end: 14px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.shop-pack.is-emoji { background: linear-gradient(135deg, rgba(122, 92, 255, .1), rgba(91, 140, 255, .06)), var(--surface); }
.shop-pack-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shop-pack-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-pack-h strong { font-size: 16px; }
.shop-pack-buy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border-radius: 999px; font-weight: 750; font-size: 14px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #5b8cff, #7a5cff); box-shadow: 0 8px 18px -10px rgba(91, 92, 255, .7); }
.shop-pack-buy svg { stroke: #fff; }
.shop-pack-own { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #1c9a5b; }
.shop-pack-own svg { stroke: #1c9a5b; }
.shop-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.shop-pack-grid.is-emoji { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.shop-pack-grid.is-chars { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.shop-pack-it { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.shop-pack-it img { width: 100%; max-width: 72px; aspect-ratio: 1; object-fit: contain; }
.shop-pack-grid.is-emoji .shop-pack-it img { max-width: 40px; }
.shop-pack-cap { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.shop-pack-more { align-self: center; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; padding: 4px 10px; }
@media (max-width: 560px) {
  .shop-pack-h { flex-direction: column; align-items: stretch; }
  .shop-pack-buy { justify-content: center; }
  .shop-pack-own { align-self: flex-start; }
}

/* ==================================================================================================
   The Path (מסלול): the first screen as a scene, no cards (views/today.js, views/today-scene.js, sky.js).
   ================================================================================================== */
:root {
  --pz-glass: rgba(255, 255, 255, .64); --pz-glass-line: rgba(255, 255, 255, .9);
  --pz-glass-sh: 0 10px 30px -14px rgba(48, 40, 120, .3), 0 1px 2px rgba(48, 40, 120, .06);
  --pz-ink: #14152a; --pz-track: rgba(255, 255, 255, .7);
  --pz-a1: #5b8cff; --pz-a2: #8f6bff; --pz-a3: #ff7ac8;
}
[data-theme="dark"] {
  --pz-glass: rgba(20, 22, 40, .52); --pz-glass-line: rgba(255, 255, 255, .11);
  --pz-glass-sh: 0 14px 36px -16px rgba(0, 0, 0, .8); --pz-ink: #ffffff; --pz-track: rgba(255, 255, 255, .22);
}
/* ---- the sky: behind everything, only while the Path is on screen ---- */
.pz-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; overflow: hidden;
  background: linear-gradient(180deg, #3f8be6 0%, #a9d0ff 42%, var(--bg) 66%); }
body[data-view="today"] .pz-sky { display: block; }
.pz-sky[data-hour="morning"] { background: linear-gradient(180deg, #4f84d2 0%, #ffd9b8 46%, var(--bg) 66%); }
.pz-sky[data-hour="evening"] { background: linear-gradient(180deg, #3a4f98 0%, #e2779a 34%, #ffb07a 48%, var(--bg) 66%); }
.pz-sky[data-hour="night"] { background: linear-gradient(180deg, #2a3a74 0%, #a9b4e0 46%, var(--bg) 66%); }
[data-theme="dark"] .pz-sky { background: linear-gradient(180deg, #03050f 0%, #141c3c 46%, var(--bg) 66%); }
.pz-sky-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The mist: the low sky melts into the page, so what is read below reads as on the page. */
.pz-mist { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 30%, color-mix(in srgb, var(--bg) 35%, transparent) 42%, color-mix(in srgb, var(--bg) 82%, transparent) 54%, var(--bg) 64%); }
@media (min-width: 900px) { .pz-sky { inset-inline-start: var(--sidebar-w); } body:has(.shell[data-collapsed="true"]) .pz-sky { inset-inline-start: var(--sidebar-w-collapsed); }
  .pz-mist { background: linear-gradient(180deg, transparent 0%, transparent 38%, color-mix(in srgb, var(--bg) 40%, transparent) 52%, color-mix(in srgb, var(--bg) 85%, transparent) 64%, var(--bg) 74%); } }
body[data-view="today"] { background: var(--bg); }
body[data-view="today"] .topbar { background: color-mix(in srgb, var(--bg) 14%, transparent); border-block-end-color: transparent; }
body[data-view="today"] .topbar h1 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
body[data-view="today"] .fab { display: none; }

/* ---- the screen ---- */
.pz { gap: 34px; padding-block-end: 110px; max-width: 760px; margin-inline: auto; width: 100%; }
.pz > .tw > section, .pz > .tw > .col > section { position: relative; }

/* ---- the hero ---- */
.pz-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 0 4px; }
.pz-stage { --size: min(80vw, 360px); position: relative; width: var(--size); height: calc(var(--size) * .9); display: grid; place-items: center;
  cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; perspective: 900px;
  transform: translateY(var(--sy, 0px)); opacity: var(--so, 1); }
.pz-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 40px; }
.pz-stage[data-tier="מבנה"] { --pz-a1: #8f7bff; --pz-a2: #b79bff; --pz-a3: #ff8ad8; }
.pz-stage[data-tier="אור"] { --pz-a1: #ffb347; --pz-a2: #ffd27a; --pz-a3: #ff7aa8; }
.pz-stage[data-tier="שלמות"] { --pz-a1: #ffd86b; --pz-a2: #fff1b8; --pz-a3: #ffb3e0; }
.pz-float { position: relative; z-index: 1; width: 74%; aspect-ratio: 1; animation: pz-float 7s ease-in-out infinite; }
.pz-mark { width: 100%; height: 100%; display: grid; place-items: center;
  transform: rotateY(calc(var(--px, 0) * 16deg)) rotateX(calc(var(--py, 0) * -12deg)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pz-mark .rank3d { width: 100% !important; height: 100% !important; filter: drop-shadow(0 18px 30px rgba(30, 20, 90, .28)); }
.pz-mark > svg { width: 62%; height: auto; color: #fff; filter: drop-shadow(0 10px 24px rgba(30, 20, 90, .35)); }
@keyframes pz-float { 50% { transform: translateY(-11px); } }
.pz-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pz-ring.is-back { z-index: 0; } .pz-ring.is-front { z-index: 2; }
.pz-ring-arc { filter: drop-shadow(0 0 5px var(--pz-a2)); }
.pz-halo { position: absolute; inset: 10%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pz-a2) 38%, transparent), transparent 72%); animation: pz-halo 6s ease-in-out infinite; }
@keyframes pz-halo { 50% { transform: scale(1.1); opacity: .65; } }
.pz-floor { position: absolute; bottom: 3%; left: 50%; width: 44%; height: 16px; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 16, 70, .3), transparent); animation: pz-floor 7s ease-in-out infinite; }
[data-theme="dark"] .pz-floor { background: radial-gradient(closest-side, color-mix(in srgb, var(--pz-a2) 45%, transparent), transparent); }
@keyframes pz-floor { 50% { transform: scale(.8); opacity: .55; } }
.pz-pill { position: relative; z-index: 3; margin-block-start: -4px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 8px 16px;
  border-radius: 999px; border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  font: inherit; font-weight: 680; font-size: 14.5px; color: var(--text); cursor: pointer; transition: transform .25s var(--ease); }
.pz-pill:active { transform: scale(.96); }
.pz-pill-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--pz-a1), var(--pz-a2) 55%, var(--pz-a3)); box-shadow: 0 4px 12px -4px var(--pz-a2); }
.pz-pill-ic .ic { stroke: #fff; }
.pz-greet { margin-block-start: 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.pz-hi { font-size: clamp(19px, 5.2vw, 24px); font-weight: 650; color: var(--text-2); letter-spacing: -.01em; }
.pz-name { font-size: clamp(48px, 13.5vw, 84px); padding-block: 6px 10px; padding-inline: .06em; line-height: 1;
  background: linear-gradient(100deg, var(--pz-ink) 0%, var(--pz-ink) 34%, #6b4dff 56%, #2f8bff 76%, #ff5fa8 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: pz-ink 10s ease-in-out infinite alternate; }
@keyframes pz-ink { to { background-position: 100% 0; } }
.pz-date { margin-block-start: 8px; font-size: 13.5px; font-weight: 560; color: var(--text-2); }
.pz-date .hero-heb { color: var(--text-3); }
.pz-date .hero-day-mark { color: var(--accent-text); font-weight: 650; }
/* (the date, the Hebrew date and the day's mark, each on its own line: one line held too much; the owner, 2026-11-27) */
.pz-date > span { display: block; }
.pz-date .hero-line2 { margin-block-start: 2px; }
.pz-stats { margin-block-start: 22px; display: flex; justify-content: center; }
.pz-stat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px clamp(14px, 4.6vw, 30px);
  border: 0; background: none; font: inherit; color: inherit; cursor: default; }
button.pz-stat { cursor: pointer; }
button.pz-stat:active { transform: scale(.96); }
.pz-stat + .pz-stat::before { content: ''; position: absolute; inset-inline-start: 0; top: 14%; bottom: 14%; width: 1px; background: linear-gradient(transparent, var(--line-strong), transparent); }
.pz-stat strong { font-size: clamp(26px, 7.6vw, 34px); font-weight: 780; letter-spacing: -.035em; line-height: 1.05; direction: ltr; }
.pz-stat span { font-size: 12px; font-weight: 600; color: var(--text-2); max-width: 116px; line-height: 1.3; }
.pz-stat.is-day strong { background: linear-gradient(135deg, #10b981, #2f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-trend { margin-block-start: 12px; font-size: 13px; color: var(--text-3); max-width: 36ch; text-wrap: balance; }
/* The entrance, the first time the screen is drawn. */
.pz-hero.is-enter .pz-stage { animation: pz-in-mark 1.3s cubic-bezier(.16, 1, .3, 1) backwards; }
.pz-hero.is-enter .pz-pill { animation: pz-rise .9s cubic-bezier(.16, 1, .3, 1) .35s backwards; }
.pz-hero.is-enter .pz-hi { animation: pz-rise .9s cubic-bezier(.16, 1, .3, 1) .45s backwards; }
.pz-hero.is-enter .pz-name { animation: pz-rise 1s cubic-bezier(.16, 1, .3, 1) .55s backwards, pz-ink 10s ease-in-out 1.6s infinite alternate; }
.pz-hero.is-enter .pz-date { animation: pz-rise .9s cubic-bezier(.16, 1, .3, 1) .68s backwards; }
.pz-hero.is-enter .pz-stats { animation: pz-rise .9s cubic-bezier(.16, 1, .3, 1) .8s backwards; }
.pz-hero.is-enter .pz-trend { animation: pz-rise .9s cubic-bezier(.16, 1, .3, 1) .9s backwards; }
@keyframes pz-in-mark { from { opacity: 0; transform: translateY(40px) scale(.78); filter: blur(16px); } }
@keyframes pz-rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* ---- the drifting rows ---- */
.pz-drift { display: flex; flex-direction: column; gap: 6px; margin-inline: calc(var(--s4) * -1); margin-block-start: -12px; }
.pz-drift-row { overflow: hidden; padding-block: 6px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pz-drift-track { display: flex; width: max-content; direction: ltr; animation: pz-drift var(--dur, 40s) linear var(--delay, 0s) infinite; }
.pz-drift-row.is-rev .pz-drift-track { animation-direction: reverse; }
.pz-drift-row:hover .pz-drift-track, .pz-drift-row.is-held .pz-drift-track { animation-play-state: paused; }
.pz-drift-half { display: flex; }
@keyframes pz-drift { to { transform: translateX(-50%); } }
.pz-chip { direction: rtl; flex: none; margin-inline-end: 10px; display: inline-flex; align-items: center; gap: 9px; height: 48px; padding-inline: 8px 17px;
  border-radius: 17px; border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  font: inherit; font-size: 15px; color: var(--text); white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease); }
.pz-chip:active { transform: scale(.95); }
.pz-chip-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: var(--c);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 10%, transparent), color-mix(in srgb, var(--c) 22%, transparent)); }
.pz-chip-ic .ic { stroke: var(--c); }
.pz-chip-dot { width: 10px; height: 10px; margin-inline: 9px 3px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent), 0 0 12px var(--c); }
.pz-chip-lead { font-weight: 720; }
.pz-chip-tail { font-weight: 600; color: color-mix(in srgb, var(--c) 72%, var(--text)); max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.pz-chip.is-done { opacity: .55; } .pz-chip.is-done .pz-chip-tail { text-decoration: line-through; }
.ev-slot:empty { display: none; }
.pz .ev-row { width: 100%; margin: 0; border-radius: 22px; background: var(--pz-glass); box-shadow: var(--pz-glass-sh); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ---- the parts: section heads, lines, numbers (no boxes) ---- */
.pz-rise { transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s; }
.pz-rise:not(.is-in) { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.pz-h { display: flex; align-items: center; gap: 9px; margin-block-end: 12px; min-height: 28px; }
.pz-h h3 { font-size: 13px; font-weight: 760; letter-spacing: .05em; color: var(--text-2); white-space: nowrap; }
.pz-h-ic { width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--accent-text);
  border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh); }
.pz-h-line { flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.pz-live { width: 9px; height: 9px; flex: none; margin-inline: 9px 6px; border-radius: 50%; background: #ff3b5c; animation: pz-live 1.6s infinite; }
@keyframes pz-live { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); } }
.pz-big-t { font-size: clamp(25px, 6.6vw, 36px); font-weight: 790; letter-spacing: -.032em; line-height: 1.12; text-wrap: balance; }
.pz-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); }
.pz-prog { position: relative; height: 6px; margin-block: 14px 4px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--text) 9%, transparent); }
.pz-prog > i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; transition: width .9s var(--ease);
  background: linear-gradient(90deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 55%, #fff)); box-shadow: 0 0 14px var(--c, var(--accent)); }
.pz-prog.is-night > i { --c: #7a6cff; }
.pz-prog.is-warn > i { --c: #ff9f0a; }
.pz-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.pz-act { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding-inline: 17px; border-radius: 999px;
  border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font: inherit; font-size: 14px; font-weight: 660; color: var(--text); cursor: pointer; transition: transform .2s var(--ease); }
.pz-act:active, .pz-round:active { transform: scale(.94); }
.pz-act.is-main, .pz-round.is-main { border-color: transparent; color: #fff; background: linear-gradient(135deg, #5b8cff, #7a5cff 60%, #a35cff); box-shadow: 0 12px 24px -10px rgba(98, 80, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.pz-act.is-main .ic, .pz-round.is-main .ic { stroke: #fff; }
.pz-round { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%; padding: 0;
  border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text); cursor: pointer; transition: transform .2s var(--ease); }
.pz-round.is-small { width: 40px; height: 40px; }
.pz-round.is-check:hover, .pz-round.is-check:focus-visible { color: #10b981; }
.pz-timer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 6px; flex-wrap: wrap; }
.pz-clock { font-size: clamp(44px, 13vw, 64px); font-weight: 760; letter-spacing: -.045em; line-height: 1.05; direction: ltr;
  background: linear-gradient(135deg, var(--pz-ink), #6b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-rounds { display: flex; gap: 8px; }
.pz-timer.is-paused .pz-live { animation: none; background: #ff9f0a; }
.pz-stack { gap: 30px; }
.pz-next-row { display: flex; align-items: center; gap: 14px; }
.pz-next-time { min-width: 86px; font-size: 32px; font-weight: 790; letter-spacing: -.04em; direction: ltr; text-align: end; color: var(--c); filter: saturate(1.2); }
.pz-next-b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.pz-next-b strong { max-width: 100%; font-size: 17.5px; font-weight: 720; }
.pz-list { display: flex; flex-direction: column; }
.pz .swipe-row { background: transparent; }
.pz .swipe-track { background: transparent; }
.pz-row { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border: 0; background: none;
  border-block-end: 1px solid color-mix(in srgb, var(--text) 8%, transparent); font: inherit; color: inherit; text-align: start; cursor: pointer; }
.pz-list > :last-child .pz-row { border-block-end: 0; }
.pz-row-dot { width: 10px; height: 10px; flex: none; margin-inline: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.pz-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pz-row-b strong { font-size: 15.5px; font-weight: 660; }
.pz-num { width: 40px; flex: none; font-size: 28px; font-weight: 820; letter-spacing: -.05em; direction: ltr; text-align: center; color: transparent; -webkit-text-stroke: 1.3px var(--c); }
.pz-kvs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pz-kv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pz-kv strong { font-size: clamp(19px, 5.4vw, 26px); font-weight: 770; letter-spacing: -.03em; white-space: nowrap; }
.pz-kv span { font-size: 12px; color: var(--text-2); }
.pz-load .pz-sub { margin-block-start: 10px; }
.pz-sleep-big { font-size: clamp(28px, 8vw, 40px); font-weight: 790; letter-spacing: -.035em; line-height: 1.1; }
.pz-sleep-big b { display: inline-block; direction: ltr; background: linear-gradient(135deg, #6b5bff, #2f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding-inline: 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pz-tag.is-ok { color: #0f9d6b; background: rgba(16, 185, 129, .13); }
.pz-tag.is-warn { color: #c46a00; background: rgba(255, 159, 10, .15); }
.pz-tag .ic { stroke: currentColor; width: 13px; height: 13px; }
.pz-line { margin: 0; font-size: 15.5px; font-weight: 620; }
.pz-line.is-warn { color: #c46a00; }
.pz-count { font-size: 13px; font-weight: 760; color: var(--text-2); padding-inline: 4px; }
/* The day as a path of light. */
.pz-path { position: relative; display: flex; flex-direction: column; }
.pz-path::before { content: ''; position: absolute; inset-inline-start: 72px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; opacity: .6;
  background: linear-gradient(180deg, #5b8cff, #9b6bff 50%, #ff7ac8); }
.pz-path::after { content: ''; position: absolute; inset-inline-start: 71px; top: -60px; width: 4px; height: 70px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95), transparent); filter: drop-shadow(0 0 6px #9b6bff); animation: pz-beam 5s linear infinite; }
@keyframes pz-beam { from { top: -70px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { top: 100%; opacity: 0; } }
.pz-stop { position: relative; display: grid; grid-template-columns: 58px 30px minmax(0, 1fr); align-items: center; min-height: 62px; }
.pz-stop-time { font-size: 13.5px; font-weight: 720; color: var(--text-2); direction: ltr; text-align: end; }
.pz-stop-node { position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.pz-stop-node .ic { stroke: #fff; width: 10px; height: 10px; }
.pz-stop.is-done .pz-stop-node { background: var(--c); }
.pz-stop.is-now .pz-stop-node { width: 20px; height: 20px; animation: pz-node 1.8s infinite; }
@keyframes pz-node { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.pz-stop.is-past:not(.is-now) { opacity: .52; }
.pz-stop-b { min-width: 0; display: flex; flex-direction: column; padding-inline-start: 6px; }
.pz-stop-t { min-height: 30px; padding: 0; border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 680; color: inherit; text-align: start; cursor: pointer; }
.pz-stop.is-now .pz-stop-t { font-size: 17.5px; font-weight: 760; }
.pz-stop.is-now .pz-stop-time { color: var(--c); }
.pz-stop.is-done .pz-stop-t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.pz-stop .pz-sub { margin: 0; font-size: 12.5px; }
.pz-nowmark { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding-inline-start: 64px; }
.pz-nowmark-dot { position: relative; z-index: 1; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 4px rgba(255, 59, 92, .2), 0 0 16px #ff3b5c; }
.pz-nowmark-t { font-size: 12px; font-weight: 760; color: #ff3b5c; padding: 2px 9px; border-radius: 99px; background: rgba(255, 59, 92, .1); }
.pz-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pz-empty strong { font-size: 21px; font-weight: 760; letter-spacing: -.02em; }
.pz-empty .pz-act { margin-block-start: 8px; }
/* What other parts draw, freed of their boxes on the Path. */
.pz .card { background: none; box-shadow: none; border: 0; padding-inline: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pz .card-head h3 { font-size: 13px; font-weight: 760; letter-spacing: .05em; color: var(--text-2); }
/* the character's words and the daily circle: one crafted panel, see the block "Path panels" at the end */
.pz .callout { border-radius: 16px; border: 0; background: color-mix(in srgb, var(--pz-glass) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pz .callout-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pz .callout-danger { background: color-mix(in srgb, var(--danger) 11%, transparent); }
.pz .callout-accent { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.pz .od { background: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.pz .od-head, .pz button.od-head { padding-inline: 0; border: 0; border-radius: 16px; }
.pz .od-count { box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn) 16%, transparent), 0 0 18px color-mix(in srgb, var(--warn) 50%, transparent); }
.pz .ch-line-b { background: none; box-shadow: none; padding: 0 4px; }
.pz .ch-line-q { font-size: 16px; font-weight: 560; line-height: 1.5; }
.pz .ch-line-q::before { content: '״'; margin-inline-end: 2px; font-weight: 800; color: var(--pz-a2); }
.pz .obj-strip { padding: 0; }
/* The rhythm, on the page's own colours. */
.pz .rr { margin: 0; padding: 0; border: 0; }
.pz .rr-head { display: none; }
.pz .rr-plot { height: 110px; }
.pz .rr-bar { background: color-mix(in srgb, var(--text) 6%, transparent); }
.pz .rr-line { border-block-start-color: color-mix(in srgb, var(--text) 40%, transparent); }
.pz .rr-day, .pz .rr-legend { color: var(--text-3); }
.pz .rr-col.is-today .rr-day { color: var(--text); }
.pz .rr-col.is-today .rr-bar { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 45%, transparent); }
.pz .rr-col.is-picked .rr-bar { box-shadow: inset 0 0 0 2px var(--accent); }
.pz .rr-read { color: var(--text-2); }
.pz .rr-bar > i.rr-dot { background: color-mix(in srgb, var(--text) 30%, transparent); }
.pz .rr-legend i.is-rest { background: color-mix(in srgb, var(--text) 35%, transparent); }
.pz .rr-legend i.is-avg { border-block-start-color: color-mix(in srgb, var(--text) 50%, transparent); }
.pz-rhythm .pz-h { margin-block-end: 16px; }

/* ---- the writing bar ---- */
.pz-comp { position: fixed; z-index: 35; inset-inline: 14px; inset-block-end: calc(var(--bottom-h) + 12px); display: none; align-items: center; gap: 8px;
  height: 60px; padding-inline: 16px 7px; border-radius: 999px; border: 1px solid var(--pz-glass-line);
  background: var(--pz-glass); box-shadow: var(--pz-glass-sh), 0 18px 40px -22px rgba(60, 40, 160, .45);
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
body[data-view="today"] .pz-comp { display: flex; }
body[data-arranging] .pz-comp { display: none; }
.pz-comp.is-away { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.pz-comp:focus-within { box-shadow: var(--pz-glass-sh), 0 0 0 3px color-mix(in srgb, #7a5cff 30%, transparent); }
.pz-comp-spark { display: flex; color: #7a5cff; }
.pz-comp-spark .ic { stroke: #7a5cff; }
.pz-comp-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: inherit; font-size: 16px; color: var(--text); }
.pz-comp-in::placeholder { color: var(--text-3); }
.pz-comp-go { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 32% 26%, #a594ff, #6a4dff 55%, #4526d4); box-shadow: 0 10px 22px -8px rgba(106, 77, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s var(--ease); }
.pz-comp-go:active { transform: scale(.92); }
.pz-comp-go .ic { stroke: #fff; }
@media (min-width: 900px) {
  .pz-comp { inset-block-end: 24px; inset-inline-start: calc(var(--sidebar-w) + 40px); inset-inline-end: 40px; max-width: 700px; margin-inline: auto; }
  body:has(.shell[data-collapsed="true"]) .pz-comp { inset-inline-start: calc(var(--sidebar-w-collapsed) + 40px); }
}

/* ---- the desktop: the hero beside its rows, the day in two columns ---- */
@media (min-width: 1100px) {
  .pz { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; row-gap: 40px; align-items: start; }
  .pz > .pz-hero, .pz > .pz-drift, .pz > .ev-slot, .pz > .ch-line, .pz > .col:not(.tw) { grid-column: 1 / -1; }
  .pz-stage { --size: min(34vw, 400px); }
  .pz-name { font-size: clamp(64px, 5.4vw, 92px); }
  .pz-drift { margin-inline: 0; }
  .pz > .tw.pz-part-timeline, .pz > .tw.pz-part-now { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1099px) { .pz-drift { margin-inline: 0; } }

/* ---- reduced motion: nothing drifts; the rows scroll by hand ---- */
@media (prefers-reduced-motion: reduce) {
  .pz-float, .pz-halo, .pz-floor, .pz-name, .pz-path::after, .pz-live, .pz-stop.is-now .pz-stop-node { animation: none !important; }
  .pz-drift-track { animation: none; } .pz-drift-row { overflow-x: auto; scrollbar-width: none; } .pz-drift-half[aria-hidden] { display: none; }
  .pz-rise:not(.is-in) { opacity: 1; transform: none; filter: none; }
}
:root[data-motion="reduced"] .pz-float, :root[data-motion="reduced"] .pz-halo, :root[data-motion="reduced"] .pz-floor, :root[data-motion="reduced"] .pz-name,
:root[data-motion="reduced"] .pz-path::after, :root[data-motion="reduced"] .pz-drift-track { animation: none !important; }
:root[data-motion="reduced"] .pz-drift-row { overflow-x: auto; scrollbar-width: none; }
:root[data-motion="reduced"] .pz-drift-half[aria-hidden] { display: none; }
/* ---- the Path, second pass: the sky leaves as the page scrolls; moving glass without live blur (smooth) ---- */
/* (it is part of the page and goes up with it, as the browser scrolls it: nothing is changed on it while scrolling.
   Faded by the scroll it flickered on an iPhone, moved by it a frame behind it trembled. Its height is the tallest
   the window gets (lvh), so the address bar folding away does not stretch it. Above it, for the pull past the top,
   the colour of its zenith.) */
.pz-sky { position: absolute; bottom: auto; height: 100vh; height: 100lvh; overflow: visible; }
.pz-sky::before { content: ''; position: absolute; inset-inline: 0; bottom: 100%; height: 60vh; background: var(--zen, #3f8be6); }
[data-theme="dark"] .pz-sky::before { background: var(--zen, #03050f); }
.pz-chip { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--pz-glass) 100%, transparent); }
:root:not([data-theme="dark"]) .pz-chip { background: rgba(255, 255, 255, .8); }
[data-theme="dark"] .pz-chip { background: rgba(26, 28, 48, .78); }
.pz-drift-track { will-change: transform; }
/* Alerts: an orb that glows, what it says, where a tap goes. No box. */
.pz-alerts { display: flex; flex-direction: column; gap: 6px; }
.pz-alert { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 2px; border: 0; background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
div.pz-alert { cursor: default; }
.pz-alert::-webkit-details-marker { display: none; }
.pz-alert:active { opacity: .8; }
.pz-orb { --o: var(--accent); position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%;
  font-size: 17px; font-weight: 800; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--o) 55%, #fff), var(--o) 62%, color-mix(in srgb, var(--o) 70%, #000));
  box-shadow: 0 8px 22px -8px var(--o), inset 0 1px 0 rgba(255, 255, 255, .45); }
.pz-orb::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--o) 45%, transparent); animation: pz-orb 2.6s ease-out infinite; }
@keyframes pz-orb { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.pz-orb .ic { stroke: #fff; }
.pz-alert.is-warn .pz-orb { --o: #f59e0b; }
.pz-alert.is-danger .pz-orb { --o: #ef4444; }
.pz-alert.is-accent .pz-orb { --o: #7a5cff; }
.pz-alert.is-quiet .pz-orb { --o: #8e8e93; } .pz-alert.is-quiet .pz-orb::after { display: none; }
.pz-alert-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pz-alert-b strong { font-size: 16px; font-weight: 720; line-height: 1.3; }
.pz-alert-go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--text-2);
  border: 1px solid var(--pz-glass-line); background: var(--pz-glass); transition: transform .3s var(--ease); }
.pz-od[open] > .pz-alert .pz-alert-go { transform: rotate(180deg); }
.pz-sched .pz-act { flex: none; }
.pz-od-list { padding-inline-start: 60px; }
.pz-od-open { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 650; color: var(--accent-text); }
.pz-od-note { padding-inline-start: 60px; }
.pz .swipe-row:has(> .swipe-track > .pz-alert) { border-radius: 18px; }
@media (max-width: 420px) { .pz-sched { flex-wrap: wrap; } .pz-sched .pz-act { margin-inline-start: 60px; } }
/* The rhythm: a line of light. */
.pz-rr-top { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; margin-block-end: 14px; }
.pz-rr-big { display: flex; flex-direction: column; }
.pz-rr-big strong { font-size: clamp(38px, 11vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1; direction: ltr; text-align: start;
  background: linear-gradient(135deg, #5b8cff, #8f6bff 60%, #ff6fb1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-rr-big.is-small strong { font-size: clamp(26px, 7vw, 32px); background: linear-gradient(135deg, #10b981, #2f8bff); -webkit-background-clip: text; background-clip: text; }
.pz-rr-big span { font-size: 12px; font-weight: 650; color: var(--text-2); margin-block-start: 4px; }
.pz-rr-note { flex-basis: 100%; margin: 0; }
.pz-rr-plot { position: relative; height: 170px; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 12px; outline: none; }
.pz-rr-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.pz-rr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pz-rr-goal { stroke: #10b981; stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .7; }
.pz-rr-floor { stroke: color-mix(in srgb, var(--text) 12%, transparent); stroke-width: 1; }
.pz-rr-line { vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 10px rgba(124, 108, 242, .45)); stroke-dasharray: 1; stroke-dashoffset: 0; }
.pz-rise:not(.is-in) .pz-rr-line { stroke-dashoffset: 1; }
.pz-rise.is-in .pz-rr-line { animation: pz-draw 1.8s cubic-bezier(.65, 0, .35, 1) .2s backwards; }
@keyframes pz-draw { from { stroke-dashoffset: 1; } }
.pz-rr-area { opacity: 1; transition: opacity 1.2s .6s; }
.pz-rise:not(.is-in) .pz-rr-area { opacity: 0; }
.pz-rr-guide { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity .2s; }
.pz-rr-guide.is-on { opacity: .8; }
.pz-rr-goal-t { position: absolute; inset-inline-end: 0; translate: 0 -120%; font-size: 10.5px; font-weight: 750; color: #10b981; }
.pz-rr-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); pointer-events: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px var(--c); transition: transform .25s var(--ease); }
.pz-rise:not(.is-in) .pz-rr-dot { transform: scale(0); }
.pz-rise.is-in .pz-rr-dot { animation: pz-pop .5s cubic-bezier(.34, 1.56, .64, 1) calc(.3s + var(--i) * 70ms) backwards; }
@keyframes pz-pop { from { transform: scale(0); } }
.pz-rr-dot.is-rest { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--bg); border: 1.5px solid var(--text-3); box-shadow: none; }
.pz-rr-dot.is-today::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); animation: pz-orb 2s ease-out infinite; }
.pz-rr-dot.is-picked { transform: scale(1.6); }
.pz-rr-days { position: relative; height: 20px; margin-block-start: 4px; }
.pz-rr-days span { position: absolute; top: 0; translate: -50% 0; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pz-rr-days span.is-today { color: var(--text); font-weight: 750; }
.pz-rr-read { margin: 10px 0 0; min-height: 1.4em; font-size: 14px; font-weight: 650; color: var(--text); }
.pz-rr-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-block-start: 8px; font-size: 11.5px; color: var(--text-3); }
.pz-rr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pz-rr-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.pz-rr-legend i.is-rest { background: none; border: 1.5px solid var(--text-3); box-shadow: none; }
/* The goals: rings. */
.pz-link { margin-inline-start: 4px; padding: 4px 10px; border: 0; border-radius: 99px; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.pz-goals-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
.pz-goal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.pz-goal-ring { position: relative; width: 88px; height: 88px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.pz-goal-ring svg { width: 100%; height: 100%; overflow: visible; }
.pz-goal-ring > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 800; letter-spacing: -.03em; direction: ltr; }
.pz-goal-track { fill: none; stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: 6; }
.pz-goal-arc { fill: none; stroke-width: 6; stroke-linecap: round; }
.pz-rise.is-in .pz-goal-arc { animation: pz-ring 1.4s cubic-bezier(.65, 0, .35, 1) .2s backwards; }
@keyframes pz-ring { from { stroke-dasharray: 0 100; } }
.pz-goal-t { font-size: 13.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pz-goal-add { position: absolute; top: 58px; inset-inline-end: calc(50% - 48px); width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--c); color: #fff; cursor: pointer; box-shadow: 0 4px 12px -4px var(--c); }
.pz-goal-add .ic { stroke: #fff; }
@media (min-width: 1100px) { .pz > .tw.pz-part-rhythm, .pz > .tw.pz-part-objectives { grid-column: auto; } }
/* ---- the Path, third pass ---- */
/* The title over the sky in white; once the sky has gone, in the page's own ink (day and night). */
body[data-view="today"] .topbar h1 { color: var(--text); text-shadow: none; transition: color .3s; }
body[data-view="today"].pz-at-top .topbar h1 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
/* Plain, solid actions in the app's own colour: no glow, nothing that reads as an assistant. */
.pz-act.is-main, .pz-round.is-main { background: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.pz-alert.is-accent .pz-orb { --o: var(--accent); }
/* The writing bar: a line to add a task, with the empty circle of a task not done yet. */
.pz-comp-box { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--text-3); }
.pz-comp:focus-within .pz-comp-box { border-color: var(--accent); }
.pz-comp-go { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
.pz-comp { box-shadow: var(--pz-glass-sh); }
.pz-comp:focus-within { box-shadow: var(--pz-glass-sh), 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
/* The rank pill shows the rank's own mark. */
.pz-pill-ic { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pz-a2) 60%, #fff), var(--pz-a1)); }
.pz-pill-ic svg { width: 16px; height: 16px; color: #fff; }
/* The scheduler line on a narrow phone: the words in full, the button under them. */
@media (max-width: 480px) { .pz-sched { flex-wrap: wrap; } .pz-sched .pz-alert-b { flex: 1 1 calc(100% - 60px); } .pz-sched .pz-act { margin-inline-start: 60px; } }
/* A study question on the Path: its answers as glass lines, not boxes. */
.pz .st-ask-pick { border: 1px solid var(--pz-glass-line); background: var(--pz-glass); box-shadow: var(--pz-glass-sh); border-radius: 16px; }
.pz .st-ask-btns .btn { border-radius: 999px; border: 1px solid var(--pz-glass-line); background: var(--pz-glass); }
/* The pulse at the top of the insights. */
.ins-pulse-box { display: flex; flex-direction: column; gap: 14px; margin-block-end: 16px; }
.ins-pulse-box:empty { display: none; }
.ins-pulse .pz-rr-dot { box-shadow: 0 0 0 3px var(--surface), 0 0 12px var(--c); }
/* The rows are laid out left to right whatever the language, so the strip starts at the edge and its loop never runs dry. */
.pz-drift-row { direction: ltr; }

/* ==================================================================================================
   The menu (navmenu.js): the hamburger of rising steps, and the screen that spreads from it.
   ================================================================================================== */
.hb { position: relative; width: 40px; height: 40px; flex: none; display: grid; align-content: center; justify-items: start; gap: 4px; padding-inline: 10px;
  border-radius: 13px; border: 1px solid var(--glass-border, var(--line)); background: var(--surface); box-shadow: var(--sh-1); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease); }
.hb:active { transform: scale(.92); }
.hb-l { display: block; height: 2.4px; border-radius: 2px; background: var(--text); transform-origin: center; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), width .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s, background .3s; }
.hb-l.is-1 { width: 19px; } .hb-l.is-2 { width: 13px; } .hb-l.is-3 { width: 8px; background: var(--accent); }
.hb:hover .hb-l.is-2 { width: 19px; } .hb:hover .hb-l.is-3 { width: 19px; }
.hb.is-open .hb-l.is-1 { width: 19px; transform: translateY(6.4px) rotate(45deg); }
.hb.is-open .hb-l.is-2 { width: 4px; transform: translateX(-26px); opacity: 0; }
.hb.is-open .hb-l.is-3 { width: 19px; background: var(--text); transform: translateY(-6.4px) rotate(-45deg); }
@media (min-width: 900px) { .hb { display: none; } }
.nm-close { position: fixed; z-index: 2; margin: 0; }
.nm { position: fixed; inset: 0; z-index: 90; color: var(--text); clip-path: circle(0px at var(--ox) var(--oy)); transition: clip-path .62s cubic-bezier(.7, 0, .2, 1); }
.nm.is-open { clip-path: circle(150vmax at var(--ox) var(--oy)); }
.nm.is-closing { transition-duration: .5s; transition-timing-function: cubic-bezier(.6, 0, .3, 1); }
.nm-bg { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, #f6f3ff, #eef3ff 50%, #fdf1f7); }
[data-theme="dark"] .nm-bg { background: linear-gradient(160deg, #0a0c1d, #120f2c 55%, #1b0f26); }
.nm-orb { position: absolute; border-radius: 50%; opacity: .55; }
.nm-orb.a { width: 70vmax; height: 70vmax; top: -30vmax; inset-inline-end: -25vmax; background: radial-gradient(closest-side, rgba(122, 92, 255, .45), transparent); animation: nm-orb 16s ease-in-out infinite alternate; }
.nm-orb.b { width: 60vmax; height: 60vmax; bottom: -28vmax; inset-inline-start: -22vmax; background: radial-gradient(closest-side, rgba(47, 139, 255, .4), transparent); animation: nm-orb 19s ease-in-out infinite alternate-reverse; }
.nm-orb.c { width: 40vmax; height: 40vmax; top: 40%; left: 40%; background: radial-gradient(closest-side, rgba(255, 95, 168, .28), transparent); animation: nm-orb 23s ease-in-out infinite alternate; }
@keyframes nm-orb { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
.nm-in { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
  padding: max(env(safe-area-inset-top, 0px), 14px) 20px max(env(safe-area-inset-bottom, 0px), 20px); }
.nm-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-inline-start: 54px;
  opacity: 0; transform: translateY(-10px); transition: opacity .4s .25s, transform .5s cubic-bezier(.16, 1, .3, 1) .25s; }
.nm.is-open .nm-head { opacity: 1; transform: none; }
.nm-who { display: flex; flex-direction: column; min-width: 0; }
.nm-who strong { font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.nm-rank { font-size: 13px; font-weight: 650; color: var(--accent-text); }
.nm-list { display: flex; flex-direction: column; margin-block: 10px 18px; }
.nm-item { position: relative; display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 6px 8px; border: 0; border-radius: 18px; background: none;
  font: inherit; color: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); filter: blur(6px);
  transition: opacity .5s calc(.12s + var(--i) * 38ms), transform .7s cubic-bezier(.16, 1, .3, 1) calc(.12s + var(--i) * 38ms), filter .5s calc(.12s + var(--i) * 38ms), background .2s; }
[dir="rtl"] .nm-item { --dir: -1; }
.nm.is-open .nm-item { opacity: 1; transform: none; filter: none; }
.nm.is-closing .nm-item { transition-delay: 0s; }
.nm-item:hover, .nm-item:focus-visible { background: color-mix(in srgb, var(--text) 5%, transparent); outline: none; }
.nm-item:active { transform: scale(.98); }
.nm-num { width: 26px; flex: none; font-size: 12px; font-weight: 750; color: var(--text-3); direction: ltr; text-align: center; }
.nm-ic { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--accent-text);
  background: var(--pz-glass); border: 1px solid var(--pz-glass-line); box-shadow: var(--pz-glass-sh); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nm-item:hover .nm-ic { transform: rotate(-6deg) scale(1.06); }
.nm-dot { position: absolute; top: -2px; inset-inline-end: -2px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 2px var(--bg); }
.nm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm-t strong { font-size: 21px; font-weight: 760; letter-spacing: -.025em; line-height: 1.2; }
.nm-t span { font-size: 12.5px; color: var(--text-2); }
.nm-go { color: var(--text-3); display: grid; place-items: center; transition: transform .3s; }
[dir="rtl"] .nm-go { transform: scaleX(-1); }
.nm-item:hover .nm-go { transform: translateX(-4px); } [dir="rtl"] .nm-item:hover .nm-go { transform: scaleX(-1) translateX(-4px); }
.nm-item.is-here::before { content: ''; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(#5b8cff, #a35cff); box-shadow: 0 0 12px #7a5cff; }
.nm-item.is-here .nm-ic { color: #fff; background: var(--accent); border-color: transparent; }
.nm-item.is-here .nm-ic .ic { stroke: #fff; }
.nm-here { font-size: 12px; font-weight: 750; color: var(--accent-text); padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 8px;
  opacity: 0; transform: translateY(14px); transition: opacity .5s .5s, transform .6s cubic-bezier(.16, 1, .3, 1) .5s; }
.nm.is-open .nm-quick { opacity: 1; transform: none; }
.nm-q { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--pz-glass-line);
  background: var(--pz-glass); box-shadow: var(--pz-glass-sh); font: inherit; font-size: 14px; font-weight: 650; color: var(--text); cursor: pointer; }
body.nm-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nm { clip-path: none; opacity: 0; transition: opacity .15s; } .nm.is-open { clip-path: none; opacity: 1; }
  .nm-item, .nm-head, .nm-quick { transition: none; opacity: 1; transform: none; filter: none; } .nm-orb { animation: none; }
}
:root[data-motion="reduced"] .nm { clip-path: none; transition: opacity .15s; }
:root[data-motion="reduced"] .nm-item, :root[data-motion="reduced"] .nm-head, :root[data-motion="reduced"] .nm-quick { transition: none; opacity: 1; transform: none; filter: none; }
/* The chat's bubble on the Path: a clear glass that takes the colours of the sky behind it (and of the page once the sky has gone). */
body[data-view="today"] .cb { --cb-glass: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 1px rgba(10, 20, 60, .04);
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.06); backdrop-filter: blur(16px) saturate(190%) brightness(1.06); }
[data-theme="dark"] body[data-view="today"] .cb { --cb-glass: rgba(24, 28, 52, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* The day's path: the glowing light runs down the line as before, inside a box exactly as long as the line, so it is
   gone the moment the line ends (the owner). */
.pz-path::after { top: 14px; bottom: 14px; height: auto; inset-inline-start: 71px; width: 4px; border-radius: 4px; opacity: 1;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95), transparent) 0 -70px / 100% 70px no-repeat;
  filter: drop-shadow(0 0 6px #9b6bff); animation: pz-beam3 5s linear infinite; }
@keyframes pz-beam3 { from { background-position: 0 -70px; } to { background-position: 0 calc(100% + 70px); } }
@media (prefers-reduced-motion: reduce) { .pz-path::after { animation: none; display: none; } }
:root[data-motion="reduced"] .pz-path::after { animation: none; display: none; }
/* The characters' world map (ui.js questMap, questworld.js): a land larger than the sheet seen through it as a
   window; the sheet the whole height of the screen, the map filling what is left of it, edge to edge. */
.sheet:has(.qm) { height: calc(100dvh - max(env(safe-area-inset-top, 0px), 12px)); max-height: none; }
.sheet:has(.qm) .sheet-body { display: flex; flex-direction: column; overflow: hidden; padding-block-end: 0; }
.sheet:has(.qm) .avatar-menu, .sheet:has(.qm) .av-sections { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sheet:has(.qm) .avatar-menu > :not(.av-sections) { flex: none; }
.qm { position: relative; flex: 1; min-height: 320px; margin-inline: calc(var(--s4) * -1); background: #232f45; overflow: hidden; isolation: isolate; contain: strict; }
.qm-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qm, .qm * { -webkit-touch-callout: none; -webkit-user-drag: none; }
.qm-view.is-grab { cursor: grabbing; }
.qm-view:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.qm-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; --inv: 1; }
/* the names: a layer the size of the window, never enlarged at rest (sharp at any zoom); it goes with the land while moving */
.qm-names { position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none; }
/* the characters' layer: upright on the screen at rest (the layer itself never turned then), touchable */
.qm-pins { --unrot: 0deg; z-index: 1; }
.qm-pins .qm-node { pointer-events: auto; }
/* in space (the map's page zoomed past the whole world) the names, characters and flag fade away */
.qm-names, .qm-pins, .qm-world { transition: opacity .25s; }
.qm.is-space .qm-names, .qm.is-space .qm-pins, .qm.is-space .qm-world { opacity: 0; pointer-events: none; }
.qm.is-space .qm-pins .qm-node { pointer-events: none; }
/* the navigation gauge, in space: a dark glass at the foot, its text in the cockpit's green */
/* (above the map code's line in the corner, so in space the code stays seen) */
.wm-hud { position: absolute; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 140px); bottom: 38px; z-index: 4; padding: 8px 14px; border-radius: 12px; background: rgba(4, 12, 10, .62); border: 1px solid rgba(120, 220, 170, .35); color: #9ff0c4; font: 600 12px/1.45 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; text-align: start; pointer-events: none; backdrop-filter: blur(6px); }
.wm-hud-t { font-size: 13px; font-weight: 800; color: #d6ffe8; }
.wm-targets { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 5; background: rgba(4, 12, 10, .62); color: #cfeee0; border: 1px solid rgba(120, 220, 170, .4); backdrop-filter: blur(6px); }
/* the map's notice of rights, as every map carries one: small, at the corner, hardly there (on the side the buttons are not) */
/* on a dark glass of its own, so it reads on any colour of the map */
.qm-credit { position: absolute; inset-inline-start: 8px; inset-block-end: 6px; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 5px 10px 4px; border-radius: 999px;
  background: rgba(8, 10, 20, .58); -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 8px rgba(0, 0, 0, .25);
  font: 900 11px/1 'RetzefMapLand', system-ui, sans-serif; color: rgba(255, 255, 255, .92); pointer-events: none; }
.qm-credit-dot { opacity: .5; }
@media (prefers-reduced-transparency: reduce) { .qm-credit { background: rgba(8, 10, 20, .9); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* the account's map code: engraved capitals in the map's own lettering, a quiet gold, and a finger-sized place to tap */
.qm-code { pointer-events: auto; direction: ltr; margin: -9px -8px; padding: 9px 8px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 700 11px/1 'RetzefMapLand', serif; letter-spacing: .2em; margin-inline-end: calc(-8px - .2em);
  background-image: linear-gradient(180deg, #fff8e4 0%, #f0d48e 50%, #d4a656 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; transition: opacity .15s ease; }
.qm-code:active { opacity: .7; }
.qm-code:focus-visible { outline: 1.5px solid rgba(232, 199, 122, .8); outline-offset: -4px; border-radius: 6px; }
/* what the code is (a tap on it) */
.qm-codeinfo { display: grid; gap: 12px; text-align: center; padding: 6px 4px 2px; max-width: 360px; }
.qm-codeinfo-k { font: 600 13px/1.2 system-ui, sans-serif; color: var(--text-2); letter-spacing: .02em; }
.qm-codeinfo-code { direction: ltr; font: 700 30px/1.1 'RetzefMapLand', serif; letter-spacing: .26em; margin-inline-end: -.26em; padding: 4px 0 6px;
  background-image: linear-gradient(180deg, #c99a3f 0%, #9a6d22 55%, #6e4a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .qm-codeinfo-code { background-image: linear-gradient(180deg, #fff3d0 0%, #e2bd6a 52%, #a87a32 100%); }
.qm-codeinfo p { margin: 0; line-height: 1.6; color: var(--text); font-size: 14.5px; }
.qm-codeinfo-thanks { color: var(--text-2) !important; }
.qm-codeinfo .btn { margin-top: 6px; justify-self: center; min-width: 140px; }
/* the map code's window: the creator's instrument (an astrolabe of gold hairlines round the world itself, the code engraved
   below); deep space blue, soft gold, the same in both themes */
/* (in the middle of the screen, not at the top as other windows) */
.modal-host:has(.qm-astro-modal) { align-items: center; padding-block: var(--s4); }
.modal.qm-astro-modal { color: #e8ebf7; border: 1px solid rgba(216, 173, 92, .32); border-radius: 22px; overflow: hidden; width: min(330px, calc(100vw - 32px)); max-width: 330px;
  background:
    radial-gradient(1px 1px at 14% 18%, rgba(255,255,255,.75), transparent 60%), radial-gradient(1px 1px at 78% 11%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 46%, rgba(255,236,190,.65), transparent 60%), radial-gradient(1px 1px at 9% 62%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 63% 88%, rgba(255,255,255,.45), transparent 60%), radial-gradient(1px 1px at 36% 40%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(90% 55% at 50% 22%, rgba(70, 96, 210, .32), transparent 70%),
    linear-gradient(180deg, #0b1233 0%, #080d27 60%, #060a1f 100%);
  box-shadow: 0 30px 80px rgba(3, 6, 24, .6), inset 0 1px 0 rgba(255, 232, 180, .16); }
.qm-astro { gap: 0; padding: 8px 18px 16px; max-width: 330px; }
.qm-astro-stage { position: relative; width: 140px; height: 140px; justify-self: center; margin-block: 6px 4px; }
.qm-astro-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(216, 173, 92, .25)); }
.qm-astro-turn { transform-origin: 120px 120px; animation: qm-astro-spin 60s linear infinite; }
.qm-astro-back { animation-duration: 90s; animation-direction: reverse; }
@keyframes qm-astro-spin { to { transform: rotate(360deg); } }
.qm-astro-world { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; transition: opacity .6s ease;
  box-shadow: 0 0 6px 1px rgba(150, 195, 255, .55), 0 0 22px 4px rgba(90, 140, 255, .35), inset -10px -8px 16px rgba(0, 0, 0, .6); }
.qm-astro-world.is-in { opacity: 1; }
.qm-astro-k { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-block: 2px 4px; }
.qm-astro-k span { height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 173, 92, .7)); }
.qm-astro-k span:last-child { transform: scaleX(-1); }
.qm-astro-k h2 { margin: 0; font: 600 14px/1.2 system-ui, sans-serif; color: rgba(247, 228, 173, .9); }
.qm-astro .qm-codeinfo-code, [data-theme="dark"] .qm-astro .qm-codeinfo-code { font-size: 28px; letter-spacing: .28em; margin-inline-end: -.28em; padding: 0 0 10px;
  background-image: linear-gradient(180deg, #fff7dc 0%, #efcd84 48%, #b98a3c 100%); filter: drop-shadow(0 2px 10px rgba(239, 205, 132, .3)); }
.qm-astro p { margin: 0 0 8px; color: rgba(232, 235, 247, .86); font-size: 14px; line-height: 1.6; }
.qm-astro .qm-codeinfo-thanks { color: #f2d99a !important; font-weight: 600; margin-block: 2px 16px; }
/* the way back: one plain, solid button across the foot (no glow, no gradient): ivory on the deep blue */
.qm-astro .qm-astro-btn { justify-self: stretch; width: 100%; min-width: 0; margin: 0; min-height: 46px; border-radius: 12px; border: 0; box-shadow: none;
  font: 600 15px/1 system-ui, -apple-system, sans-serif; letter-spacing: 0; color: #0b1233; background: #f1e9d6; transition: background .15s ease, transform .1s ease; }
.qm-astro .qm-astro-btn:hover { background: #fbf5e8; }
.qm-astro .qm-astro-btn:active { transform: scale(.985); background: #e6dcc4; }
.qm-astro .qm-astro-btn:focus-visible { outline: 2px solid #f1e9d6; outline-offset: 3px; }
.qm-astro-foot { margin-inline: -18px; margin-block-end: -16px; padding: 14px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { .qm-astro-turn { animation: none; } .qm-astro-world { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .modal.qm-astro-modal { background: #090f2b; } }
/* the administrator's map tab: a trap sprung, and the Creator's Seal (views/users.js, views/mapseal.js) */
/* the encryption centre (views/users.js): a dark header of its state, then its tools */
.enc-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 18px 18px 16px; margin-block-end: 14px; color: #f4efe2;
  background: radial-gradient(120% 90% at 100% 0%, rgba(240, 212, 142, .16), transparent 60%), linear-gradient(150deg, #151b2e 0%, #1d2540 55%, #121726 100%);
  box-shadow: 0 10px 30px rgba(10, 14, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .06); }
.enc-top { display: flex; gap: 14px; align-items: center; }
.enc-emblem { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #2a1d06;
  background: linear-gradient(160deg, #fff1c4 0%, #e9c46f 45%, #b9842d 100%); box-shadow: 0 0 0 1px rgba(255, 236, 180, .4), 0 6px 18px rgba(233, 196, 111, .35); }
.enc-title h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; color: #fff8e6; }
.enc-title p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(244, 239, 226, .72); }
.enc-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-block-start: 16px; font-weight: 700; font-size: 14px; color: #fff3d0; }
.enc-sec svg { color: #f0d48e; }
.enc-sec-d { flex-basis: 100%; font-weight: 400; font-size: 12.5px; color: rgba(244, 239, 226, .62); }
.enc-h { margin: 6px 4px 10px; font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.enc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block-start: 10px; }
@media (max-width: 560px) { .enc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.enc-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.enc-v { font-size: 20px; font-weight: 800; color: #f0d48e; line-height: 1.2; }
.enc-l { font-size: 12px; color: rgba(244, 239, 226, .65); }
.enc-card .card-head { margin-block-end: 6px; }
.enc-card > p.small { line-height: 1.6; margin-block-end: 12px; }
.enc-empty { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; border-radius: 14px; color: var(--text-2);
  background: color-mix(in srgb, var(--text) 4%, transparent); font-size: 14px; }
.enc-lab { display: block; font-size: 13px; font-weight: 700; margin: 10px 2px 6px; color: var(--text-2); }
.enc-letter { width: 100%; min-height: 150px; line-height: 1.6; resize: vertical; font-size: 14px; }
.enc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.enc-card .card-head .xs.muted { margin-inline-start: auto; }
.mtr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mtr-out:not(:empty) { margin-block-start: 10px; }
.mtr-code { text-transform: uppercase; }
.mtr-code:not(:placeholder-shown) { direction: ltr; letter-spacing: .15em; }
.mtr-code::placeholder { letter-spacing: normal; }
.mtr-trap { display: grid; gap: 3px; padding: 12px 0; border-block-end: 1px solid var(--line, rgba(127,127,127,.18)); }
.mtr-trap:last-of-type { border-block-end: 0; }
.mseal .btn-primary { margin-block: 4px 2px; }
.mseal-out { display: grid; gap: 12px; margin-block-start: 12px; }
.mseal-out:empty { display: none; }
.mseal-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.mseal-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d4a656, #f0d48e); transition: width .2s ease; }
.mseal-verdict { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; line-height: 1.5; }
.mseal-verdict.is-sure { background: color-mix(in srgb, #2f9e62 14%, transparent); }
.mseal-verdict.is-maybe { background: color-mix(in srgb, #d4a656 18%, transparent); }
.cr-dmd { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 2px 4px; }
.cr-dmd b { font-size: 18px; }
.uw-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block-end: 10px; }
.uw-sum > div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.uw-log { display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.uw-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 2px; border-block-end: 1px solid var(--line, rgba(127,127,127,.15)); }
.uw-row .pos { color: #2f9e62; } .uw-row .neg { color: #d4553d; }
/* the shop's course button ("included · to watch"): the play triangle on the line of the words */
.btn.sc-watch { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.btn.sc-watch svg { display: block; flex: none; transform: translateY(2px); }
.tq-w, .tq-c { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-block-end: 1px solid var(--line, rgba(127,127,127,.15)); }
.tq-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.tq-t { display: grid; gap: 3px; flex: 1 1 160px; }
.tq-act { display: flex; gap: 8px; margin-block-start: 4px; }
.vy-tr { display: grid; gap: 8px; padding: 12px 14px; margin-block: 10px; border-radius: 16px; background: color-mix(in srgb, #5aa8ff 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #5aa8ff 25%, transparent); }
.vy-tr-h { display: flex; gap: 8px; align-items: center; }
.vy-tr-h .xs { margin-inline-start: auto; }
.vy-tr-due { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, #d9a948 14%, transparent); }
.vy-tr .btn { justify-self: start; }
.vy-chest { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; margin-block-end: 10px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, #d9a948 18%, transparent), color-mix(in srgb, #5aa8ff 12%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9a948 35%, transparent); }
.vy-chest-ic { font-size: 30px; line-height: 1; }
.vy-chest-t { display: grid; gap: 2px; flex: 1 1 180px; }
.vy-chest-prize { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 17px; }
.vy-chest.is-open .vy-chest-ic { animation: vy-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes vy-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vy-chest.is-open .vy-chest-ic { animation: none; } }
.rz-diamond { flex: none; filter: drop-shadow(0 1px 3px rgba(90, 168, 255, .45)); }
.mseal-who { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; font-weight: 700; background: color-mix(in srgb, #5e5ce6 14%, transparent); }
.mseal-pair { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.mseal-pair .mseal-map { max-width: 240px; justify-self: center; }
/* the Seal's own mark: a golden double helix, breathing light (still where motion is reduced) */
.mseal-ic { width: 30px; height: 30px; flex: none; overflow: visible; filter: drop-shadow(0 0 3px rgba(217, 164, 65, .55)) drop-shadow(0 0 9px rgba(255, 214, 120, .35)); }
.mseal-ic .mseal-halo { transform-origin: 16px 16px; animation: mseal-breathe 3.6s ease-in-out infinite; }
@keyframes mseal-breathe { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: .8; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mseal-ic .mseal-halo { animation: none; opacity: .55; } }
.mseal-pic, .mseal-map { width: 100%; height: auto; border-radius: 12px; display: block; background: #232f45; }
.mseal-out > .mseal-pic { max-width: 260px; }
/* (no will-change: on a phone it made one layer the size of the whole world while moving, and ran it out of memory) */
.qm-low, .qm-tile { position: absolute; display: block; pointer-events: none; -webkit-user-drag: none; }
.qm-low { inset: 0; width: 100%; height: 100%; }
.qm-tile { opacity: 0; transition: opacity .35s ease; }
.qm-tile.is-in { opacity: 1; }
/* the way: a dotted line with a soft dark edge, golden where rank reached */
.qm-way { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qm-trail, .qm-trail-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qm-trail-halo { stroke: rgba(30, 16, 4, .28); stroke-width: calc(3.6px * var(--lab, 1) * var(--ws, 1)); }
.qm-trail { stroke: #fff4dc; stroke-width: calc(2.2px * var(--lab, 1) * var(--ws, 1)); stroke-dasharray: calc(.4px * var(--lab, 1) * var(--ws, 1)) calc(6.5px * var(--lab, 1) * var(--ws, 1)); }
.qm-trail.is-done { stroke: #ffcf4d; stroke-width: calc(2.8px * var(--lab, 1) * var(--ws, 1)); stroke-dasharray: calc(.4px * var(--lab, 1) * var(--ws, 1)) calc(5.5px * var(--lab, 1) * var(--ws, 1)); filter: drop-shadow(0 0 3px rgba(255, 190, 60, .95)); }
/* The map's names (ui.js questMap, five sets by zoom, one size on the screen at every zoom). Their fonts, each cut
   to its letters (SIL Open Font License, fonts/map-fonts-OFL.txt): the lands in Frank Ruhl Libre Black (Hebrew)
   and Cinzel (English, Roman capitals); the seas and the places in Bellefair (Hebrew) and IM Fell English italic
   (English, the letters of old sea charts). */
@font-face { font-family: 'RetzefMapLand'; src: url('/static/fonts/map-frank-hebrew.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-2010; font-display: swap; }
@font-face { font-family: 'RetzefMapLand'; src: url('/static/fonts/map-cinzel-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
@font-face { font-family: 'RetzefMapSea'; src: url('/static/fonts/map-bellefair-hebrew.woff2') format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200C-2010; font-display: swap; }
@font-face { font-family: 'RetzefMapSea'; src: url('/static/fonts/map-fell-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-display: swap; }
.qm-name { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--lab)); pointer-events: none; white-space: nowrap;
  transition: opacity .35s ease; overflow: visible; }
.qm-name.is-off { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
/* lands: engraved capitals along their shape, dark ink with a parchment halo; the larger the set, the wider spaced */
.qm-name.is-land text { font-family: 'RetzefMapLand', var(--font); font-weight: 900; fill: #2e1806; letter-spacing: .08em;
  stroke: rgba(255, 246, 222, .92); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke fill; }
.qm-name.is-land.t-world text { font-size: 34px; letter-spacing: .3em; fill: #24130a; }
.qm-name.is-land.t-realm text { font-size: 26px; letter-spacing: .2em; }
/* the kingdoms: the countries of the middle zoom, in a deep red-brown ink */
.qm-name.is-land.t-kingdom text { font-size: 22px; letter-spacing: .14em; fill: #5a1a0c; }
.qm-name.is-land.t-region text { font-size: 20px; }
.qm-name.is-land.t-local text { font-size: 15px; letter-spacing: .1em; }
.qm-name.is-crowd { opacity: 0; visibility: hidden; }
/* places: a dot and the name, in the chart hand */
.qm-name.is-place { font: 400 14px/1.1 'RetzefMapSea', var(--font); color: #3a1e08; letter-spacing: .02em;
  -webkit-text-stroke: 3.5px rgba(255, 246, 222, .92); paint-order: stroke fill; }
.qm-name.is-place.t-local { font-size: 16px; font-weight: 400; }
/* the towns (from a middle zoom) a little larger; the smallest villages, nearest of all, smaller */
.qm-name.is-place.t-town { font-size: 15px; font-weight: 700; }
.qm-name.is-place.t-village, .qm-name.is-place.t-hut { font-size: 12px; }
.qm-name.is-place.t-hut { opacity: .9; }
/* the landmarks, nearest of all: in italics, lighter, a smaller dot */
.qm-name.is-place.t-spot { font-size: 11.5px; font-style: italic; opacity: .85; }
.qm-name.is-place.t-spot::before { width: 4px; height: 4px; }
/* while the land moves, the small places' names wait (drawn again in every frame, hundreds of them weighed on a phone); they
   come back the moment the hand rests */
.qm-names.is-moving .qm-name.t-village, .qm-names.is-moving .qm-name.t-hut, .qm-names.is-moving .qm-name.t-spot { visibility: hidden; opacity: 0; transition: none; }
.qm-name.is-place::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px; vertical-align: middle; border-radius: 50%; background: #3a1e08; box-shadow: 0 0 0 2px #fff6de; -webkit-text-stroke: 0; }
/* seas: pale letters bent with the water */
.qm-name.is-sea { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--lab)); }
.qm-name.is-sea text { font-family: 'RetzefMapSea', var(--font); font-style: italic; fill: #eef8fc; letter-spacing: .12em;
  stroke: rgba(16, 52, 72, .7); stroke-width: 3px; paint-order: stroke fill; }
.qm-name.is-sea.t-world text { font-size: 34px; letter-spacing: .4em; }
/* (the seas spread wide over their water, the owner) */
.qm-name.is-sea.t-realm text { font-size: 26px; letter-spacing: .45em; }
.qm-name.is-sea.t-region text { font-size: 20px; letter-spacing: .18em; }
.qm-name.is-sea.t-local text { font-size: 15px; letter-spacing: .12em; }
.qm-name.is-sea.t-place text { font-size: 13px; }
/* the collector's isles: their name in gold, in the lands' letters; their coasts lit by vault-glow.png */
.qm-name.is-land.t-vault text { font-size: 22px; fill: #f6d27a; stroke: rgba(58, 30, 4, .85); stroke-width: 4px; letter-spacing: .14em; }
.qm-glow { position: absolute; pointer-events: none; }
/* the characters: they keep a readable size at every zoom (--inv), their names light on the land */
.qm-node { position: absolute; width: 100px; transform: translate(-50%, -50%) rotate(var(--unrot, 0deg)) scale(var(--inv)) translateX(var(--dx, 0%)); z-index: 1; }
.qm-node .av-pick { width: 100%; padding: 0; }
.qm-node .av-pic { max-width: 68px; margin-inline: auto; }
.qm-node .av-char { box-shadow: 0 0 0 3px #f3e3bf, 0 6px 14px -4px rgba(20, 10, 2, .7); }
.qm-node.is-reached .av-char { box-shadow: 0 0 0 3px #ffcf4d, 0 0 16px rgba(255, 200, 80, .75), 0 6px 14px -4px rgba(20, 10, 2, .7); }
.qm-node.is-collector .av-char { box-shadow: 0 0 0 3px #e9bb52, 0 0 22px rgba(255, 205, 90, .9), 0 6px 14px -4px rgba(20, 10, 2, .7); }
.qm-node .av-pick-n, .qm-node .av-pick-role, .qm-node .av-pick-req { color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0, 0, 0, .85); }
.qm-node .av-pick-n { font-size: 12.5px; font-weight: 800; }
.qm.is-far .qm-node .av-pick-n, .qm.is-far .qm-node .av-pick-role, .qm.is-far .qm-node .av-pick-req, .qm.is-far .qm-node .av-badge, .qm.is-far .qm-node .av-lock { display: none; }
/* where you are: a flag beside the character, and the start of the way when nothing is reached yet */
.qm-flag { position: absolute; width: 20px; height: 26px; margin: calc(-64px * var(--inv)) 0 0 calc(26px * var(--inv)); transform: rotate(var(--unrot, 0deg)) scale(var(--inv)); transform-origin: 0 100%; pointer-events: none; z-index: 2;
  background: linear-gradient(#4a2c12, #4a2c12) left top / 2.5px 100% no-repeat; }
.qm-flag::after { content: ''; position: absolute; left: 2.5px; top: 0; width: 17px; height: 12px; background: #e0352b; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: left center; animation: av-flag 1.4s ease-in-out infinite; }
@keyframes av-flag { 50% { transform: scaleX(.8) skewY(6deg); } }
.qm-start { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #ffcf4d; box-shadow: 0 0 0 4px rgba(255, 207, 77, .35), 0 0 14px #ffcf4d; transform: scale(var(--inv)); pointer-events: none; }
/* the buttons: zoom in, zoom out, back to where you are */
.qm-ctl { position: absolute; inset-inline-end: 12px; inset-block-end: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.qm-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #2a1806; cursor: pointer;
  background: rgba(255, 248, 232, .9); border: 1px solid rgba(80, 50, 20, .25); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .1s ease-out; }
.qm-btn:active { transform: scale(.93); }
/* north up: shown only while the map is turned, its needle pointing to the map's north */
.qm-north { display: none; }
.qm-north.is-on { display: grid; }
.qm-north svg { transition: transform .1s linear; color: #b3261e; }
[data-theme="dark"] .qm-btn { background: rgba(30, 24, 18, .86); color: #fbe9c4; border-color: rgba(255, 230, 180, .2); }
[data-theme="dark"] .qm-world, [data-theme="dark"] .qm-names { filter: brightness(.9); }
@media (prefers-reduced-motion: reduce) { .qm-flag::after { animation: none; } .qm-tile { transition: none; } }
/* a sheet over another: the one in front paints over everything of the one behind it */
#sheet-host > div { isolation: isolate; }

/* ---- the world map's own page (views/worldmap.js) ---- */
.wm { display: flex; flex-direction: column; gap: 10px; }
.wm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wm-title { display: flex; flex-direction: column; gap: 2px; }
.wm-h { margin: 0; font: 900 24px/1.1 'RetzefMapLand', var(--font); letter-spacing: .04em; }
.wm-head-btns { display: flex; gap: 8px; }
.wm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: relative; z-index: 5; }
.wm-search { position: relative; flex: 1 1 220px; display: flex; align-items: center; gap: 6px; padding-inline: 10px; border-radius: 12px; background: var(--surface-2, rgba(0, 0, 0, .04)); }
.wm-search-in { border: 0; background: transparent; flex: 1; min-width: 0; box-shadow: none; }
.wm-results { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: var(--surface, #fff); border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); overflow: hidden; }
.wm-result { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: start; cursor: pointer; color: inherit; }
.wm-result:hover, .wm-result:focus-visible { background: var(--surface-2, rgba(0, 0, 0, .05)); }
.wm-journey.is-on { background: #ffcf4d; color: #2a1606; }
.wm-layers { display: flex; gap: 6px; }
.wm-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line, rgba(0, 0, 0, .15)); background: none; color: inherit; font-size: 13px; cursor: pointer; opacity: .55; }
.wm-chip.is-on { opacity: 1; background: var(--surface-2, rgba(0, 0, 0, .05)); font-weight: 700; }
.wm-stage .qm { margin-inline: 0; flex: none; height: 420px; min-height: 320px; border-radius: 18px; }
.wm:fullscreen { background: var(--bg); padding: 12px; }

/* the small map */
.wm-mini-box { position: absolute; inset-inline-start: 12px; inset-block-start: 12px; z-index: 3; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 246, 222, .9); }
.wm-mini { display: block; width: 132px; height: auto; cursor: pointer; }
@media (max-width: 520px) { .wm-mini { width: 92px; } }
/* the next goal: a ring that breathes; a character found by the search flashes */
.qm-node.is-next .av-char { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e0352b, 0 6px 14px -4px rgba(20, 10, 2, .7); animation: wm-next 1.8s ease-in-out infinite; }
@keyframes wm-next { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(224, 53, 43, .35), 0 6px 14px -4px rgba(20, 10, 2, .7); } }
.qm-node.is-found .av-char { animation: wm-found 1.2s ease-out 2; }
@keyframes wm-found { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 77, .95); } 100% { box-shadow: 0 0 0 26px rgba(255, 207, 77, 0); } }
/* the layers off */
.qm.no-names .qm-name { display: none; }
.qm.no-nodes .qm-node, .qm.no-nodes .qm-flag { display: none; }
.qm.no-way .qm-way { display: none; }
/* the guide */
.wm-guide { display: flex; flex-direction: column; gap: 10px; }
.wm-g-h { margin: 8px 0 0; font-size: 15px; }
.wm-g-row { display: flex; gap: 12px; align-items: flex-start; }
.wm-g-row p { margin: 2px 0 0; }
.wm-g-sw { flex: none; width: 34px; height: 22px; border-radius: 6px; margin-top: 2px; background: #232f45; position: relative; }
.wm-g-sw.is-gold::after, .wm-g-sw.is-dots::after { content: ''; position: absolute; inset: 9px 4px; border-top: 4px dotted #ffcf4d; }
.wm-g-sw.is-dots::after { border-top-color: #fff4dc; }
.wm-g-sw.is-flag::after { content: ''; position: absolute; left: 12px; top: 4px; width: 12px; height: 8px; background: #e0352b; clip-path: polygon(0 0, 100% 50%, 0 100%); box-shadow: -2px 0 0 #4a2c12; }
.wm-g-sw.is-next { border-radius: 50%; width: 22px; margin-inline: 6px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e0352b; background: #c9b79a; }
.wm-g-sw.is-isles { background: radial-gradient(circle at 40% 50%, #e9c46a 0 30%, transparent 32%), radial-gradient(circle at 70% 40%, #e9c46a 0 18%, transparent 20%), #232f45; box-shadow: inset 0 0 8px rgba(255, 207, 77, .9); }
.wm-g-list { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .qm-node.is-next .av-char, .qm-node.is-found .av-char { animation: none; } }
/* the picker's own photo button (the administrator's): room under it, above the phone's edge */
.sheet:has(.qm) .avatar-menu > .btn { margin-block: 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important; }

/* the world map's full screen: the page itself over everything (works on an iPhone too) */
.wm.is-full { position: fixed; inset: 0; z-index: 900; background: var(--bg, #fff); padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(10px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
html.wm-full-on, html.wm-full-on body { overflow: hidden; }
html.wm-full-on .bottomnav, html.wm-full-on .topbar { visibility: hidden; }
/* A phone turned on its side: the map alone over the whole screen, edge to edge (the owner), its own buttons on it */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .wm { position: fixed; inset: 0; z-index: 900; margin: 0; padding: 0; background: #232f45; overflow: hidden; }
  .wm-head, .wm-tools { display: none; }
  .wm-stage, .wm-stage .qm { height: 100% !important; }
  .wm-stage .qm { border-radius: 0; min-height: 0; }
  /* (clear of the notch, whichever side it is on) */
  .wm-stage .qm-ctl { inset-inline-end: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .wm-mini-box { inset-inline-start: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  /* (the map on screen, not one left in a hidden pane) */
  html:has(.view:not([hidden]) .wm), html:has(.view:not([hidden]) .wm) body { overflow: hidden; }
  html:has(.view:not([hidden]) .wm) .bottomnav, html:has(.view:not([hidden]) .wm) .topbar { visibility: hidden; }
  html:has(.sheet-host:not([hidden])) .wm { z-index: 1; }
}
/* the map's one canvas (the land and the way) */
.qm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* A chat open in a sheet: scrolling inside it never scrolls the page under it (the owner); its lists keep the scroll to themselves */
html:has(.sheet-host:not([hidden]) .sc-chat), html:has(.sheet-host:not([hidden]) .sc-chat) body { overflow: hidden; overscroll-behavior: none; }
.sc-chat, .sc-chat-list, .sc-stickers, div.sc-chat-in, .sc-side-list, .cc-room-list { overscroll-behavior: contain; }

/* the academy: a habit or objective as an octave of seven notes, the gap marked */
.ac-card { margin-block-start: 12px; padding: 14px; border-radius: 16px; background: var(--surface, rgba(255, 255, 255, .06)); border: 1px solid var(--line, rgba(255, 255, 255, .1)); display: grid; gap: 10px; }
.ac-card.has-gap { border-color: rgba(255, 190, 90, .55); }
.ac-t { font-weight: 700; }
.ac-oct { display: flex; gap: 6px; direction: rtl; }
.ac-note { flex: 1; text-align: center; padding: 7px 0; border-radius: 10px; font-size: 12.5px; background: rgba(255, 255, 255, .05); color: var(--dim); }
.ac-note.is-past { background: rgba(120, 190, 140, .18); color: inherit; }
.ac-note.is-now { background: rgba(120, 170, 255, .3); color: inherit; font-weight: 700; }
.ac-note.is-gap { background: rgba(255, 190, 90, .32); }
.ac-shocks { display: grid; gap: 8px; margin-block-start: 12px; }
.ac-shock { text-align: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(255, 255, 255, .15)); background: transparent; color: inherit; font: inherit; }
.ac-shock[aria-pressed="true"] { background: rgba(120, 170, 255, .22); border-color: rgba(120, 170, 255, .6); }
.wm-hud-f { font-size: 11px; opacity: .8; }
.wm-detail { position: absolute; inset-inline-start: 12px; width: max-content; max-width: calc(100% - 190px); bottom: 150px; z-index: 4; padding: 6px 12px; border-radius: 10px; background: rgba(4, 12, 10, .5); color: #b9f5d6; font: 600 11px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; pointer-events: none; transition: opacity .4s; }
.wm-detail.is-top { bottom: auto; top: 64px; }
.wm-hud-t { display: flex; align-items: center; gap: 8px; }
/* (never squeezed by a long name beside it: a circle, not an oval) */
.wm-hud-i { pointer-events: auto; display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; min-width: 22px; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1px solid rgba(120, 220, 170, .5); background: transparent; color: inherit; }
.wm-targets:hover, .wm-targets:active, .wm-targets:focus-visible { background: rgba(14, 40, 32, .85); color: #eafff4; border-color: rgba(150, 240, 190, .7); }
.wm-targets * { color: inherit; }
.qm-angle { position: absolute; inset-block-start: 58px; inset-inline-end: 10px; z-index: 5; padding: 7px 12px; border-radius: 12px; font: 600 12.5px/1.2 system-ui, sans-serif; background: rgba(4, 12, 10, .62); color: #cfeee0; border: 1px solid rgba(120, 220, 170, .4); backdrop-filter: blur(6px); }
.qm-angle:hover, .qm-angle:active, .qm-angle:focus-visible { background: rgba(14, 40, 32, .85); color: #eafff4; border-color: rgba(150, 240, 190, .7); }
/* the targets: cards in a grid that takes one, two or three columns by the room (phone upright, phone on its side, tablet, desktop) */
.wm-tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.wm-card { display: grid; gap: 8px; align-content: start; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line, rgba(128, 128, 128, .25)); background: var(--surface-2, rgba(128, 128, 128, .08)); color: inherit; text-align: start; cursor: pointer; font: inherit; }
.wm-card:hover, .wm-card:focus-visible { border-color: var(--accent, #4a8cff); }
.wm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wm-card-h strong { font-size: 15px; }
.wm-kind { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(128, 128, 128, .16); color: var(--dim, inherit); }
.wm-dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; line-height: 1.45; }
.wm-dl dt { overflow-wrap: anywhere; color: var(--dim, rgba(128, 128, 128, .95)); }
.wm-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wm-data { display: grid; gap: 10px; }
@media (max-width: 360px) { .wm-dl { grid-template-columns: 1fr; gap: 0; } .wm-dl dd { margin-block-end: 5px; } }
@media (orientation: landscape) and (max-height: 520px) { .wm-tlist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); } .wm-card { padding: 9px 11px; } }
.ac-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-form { display: grid; gap: 10px; }
.ac-anchor ul { margin: 6px 0 0; padding-inline-start: 20px; }
.ac-sentence { font-weight: 700; margin-block-start: 10px; }

/* ---- the Numinalis courses: a full-screen library built like the streaming pages (banner, rows with names under the pictures, a numbered row) ---- */
.view:has(> .ln) { padding: 0; max-width: none; }
.ln, .ln-details { --ln-bg: #07080d; --ln-fg: #f4f5fa; --ln-dim: rgba(244, 245, 250, .7); --ln-line: rgba(255, 255, 255, .14); --ln-red: #e5484d; --ln-gold: #ffd27a; --ln-green: #6ee7a8; }
.ln { --ln-pad: clamp(14px, 4vw, 56px); position: relative; min-height: calc(100dvh - 130px); overflow-x: clip; color: var(--ln-fg); letter-spacing: -.005em; background: linear-gradient(180deg, #1d1424 0, #0d0b14 340px, var(--ln-bg) 640px); }
.ln h2, .ln h3, .ln p, .ln ol { margin: 0; }
.ln h2, .ln h3, .ln strong, .ln-details h4, .ln-details strong { color: var(--ln-fg); }
.ln button { font-family: inherit; }
.ln-view { animation: lnin .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lnin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ln-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* a picture: the sigil of rings first, the video's picture over it when it has come */
.ln-pic { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 52% 22%), hsl(calc(var(--h) + 50) 60% 8%)); }
.ln-sigil { position: absolute; inset: 0; background: radial-gradient(circle at 76% 20%, hsl(calc(var(--h) + 30) 80% 62% / .5), transparent 42%), repeating-radial-gradient(circle at 76% 20%, transparent 0 22px, hsl(var(--h) 70% 72% / .13) 22px 23px); }
.ln-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.ln-pic img.is-in { opacity: 1; }
/* the buttons */
.ln-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 26px; border-radius: 6px; border: 0; font: 700 16px/1 inherit; cursor: pointer; color: var(--ln-fg); background: rgba(109, 109, 110, .7); transition: background .15s, transform .15s; }
.ln-btn:hover, .ln-btn:focus-visible { background: rgba(109, 109, 110, .5); }
.ln-btn:active { transform: scale(.97); }
.ln-btn:disabled { opacity: .5; }
.ln-btn-main { background: #fff; color: #07080d; }
.ln-btn-main:hover, .ln-btn-main:focus-visible { background: rgba(255, 255, 255, .8); }
.ln-btn-wide { width: 100%; padding-block: 14px; }
.ln-note { font-size: 13px; color: var(--ln-dim); }
.ln-staff { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 12px var(--ln-pad) 0; }
.ln-staff .btn { height: auto; color: var(--ln-fg); border-color: var(--ln-line); background: rgba(255, 255, 255, .08); }
.ln-only-m { display: none; }
/* the two bare buttons under the main ones: a picture over its word, no ring round it */
.ln-quick { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 30px; margin-block-start: 4px; }
.ln-q { display: grid; justify-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; color: var(--ln-fg); font: 600 12.5px/1.2 inherit; cursor: pointer; transition: transform .15s, color .15s; }
.ln-q:hover, .ln-q:focus-visible { transform: scale(1.08); }
.ln-q.is-set, .ln-qs.is-set { color: var(--ln-green); }
.ln-qs { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 50%; background: none; color: var(--ln-fg); cursor: pointer; transition: transform .15s; }
.ln-qs:hover, .ln-qs:focus-visible { transform: scale(1.15); }
.ln-rate { position: relative; }
.ln-rate-pop { position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: none; gap: 2px; padding: 10px 8px; border-radius: 16px; background: #1d1f2c; box-shadow: 0 16px 44px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12); white-space: nowrap; }
.ln-rate.is-open .ln-rate-pop { display: flex; }
@media (hover: hover) and (pointer: fine) { .ln-rate:hover .ln-rate-pop { display: flex; } .ln-rate:hover::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 100%; height: 12px; } }
.ln-rate-o { display: grid; justify-items: center; gap: 7px; min-width: 66px; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ln-fg); font: 700 12px/1.1 inherit; cursor: pointer; }
.ln-rate-o:hover, .ln-rate-o:focus-visible { background: rgba(255, 255, 255, .12); }
.ln-rate-o.is-on { color: var(--ln-green); background: rgba(110, 231, 168, .14); }
/* the banner: a big screen shows the picture edge to edge, whole, with the words over its dark side */
.ln-hero { position: relative; isolation: isolate; }
.ln-hero-media { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: min(88vh, 780px); overflow: hidden; cursor: pointer; }
.ln-hero-img { z-index: 0; }
.ln-hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(7, 8, 13, .92) 0%, rgba(7, 8, 13, .6) 26%, transparent 54%), linear-gradient(to top, var(--ln-bg) 1%, transparent 38%); }
.ln-hero-in { position: absolute; z-index: 3; left: var(--ln-pad); bottom: 11%; width: min(42%, 540px); display: grid; gap: 12px; justify-items: start; direction: inherit; }
.ln-hero-in h2 { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 26px rgba(0, 0, 0, .6); }
.ln-hero-d { color: var(--ln-dim); font-size: clamp(14px, 1.35vw, 18px); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.ln-hero-b { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; font-weight: 700; color: var(--ln-fg); }
.ln-kicker span + span::before { content: '•'; margin-inline: 9px; opacity: .55; }
.ln-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 14px; font-weight: 600; color: var(--ln-dim); }
.ln-meta > span + span::before { content: '•'; margin-inline: 12px; opacity: .55; }
.ln-meta-p { color: var(--ln-green); }
/* a course page: the round button back, over the banner's corner */
.ln-top { position: absolute; z-index: 8; top: 12px; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 14px; pointer-events: none; }
.ln-top > * { pointer-events: auto; }
.ln-top .ln-staff { padding: 0; }
.ln-round { order: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(40, 40, 46, .72); backdrop-filter: blur(8px); color: #fff; cursor: pointer; }
.ln-hero-course { padding-block-start: 0; }
/* the rows */
.ln-bar-w { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 10px var(--ln-pad) 0; }
.ln-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ln-needs-t { font-weight: 800; font-size: 15px; margin-inline-end: 4px; }
.ln-need { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ln-line); background: rgba(255, 255, 255, .07); color: var(--ln-fg); font: 700 13.5px/1 inherit; cursor: pointer; transition: background .15s, color .15s; }
.ln-need:hover { background: rgba(255, 255, 255, .16); }
.ln-need.is-on { background: #fff; color: #07080d; border-color: #fff; }
.ln-search { width: min(100%, 260px); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ln-line); background: rgba(255, 255, 255, .07); color: var(--ln-fg); font: inherit; font-size: 14px; }
.ln-search::placeholder { color: var(--ln-dim); }
.ln-empty { padding: 20px var(--ln-pad); color: var(--ln-dim); }
.ln-rows { position: relative; z-index: 3; display: grid; gap: clamp(2px, 1vw, 12px); padding-block: 8px 48px; }
.ln-row { display: grid; gap: 0; }
.ln-row-t { display: flex; align-items: center; gap: 8px; padding-inline: var(--ln-pad); font-size: clamp(17px, 1.9vw, 22px); font-weight: 700; }
.ln-row-t svg { color: var(--ln-green); }
.ln-row-w { position: relative; }
.ln-track { display: flex; gap: clamp(8px, 1vw, 12px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 30px var(--ln-pad) 22px; margin-block: -16px -6px; scroll-padding-inline: var(--ln-pad); }
.ln-track::-webkit-scrollbar { display: none; }
.ln-card { flex: none; width: clamp(150px, 42vw, 230px); display: grid; gap: 8px; align-content: start; text-align: start; cursor: pointer; scroll-snap-align: start; color: var(--ln-fg); }
.ln-card-img { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #111; isolation: isolate; transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease; }
.ln-card-t { display: grid; gap: 1px; padding-inline: 2px; }
.ln-card-t strong { font-size: 14px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-card-t span { font-size: 12px; color: var(--ln-dim); }
.ln-lock { position: absolute; z-index: 3; inset-block-start: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .6); }
.ln-resume { position: absolute; z-index: 3; inset: 0; margin: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45); }
.ln-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.ln-card-img > .ln-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; border-radius: 0; }
.ln-bar > span { display: block; height: 100%; background: var(--ln-red); }
.ln-pop { position: absolute; inset: 0; z-index: 3; display: none; align-content: end; gap: 6px; padding: 10px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .92) 25%, rgba(0, 0, 0, .25)); opacity: 0; transition: opacity .2s; }
.ln-pop-a { display: flex; align-items: center; gap: 4px; }
.ln-pop-a .ln-qs-r { margin-inline-start: auto; }
.ln-pop-b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #07080d; margin-inline-end: 4px; }
.ln-pop-d { font-size: 12px; line-height: 1.4; color: var(--ln-dim); }
.ln-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ln-card:hover .ln-card-img, .ln-card:focus-visible .ln-card-img { transform: scale(1.035); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); z-index: 5; }
  .ln-card:hover .ln-pop, .ln-card:focus-visible .ln-pop { display: grid; opacity: 1; }
  .ln-card { width: clamp(220px, 19vw, 320px); }
  .ln-arrow { position: absolute; top: 14px; bottom: 54px; z-index: 6; width: clamp(34px, 3.4vw, 56px); display: grid; place-items: center; border: 0; color: #fff; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; cursor: pointer; }
  .ln-row-w:hover .ln-arrow { opacity: 1; }
  .ln-arrow-prev { inset-inline-start: 0; }
  .ln-arrow-next { inset-inline-end: 0; }
}
/* the leading courses: a large outlined number beside each card */
.ln-rank { flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; }
.ln-rank b { z-index: 0; margin-inline-end: -14px; font-size: clamp(110px, 24vw, 190px); font-weight: 800; line-height: .76; letter-spacing: -.06em; color: #0c0d14; -webkit-text-stroke: 3px rgba(255, 255, 255, .55); }
.ln-rank .ln-card { position: relative; z-index: 1; width: clamp(130px, 34vw, 200px); }
@media (hover: hover) and (pointer: fine) { .ln-rank .ln-card { width: clamp(190px, 16vw, 260px); } }
/* a course: its lessons, as on the streaming series pages: the picture beside the name, the words under */
.ln-eps-w { padding: 22px var(--ln-pad) 48px; max-width: 980px; }
.ln-side-t { font-size: clamp(18px, 2vw, 22px); font-weight: 700; padding-block-end: 10px; margin-block-end: 14px; border-block-end: 3px solid var(--ln-red); width: max-content; }
.ln-eps { list-style: none; padding: 0; display: grid; gap: 16px; }
.ln-ep { position: relative; display: grid; gap: 8px; }
.ln-ep.is-on { background: rgba(255, 255, 255, .07); border-radius: 12px; outline: 1px solid rgba(255, 255, 255, .22); outline-offset: 6px; }
.ln-ep-b { display: flex; align-items: center; gap: clamp(12px, 2vw, 18px); width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start; cursor: pointer; }
.ln-ep-b:disabled { cursor: default; }
.ln-ep.is-locked .ln-ep-th, .ln-ep.is-locked .ln-ep-t, .ln-ep.is-locked .ln-ep-d { opacity: .5; }
.ln-ep-th { position: relative; flex: none; width: clamp(130px, 36vw, 220px); aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.ln-ep-th i { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45); }
.ln-ep.is-done .ln-ep-th i { background: #2f9e6b; border-color: #2f9e6b; }
.ln-ep-t { display: grid; gap: 4px; min-width: 0; }
.ln-ep-t strong { font-size: clamp(14.5px, 1.5vw, 17px); line-height: 1.35; font-weight: 700; }
.ln-ep-m { font-size: 12.5px; font-weight: 600; color: var(--ln-dim); }
.ln-ep-d { font-size: 13.5px; line-height: 1.55; color: var(--ln-dim); }
.ln-ep-staff { display: flex; gap: 6px; }
.ln-ep-staff .btn { color: var(--ln-fg); border-color: var(--ln-line); background: rgba(255, 255, 255, .08); }
/* the cinema */
.ln-cinema { display: grid; gap: 22px; padding-block-start: 66px; }
.ln-cinema-main { display: grid; gap: 16px; align-content: start; min-width: 0; padding-inline: var(--ln-pad); }
.ln-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.ln-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ln-stage-b { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.ln-stage-t { display: grid; gap: 2px; }
.ln-stage-t strong { font-size: clamp(16px, 2vw, 20px); }
.ln-stage-a { display: flex; align-items: center; gap: 14px; }
.ln-info { display: grid; gap: 10px; justify-items: start; }
.ln-info h2 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.ln-cinema .ln-eps-w { padding-inline: var(--ln-pad); max-width: none; }
.ln-note-in { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ln-line); background: rgba(255, 255, 255, .06); color: var(--ln-fg); font: inherit; font-size: 14px; resize: vertical; }
.ln-note-in::placeholder { color: var(--ln-dim); }
/* the journey of days: a ring of beads */
.ln-journey { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(16px, 4vw, 40px); margin: 14px var(--ln-pad) 6px; padding: clamp(16px, 3vw, 28px); border-radius: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--ln-line); position: relative; z-index: 3; }
.ln-ring { position: relative; width: clamp(150px, 24vw, 210px); aspect-ratio: 1; }
.ln-bead { position: absolute; width: 8.5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .14); transition: background .4s, box-shadow .4s; }
.ln-bead.is-on { background: var(--ln-gold); box-shadow: 0 0 12px rgba(255, 210, 122, .75); }
.ln-bead.is-today { animation: lnbd 2.6s ease-in-out infinite; }
@keyframes lnbd { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.5); } }
.ln-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ln-ring-c strong { font-size: clamp(36px, 6vw, 54px); line-height: 1; font-weight: 800; }
.ln-ring-c span { font-size: 12.5px; color: var(--ln-dim); }
.ln-journey-t { display: grid; gap: 8px; }
.ln-journey-t h3 { font-size: clamp(19px, 2.4vw, 26px); }
.ln-journey-t p { color: var(--ln-dim); line-height: 1.6; }
.ln-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 190, 90, .1); border: 1px solid rgba(255, 190, 90, .4); font-size: 14px; line-height: 1.5; }
/* the details (a dark sheet of its own) */
.ln-details { display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: #0b0d14; color: var(--ln-fg); }
.ln-details h4 { margin: 0; }
.ln-d-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.ln-d-desc, .ln-about-p { color: var(--ln-dim); line-height: 1.75; font-size: 15px; margin: 0; }
.ln-about-p strong { color: var(--ln-fg); }
.ln-d-h { font-size: 17px; margin-block-start: 6px; }
.ln-d-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; color: var(--ln-dim); }
/* while the page loads */
.ln-skel { display: grid; gap: 20px; }
.ln-skel-hero { aspect-ratio: 16 / 9; max-height: 60vh; background: linear-gradient(100deg, #10121b 30%, #1a1d2a 50%, #10121b 70%); background-size: 200% 100%; animation: lnsk 1.4s linear infinite; }
.ln-skel-row { display: flex; gap: 10px; padding-inline: var(--ln-pad); overflow: hidden; }
.ln-skel-row i { flex: none; width: clamp(150px, 21vw, 300px); aspect-ratio: 16 / 9; border-radius: 9px; background: linear-gradient(100deg, #10121b 30%, #1a1d2a 50%, #10121b 70%); background-size: 200% 100%; animation: lnsk 1.4s linear infinite; }
@keyframes lnsk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ln-view, .ln-skel-hero, .ln-skel-row i, .ln-bead.is-today { animation: none; } .ln-card-img { transition: none; } }
/* a tablet and up: the cinema beside its lessons */
@media (min-width: 1100px) { .ln-cinema { grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr); align-items: start; } .ln-cinema .ln-eps-w { padding-inline-start: 0; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; scrollbar-width: thin; } .ln-cinema-main { padding-inline-end: 0; } .ln-cinema .ln-ep-th { width: 150px; } }
@media (min-width: 900px) { .ln { min-height: 100dvh; } }
/* a phone: the picture as a rounded card, the line of its kinds, two pills side by side (as the streaming apps do) */
@media (max-width: 899px) {
  .ln-hero { padding-block-start: 56px; }
  .ln-hero-media { width: auto; margin-inline: 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2); max-height: none; }
  .ln-hero-fade { display: none; }
  .ln-hero-in { position: static; width: auto; padding: 14px 14px 4px; justify-items: center; text-align: center; gap: 12px; }
  .ln-kicker { justify-content: center; }
  .ln-hide-m { display: none !important; }
  .ln-only-m { display: inline-flex; }
  .ln-hero-b { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .ln-hero-b .ln-btn { border-radius: 999px; padding: 14px 10px; font-size: 15px; }
  .ln-hero-b:has(> :first-child:nth-last-child(1)) { grid-template-columns: 1fr; }
  .ln-journey { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ln-needs-t { width: 100%; }
  .ln-search { width: 100%; }
  .ln-top { top: 62px; }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) { .ln-hero-media { width: min(calc(100% - 28px), calc((100dvh - 150px) * 16 / 9)); margin-inline: auto; } .ln-hero { padding-block-start: 12px; } .ln-top { top: 14px; } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) { body[data-view="learn"] .bottomnav { display: none; } .ln { min-height: calc(100dvh - 62px); } }
/* the catalogue: topics as chips on top, a compact banner, tiles to explore by topic */
.ln-chips { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px; padding: 12px var(--ln-pad) 10px; background: linear-gradient(180deg, rgba(20, 14, 28, .96), rgba(20, 14, 28, .72) 78%, transparent); backdrop-filter: blur(10px); }
.ln-chips-in { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ln-chips-in::-webkit-scrollbar { display: none; }
.ln-chip { flex: none; padding: 9px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: var(--ln-fg); font: 700 14px/1 inherit; cursor: pointer; transition: background .15s, color .15s; }
.ln-chip:hover { background: rgba(255, 255, 255, .2); }
.ln-chip.is-on { background: #fff; color: #07080d; border-color: #fff; }
.ln-chips .ln-search { flex: none; width: clamp(110px, 20vw, 240px); padding: 9px 14px; }
.ln-hero-media { max-height: min(72vh, 680px); }
.ln-track.is-tiles { padding-block: 22px; margin-block: -8px -4px; }
.ln-tile { position: relative; flex: none; width: clamp(150px, 38vw, 230px); aspect-ratio: 16 / 9; display: grid; align-content: end; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; overflow: hidden; color: var(--ln-fg); text-align: start; cursor: pointer; background: linear-gradient(150deg, hsl(var(--h) 52% 26%), hsl(calc(var(--h) + 50) 60% 10%)); scroll-snap-align: start; transition: transform .2s; isolation: isolate; }
.ln-tile .ln-sigil { z-index: -1; }
.ln-tile strong { font-size: 16px; }
.ln-tile span { font-size: 12px; color: var(--ln-dim); }
.ln-tile.is-soon { opacity: .85; border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .ln-tile:hover { transform: scale(1.03); } .ln-tile { width: clamp(180px, 15vw, 250px); } }
@media (max-width: 899px) { .ln-hero { padding-block-start: 8px; } .ln-top { top: 62px; } }
.ln-top.is-flow { position: relative; top: auto; padding-block: 12px 0; } .ln-top.is-flow + .ln-cinema { padding-block-start: 10px; }

/* ---- round two: a turquoise that deepens toward the bottom (the whole screen, no white bar), numbers at the left of their pictures, arrows on both sides, modules ---- */

.view:has(> .ln) { min-height: 100dvh; background: #08707c; }
.ln { min-height: 100dvh; background: radial-gradient(110% 38% at 20% 0, rgba(58, 98, 200, .30), transparent 64%), radial-gradient(100% 34% at 100% 100%, rgba(20, 200, 210, .22), transparent 66%), linear-gradient(180deg, #0f2250 0, #0c3560 18%, #0a4a68 40%, #095c70 64%, #08707c 100%); }
.ln-chips { background: linear-gradient(180deg, rgba(15, 34, 80, .94), rgba(15, 34, 80, .62) 78%, transparent); }
.ln-journey { background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.ln-details { background: #0a3a58; }
/* the leading courses: each number at the left of its picture, standing on the picture's bottom edge but a little lower */
.ln-rank { --rw: clamp(130px, 34vw, 200px); display: flex; align-items: flex-start; direction: ltr; scroll-snap-align: start; }
html[dir="rtl"] .ln-rank .ln-card { direction: rtl; }
.ln-rank .ln-card { width: var(--rw); }
.ln-rank b { flex: none; height: calc(var(--rw) * 9 / 16); display: flex; align-items: flex-end; margin-inline-end: -12px; padding-bottom: 0; transform: translateY(10px); font-size: clamp(100px, 22vw, 170px); line-height: .74; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 3px rgba(255, 255, 255, .6); z-index: 0; }
@media (hover: hover) and (pointer: fine) { .ln-rank { --rw: clamp(190px, 16vw, 260px); } }
/* arrows on both sides of every sliding row (a mouse); a finger slides them anywhere */
@media (hover: hover) and (pointer: fine) {
  .ln-arrow { opacity: .78; background: rgba(4, 18, 24, .55); backdrop-filter: blur(4px); }
  .ln-arrow:hover { opacity: 1; background: rgba(4, 18, 24, .85); }
  .ln-arrow-prev { inset-inline-start: 0; border-radius: 0 10px 10px 0; }
  .ln-arrow-next { inset-inline-end: 0; border-radius: 10px 0 0 10px; }
  [dir="rtl"] .ln-arrow-prev { border-radius: 10px 0 0 10px; }
  [dir="rtl"] .ln-arrow-next { border-radius: 0 10px 10px 0; }
  .ln-chips-w .ln-arrow { top: 0; bottom: 0; width: 34px; }
}
.ln-track, .ln-chips-in { touch-action: pan-x pan-y; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ln-chips-w { position: relative; flex: 1; min-width: 0; }
.ln-chips-w .ln-chips-in { padding-inline: 2px; }
.ln-chips { flex-wrap: wrap; }
@media (max-width: 899px) { .ln-chips .ln-search { flex: 1 1 100%; width: 100%; min-width: 0; box-sizing: border-box; } }
/* the round button back, over the corner of the picture; the owner's buttons on a row of their own */
.ln-top { position: relative; top: auto; inset-inline: auto; padding: 10px 14px 0; justify-content: flex-start; pointer-events: auto; min-height: 0; }
.ln-top.is-flow { padding-block: 10px 0; }
.ln-round { position: absolute; top: 12px; left: 14px; z-index: 9; order: 0; }
@media (max-width: 899px) { .ln-top { top: auto; } .ln-hero-course { margin-block-start: 0; } }
.ln-top:empty { padding: 0; }
/* the modules of a course (the seasons of a series): a chooser, and the count of what is in it */
.ln-side-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block-end: 16px; }
.ln-modsel { appearance: none; -webkit-appearance: none; padding: 11px 42px 11px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--ln-fg); font: 700 16px/1 inherit; cursor: pointer; max-width: 70%; }
[dir="rtl"] .ln-modsel { padding: 11px 18px 11px 42px; background-position: left 16px center; }
.ln-modsel option { color: #111; }
.ln-side-c { font-size: 13.5px; font-weight: 600; color: var(--ln-dim); }
.ln-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
/* topic tiles with their pictures */
.ln-tile { background: #0a2a32; }
.ln-tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.ln-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 16, 22, .9), rgba(4, 16, 22, .15) 70%); }
.ln-tile .ln-sigil { z-index: -3; }
/* the top row of topics: no box, no band over the background, it scrolls away with the page */
.ln-chips { position: relative; top: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }

/* ---- round three: rows that really slide, the picture whole, a dark background, light arrows, a small journey, the module list, the details window ---- */
/* the cause of the rows that would not slide: a grid column grew to its widest row. Now every row is as wide as the screen and slides inside it. */
.ln-rows { grid-template-columns: minmax(0, 1fr); }
.ln-row, .ln-row-w, .ln-track { min-width: 0; max-width: 100%; }
.ln, .ln-view { min-width: 0; }
/* the picture whole: no cut at the top and the bottom */
.ln-hero-media { max-height: none; }
/* the background: deep navy, going down to a deep turquoise */
html:has(body[data-view="learn"]), body[data-view="learn"], .view:has(> .ln) { background: #07505c; }
.ln { background: radial-gradient(90% 30% at 12% 0, rgba(36, 70, 160, .26), transparent 70%), radial-gradient(80% 32% at 100% 100%, rgba(18, 180, 190, .22), transparent 70%), linear-gradient(180deg, #040714 0, #061633 26%, #072a45 56%, #07414f 84%, #07505c 100%); }
.ln-details, .ln-sheet { background: #06182e; }
/* the arrows: light, clearer when the mouse is on them, dim at an end, absent where nothing slides */
.ln-arrow[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .ln-arrow { opacity: .4; background: rgba(4, 10, 20, .22); backdrop-filter: none; transition: opacity .2s, background .2s; }
  .ln-row-w:hover .ln-arrow { opacity: .5; }
  .ln-arrow:hover { opacity: .95; background: rgba(4, 10, 20, .5); }
  .ln-row-w:hover .ln-arrow.is-end, .ln-arrow.is-end { opacity: .12; pointer-events: none; }
}
/* the journey of days: small, on any screen */
.ln-journey { grid-template-columns: auto 1fr; gap: clamp(14px, 3vw, 28px); margin: 12px var(--ln-pad) 4px; padding: clamp(12px, 2vw, 18px); border-radius: 18px; max-width: 720px; }
.ln-ring { width: clamp(96px, 13vw, 128px); }
.ln-bead { width: 9%; }
.ln-ring-c strong { font-size: clamp(24px, 3.4vw, 34px); }
.ln-ring-c span { font-size: 10.5px; }
.ln-journey-t { gap: 5px; }
.ln-journey-t h3 { font-size: clamp(16px, 1.8vw, 19px); }
.ln-journey-t p { font-size: 13.5px; line-height: 1.5; }
.ln-gap { padding: 9px 11px; font-size: 13px; }
@media (max-width: 699px) { .ln-journey { grid-template-columns: auto 1fr; text-align: start; justify-items: stretch; } .ln-ring { width: 92px; } }
/* the module list: a button, and a list that opens under it */
.ln-mod { position: relative; z-index: 12; }
.ln-mod-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); color: var(--ln-fg); font: 700 15.5px/1 inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.ln-mod-btn:hover, .ln-mod-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.ln-mod-btn svg { opacity: .8; transition: transform .2s; }
.ln-mod-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ln-mod-list { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); min-width: 240px; max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: rgba(8, 24, 44, .97); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); animation: lnin .18s ease both; }
.ln-mod-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.ln-mod-list li:hover { background: rgba(255, 255, 255, .1); }
.ln-mod-list li.is-on { background: rgba(110, 231, 168, .14); }
.ln-mod-list li strong { font-size: 14.5px; }
.ln-mod-list li span { font-size: 12px; color: var(--ln-dim); }
.ln-side-h { margin-block-end: 14px; }
/* the details window: its own full background, the picture and the buttons beside the words on a big screen */
.sheet.ln-sheet { background: linear-gradient(180deg, #05102a 0, #06182e 40%, #07414f 100%); color: var(--ln-fg, #f4f5fa); border: 1px solid rgba(255, 255, 255, .12); max-width: min(1080px, 96vw) !important; }
.sheet.ln-sheet .sheet-head { background: transparent; border-block-end: 1px solid rgba(255, 255, 255, .1); }
.sheet.ln-sheet .sheet-head h2 { color: #f4f5fa; }
.sheet.ln-sheet .sheet-head .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.sheet.ln-sheet .sheet-body { background: transparent; }
.sheet.ln-sheet .sheet-grab::before, .sheet.ln-sheet .sheet-grab { background: transparent; }
.ln-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 6px 4px 18px; border-radius: 0; background: transparent; }
.ln-d-side { display: grid; gap: 14px; align-content: start; }
.ln-d-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 860px) { .ln-details { grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr); gap: 32px; align-items: start; } .ln-d-side { position: sticky; top: 0; } }
@media (max-width: 859px) { .sheet.ln-sheet { border-radius: 20px 20px 0 0; } }
.ln-round { top: 10px; left: 14px; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(6px); transition: background .15s; }
.ln-round:hover { background: rgba(255, 255, 255, .22); }
.ln-top { padding-top: 10px; }
.ln-top .ln-staff .btn { min-height: 32px; }

.ln-pic.is-wait { background: #0a1a2e; }
.ln-pic.is-wait .ln-sigil { display: none; }
/* documents (PDF) beside a lesson */
.ln-docs { display: flex; flex-wrap: wrap; gap: 8px; padding-block-start: 10px; }
.ln-doc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--ln-fg); font-size: 14px; font-weight: 700; text-decoration: none; }
.ln-doc:hover { background: rgba(255, 255, 255, .16); }
.ln-doc em { font-style: normal; font-weight: 600; color: var(--ln-dim); font-size: 12px; }
.ln-docs-form { display: grid; gap: 6px; }
/* a course document drawn as pictures, one under the other, scrolled inside its window */
.ln-pdf-pages { --z: 1; max-height: 78vh; max-height: 78dvh; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: 12px; touch-action: pan-x pan-y; }
.ln-pdf-page { display: block; flex: none; width: calc(100% * var(--z)); max-width: none; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.ln-zoom { min-width: 40px; font-size: 18px; font-weight: 800; }
.ln-pdf-wait { text-align: center; padding: 40px 0; }
.ln-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ln-lbl { font-size: 13px; color: var(--text-2, #666); }
/* the close button: on the end side of the page (the left in Hebrew, the right in English), and its X exactly in the middle */
.ln-round { left: auto; inset-inline-end: 14px; inset-inline-start: auto; display: grid; place-items: center; padding: 0; line-height: 0; }
.ln-round svg { display: block; width: 18px; height: 18px; margin: 0; }
/* the closed doorway (not a subscriber): a tilted wall of pictures behind a short invitation */
.ln-door { position: relative; min-height: 100vh; overflow: hidden; display: grid; align-items: center; isolation: isolate; border-radius: 0; }
.ln-wall { position: absolute; inset: -25% -15%; z-index: -2; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; transform: perspective(1600px) rotateX(14deg) rotateZ(-12deg) scale(1.15); transform-origin: 60% 40%; opacity: .78; }
.ln-wall-col { display: grid; gap: 12px; align-content: start; }
.ln-wall-col:nth-child(even) { transform: translateY(-9%); }
.ln-wall-col:nth-child(3n) { transform: translateY(-17%); }
.ln-wall-col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #0b2a40; display: block; }
.ln-door-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(4, 7, 20, .92) 0, rgba(4, 7, 20, .55) 55%, rgba(4, 7, 20, .25) 100%), linear-gradient(to top, #07414f 0, transparent 38%), linear-gradient(to bottom, rgba(4, 7, 20, .7) 0, transparent 30%); }
html[dir="rtl"] .ln-door-shade { background: linear-gradient(to left, rgba(4, 7, 20, .92) 0, rgba(4, 7, 20, .55) 55%, rgba(4, 7, 20, .25) 100%), linear-gradient(to top, #07414f 0, transparent 38%), linear-gradient(to bottom, rgba(4, 7, 20, .7) 0, transparent 30%); }
.ln-door-in { display: grid; gap: 14px; justify-items: start; max-width: 720px; padding: clamp(28px, 6vw, 80px) clamp(18px, 5vw, 72px); color: #fff; }
.ln-door-brand { font-weight: 800; letter-spacing: .14em; font-size: clamp(14px, 1.6vw, 18px); color: #6fe3d6; }
.ln-door-in h1 { margin: 0; font-size: clamp(30px, 5.6vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.ln-door-in p { margin: 0; font-size: clamp(16px, 1.9vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.ln-door-in .ln-door-sub { font-size: clamp(18px, 2.3vw, 26px); font-weight: 700; color: #fff; }
.ln-door-btn { margin-block-start: 8px; padding: 14px 28px; font-size: clamp(16px, 1.8vw, 20px); gap: 10px; }
@media (max-width: 699px), (orientation: portrait) and (max-width: 1000px) {
  .ln-door { min-height: calc(100vh - 150px); align-items: end; }
  .ln-wall { grid-template-columns: repeat(4, 1fr); inset: -12% -30% 20% -30%; gap: 8px; opacity: .7; }
  .ln-wall-col { gap: 8px; }
  .ln-wall-col:nth-child(n+5) { display: none; }
  .ln-door-shade { background: linear-gradient(to top, #07414f 0, rgba(4, 7, 20, .88) 45%, rgba(4, 7, 20, .2) 100%) !important; }
  .ln-door-in { justify-items: center; text-align: center; padding-block-end: 44px; }
}
/* embed codes */
.ln-embed { display: block; width: 100%; height: 160px; border: 0; background: transparent; margin: 18px 0 0; max-width: 1100px; }
.ln-emb { display: grid; gap: 12px; }
.ln-emb-row { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border, rgba(128, 128, 128, .3)); }
.ln-emb-t { display: grid; gap: 2px; }
.ln-emb-w { font-size: 12.5px; opacity: .7; }
.ln-emb-a { display: flex; gap: 8px; }
.ln-pick { display: flex; align-items: center; gap: 10px; font-size: 14px; }
/* the 12-week navigation plan */
.ac-plan { display: grid; gap: 12px; margin-block-start: 22px; }
.ac-plan h3 { margin: 0; }
.ac-weeks { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-wk { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border, rgba(128,128,128,.35)); background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.ac-wk.is-now { border-color: var(--accent, #14b8a6); }
.ac-wk.is-on { background: var(--accent, #14b8a6); color: #fff; border-color: transparent; }
.ac-acts { display: grid; gap: 10px; }
.ac-act { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border, rgba(128,128,128,.3)); }
.ac-act-t { font-weight: 700; }
.ac-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ac-day { display: grid; place-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--border, rgba(128,128,128,.35)); background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.ac-day.is-on { background: var(--accent, #14b8a6); color: #fff; border-color: transparent; }
.ac-add { display: flex; gap: 8px; }
.ac-add .input { flex: 1; }
.ac-effort { font-size: 13px; color: var(--accent, #0f9d8f); margin: 0; }

/* the area for an embed code: looks and behaves like a code editor (left to right, fixed-width letters, no wrapping) */
.ln-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px; line-height: 1.55; direction: ltr; text-align: left; white-space: pre; overflow: auto; tab-size: 2; min-height: 180px; background: #0b1220 !important; color: #d6e4ff !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 10px; padding: 12px 14px; resize: vertical; }
.ln-code::placeholder { color: #6b7a99; }
.ln-codehint { font-size: 12.5px; line-height: 1.5; opacity: .75; margin: 0; }

.ln-door-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.ln-door-btns .ln-door-btn { margin: 0; }
/* the courses part of the shop */
.shop-courses { display: grid; gap: 14px; }
.shop-course { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border, rgba(128,128,128,.3)); background: var(--surface, rgba(128,128,128,.08)); }
.shop-course-img { width: 100%; height: 100%; min-height: 150px; object-fit: contain; background: #0a1a2e; display: block; }
.shop-course-b { display: grid; gap: 8px; padding: 14px; align-content: start; }
.shop-course-b p { margin: 0; }
.shop-course-p { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.shop-sale { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e11d48; color: #fff; }
@media (max-width: 560px) { .shop-course { grid-template-columns: 1fr; } .shop-course-img { max-height: 190px; } }
/* desktop and tablet: the top of the big picture melts into the page. The picture turns transparent at its very top (so there is no edge at all and the page's own background shows exactly), and the part that is still seen is darkened by the page's deep blue and clears gradually (so a white picture does not go milky). A short band, no extra height, nothing over the words on the picture. */
@media (min-width: 700px) {
  .ln-hero-media { -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 2%, rgba(0,0,0,0.28) 4%, rgba(0,0,0,0.5) 6%, rgba(0,0,0,0.72) 8%, rgba(0,0,0,0.88) 10%, rgba(0,0,0,0.96) 12%, rgba(0,0,0,1) 14%); mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 2%, rgba(0,0,0,0.28) 4%, rgba(0,0,0,0.5) 6%, rgba(0,0,0,0.72) 8%, rgba(0,0,0,0.88) 10%, rgba(0,0,0,0.96) 12%, rgba(0,0,0,1) 14%); }
  .ln-hero-media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(4, 9, 26, 0.9) 0%, rgba(4, 9, 26, 0.8) 3%, rgba(4, 9, 26, 0.62) 6%, rgba(4, 9, 26, 0.42) 9%, rgba(4, 9, 26, 0.24) 12%, rgba(4, 9, 26, 0.1) 15%, rgba(4, 9, 26, 0.03) 18%, rgba(4, 9, 26, 0) 20%); }
}

/* the words on the big picture: lifted off it with a soft dark glow of their own (the picture stays whole and visible) */
@media (min-width: 700px) {
  .ln-hero-in { isolation: isolate; }
  .ln-hero-in::before { content: ''; position: absolute; inset: -34px -44px -26px -44px; z-index: -1; pointer-events: none; border-radius: 48px; background: radial-gradient(ellipse at 50% 52%, rgba(3, 6, 18, .74) 0%, rgba(3, 6, 18, .5) 50%, rgba(3, 6, 18, .18) 74%, transparent 100%); filter: blur(12px); }
  .ln-hero-in h2, .ln-hero-in h1 { text-shadow: 0 2px 3px rgba(0, 0, 0, .85), 0 0 26px rgba(0, 0, 0, .7); letter-spacing: -.01em; }
  .ln-hero-in .ln-hero-d { color: rgba(255, 255, 255, .96); font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 20px rgba(0, 0, 0, .85); }
  .ln-hero-in .ln-kicker span, .ln-hero-in .ln-meta span { text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .8); }
}
/* the wall of the closed doorway: pictures lie wide (16:9), never cut to a narrow strip */
.ln-wall { grid-template-columns: repeat(5, 1fr); }
.ln-wall-col img { aspect-ratio: 16 / 9; }
@media (max-width: 699px), (orientation: portrait) and (max-width: 1000px) { .ln-wall { grid-template-columns: repeat(3, 1fr); } .ln-wall-col:nth-child(n+4) { display: none; } }
/* disclaimer and tests */
.ln-disc { display: grid; gap: 14px; }
.ln-disc-text { white-space: pre-wrap; line-height: 1.7; font-size: 15px; max-height: 46vh; overflow: auto; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.ln-disc-ok { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.ln-disc-ok input { width: 22px; height: 22px; accent-color: #14b8a6; flex: none; }
.ln-quiz { display: grid; gap: 14px; }
.ln-quiz-meta { margin: 0; font-size: 13px; opacity: .8; }
.ln-q-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.ln-q-card.is-ok { border-color: rgba(52, 211, 153, .7); }
.ln-q-card.is-bad { border-color: rgba(248, 113, 113, .75); }
.ln-q-opts { display: grid; gap: 8px; }
.ln-q-opt { text-align: start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.ln-q-opt:hover { background: rgba(255, 255, 255, .12); }
.ln-q-opt.is-on { background: rgba(20, 184, 166, .28); border-color: #2dd4bf; font-weight: 700; }
.ln-q-r { margin: 0; font-size: 14px; opacity: .9; }
.ln-quiz-res { display: grid; justify-items: center; gap: 4px; padding: 20px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .07); }
.ln-quiz-res b { font-size: 64px; line-height: 1; }
.ln-quiz-res.is-pass b { color: #34d399; }
.ln-quiz-res.is-fail b { color: #f87171; }
.ln-quiz-res em { font-style: normal; font-size: 13px; opacity: .8; }
.ln-quiz-tile { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ln-quiz-tile:hover { background: rgba(255, 255, 255, .12); }
.ln-quiz-tile i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(20, 184, 166, .3); flex: none; }
.ln-quiz-t { display: grid; gap: 2px; }
.ln-ep-quiz { list-style: none; display: grid; gap: 6px; margin-block-start: 10px; }
.ln-qf-list { display: grid; gap: 14px; }
.ln-qf-card { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(128, 128, 128, .35); }
.ln-res { width: 100%; border-collapse: collapse; font-size: 14px; }
.ln-res th, .ln-res td { padding: 8px 10px; text-align: start; border-bottom: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }
.ln-res th { font-size: 12px; opacity: .75; }
/* the accessibility menu and what it switches */
.rz-a11y { position: fixed; z-index: 9000; inset-inline-start: 12px; inset-block-end: calc(86px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; background: #0a58ca; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); cursor: pointer; padding: 0; }
.rz-a11y:focus-visible, .a11y-opt:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
@media (min-width: 900px) { .rz-a11y { inset-block-end: 18px; } }
.a11y-menu { display: grid; gap: 10px; }
.a11y-size { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-weight: 700; }
.a11y-size .btn { min-width: 48px; font-size: 18px; }
.a11y-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line, rgba(128, 128, 128, .4)); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.a11y-opt.is-on { background: #0a58ca; color: #fff; border-color: #0a58ca; }
.a11y-opt i { font-style: normal; font-weight: 800; }
.a11y-links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
html.a11y-size-1 body { zoom: 1.12; } html.a11y-size-2 body { zoom: 1.24; } html.a11y-size-3 body { zoom: 1.36; }
html.a11y-contrast { filter: contrast(1.35) saturate(1.1); }
html.a11y-links a, html.a11y-links button, html.a11y-links [role="button"], html.a11y-links summary { text-decoration: underline !important; outline: 2px solid #ffbf00 !important; outline-offset: 1px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, 'Segoe UI', Helvetica, sans-serif !important; letter-spacing: .02em !important; line-height: 1.65 !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'><path d='M3 2l7.5 19 2.6-7.6L21 10.8z' fill='black' stroke='white' stroke-width='1.6'/></svg>") 2 2, auto !important; }
/* the notice about outside services */
.rz-consent { position: fixed; z-index: 9500; inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; padding: 16px 18px; display: grid; gap: 10px; border-radius: 16px; background: #0b1b2f; color: #f4f5fa; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.rz-consent p { margin: 0; font-size: 14px; line-height: 1.6; opacity: .92; }
.rz-consent-b { display: flex; flex-wrap: wrap; gap: 8px; }
.ln-consent-ph { display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; min-height: 220px; background: #07142a; color: #f4f5fa; }
.ln-consent-ph p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.6; opacity: .9; }
@media (min-width: 900px) { .rz-a11y { inset-inline-start: auto; inset-inline-end: 18px; } }

/* the cookie notice: a small corner card with a checklist (the necessary one always on, the outside services only when ticked) */
.rz-consent { inset-inline: auto; inset-inline-start: 12px; max-width: 360px; padding: 12px 14px; gap: 8px; border-radius: 14px; font-size: 12.5px; }
.rz-consent strong { font-size: 13.5px; }
.rz-consent p { font-size: 12px; line-height: 1.5; }
@media (max-width: 520px) { .rz-consent { inset-inline-end: 12px; max-width: none; } }
.rz-ck { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.rz-ck input { width: 20px; height: 20px; margin-block-start: 1px; accent-color: #14b8a6; flex: none; }
.rz-ck span { display: grid; gap: 1px; }
.rz-ck b { font-size: 13px; }
.rz-ck small { font-size: 11.5px; opacity: .8; line-height: 1.4; }
.rz-ck.is-locked { cursor: default; opacity: .9; }
.rz-consent .rz-consent-b { gap: 6px; }
.ln-wall.is-narrow { display: none; }
@media (max-width: 699px), (orientation: portrait) and (max-width: 1000px) { .ln-wall.is-wide { display: none; } .ln-wall.is-narrow { display: grid; } }

/* the plans screen: the two tabs, and the Numinalis+ page in the look of numinalis.com/numinalis-plus */
.pp-tabs { display: flex; gap: 6px; padding: 4px; margin: 0 auto 16px; max-width: 420px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.pp-tab { flex: 1; padding: 10px 14px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.pp-tab.is-on { background: #0a58ca; color: #fff; }
.nx { --nx-accent: #4aa8ff; --nx-accent2: #7cc4ff; --nx-text: #f0f4fa; --nx-muted: #9aa7bd; position: relative; overflow: hidden; border-radius: 22px; padding: clamp(20px, 4vw, 40px) clamp(14px, 3vw, 32px) 40px; background: linear-gradient(180deg, #123058 0, #112a4f 120px, #0f2447 300px, #0d1f3c 520px, #0b1930 780px, #091425 1100px, #071227 55%, #040b1a 100%); color: var(--nx-text); line-height: 1.5; }
.nx[hidden] { display: none; }
.nx::before { content: ''; position: absolute; top: -260px; inset-inline: -20%; height: 700px; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(60, 130, 255, .22) 0, rgba(40, 90, 200, .1) 40%, transparent 72%); filter: blur(40px); pointer-events: none; }
.nx > * { position: relative; }
.nx-hero { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.nx-logo { width: min(340px, 70vw); margin: 0 auto; display: block; }
.nx-sub { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.6; color: #d3ddef; margin: -56px 0 12px; position: relative; }
.nx-herodesc { font-size: 15px; line-height: 1.85; color: var(--nx-muted); margin: 0; }
.nx-notice { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 0 auto 30px; padding: 16px 18px; border: 1px solid rgba(4, 131, 238, .3); border-radius: 12px; background: linear-gradient(180deg, rgba(4, 131, 238, .1), rgba(4, 131, 238, .02)); }
.nx-notemark { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(4, 131, 238, .45); color: var(--nx-accent); display: grid; place-items: center; font-size: 18px; }
.nx-notice strong { display: block; font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.nx-notice p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #b6c3d8; }
.nx-billing { display: grid; justify-items: center; gap: 10px; margin-bottom: 30px; }
.nx-switch { position: relative; display: flex; padding: 5px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .06); }
.nx-knob { position: absolute; top: 5px; bottom: 5px; width: calc(50% - 5px); inset-inline-start: 5px; border-radius: 999px; background: linear-gradient(180deg, #0483ee, #0063e5); transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
.nx-switch.is-year .nx-knob { transform: translateX(100%); }
html[dir="rtl"] .nx-switch.is-year .nx-knob { transform: translateX(-100%); }
.nx-switch button { position: relative; z-index: 1; flex: 1; border: 0; background: none; color: #93a1b8; font: inherit; font-weight: 600; font-size: 14.5px; padding: 10px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nx-switch button.is-on { color: #fff; }
.nx-billnote { font-size: 13px; color: var(--nx-muted); }
.nx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.nx-card { position: relative; display: flex; flex-direction: column; padding: 30px 24px 24px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: linear-gradient(180deg, #152b4f, #0d1a33); box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .9); }
.nx-card.is-pro { border-color: rgba(124, 196, 255, .5); background: linear-gradient(180deg, #1a3671 0%, #12244a 55%, #0d1a33 100%); box-shadow: 0 34px 80px -34px rgba(20, 90, 220, .75); }
.nx-badge { position: absolute; top: -12px; inset-inline-start: 24px; padding: 4px 14px; border-radius: 999px; background: linear-gradient(180deg, #0483ee, #0063e5); color: #fff; font-size: 12px; font-weight: 700; }
.nx-tier { font-size: 26px; font-weight: 700; letter-spacing: .01em; margin-bottom: 6px; }
.nx-tag { font-size: 14.5px; color: var(--nx-accent); margin-bottom: 12px; }
.nx-card.is-pro .nx-tag { color: var(--nx-accent2); }
.nx-desc { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--nx-muted); }
.nx-price { display: flex; align-items: baseline; gap: 6px; padding-bottom: 18px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nx-price b { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.nx-cur { font-size: 22px; color: var(--nx-accent); }
.nx-per { font-size: 14px; color: var(--nx-muted); }
.nx-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; }
.nx-feats li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.55; color: #c3cfe4; }
.nx-card.is-pro .nx-feats li { color: #dbe6f7; }
.nx-feats li.is-off { color: #5c6880; }
.nx-mark { flex: none; color: var(--nx-accent); }
.nx-feats li.is-off .nx-mark { color: #3f4a61; }
.nx-cta { margin-top: auto; display: block; text-align: center; padding: 14px 18px; border: 1px solid rgba(124, 196, 255, .55); border-radius: 6px; color: var(--nx-text); background: transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .25s, border-color .25s; }
.nx-cta:hover { background: rgba(4, 131, 238, .18); border-color: var(--nx-accent); }
/* cancelling the subscription: a quiet link under the status, and a window in the middle of the screen whose height never
   changes (the "other" box keeps its room while hidden; the list scrolls inside if the screen is short) */
.pl-cancel { display: block; margin: 6px auto 14px; padding: 6px 10px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cx-shade { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.cx-box { display: flex; flex-direction: column; width: min(440px, 100%); height: min(600px, calc(100dvh - 32px)); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.cx-title { margin: 0; padding: 20px 20px 6px; font-size: 20px; font-weight: 800; }
.cx-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 8px; }
.cx-body p { margin: 0 0 10px; line-height: 1.6; }
.cx-sub { margin-top: 12px !important; font-weight: 700; }
.cx-reasons { display: grid; gap: 4px; }
.cx-reason { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 15px; cursor: pointer; }
.cx-reason input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.cx-otherrow { position: relative; visibility: hidden; margin: 2px 0 4px; }
.cx-otherrow.is-on { visibility: visible; }
.cx-other { display: block; width: 100%; height: 64px; resize: none; box-sizing: border-box; padding: 8px 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, transparent); color: var(--text); font: inherit; font-size: 14px; }
.cx-count { position: absolute; inset-inline-end: 10px; bottom: 4px; font-size: 11px; color: var(--text-3); }
.cx-foot { display: grid; gap: 8px; padding: 12px 20px 20px; border-top: 1px solid var(--line); }
.cx-go { background: transparent; color: var(--danger, #d33); border: 1px solid currentColor; }
/* the free days of a plan: a quiet second way under the join button */
.nx-trial { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--nx-accent, #33ddff); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nx-trial:hover { color: var(--nx-text); }
.nx-cta.is-primary { border-color: #0483ee; background: linear-gradient(180deg, #0483ee, #0063e5); color: #fff; }
.nx-sec { margin-top: 54px; }
.nx-sec h3 { text-align: center; font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 26px; }
.nx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.nx-panel { padding: 22px 20px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); }
.nx-panel h4, .nx-termsgrid h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #fff; }
.nx-panel p, .nx-termsgrid p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--nx-muted); }
.nx-terms { padding: 28px 22px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(255, 255, 255, .045); }
.nx-terms h3 { text-align: start; }
.nx-termsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.nx-faq { display: grid; gap: 8px; max-width: 820px; margin: 0 auto; }
.nx-q { border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.nx-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.nx-q summary::-webkit-details-marker { display: none; }
.nx-q[open] summary svg { transform: rotate(180deg); }
.nx-q p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; line-height: 1.8; color: #b6c3d8; }
.nx-wait { text-align: center; padding: 30px 18px; border-radius: 14px; border: 1px solid rgba(124, 196, 255, .3); background: linear-gradient(180deg, rgba(4, 131, 238, .12), rgba(4, 131, 238, .03)); }
.nx-wait p { margin: 0; color: #b6c3d8; line-height: 1.75; }
.nx-cta.is-closed { opacity: .55; cursor: default; }
.nx-cta.is-closed:hover { background: transparent; border-color: rgba(124, 196, 255, .55); }

/* the fonts of the Numinalis+ page (Heebo and Outfit, SIL Open Font License), kept with the app */
@font-face { font-family: 'NxHeebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/static/fonts/nx-heebo-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'NxHeebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/static/fonts/nx-heebo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'NxOutfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/fonts/nx-outfit-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.nx { font-family: 'NxHeebo', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.nx-tier, .nx-price b, .nx-cur, .nx-panel h4, .nx-termsgrid h4, .nx-sec h3 { font-family: 'NxOutfit', 'NxHeebo', system-ui, sans-serif; }

.nx-nowsub { text-align: center; margin: -14px auto 20px; max-width: 560px; color: var(--nx-muted); font-size: 14.5px; line-height: 1.7; }
.nx-nowcard { max-width: 460px; margin-inline: auto; }
.nx-now .pp-card { box-shadow: 0 30px 70px -34px rgba(20, 90, 220, .7); }

/* the plans screen: the deep-blue page on the whole screen, with the two small brands on top */
html:has(body[data-view="plans"]), body[data-view="plans"] { background: #040b1a; }
.view:has(> .pl-page) { background: linear-gradient(180deg, #123058 0, #112a4f 120px, #0f2447 300px, #0d1f3c 520px, #0b1930 780px, #091425 1100px, #071227 60%, #040b1a 100%); }
.pl-page .nx { background: transparent; border-radius: 0; padding-inline: 0; overflow: visible; }
.pl-page .nx::before { inset-inline: -40%; }
.pl-page .pl-note, .pl-page .pl-chars { color: #9aa7bd; }
.nx-brand { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 14px; color: #dbe6f7; font-size: 13px; letter-spacing: .06em; }
.nx-brand b { font-size: 15px; letter-spacing: 0; color: #fff; }
.nx-brand i { width: 1px; height: 16px; background: rgba(255, 255, 255, .35); }
.nx-brand span { font-weight: 700; letter-spacing: .18em; color: #7cc4ff; font-size: 12px; }
.nx-brand img { border-radius: 6px; }
.nx-brand-plus { height: 30px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.nx-sub { margin-top: 0; }
body[data-view="plans"] .shell, body[data-view="plans"] .main, body[data-view="plans"] .view-stack, body[data-view="plans"] .view { background: linear-gradient(180deg, #123058 0, #112a4f 120px, #0f2447 300px, #0d1f3c 520px, #0b1930 780px, #091425 1100px, #071227 60%, #040b1a 100%) fixed !important; }
body[data-view="plans"] .shell, body[data-view="plans"] .main, body[data-view="plans"] .view-stack { background: #071227 !important; }
body[data-view="plans"] .view { background: linear-gradient(180deg, #123058 0, #112a4f 160px, #0f2447 380px, #0d1f3c 640px, #0a1830 960px, #071227 1400px, #040b1a 100%) !important; min-height: 100%; }

body[data-view="plans"]::before { display: none; }
.nx-logo { display: none; }
.nx-brand-plus { height: 40px; max-width: 170px; }

.pl-page.pp::before, .pl-page::before { display: none !important; }

.nx-brand-plus { height: 58px; max-width: 220px; }
.nx-brand { gap: 14px; padding-block: 2px 10px; }

.nx-feats li.nx-head { padding: 14px 0 4px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; color: var(--nx-accent2); border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 6px; }
.nx-feats li.nx-head:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.nx-brand img:not(.nx-brand-plus) { width: 34px; height: 34px; }
.nx-brand b { font-size: 21px; }
.nx-brand-plus { height: 84px; max-width: 300px; }
.nx-brand { gap: 18px; }
body[data-view="plans"] .shell, body[data-view="plans"] .main, body[data-view="plans"] .view-stack, body[data-view="plans"] .view-stack > .view { background-color: #040b1a !important; }
body[data-view="plans"] .view { background: linear-gradient(180deg, #123058 0, #112a4f 160px, #0f2447 380px, #0d1f3c 640px, #0a1830 960px, #071227 1400px, #040b1a 2200px) !important; background-color: #040b1a !important; min-height: 100%; }
.nx-brand-plus { height: 108px; max-width: 360px; }
.nx-feats.is-short { max-height: 17.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.nx-more { align-self: center; margin: -6px 0 16px; padding: 8px 18px; border: 1px solid rgba(124, 196, 255, .4); border-radius: 999px; background: transparent; color: var(--nx-accent2); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.nx-more:hover { background: rgba(4, 131, 238, .16); }
.nx-brand-plus { transform: translateY(-9px); }

.nx-brand-plus { transform: translateY(-1px); }

.nx-brand i { position: relative; left: -2px; }

.nx-brand i { left: -4px; }

.nx-brand i { left: -5px; }

.nx-brand i { left: -6px; }

html.a11y-btn-off .rz-a11y { display: none; }

/* the closed doorway, fitted to one screen: the wall of pictures covers the whole area (no bare edges), nothing needs scrolling */
.ln-door { height: calc(100dvh - 150px); min-height: 0; max-height: 100dvh; }
.ln-wall { inset: -35% -30%; gap: 10px; }
.ln-wall.is-wide { grid-template-columns: repeat(7, 1fr); }
.ln-wall.is-narrow { grid-template-columns: repeat(4, 1fr); inset: -30% -35%; gap: 8px; }
.ln-wall .ln-wall-col { display: grid !important; }
.ln-door-in { max-width: min(640px, 100%); gap: clamp(8px, 1.6vh, 14px); padding: clamp(16px, 4vh, 64px) clamp(16px, 5vw, 64px); }
.ln-door-in h1 { font-size: clamp(24px, min(5.6vw, 6vh), 60px); }
.ln-door-in p { font-size: clamp(14px, min(1.9vw, 2.4vh), 20px); }
.ln-door-in .ln-door-sub { font-size: clamp(16px, min(2.3vw, 2.9vh), 24px); }
.ln-door-btn { padding: clamp(10px, 1.8vh, 14px) clamp(18px, 3vw, 28px); font-size: clamp(15px, min(1.8vw, 2.4vh), 19px); }
@media (max-width: 699px), (orientation: portrait) and (max-width: 1000px) {
  .ln-door { align-items: center; }
  .ln-door-shade { background: linear-gradient(to top, rgba(4, 7, 20, .9) 0, rgba(4, 7, 20, .78) 55%, rgba(4, 7, 20, .45) 100%) !important; }
  .ln-door-in { padding-block: clamp(16px, 3vh, 40px); justify-items: center; text-align: center; max-width: 560px; margin-inline: auto; }
  .ln-door-btns { justify-content: center; }
}
/* a phone on its side: little height, so a compact line of words and buttons */
@media (max-height: 520px) and (orientation: landscape) {
  .ln-door { height: calc(100dvh - 76px); }
  .ln-door-brand { display: none; }
  .ln-door-in { gap: 6px; padding-block: 10px; }
  .ln-door-in h1 { font-size: clamp(20px, 5.5vh, 30px); }
  .ln-door-in p { font-size: 13px; line-height: 1.35; }
  .ln-door-in .ln-door-sub { font-size: 15px; }
  .ln-door-btn { margin-block-start: 2px; padding: 8px 18px; font-size: 14px; }
}
/* no bare strip under the courses page: the page's own background runs to the very bottom (desktop), and down to the tab bar (phone) */
body[data-view="learn"] .main { padding-block-end: 0; }
body[data-view="learn"] .ln { padding-block-end: var(--s6); }
.ln:has(> .ln-door), .ln:has(.ln-door) { padding-block-end: 0; }
@media (max-width: 899px) { body[data-view="learn"] .ln { padding-block-end: calc(var(--bottom-h) + var(--s4)); } .ln:has(.ln-door) { padding-block-end: 0; } }
.ln-door { height: 100dvh; }
@media (max-width: 899px) { .ln-door { height: calc(100dvh - 62px - var(--bottom-h)); } }
@media (max-height: 520px) and (orientation: landscape) { .ln-door { height: calc(100dvh - 62px); } }
.ln-door-shade { background: linear-gradient(to right, rgba(4, 7, 20, .92) 0, rgba(4, 7, 20, .55) 55%, rgba(4, 7, 20, .25) 100%), linear-gradient(to bottom, rgba(4, 7, 20, .6) 0, transparent 26%) ; }
html[dir="rtl"] .ln-door-shade { background: linear-gradient(to left, rgba(4, 7, 20, .92) 0, rgba(4, 7, 20, .55) 55%, rgba(4, 7, 20, .25) 100%), linear-gradient(to bottom, rgba(4, 7, 20, .6) 0, transparent 26%); }/* the closed doorway is exactly one screen: the page itself does not scroll */
/* Only the doorway on screen: screens are built ahead and kept in hidden panes, so a rule on the whole page that asks only whether the doorway exists stopped every screen from scrolling. */
html:has(.view:not([hidden]) .ln-door), html:has(.view:not([hidden]) .ln-door) body { overflow: hidden; height: 100dvh; }/* a denser wall: smaller pictures, so many of them (all of the owner's) are in view; on the phone the words sit low and the pictures fill the top */
.ln-wall { inset: -22% -18%; transform: perspective(1600px) rotateX(10deg) rotateZ(-10deg) scale(1.05); }
.ln-wall.is-wide { grid-template-columns: repeat(9, 1fr); }
.ln-wall.is-narrow { grid-template-columns: repeat(5, 1fr); inset: -18% -22%; }
@media (max-width: 699px), (orientation: portrait) and (max-width: 1000px) {
  .ln-door { align-items: end; }
  .ln-door-in { padding-block-end: clamp(14px, 3vh, 32px); }
}/* a phone on its side: the brand name stays above the words, just smaller */
@media (max-height: 520px) and (orientation: landscape) { .ln-door-brand { display: block; font-size: 12px; } .ln-door-in { gap: 4px; } }@media (max-height: 520px) and (orientation: landscape) { .ln-door-brand { font-size: 16px; font-weight: 800; letter-spacing: .12em; color: #6fe3d6; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); } }
/* the rest timer: big enough to read from the floor, docked right above the tab bar, and the page keeps room for it (it never covers the words) */
#gx-rest.gx-rest { padding: 14px 16px; border-radius: 22px; max-width: 640px; }
#gx-rest .gx-rest-dial { width: 112px; height: 112px; }
#gx-rest .gx-rest-dial .gx-rest-clock { font-size: 2.1rem; font-weight: 800; }
#gx-rest .gx-rest-what { font-size: .95rem; }
#gx-rest .gx-rest-next { font-size: 1.15rem; white-space: normal; }
#gx-rest .gx-rest-btn { min-width: 58px; height: 52px; font-size: 1.1rem; border-radius: 14px; }
html.gx-resting .main { padding-block-end: calc(var(--bottom-h) + var(--gx-rest-h, 0px) + var(--s5)); }
@media (min-width: 900px) { html.gx-resting .main { padding-block-end: calc(var(--gx-rest-h, 0px) + var(--s7)); } }
/* the profile: three tabs joined in one capsule, the links as chips, the wishlist */
.pf-tabs { display: flex; padding: 4px; margin: 4px 0 14px; border-radius: 16px; background: color-mix(in srgb, var(--text) 8%, transparent); gap: 0; }
.pf-tab { flex: 1; min-width: 0; padding: 10px 6px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .18s, color .18s, box-shadow .18s; }
.pf-tab[aria-selected="true"] { background: var(--surface, #fff); box-shadow: 0 1px 6px rgba(0, 0, 0, .14); color: var(--accent-text, var(--accent)); }
.pf-pane[hidden] { display: none; }
.pf-pane { display: grid; gap: 14px; }
.pc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pc-line); color: var(--pc-ink2); text-decoration: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-link:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.pf-link-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; margin-block-start: 8px; }
@media (max-width: 520px) { .pf-link-row { grid-template-columns: 1fr; } }
.pf-wish { display: grid; gap: 12px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px 10px; }
.wl-pick, .wl-one { display: grid; gap: 6px; justify-items: center; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.wl-pic { position: relative; width: 72px; height: 72px; border-radius: 50%; display: block; overflow: visible; }
.wl-pic .av-char, .wl-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.wl-n { font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.wl-pick .wl-pic { outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .15s; }
.wl-pick:hover .wl-pic { transform: scale(1.04); }
.wl-pick.is-on .wl-pic { outline-color: #e0457b; }
.wl-heart { position: absolute; inset-block-end: -2px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface, #fff); color: color-mix(in srgb, var(--text) 45%, transparent); box-shadow: 0 1px 5px rgba(0, 0, 0, .3); transition: background .15s, color .15s; }
.wl-pick.is-on .wl-heart { background: #e0457b; color: #fff; }
.wl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.wl-row .wl-one { width: 78px; }
.wl-row .wl-pic { width: 64px; height: 64px; }
/* the page of someone who opens a profile: the whole bio, the links and the wishlist */
.prs-about { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); text-align: start; }
.prs-bio { margin: 0; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.prs-about .pc-links { margin: 0; }
.prs-about .pc-link { color: inherit; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.prs-wish { display: grid; gap: 6px; }
.prs-wish h4 { margin: 0; font-size: 13px; opacity: .75; }

/* the profile on every width: fields fill their row, the tabs and the characters wrap and stay comfortable to touch */
.pf-link-row > * { min-width: 0; width: 100%; }
.pf-link-row .input, .pf-link-row input { width: 100%; box-sizing: border-box; }
.pf-tabs { position: sticky; top: 8px; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pf-tab { min-height: 44px; }
.pf-pane > .card { margin: 0; }
@media (max-width: 380px) { .pf-tab { font-size: 13px; padding-inline: 2px; } .wl-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } .wl-pic { width: 64px; height: 64px; } }
@media (min-width: 900px) {
  .pf-tabs { max-width: 560px; margin-inline: auto; }
  .wl-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
  .wl-pic { width: 84px; height: 84px; }
  .pf-link-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.wl-pick:focus-visible, .wl-one:focus-visible, .pf-tab:focus-visible, .pc-link:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.wl-pick:active .wl-pic, .wl-one:active .wl-pic { transform: scale(.96); }
.pc-link { min-height: 32px; }

/* the wishlist: a heart on a shop card, and the list on the profile (only what was marked in the shop) */
.shop-card { position: relative; }
.shop-wish { position: absolute; z-index: 3; inset-block-start: 8px; inset-inline-start: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 12, 24, .62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .28); cursor: pointer; transition: background .15s, transform .15s; }
.shop-wish:hover { transform: scale(1.08); }
.shop-wish.is-on { background: #e0457b; border-color: transparent; }
.shop-wish:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.wl-cell { position: relative; display: grid; justify-items: center; }
.wl-rm { position: absolute; inset-block-start: 0; inset-inline-end: calc(50% - 44px); padding: 0; border: 0; background: none; cursor: pointer; }
.wl-cell .wl-heart { position: static; background: #e0457b; color: #fff; }
.wl-empty { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; margin: 0; font-size: 13.5px; line-height: 1.55; opacity: .85; }

/* the links: the editor right under the bio field, and on the card (and on a visitor's page) a line under the bio, as part of it */
.pf-links { display: grid; gap: 8px; margin-block: 6px 12px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.pf-links-h { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.pf-links .pf-hint { margin: 0; }
.pf-link-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; padding: 0 0 8px; border-block-end: 1px dashed color-mix(in srgb, var(--text) 14%, transparent); }
.pf-link-row:last-child { border-block-end: 0; padding-block-end: 0; }
@media (min-width: 640px) { .pf-link-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; } }
.pc-links { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 4px 0 0; }
.pc-top .pc-links { justify-content: flex-start; }
.pc-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none; font-size: 14px; color: var(--pc-link, var(--accent-text, #2f6bff)); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-link:hover { background: none; text-decoration-thickness: 2px; }
.prs-about { gap: 4px; }
.prs-about .pc-link { color: var(--accent-text, #2f6bff); border: 0; }
.prs-about .prs-wish { margin-block-start: 8px; }

/* the wishlist heart: Instagram's, with no box — a white outline, and a red one that pops when it is liked */
.ig-heart { display: inline-grid; place-items: center; width: var(--hs, 26px); height: var(--hs, 26px); }
.ig-heart svg { grid-area: 1 / 1; width: 100%; height: 100%; overflow: visible; }
.ig-heart .ig-out { fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .65)); transition: opacity .12s; }
.ig-heart .ig-fill { fill: #ff3040; opacity: 0; transform: scale(.4); transform-origin: 50% 55%; transition: opacity .1s; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.ig-heart.is-on .ig-out { opacity: 0; }
.ig-heart.is-on .ig-fill { opacity: 1; transform: none; }
.ig-heart.pop .ig-fill { animation: igpop .5s cubic-bezier(.2, .8, .3, 1); }
@keyframes igpop { 0% { transform: scale(.2); } 30% { transform: scale(1.4); } 55% { transform: scale(.9); } 78% { transform: scale(1.08); } 100% { transform: scale(1); } }
:root[data-motion="reduced"] .ig-heart.pop .ig-fill { animation: none; }
@media (prefers-reduced-motion: reduce) { .ig-heart.pop .ig-fill { animation: none; } }
.shop-wish { background: none !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; width: 40px; height: 40px; inset-block-start: 4px; inset-inline-start: 4px; }
.shop-wish:hover { transform: none; }
.shop-wish:active .ig-heart { transform: scale(.88); }
.wl-rm { inset-inline-end: calc(50% - 46px); inset-block-start: -2px; filter: none; }
.wl-cell .wl-heart { display: none; }
.pf-link-row .input, .pf-link-row input { max-width: none; width: 100%; }

/* the wishlist heart inside a character's card */
.av-wish { display: inline-flex; align-items: center; gap: 8px; margin: 2px auto 4px; padding: 4px 8px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.av-wish:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.av-wish:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.av-wish .ig-heart { --hs: 26px; }
.av-wish .ig-out { fill: currentColor; filter: none; }
.av-wish .ig-fill { filter: none; }

.pf-link-row[hidden], .pf-link-add[hidden] { display: none; }
.pf-link-add { justify-self: start; gap: 6px; }

/* the heart as Instagram does it: the red heart is simply there (no growing from nothing); a like pops it once (bigger, a little under, settles), and an unlike swaps back at once */
.ig-heart .ig-fill { transform: none; transition: none; }
.ig-heart .ig-out { transition: none; }
.ig-heart.pop .ig-fill { animation: igpop .42s cubic-bezier(.25, .9, .35, 1.2) both; }
@keyframes igpop { 0% { transform: scale(.75); } 38% { transform: scale(1.28); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
/* in the character's card: just the heart, in its top corner */
.av-info { position: relative; }
.av-wish { position: absolute; z-index: 3; inset-block-start: 6px; inset-inline-start: 6px; display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; }
.av-wish:hover { background: none; }
.av-wish:active .ig-heart { transform: scale(.9); }
.av-wish .ig-out { fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); }
.av-wish .ig-fill { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }

/* on the card's own (light or dark) page the outline is Instagram's dark one, and white on dark */
.av-wish { color: var(--text, #262626); }
.av-wish .ig-out { fill: currentColor; filter: none; }

/* a smaller heart, set in the card's corner opposite the lock, clear of the picture */
.av-wish { inset-block-start: 10px; inset-inline-start: auto; inset-inline-end: 12px; width: 38px; height: 38px; }
.av-wish .ig-heart { --hs: 22px; }

.pf-panes { display: grid; gap: 14px; min-width: 0; }

/* the cover of the map's page while everything loads */
.qm-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; background: #04060d; color: #cfe0ff; transition: opacity .5s ease; }
.qm-loading.is-done { opacity: 0; pointer-events: none; }
.qm-loading-t { font-size: 15px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.qm-loading-ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(160, 190, 255, .25); border-top-color: #8fb5ff; animation: qmspin .9s linear infinite; }
@keyframes qmspin { to { transform: rotate(360deg); } }
:root[data-motion="reduced"] .qm-loading-ring { animation: none; }

/* the targets and data buttons while the page is full screen: a note instead */
.wm-targets.is-off, .wm-hud-i.is-off { opacity: .85; cursor: not-allowed; }
.wm-hud-note { font-size: 11.5px; font-weight: 600; opacity: .85; white-space: nowrap; }

/* a card with long texts (the asteroid belt): each title over its text, so nothing is squeezed into a narrow column */
.wm-dl.is-stack { grid-template-columns: 1fr; gap: 0; }
.wm-dl.is-stack dt { font-size: 12px; margin-block-start: 8px; }
.wm-dl.is-stack dd { font-weight: 500; font-size: 13.5px; line-height: 1.55; }
.wm-dl.is-stack dt:first-child { margin-block-start: 0; }

/* the chat bubble switch in the flock and privacy settings: room round the switch and its words, and under the notes */
.sp-bubble { padding: 4px 18px; }
.sp-bubble .setting { padding-inline: 0; }
.sp-bubble-note { margin: 10px 4px 0; padding-block-end: 22px; line-height: 1.6; }

/* ---- the courses' live chat (heyy.io, learnchat.js): hidden everywhere but the courses it was picked for (its place comes from the style in its code, learnchat.js) ---- */
body:not([data-lc-chat="on"]) [class*="heyy"], body:not([data-lc-chat="on"]) [id*="heyy"], body:not([data-lc-chat="on"]) iframe[src*="heyy.io"] { display: none !important; }
.ln-pick { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.ln-pick[hidden] { display: none; }

/* ---- code boxes with colours (ui.js codeArea): the coloured text sits under a transparent textarea of the very same box ---- */
.ln-codewrap { position: relative; background: #0b1220; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; overflow: hidden; }
.ln-codewrap .ln-code { display: block; width: 100%; box-sizing: border-box; position: relative; z-index: 1; background: transparent !important; color: transparent !important; caret-color: #d6e4ff; border: 0 !important; border-radius: 0; margin: 0; }
.ln-codewrap .ln-code::selection { background: rgba(10, 132, 255, .38); color: transparent; }
.ln-codepre { position: absolute; inset: 0; margin: 0; overflow: hidden; pointer-events: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; direction: ltr; text-align: left; white-space: pre; tab-size: 2; padding: 12px 14px; color: #d4d4d4; box-sizing: border-box; }
.ln-codepre code { font: inherit; }
.tk-c { color: #6a9955; } .tk-s { color: #ce9178; } .tk-t { color: #569cd6; } .tk-p { color: #808080; } .tk-n { color: #b5cea8; } .tk-k { color: #c586c0; } .tk-f { color: #dcdcaa; } .tk-a { color: #9cdcfe; } .tk-v { color: #9cdcfe; }


/* a long number on the Path ("17 מיליארד") is written smaller, to fit its place */
/* (a long number stays on ONE line at the size of its neighbours: the columns give it room, and today-scene.js narrows the type only when it still does not fit) */
.pz-stat strong.is-long { direction: rtl; white-space: nowrap; text-align: center; line-height: 1.05; }
.pz-stats.has-long .pz-stat { padding-inline: clamp(6px, 2.4vw, 16px); }
.pz-stats.has-long .pz-stat span { max-width: 104px; }

/* ---- Path panels: what the character gives (its skill) and the daily circle. A glass panel with a soft light in its corner, a glowing mark, a pill button of its own (the main one lit, the others quiet). Colours come from the theme, so it reads in day and in night. ---- */
.pz .card.st-nudge, .pz .cy-card { --pn-a: #f6d365; --pn-b: #e6a817; --pn-ink: #3b2800; --pn-glow: 230, 168, 23;
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; border-radius: 22px; border: 1px solid color-mix(in srgb, rgb(var(--pn-glow)) 34%, var(--line, transparent));
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--pn-glow), .17), transparent 62%), color-mix(in srgb, var(--pz-glass, var(--surface)) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 16px 36px -22px rgba(var(--pn-glow), .75), inset 0 1px 0 rgba(255, 255, 255, .28); color: var(--text); }
.pz .cy-card { --pn-a: #5eead4; --pn-b: #2f8bff; --pn-ink: #ffffff; --pn-glow: 47, 182, 201; }
.pz .card.st-nudge.is-dark { --pn-a: #c4a1ff; --pn-b: #8b3fe0; --pn-ink: #ffffff; --pn-glow: 168, 85, 247; color: var(--text);
  background: radial-gradient(120% 90% at 100% 0%, rgba(168, 85, 247, .30), transparent 62%), color-mix(in srgb, #140726 82%, transparent); color: #f3e8ff; box-shadow: 0 16px 36px -20px rgba(168, 85, 247, .8), inset 0 1px 0 rgba(255, 255, 255, .12); }
.pz .st-nudge.is-dark .small, .pz .st-nudge.is-dark strong { color: #f3e8ff; }
.pz .st-nudge-h, .pz .cy-head { display: flex; align-items: center; gap: 10px; margin: 0; }
.pz .st-nudge-h strong, .pz .cy-h { font-size: 15px; font-weight: 760; letter-spacing: -.01em; color: var(--text); margin: 0; }
.pz .st-nudge-ic, .pz .cy-ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--pn-ink);
  background: linear-gradient(145deg, var(--pn-a), var(--pn-b)); box-shadow: 0 6px 16px -6px rgba(var(--pn-glow), .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pz .st-nudge p, .pz .st-nudge .small { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.pz .st-nudge-list { margin: 2px 0 0; padding-inline-start: 20px; color: var(--text-2); }
/* the fields of a panel */
.pz .st-nudge .input, .pz .st-nudge .textarea, .pz .cy-card .input, .pz .cy-card .textarea { border-radius: 14px; border: 1px solid color-mix(in srgb, rgb(var(--pn-glow)) 30%, var(--line, transparent)); background: color-mix(in srgb, var(--surface) 72%, transparent); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); transition: border-color .2s, box-shadow .2s; }
.pz .st-nudge .input:focus, .pz .st-nudge .textarea:focus, .pz .cy-card .input:focus, .pz .cy-card .textarea:focus { outline: 0; border-color: rgb(var(--pn-glow)); box-shadow: 0 0 0 4px rgba(var(--pn-glow), .22); }
/* the buttons: the main one lit, the others quiet */
.pz .st-nudge .btn, .pz .cy-card .btn { border-radius: 999px; padding-inline: 18px; font-weight: 700; border: 1px solid color-mix(in srgb, rgb(var(--pn-glow)) 45%, transparent); background: transparent; color: var(--text); box-shadow: none; transition: transform .15s, box-shadow .2s, background .2s; }
.pz .st-nudge.is-dark .btn { color: #f3e8ff; }
.pz .st-nudge .btn:active, .pz .cy-card .btn:active { transform: scale(.96); }
.pz .st-nudge .btn-primary, .pz .st-nudge .st-pact-btn, .pz .cy-card .btn-primary { border-color: transparent; color: var(--pn-ink); background: linear-gradient(145deg, var(--pn-a), var(--pn-b)); box-shadow: 0 10px 22px -10px rgba(var(--pn-glow), .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.pz .st-nudge .btn-primary:hover, .pz .st-nudge .st-pact-btn:hover, .pz .cy-card .btn-primary:hover { box-shadow: 0 14px 26px -10px rgba(var(--pn-glow), 1), inset 0 1px 0 rgba(255, 255, 255, .5); transform: translateY(-1px); }
/* the circle itself */
.pz .cy-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); margin-block-end: 6px; }
.pz .cy-intent q { display: block; font-size: 18px; font-weight: 620; line-height: 1.5; quotes: none; color: var(--text); text-wrap: pretty; }
.pz .cy-intent q::before { content: '“'; margin-inline-end: 4px; font-size: 26px; line-height: 0; vertical-align: -6px; color: rgb(var(--pn-glow)); }
.pz .cy-link { background: none; border: 0; padding: 6px 0 0; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 12.5px; cursor: pointer; }
.pz .cy-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pz .cy-form .input, .pz .cy-review .textarea { width: 100%; }
.pz .cy-dots { display: flex; align-items: center; gap: 0; margin-block-end: 10px; }
.pz .cy-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, rgb(var(--pn-glow)) 60%, var(--line-strong, #999)); background: transparent; }
.pz .cy-dot + .cy-dot { margin-inline-start: 26px; }
.pz .cy-dot + .cy-dot::before { content: ''; position: absolute; inset-inline-end: 100%; top: 50%; width: 26px; height: 1.5px; background: color-mix(in srgb, rgb(var(--pn-glow)) 40%, transparent); }
.pz .cy-dot.is-on { background: linear-gradient(145deg, var(--pn-a), var(--pn-b)); border-color: transparent; box-shadow: 0 0 0 4px rgba(var(--pn-glow), .2), 0 0 14px rgba(var(--pn-glow), .8); }
.pz .cy-ask { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pz .cy-ask p, .pz .cy-done { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.pz .cy-done { color: var(--text-2); }
.pz .cy-review { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pz .cy-held { display: flex; flex-wrap: wrap; gap: 8px; }

/* the test account while God is on: the other choices are locked and dimmed */
.pv-others.is-locked { opacity: .42; filter: grayscale(.5); pointer-events: none; user-select: none; }

/* ---- the circle's ship (views/voyage.js) ---- */
.vy-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.vy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vy-line { position: relative; height: 34px; margin-block: 2px; }
.vy-sea { position: absolute; inset-inline: 0; top: 15px; height: 6px; border-radius: 99px; background: color-mix(in srgb, #2f8bff 22%, transparent); overflow: hidden; }
.vy-wake { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5eead4, #2f8bff); }
.vy-ship { position: absolute; top: 0; font-size: 22px; line-height: 34px; transition: inset-inline-start .6s ease; }
.vy-port { position: absolute; inset-inline-end: 0; top: 4px; font-size: 18px; opacity: .85; }
.vy-status { margin: 0; font-size: 14.5px; line-height: 1.55; }
.vy-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vy-crew { display: flex; flex-wrap: wrap; gap: 8px; }
.vy-oar { position: relative; border-radius: 50%; opacity: .5; }
.vy-oar.is-on { opacity: 1; box-shadow: 0 0 0 2px #5eead4, 0 0 10px rgba(94, 234, 212, .7); }
.vy-oar.is-none { filter: grayscale(.8); }

/* ---- the circle's ship on the map (ui.js questMap) ---- */
.qm-ship { position: absolute; margin: -16px 0 0 -16px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; background: rgba(8, 20, 40, .72); box-shadow: 0 0 0 2px rgba(94, 234, 212, .8), 0 0 14px rgba(94, 234, 212, .6); transform: scale(var(--inv, 1)); cursor: pointer; pointer-events: auto; z-index: 3; }
.qm.is-space .qm-pins .qm-ship { pointer-events: none; }
.qm-shipcard { position: absolute; inset-inline: 14px; top: 64px; z-index: 12; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; color: #e8f2ff; background: rgba(8, 20, 40, .86); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; max-width: 340px; margin-inline: auto; }
.qm-shipcard.is-in { opacity: 1; transform: none; }
.qm-shipcard strong { font-size: 15px; }

/* a ship rocks on the water a little (the one cheap animation; still where motion is reduced) */
/* (a ship does not bob: it sails) */

/* the ship's own picture (made in Canva): on the map and in the circle's card */
.qm-ship { width: 42px; height: 84px; margin: -42px 0 0 -21px; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); }
.qm-ship img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.vy-ship { width: 30px; height: 30px; margin-top: 2px; }
.vy-ship img { width: 100%; height: 100%; object-fit: contain; }

.pv-sim-row { display: flex; align-items: center; gap: 12px; margin-block: 8px 2px; }
.pv-sim { flex: 1; }

/* ---- the ship: summary on the Flock's page, the port on the map, the distance on the card ---- */
.sc-ships { display: flex; flex-direction: column; gap: 10px; margin-block: 4px 12px; }
.vy-sum { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: start; padding: 14px 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, #2f8bff 30%, var(--line, transparent)); background: radial-gradient(120% 90% at 100% 0%, rgba(47, 139, 255, .14), transparent 62%), color-mix(in srgb, var(--surface) 86%, transparent); color: var(--text); cursor: pointer; font: inherit; }
.vy-sum-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #5eead4, #2f8bff); box-shadow: 0 6px 16px -6px rgba(47, 139, 255, .8); }
.vy-sum-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.vy-sum-b strong { font-size: 15.5px; }
.vy-bar { display: block; height: 6px; border-radius: 99px; background: color-mix(in srgb, #2f8bff 20%, transparent); overflow: hidden; margin-block: 4px; }
.vy-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5eead4, #2f8bff); }
.vy-todo { font-weight: 700; color: #b45309; }
.vy-todo.is-done { color: #0f9d7a; }
.vy-nm { font-size: 14px; }
.vy-nm b { font-size: 17px; }
.qm-port { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; margin: -30px 0 0 -40px; width: 80px; transform: scale(var(--inv, 1)); transform-origin: 50% 100%; pointer-events: none; color: #eaf7ff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.qm-port i { font-style: normal; font-size: 16px; line-height: 1; }
.qm-port b { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.qm-btn svg { display: block; }
.wm-g-sw.is-sea { background: #1d3050; overflow: hidden; }
/* the legend's picture of the circle's ship: the ship (its bow to the right) over a wake that runs back to the left */
.wm-g-sw.is-sea::before { content: ''; position: absolute; left: 0; top: 50%; width: 26px; height: 13px; margin-top: -6.5px; background: url(/static/img/wake.webp) center / 100% 100% no-repeat; transform: scaleX(-1); mix-blend-mode: screen; opacity: .9; }
.wm-g-sw.is-sea::after { content: ''; position: absolute; right: 7px; top: 50%; width: 11px; height: 22px; margin-top: -11px; background: url(/static/img/ship.webp) center / contain no-repeat; transform: rotate(90deg); inset-inline: auto; border: 0; }

/* the ship and the anchor of the circle's card: the app's own line icons, one colour that reads in day and in night */
.vy-ship { color: #2f8bff; width: 24px; height: 34px; }
.vy-port { color: var(--text-2); }
.vy-sum-ic svg, .vy-ship svg, .vy-port svg { display: block; }

/* several ships at once: each in the colour of its voyage (views/voyagecolors.js), named under the ship on the map */
.qm-ship { filter: drop-shadow(0 0 9px rgba(63, 214, 208, .5)) drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.qm-shiplabel-unused { position: absolute; margin: 20px 0 0 0; transform: translateX(-50%) scale(var(--inv, 1)); transform-origin: 50% 0; pointer-events: none; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; white-space: nowrap; color: #0b1626; background: var(--vc, #5ed3f3); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.qm.is-far .qm-shiplabel { display: none; }
.qm-port { color: var(--vc, #eaf7ff); }
.qm-btn-ship { position: relative; }
.qm-btn-n { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 16px; height: 16px; border-radius: 99px; background: #0a84ff; color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }

/* (no coloured side stripe on the ship's cards, the owner 2026-11-20: the ship's colour lives in its bar, its wake and its icon) */
.vy-sum-ic { background: var(--vc, #2f8bff); color: #0b1626; box-shadow: none; }
.vy-bar i, .vy-wake { background: var(--vc, #2f8bff); }
.vy-ship { color: var(--vc, #2f8bff); }

/* the port of a voyage: a glow that pulses slowly in the colour of the voyage (the one cheap animation; still where motion is reduced) */
.qm-port::before { content: ''; position: absolute; left: 50%; top: 20px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle, var(--vc, #5ed3f3) 0%, transparent 70%); opacity: .55; animation: qm-pulse 2.8s ease-in-out infinite; z-index: -1; }
@keyframes qm-pulse { 0%, 100% { transform: scale(.7); opacity: .35; } 50% { transform: scale(1.25); opacity: .7; } }
:root[data-motion="reduced"] .qm-port::before { animation: none; }
@media (prefers-reduced-motion: reduce) { .qm-port::before { animation: none; } }

/* the legend's wake: the same picture as on the map */

/* the ship grows and shrinks about its waterline, so the wake drawn on the canvas stays under its hull at every zoom */
.qm-ship { transform-origin: 50% 50%; opacity: 0; filter: none; }

/* the third force (views/voyage.js): the two of a pact, an hour, one mark each */
.vy-pact { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #5eead4 12%, transparent); border: 1px solid color-mix(in srgb, #5eead4 35%, var(--line, transparent)); }
.vy-pact-h { display: flex; align-items: center; gap: 10px; }
.vy-pact p { margin: 0; line-height: 1.55; }
.vy-pact-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* the voyages on the Flock's page, under the friends: one in full, several as a row that slides and snaps (views/social.js) */
.sc-ships { display: flex; flex-direction: column; gap: 8px; margin-block: 14px 6px; }
.sc-ships-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-inline: 2px; }
.sc-ships-h h3 { margin: 0; font-size: 15px; font-weight: 750; }
.sc-ships-n { font-size: 12.5px; color: var(--text-3); }
.sc-ships-row { display: flex; flex-direction: column; }
.sc-ships-row.is-many { flex-direction: row; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; padding-block-end: 4px; -webkit-overflow-scrolling: touch; }
.sc-ships-row.is-many::-webkit-scrollbar { display: none; }
.sc-ships-row.is-many .sc-ship-slot { flex: 0 0 min(310px, 84%); scroll-snap-align: start; }
.sc-ships-row.is-many .vy-sum { height: 100%; }
@media (min-width: 900px) { .sc-ships-row.is-many { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } .sc-ships-row.is-many .sc-ship-slot { flex: 1 1 300px; } }

/* the ship's identity, the passengers' tickets and the manifest */
.vy-ident { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--vc, #3fd6d0); }
.vy-ident b { font-size: .95rem; }
button.vy-oar { border: 0; padding: 0; background: none; cursor: pointer; }
.vy-ticket { border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--vc, #3fd6d0) 45%, transparent); background: var(--card, #fff); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.vy-tk-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #06312f; background: linear-gradient(135deg, var(--vc, #3fd6d0), color-mix(in srgb, var(--vc, #3fd6d0) 55%, #fff)); }
.vy-tk-top > div { display: flex; flex-direction: column; line-height: 1.25; }
.vy-tk-who { display: flex; align-items: center; gap: 12px; padding: 16px 16px 6px; }
.vy-tk-who > div { display: flex; flex-direction: column; gap: 2px; }
.vy-tk-role { font-size: .8rem; color: var(--vc, #3fd6d0); font-weight: 700; }
.vy-tk-route { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; font-size: 1.05rem; }
.vy-tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 10px 16px 14px; border-top: 1px dashed color-mix(in srgb, currentColor 22%, transparent); }
.vy-tk-r { display: flex; flex-direction: column; gap: 1px; }
.vy-tk-no { padding: 8px 16px 12px; text-align: center; letter-spacing: .14em; font-size: .85rem; opacity: .7; }
.vy-mf { display: flex; flex-direction: column; gap: 6px; }
.vy-mf-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border: 0; background: none; border-radius: 12px; text-align: start; cursor: pointer; color: inherit; font: inherit; }
.vy-mf-row:active { background: color-mix(in srgb, currentColor 8%, transparent); }
.vy-mf-n { flex: 1; display: flex; flex-direction: column; }

/* the ship's card on the map: an old parchment, written in ink, set low so the ship stays in view */
.qm-shipcard { top: auto; bottom: 14px; inset-inline: 12px; max-width: 360px; gap: 4px; padding: 16px 20px 18px; border-radius: 6px 10px 7px 11px; color: #3b2410; background: #e9cf9a url(/static/img/parchment.webp) center / 100% 100% no-repeat; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .65), inset 0 0 26px rgba(120, 70, 20, .45); -webkit-backdrop-filter: none; backdrop-filter: none; font-family: "Frank Ruhl Libre", "David Libre", David, "Times New Roman", serif; transform: translateY(8px); }
.qm-shipcard.is-in { transform: none; }
.qm-sc-top { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.qm-sc-kind { font-size: 12px; letter-spacing: .18em; color: #7a4b1c; }
.qm-shipcard .qm-sc-top strong { font-size: 24px; line-height: 1.15; color: #2c1707; }
.qm-sc-reg { font-size: 11px; letter-spacing: .2em; color: #8a5a28; }
.qm-sc-rule { display: block; height: 1px; margin: 6px 14% 4px; background: linear-gradient(90deg, transparent, rgba(90, 55, 20, .7), transparent); }
.qm-sc-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.35; }
.qm-sc-r span { color: #7a4b1c; flex: none; }
.qm-sc-r b { font-weight: 700; text-align: end; }

.qm-shipcard { padding: 11px 16px 13px; gap: 2px; max-width: 330px; }
.qm-shipcard .qm-sc-top strong { font-size: 19px; }
.qm-sc-top { flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qm-sc-rule { margin: 4px 14% 3px; }
.qm-sc-r { font-size: 12.5px; line-height: 1.3; }
/* clear of the map's buttons on the left */
.qm-shipcard { inset-inline: auto; left: 74px; right: 12px; max-width: none; margin-inline: 0; }
.qm-shipcard { pointer-events: auto; }
.qm-sc-crew { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.qm-sc-face { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1.5px rgba(90, 55, 20, .55); }
.qm-sc-all { border: 0; background: none; padding: 0 2px; font: inherit; font-size: 12px; color: #7a3d0d; text-decoration: underline; cursor: pointer; }
.qm-shipcard { right: 60px; }
.qm-sc-crew { min-height: 30px; }
.qm-sc-face { flex: none; width: 30px; height: 30px; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 1.5px rgba(90, 55, 20, .6); background: #d9b97d; }
.qm-sc-face > * { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; flex: none; }
.qm-sc-face img, .qm-sc-face canvas { filter: sepia(.55) saturate(.8) contrast(.95) brightness(.97); mix-blend-mode: multiply; }
.qm-sc-face > *, .qm-sc-face > * * { filter: sepia(.9) saturate(.85) contrast(.92) brightness(.96); }
.qm-sc-face > * { mix-blend-mode: multiply; }
.qm-sc-crew { min-height: 44px; gap: 6px; }
.qm-sc-face { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(90, 55, 20, .75), 0 2px 5px rgba(60, 35, 10, .45); background: #e9cf9a; }
.qm-sc-face > *, .qm-sc-face > * * { filter: sepia(.45) saturate(.9) contrast(1.12) brightness(1.06); }
.qm-sc-face > * { mix-blend-mode: normal; }
/* the faces back at their first size, in a light sepia that keeps every detail (the dark beard stays seen) */
.qm-sc-crew { min-height: 30px; gap: 5px; }
.qm-sc-face { width: 30px; height: 30px; box-shadow: 0 0 0 1.5px rgba(90, 55, 20, .6); background: #d9b97d; }
.qm-sc-face > *, .qm-sc-face > * * { filter: sepia(.5) saturate(.9) brightness(1.12) contrast(.95); mix-blend-mode: normal; }
/* only a breath of sepia: no brightening, no darkening, so no face loses its detail */
.qm-sc-face > *, .qm-sc-face > * * { filter: sepia(.28); }
/* the faces as they are everywhere else in the app: no filter of any kind */
.qm-sc-face > *, .qm-sc-face > * * { filter: none; mix-blend-mode: normal; }
/* the parchment's colour laid over the faces by hue only (blend "color"): the light and dark of the picture stay, so every detail stays, only the colours turn to the card's brown */
.qm-sc-face { position: relative; }
.qm-sc-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #9a6a2c; mix-blend-mode: color; opacity: .75; pointer-events: none; }
/* the drawn characters (wizard, hero, princess, bunny) on the same dark ground as the portraits */
.qm-sc-face svg.av-char rect[width="100"][height="100"] { fill: #6a5a48; }
button.vy-oar.is-turn { opacity: 1; outline: 2px dashed #f5c451; outline-offset: 3px; }
.vy-arrive { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--vc, #3fd6d0) 12%, transparent); }
.vy-arrive p { display: flex; align-items: center; gap: 8px; margin: 0; }
.vy-cap { display: flex; flex-direction: column; }
.vy-after { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px dashed color-mix(in srgb, currentColor 22%, transparent); }
.vy-after p, .vy-prac p { margin: 0; }
.vy-after textarea { resize: vertical; width: 100%; }
.vy-rd { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.vy-rd-h { display: flex; align-items: center; gap: 8px; }
.vy-rd p { margin: 2px 0 0; }
.obj-sea { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
/* the list of the ships on the map */
.qm-fleet { position: absolute; z-index: 14; left: 74px; right: 12px; bottom: 14px; max-height: 58%; overflow: auto; padding: 12px 14px; border-radius: 8px 12px 8px 12px; color: #3b2410; background: #e9cf9a url(/static/img/parchment.webp) center / 100% 100% no-repeat; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .65), inset 0 0 26px rgba(120, 70, 20, .45); font-family: "RetzefMapLand", "Frank Ruhl Libre", "David Libre", David, "Times New Roman", serif; }
.qm-fl-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.qm-fl-h strong { font-size: 17px; }
.qm-fl-x { border: 0; background: none; font-size: 22px; line-height: 1; color: inherit; cursor: pointer; }
.qm-fl-g { margin: 8px 0 2px; font-size: 12px; letter-spacing: .06em; color: #7a4b1c; border-bottom: 1px solid rgba(90, 55, 20, .35); }
.qm-fl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; border: 0; background: none; text-align: start; color: inherit; font: inherit; cursor: pointer; border-radius: 8px; }
.qm-fl-row:active { background: rgba(90, 55, 20, .12); }
.qm-fl-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1f9d94; box-shadow: 0 0 0 2px rgba(31, 157, 148, .25); }
.qm-fl-row.is-anchored .qm-fl-dot { background: #c98a1a; box-shadow: 0 0 0 2px rgba(201, 138, 26, .25); }
.qm-fl-row.is-arrived .qm-fl-dot { background: #4c8a3a; box-shadow: 0 0 0 2px rgba(76, 138, 58, .25); }
.qm-fl-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qm-fl-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qm-fl-t .xs { color: #7a4b1c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qm-fl-s { flex: none; color: #5a3a14; }
.obj-sea-chip { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #1f9d94 16%, transparent); color: #137a72; }
.vy-sws { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
.vy-sw { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
/* the crew's faces on the ship card: a perfect circle the size of the face, so the ring around it is round and snug */
button.vy-oar { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; line-height: 0; border-radius: 50%; flex: none; aspect-ratio: 1; }
button.vy-oar > .sc-face { display: block; width: 30px; height: 30px; }
/* the daily inner work (a sheet) */
.cy-inner { margin-top: 8px; }
.in-body { display: flex; flex-direction: column; gap: 12px; }
.in-pane { display: flex; flex-direction: column; gap: 10px; }
.in-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.in-row input { margin-top: 4px; width: 18px; height: 18px; }
.in-t { display: flex; flex-direction: column; }
.in-week { display: flex; gap: 6px; align-items: flex-end; height: 46px; }
.in-wd { flex: 1; height: 100%; border-radius: 6px; background: linear-gradient(to top, #5eead4 var(--h, 0%), color-mix(in srgb, currentColor 10%, transparent) var(--h, 0%)); }
.in-phase { font-weight: 700; font-size: 1.1rem; text-align: center; }
.in-left { font-size: 3rem; text-align: center; font-variant-numeric: tabular-nums; }
.in-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.in-flaw { padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); display: flex; flex-direction: column; gap: 4px; }
.in-flaw.is-central { border-color: #5eead4; background: color-mix(in srgb, #5eead4 10%, transparent); }
.in-flaw-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.in-tag { font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: #5eead4; color: #06312f; }
.in-ins { margin: 0; opacity: .85; }
.in-add { display: flex; gap: 8px; flex-wrap: wrap; }
.in-add .input { flex: 1 1 140px; }
.in-dream { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); display: flex; flex-direction: column; gap: 2px; }
.in-sign { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, #5eead4 12%, transparent); text-align: center; }
.in-sign-n { font-size: 2rem; }
.in-body { padding-bottom: 64px; }
.in-add .input, .in-add select { flex: 1 1 100%; }
.in-add .btn { margin-inline-start: auto; }
.in-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.in-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: none; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
.in-chip.is-on { background: #5eead4; color: #06312f; border-color: #5eead4; }
.vy-rd-s p { margin: 0; }
.in-tremor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.in-wake { color: #137a72; font-weight: 700; }
.in-tags summary { cursor: pointer; }
.in-tags .in-chips { margin-top: 6px; }
/* ===== the inner work: a night sky, gold and turquoise ===== */
.sheet.inx { --g: #f0c36a; --t: #5eead4; --dim: #a3add8; color: #e8ecff; background: radial-gradient(120% 55% at 50% -8%, #2a3578 0%, transparent 62%), radial-gradient(60% 35% at 95% 22%, rgba(94, 234, 212, .13), transparent 65%), #0b1027; border-top: 1px solid rgba(240, 195, 106, .38); box-shadow: 0 -18px 60px -20px rgba(94, 234, 212, .25); overflow: hidden; }
.sheet.inx::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .75; background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 8%, #cfe, transparent), radial-gradient(1.4px 1.4px at 41% 26%, #fff, transparent), radial-gradient(1px 1px at 58% 12%, #fde9b0, transparent), radial-gradient(1.2px 1.2px at 73% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 9%, #cfe, transparent), radial-gradient(1px 1px at 6% 44%, #fff, transparent), radial-gradient(1.2px 1.2px at 93% 48%, #fde9b0, transparent), radial-gradient(1px 1px at 20% 62%, #fff, transparent), radial-gradient(1px 1px at 80% 70%, #cfe, transparent); }
.sheet.inx > * { position: relative; }
.inx .sheet-head h2 { color: #f6e7c1; font-family: "Frank Ruhl Libre", "David Libre", David, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: .02em; }
.inx .sheet-head .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .14); }
.inx .sheet-grab { background: rgba(255, 255, 255, .28); }
.inx .sheet-foot { background: transparent; border: 0; }
.inx-body { display: flex; flex-direction: column; gap: 14px; padding-bottom: 72px; }
.inx-dim { color: var(--dim); }
.inx-hero { display: flex; align-items: center; gap: 18px; }
.inx-ring-box { position: relative; width: 150px; height: 150px; flex: none; filter: drop-shadow(0 0 14px rgba(240, 195, 106, .25)); }
.inx-ring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.inx-ring-c b { font-size: 2.6rem; font-weight: 300; color: var(--g); }
.inx-ring-c span { color: var(--dim); margin-top: 4px; }
.inx-ray { transition: opacity .35s ease, stroke-dasharray .6s linear; }
.inx-hero-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inx-eyebrow { font-size: .78rem; letter-spacing: .14em; color: var(--t); }
.inx-hero-h { font-size: 1.5rem; font-family: "Frank Ruhl Libre", "David Libre", David, serif; color: #fff; }
.inx-hero-s { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--dim); font-size: .9rem; }
.inx-planet { font-style: normal; color: var(--g); font-size: 1.1rem; }
.inx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.inx-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 14px; background: none; color: var(--dim); font: inherit; font-size: .72rem; cursor: pointer; transition: background .2s, color .2s; }
.inx-tab.is-on { color: #fff; background: linear-gradient(135deg, rgba(240, 195, 106, .24), rgba(94, 234, 212, .18)); box-shadow: inset 0 0 0 1px rgba(240, 195, 106, .45); }
.inx-pane { display: flex; flex-direction: column; gap: 12px; }
.inx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inx-tile { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: start; padding: 12px; min-height: 112px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .25s, background .25s, transform .1s; }
.inx-tile:active { transform: scale(.98); }
.inx-tile b { color: #fff; font-size: .95rem; }
.inx-tile .xs { color: var(--dim); line-height: 1.35; }
.inx-tile-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ray); background: color-mix(in srgb, var(--ray) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ray) 40%, transparent); margin-bottom: 2px; }
.inx-tick { position: absolute; top: 10px; inset-inline-end: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 800; }
.inx-tile.is-on { border-color: var(--ray); background: linear-gradient(160deg, color-mix(in srgb, var(--ray) 22%, transparent), rgba(255, 255, 255, .03)); box-shadow: 0 10px 26px -12px var(--ray); }
.inx-tile.is-on .inx-tick { background: var(--ray); border-color: transparent; color: #0b1027; }
.inx-tremor { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(240, 195, 106, .07); border: 1px dashed rgba(240, 195, 106, .38); }
.inx-tremor .inx-sel { width: auto; flex: 0 0 auto; }
.inx-pill { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #2a1b02; background: linear-gradient(135deg, #f6d98c, #e8a93f); }
.inx-week { display: flex; gap: 8px; align-items: flex-end; height: 64px; }
.inx-wd { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; color: var(--dim); }
.inx-wd i { width: 100%; height: 40px; border-radius: 8px; background: linear-gradient(to top, var(--t) var(--h, 0%), rgba(255, 255, 255, .08) var(--h, 0%)); }
.inx select, .inx .inx-sel { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background-color: rgba(255, 255, 255, .07); color: #fff; font: inherit; }
.inx select option { color: #111; }
.inx input.input, .inx textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.inx input::placeholder, .inx textarea::placeholder { color: rgba(255, 255, 255, .45); }
.inx-lbl { font-size: .8rem; color: var(--dim); }
.inx-clock { position: relative; width: 236px; height: 236px; margin: 4px auto; filter: drop-shadow(0 0 18px rgba(125, 211, 252, .18)); }
.inx-clock-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.inx-phase { font-weight: 700; font-size: .95rem; text-align: center; max-width: 150px; }
.inx-left { font-size: 3.1rem; font-weight: 300; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.inx-hint { margin: 0; text-align: center; color: var(--dim); font-size: .88rem; min-height: 1.3em; }
.inx-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.inx-btn { padding: 11px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.inx-btn.is-main { border: 0; color: #2a1b02; background: linear-gradient(135deg, #f6d98c, #e8a93f); box-shadow: 0 8px 22px -10px #e8a93f; }
.inx-btn:disabled { opacity: .5; }
.inx-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.inx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inx-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: none; color: #d8defa; font: inherit; font-size: .85rem; cursor: pointer; }
.inx-chip.is-on { background: var(--t); border-color: var(--t); color: #06312f; font-weight: 700; }
.inx-flaw { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-inline-start: 4px solid var(--c); }
.inx-flaw.is-central { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255, 255, 255, .03)); box-shadow: 0 12px 30px -16px var(--c); }
.inx-flaw-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.inx-flaw-h b { color: #fff; font-size: 1.02rem; }
.inx-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.inx-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--t), var(--g)); }
.inx-quote { margin: 4px 0 0; padding-inline-start: 10px; border-inline-start: 2px solid rgba(240, 195, 106, .5); color: #d8defa; font-size: .82rem; quotes: none; }
.inx-links { display: flex; gap: 16px; margin-top: 4px; }
.inx-links button { border: 0; background: none; padding: 0; color: #7dd3fc; font: inherit; font-size: .85rem; cursor: pointer; }
.inx-night { background: radial-gradient(90% 70% at 15% 0, rgba(167, 139, 250, .22), transparent 60%), rgba(255, 255, 255, .04); }
.inx-wake { color: var(--t); font-weight: 700; margin: 0; }
.inx-tags summary { cursor: pointer; color: var(--dim); padding: 2px 0; }
.inx-tags .inx-chips { margin-top: 6px; }
.inx-dream { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.inx-dream p { margin: 0 0 4px; color: #eef1ff; }
.inx-date { color: var(--g); letter-spacing: .04em; padding-top: 2px; }
.inx-x { display: block; margin-top: 4px; border: 0; background: none; padding: 0; color: #fca5a5; font: inherit; cursor: pointer; }
.inx-sign { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 14px; border-radius: 24px; border: 1px solid rgba(240, 195, 106, .32); background: radial-gradient(70% 60% at 50% 0, rgba(240, 195, 106, .24), transparent 65%), rgba(255, 255, 255, .04); }
.inx-sign-g { font-style: normal; font-size: 4.4rem; line-height: 1; color: var(--g); text-shadow: 0 0 28px rgba(240, 195, 106, .55); }
.inx-sign-n { font-size: 1.9rem; font-family: "Frank Ruhl Libre", "David Libre", David, serif; color: #fff; }
.inx-sign-p { color: var(--t); font-weight: 700; }
.inx-day { flex-direction: row; align-items: center; gap: 12px; }
.inx-day p { margin: 0; }
.inx-planet-l { font-style: normal; font-size: 2rem; color: var(--g); line-height: 1; }
.inx-add { gap: 10px; }
.inx-hero .xs, .inx .small { color: inherit; }
/* the spiral questionnaire */
.cy-spiral { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(135deg, rgba(94, 234, 212, .14), rgba(167, 139, 250, .14)); border: 1px solid rgba(94, 234, 212, .35); }
.cy-btns { display: flex; gap: 12px; align-items: center; }
.sp { gap: 12px; }
.sp-dots { display: flex; gap: 6px; }
.sp-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.sp-dots i.is-done { background: var(--t); }
.sp-dots i.is-now { background: var(--g); }
.sp-q { margin: 4px 0 6px; font-size: 1.25rem; line-height: 1.35; color: #fff; font-family: "Frank Ruhl Libre", "David Libre", David, serif; }
.sp-opt { text-align: start; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #eef1ff; font: inherit; line-height: 1.4; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sp-opt:active { transform: scale(.985); border-color: var(--g); background: rgba(240, 195, 106, .12); }
.sp-back { align-self: flex-start; color: #7dd3fc; }
.sp-orb { align-self: center; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--h) 70%, #fff), var(--h) 55%, color-mix(in srgb, var(--h) 40%, #000)); box-shadow: 0 0 44px -6px var(--h), inset 0 0 22px rgba(255, 255, 255, .25); }
.sp-orb b { font-size: 1.7rem; color: #0b1027; font-family: "Frank Ruhl Libre", "David Libre", David, serif; }
.sp-lang { text-align: center; font-size: 1.05rem; line-height: 1.5; margin: 6px 0; }
.sp-sw { cursor: pointer; }
/* ===== the inner work as a page of its own, in the look of the Numinalis courses ===== */
.inp, .sheet.inx { --g: var(--ln-gold, #ffd27a); --t: #6ee7a8; --dim: rgba(244, 245, 250, .72); }
.sheet.inx { background: radial-gradient(110% 38% at 20% 0, rgba(58, 98, 200, .30), transparent 64%), linear-gradient(180deg, #0f2250 0, #0c3560 30%, #0a4a68 70%, #095c70 100%); border-top-color: rgba(255, 255, 255, .22); box-shadow: none; }
.sheet.inx::before { display: none; }
.inp { padding-block-end: 96px; }
.inp-in { display: flex; flex-direction: column; gap: 18px; padding: 18px var(--ln-pad); max-width: 980px; margin-inline: auto; }
.inp-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 10px 6px; }
.inp-hero-t { display: grid; gap: 12px; justify-items: start; min-width: 0; flex: 1; }
.inp-hero-t h2 { font-size: clamp(32px, 7vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 26px rgba(0, 0, 0, .5); }
.inp-d { color: var(--ln-dim); font-size: clamp(14px, 3.6vw, 17px); line-height: 1.55; max-width: 46ch; }
.inp .inx-hero-h { color: var(--ln-gold); font-size: 1.05rem; font-family: inherit; }
.inp .inx-ring-box { width: 168px; height: 168px; }
.inp .inx-ring-box svg { width: 168px; height: 168px; }
.inp .inx-tabs { position: sticky; top: 64px; z-index: 5; background: rgba(8, 38, 80, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--ln-line); }
.inp .inx-tab.is-on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.inp .inx-tile, .inp .inx-card, .inp .inx-flaw { background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border-color: var(--ln-line); border-radius: 10px; }
.inp .inx-tile.is-on { background: linear-gradient(160deg, color-mix(in srgb, var(--ray) 26%, transparent), rgba(255, 255, 255, .05)); }
.inp .inx-btn { border-radius: 6px; border: 0; background: rgba(109, 109, 110, .7); }
.inp .inx-btn.is-main { background: #fff; color: #07080d; box-shadow: none; }
.inp .inx-sign { border-radius: 12px; }
@media (max-width: 560px) { .inp-hero { flex-direction: column-reverse; align-items: stretch; } .inp .inx-ring-box { align-self: center; } .inp-hero-t { justify-items: center; text-align: center; } }
/* the spiral questionnaire, on a screen of its own */
.sp-gate { position: fixed; inset: 0; z-index: 400; overflow-y: auto; padding: 22px var(--ln-pad, 20px) 40px; }
.sp-in { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-inline: auto; padding-block: 8px 40px; }
.sp-top { display: flex; align-items: center; justify-content: space-between; }
.sp-brand { font-size: 1.3rem; letter-spacing: .06em; }
.spq-intro { color: var(--ln-dim); font-size: 1.05rem; line-height: 1.55; margin: 4px 0 6px; }
.sp-dots { display: flex; gap: 6px; }
.sp-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.sp-dots i.is-done { background: var(--ln-green, #6ee7a8); }
.sp-dots i.is-now { background: var(--ln-gold, #ffd27a); }
.sp-q { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.3; font-weight: 800; margin: 4px 0 6px; }
.sp-opt { text-align: start; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--ln-line, rgba(255, 255, 255, .14)); background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); color: var(--ln-fg, #f4f5fa); font: inherit; font-size: 1.02rem; line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sp-opt:hover, .sp-opt:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .16); }
.sp-opt:active { transform: scale(.985); }
.sp-back { align-self: flex-start; }
.sp-orb { align-self: center; width: 170px; height: 170px; margin-block: 10px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--h) 70%, #fff), var(--h) 55%, color-mix(in srgb, var(--h) 40%, #000)); box-shadow: 0 0 54px -6px var(--h), inset 0 0 24px rgba(255, 255, 255, .25); }
.sp-orb b { font-size: 1.8rem; color: #0b1027; }
.sp-lang { text-align: center; font-size: 1.15rem; line-height: 1.5; }
.sp-lang + .ln-note, .sp-in .ln-note { text-align: center; }
.inx-planet-l { display: inline-flex; font-style: normal; color: var(--g); line-height: 0; }
.sp-step { margin: 2px 0 4px; font-weight: 700; color: var(--ln-gold, #ffd27a); }
.sp-stack { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.spq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--ln-line); }
.spq-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--h); }
.sp-dots button { flex: 1; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.sp-dots button::after { content: ''; position: absolute; inset: 5px 0; border-radius: 2px; background: var(--ln-green, #6ee7a8); }
.sp-opt.is-prev { border-color: var(--ln-gold, #ffd27a); background: rgba(255, 210, 122, .14); box-shadow: inset 0 0 0 1px var(--ln-gold, #ffd27a); }
.sp-prev { display: block; margin-top: 6px; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--ln-gold, #ffd27a); }
.sp-nav { display: flex; justify-content: space-between; gap: 10px; }
.sp-next { margin-inline-start: auto; }
.sp-anim { animation: spin .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes spin { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .sp-anim { animation-name: spinr; }
@keyframes spinr { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.spq-steps { display: flex; gap: 8px; }
.spq-steps span { flex: 1; text-align: center; padding: 7px 8px; border-radius: 999px; border: 1px solid var(--ln-line); font-size: .8rem; color: var(--ln-dim); }
.spq-steps span.is-now { color: #07080d; background: var(--ln-gold, #ffd27a); border-color: transparent; font-weight: 800; }
.spq-steps span.is-now.is-least { background: #f4a3a8; }
.spq-steps span.is-done { color: var(--ln-green, #6ee7a8); border-color: var(--ln-green, #6ee7a8); }
.sp-step.is-least { color: #f4a3a8; }
.sp-chosen { display: grid; gap: 2px; padding: 10px 14px; border-radius: 8px; background: rgba(110, 231, 168, .12); border: 1px solid rgba(110, 231, 168, .45); }
.sp-chosen b { font-weight: 600; line-height: 1.4; }
.sp-q { font-size: clamp(24px, 6vw, 32px); }
.spq-steps span { font-family: inherit; font-size: .82rem; line-height: 1.2; }
.sp-orb.is-mix { box-shadow: 0 0 44px -6px rgba(255, 255, 255, .35), inset 0 0 22px rgba(255, 255, 255, .2); }
.sp-orb.is-mix b { font-size: 1.15rem; text-align: center; padding: 0 14px; text-shadow: 0 1px 6px rgba(255, 255, 255, .6); }
/* the spiral cocktail card (profile) */
.spc-card { overflow: hidden; }
.spc-wheel { position: relative; width: 188px; height: 188px; margin: 6px auto 12px; display: grid; place-items: center; }
.spc-glow { position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--h) 38%, transparent), transparent 66%); filter: blur(6px); animation: spc-breathe 5s ease-in-out infinite; pointer-events: none; }
.spc-ring { position: absolute; inset: 0; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.spc-orb { position: relative; width: 118px; height: 118px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 0; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--h) 68%, #fff), var(--h) 56%, color-mix(in srgb, var(--h) 42%, #000)); box-shadow: 0 0 30px -4px var(--h), inset 0 0 16px rgba(255, 255, 255, .28); }
.spc-orb b { font-size: 1.22rem; color: #0b1027; font-family: "Frank Ruhl Libre", "David Libre", David, serif; line-height: 1.15; padding: 0 8px; }
.spc-pct { font-size: .78rem; font-weight: 700; color: rgba(11, 16, 39, .72); }
.spc-orb.is-mix { box-shadow: 0 0 26px -4px rgba(255, 255, 255, .3), inset 0 0 16px rgba(255, 255, 255, .22); }
.spc-orb.is-mix b { font-size: .8rem; color: #fff; background: rgba(11, 16, 39, .62); border-radius: 999px; padding: 5px 10px; font-family: inherit; }
.spc-lang { text-align: center; margin: 0 6px 12px; font-size: .92rem; line-height: 1.5; color: var(--muted, inherit); }
.spc-lang b { color: var(--text); }
.spc-rows { display: grid; gap: 8px; }
.spc-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; }
.spc-row.is-lead { background: color-mix(in srgb, var(--h) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 42%, transparent); }
.spc-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--h); box-shadow: 0 0 10px -1px var(--h); }
.spc-name { width: 62px; flex: none; font-weight: 650; }
.spc-bar { flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.spc-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--h) 70%, #000), var(--h)); }
.spc-n { width: 34px; text-align: end; }
@keyframes spc-breathe { 0%, 100% { opacity: .7; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .spc-glow { animation: none; } }
/* a watched lesson that comes back as a suggestion */
.ln-rv { position: relative; flex: none; }
.ln-rv-later { position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: 8px; border: 0; border-radius: 999px; padding: 4px 10px; font-size: .72rem; background: rgba(11, 16, 39, .7); color: #fff; cursor: pointer; }
/* what the plan opens: the corner word of a card, the plan's strip, the note on a course's page */
.ln-tag { position: absolute; z-index: 3; inset-block-start: 8px; inset-inline-start: 8px; padding: 3px 9px; border-radius: 999px; font: 700 11px/1.2 inherit; color: #07080d; background: var(--ln-gold); }
.ln-plan { margin: 6px var(--ln-pad) 14px; padding: 14px 16px; border-radius: 10px; display: grid; gap: 6px; justify-items: start; border: 1px solid var(--ln-line); background: linear-gradient(135deg, rgba(255, 210, 122, .12), rgba(255, 255, 255, .05)); }
.ln-plan p { margin: 0; font-size: 14px; color: var(--ln-fg); }
.ln-plan-t { display: flex; align-items: center; gap: 8px; color: var(--ln-gold); }
.ln-plan .ln-btn { padding: 9px 18px; font-size: 14px; }
.ln-pass { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ln-gold); background: rgba(255, 210, 122, .1); border: 1px solid rgba(255, 210, 122, .3); }
/* the live sessions, workshops and the members' group; the plan's list */
.ln-live { position: relative; flex: none; width: clamp(170px, 46vw, 250px); min-height: 118px; padding: 14px; display: grid; gap: 6px; align-content: start; border-radius: 8px; cursor: pointer; text-align: start; color: var(--ln-fg); border: 1px solid var(--ln-line); background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); scroll-snap-align: start; }
.ln-live:hover { background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06)); }
.ln-live-k { font: 700 11px/1.2 inherit; color: var(--ln-gold); letter-spacing: .02em; }
.ln-live strong { font-size: 16px; line-height: 1.3; }
.ln-live-d { font-size: 13px; color: var(--ln-dim); }
.ln-live .ln-lock { inset-block-start: 10px; inset-inline-end: 10px; }
.ln-live .ln-tag { inset-block-start: auto; inset-block-end: 10px; }
.ln-live-s { display: grid; gap: 12px; }
.ln-planlist ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.ln-planlist li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--ln-line); font-size: 15px; }
.ln-planlist li.is-off { color: var(--ln-dim); }
.ln-pl-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(110, 231, 168, .18); color: var(--ln-green); }
.ln-planlist li.is-off .ln-pl-mark { background: rgba(255, 255, 255, .1); color: var(--ln-dim); }
.ln-pl-w { margin-inline-start: auto; font-size: 13px; color: var(--ln-gold); }
/* the owner dashboard */
.db-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-block: 6px 12px; }
.db-tile { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.db-tile b { font-size: 1.5rem; line-height: 1.1; }
.db-tile span { font-size: .78rem; opacity: .75; }
.db-tile.is-warn { background: color-mix(in srgb, #ff9f0a 18%, transparent); }
.db-h { margin: 14px 0 6px; font-size: .95rem; }
.db-plans { display: grid; gap: 6px; }
.db-plan { display: flex; align-items: center; gap: 10px; }
.db-plan-n { width: 78px; flex: none; font-weight: 650; font-size: .9rem; }
.db-plan-bar { flex: 1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.db-plan-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5e5ce6, #bf5af2); }
.db-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.db-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }

/* the tools zone of the library: the plan badge of a member, the studio of the owner */
.ln-plan-btn { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 14px; border: 1px solid rgba(255, 210, 122, .45); background: linear-gradient(135deg, rgba(255, 210, 122, .2), rgba(255, 210, 122, .06)); color: #ffd27a; cursor: pointer; transition: transform .15s, background .15s; }
.ln-plan-btn:hover { background: linear-gradient(135deg, rgba(255, 210, 122, .32), rgba(255, 210, 122, .1)); }
.ln-plan-btn:active { transform: scale(.97); }
.ln-plan-btn span { display: grid; text-align: start; line-height: 1.15; }
.ln-plan-btn small { font-size: 10.5px; font-weight: 600; opacity: .8; color: var(--ln-fg); }
.ln-plan-btn b { font-size: 14px; font-weight: 800; color: #ffd27a; }
.ln-plan-btn[data-tier="plus"] { color: #bcd7ff; border-color: rgba(188, 215, 255, .4); background: linear-gradient(135deg, rgba(188, 215, 255, .18), rgba(188, 215, 255, .05)); }
.ln-plan-btn[data-tier="plus"] b { color: #bcd7ff; }
.ln-plan-btn[data-tier="pro"] { color: #d6b8ff; border-color: rgba(214, 184, 255, .45); background: linear-gradient(135deg, rgba(214, 184, 255, .2), rgba(214, 184, 255, .06)); }
.ln-plan-btn[data-tier="pro"] b { color: #d6b8ff; }
.ln-studio-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.ln-studio-btn:hover { background: rgba(255, 255, 255, .2); }
.ln-studio-btn:active { transform: scale(.95); }
.ln-top .ln-studio-btn { order: 1; }
.ln-chips .ln-studio-btn, .ln-chips .ln-plan-btn { align-self: center; }
/* the studio: tools as tiles in groups */
.ln-studio { display: grid; gap: 18px; padding-block-end: 8px; }
.ln-st-h { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ln-dim, rgba(244, 245, 250, .7)); }
.ln-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ln-st-tile { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 14px; min-height: 108px; text-align: start; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); color: #f4f5fa; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.ln-st-tile:hover { background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)); border-color: rgba(255, 255, 255, .3); }
.ln-st-tile:active { transform: scale(.97); }
.ln-st-tile strong { font-size: 15px; }
.ln-st-tile span:not(.ln-st-ic) { font-size: 12px; line-height: 1.35; opacity: .72; }
.ln-st-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(110, 231, 168, .16); color: #6ee7a8; }
.ln-st-tile.is-danger .ln-st-ic { background: rgba(229, 72, 77, .18); color: #ff8a8e; }
.ln-st-tile.is-danger { border-color: rgba(229, 72, 77, .35); }
.ln-ep-more { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(20, 20, 26, .7); backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.ln-ep-quiz { position: relative; }
@media (max-width: 899px) {
  .ln-chips .ln-chips-w { order: 1; flex: 1 1 100%; }
  .ln-chips .ln-search { order: 2; flex: 1 1 0; width: auto; }
  .ln-chips .ln-plan-btn, .ln-chips .ln-studio-btn { order: 3; }
}
/* forms and lists inside the library's windows keep its dark look (course, lesson, event, embed codes, disclaimer) */
.sheet.ln-sheet { --text: #f4f5fa; --text-2: rgba(244, 245, 250, .72); --text-3: rgba(244, 245, 250, .55); --line: rgba(255, 255, 255, .16); color-scheme: dark; }
.sheet.ln-sheet .input, .sheet.ln-sheet .select, .sheet.ln-sheet .textarea { background-color: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; color: #f4f5fa; }
.sheet.ln-sheet .input::placeholder, .sheet.ln-sheet .textarea::placeholder { color: rgba(244, 245, 250, .5); }
.sheet.ln-sheet .input:focus, .sheet.ln-sheet .select:focus, .sheet.ln-sheet .textarea:focus { border-color: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, .2); outline: 0; }
.sheet.ln-sheet .select option { background: #06182e; color: #f4f5fa; }
.sheet.ln-sheet .ln-lbl, .sheet.ln-sheet .muted, .sheet.ln-sheet .xs, .sheet.ln-sheet .small { color: rgba(244, 245, 250, .72); }
.sheet.ln-sheet h4, .sheet.ln-sheet h3, .sheet.ln-sheet strong, .sheet.ln-sheet label { color: #f4f5fa; }
.sheet.ln-sheet .sheet-foot { background: rgba(5, 16, 42, .85); border-block-start: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.sheet.ln-sheet .btn.primary { background: #fff; color: #07080d; border-color: #fff; border-radius: 10px; font-weight: 800; }
.sheet.ln-sheet .btn:not(.primary) { background: rgba(255, 255, 255, .1); color: #f4f5fa; border-color: rgba(255, 255, 255, .2); }
.sheet.ln-sheet .btn.danger, .sheet.ln-sheet .btn-danger { color: #ff8a8e; border-color: rgba(229, 72, 77, .5); }
.sheet.ln-sheet .card, .sheet.ln-sheet .row, .sheet.ln-sheet li { color: #f4f5fa; }
.sheet.ln-sheet .card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.sheet.ln-sheet input[type="checkbox"] { accent-color: #6ee7a8; }

/* the owner's forms: groups of labelled fields */
.ln-fg { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); }
.ln-fg-t { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #6ee7a8 !important; }
.ln-fg-en > summary { cursor: pointer; list-style: none; }
.ln-fg-en > summary::-webkit-details-marker { display: none; }
.ln-fg-en > summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-start: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.ln-fg-en[open] > summary::after { transform: rotate(225deg); }
.ln-fg-en[open] > summary { margin-block-end: 12px; }
.ln-fl { display: grid; gap: 6px; }
.ln-fl[hidden] { display: none; }
.ln-fl-l { font-size: 13px; font-weight: 700; color: #f4f5fa; }
.ln-fl-h { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(244, 245, 250, .62); }
.sheet.ln-sheet .ac-form { gap: 14px; }
.ln-fg-body { display: grid; gap: 12px; }
.ln-fg-en .input, .ln-fg-en .textarea { width: 100%; box-sizing: border-box; }

/* the window's main button: the library's green, not a plain white pill */
.sheet.ln-sheet .sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.sheet.ln-sheet .sheet-foot .btn.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border: 0; border-radius: 16px; font: 800 16px/1 inherit; color: #04201a; background: linear-gradient(135deg, #8bf0bd 0%, #4fd8a4 55%, #34c4b3 100%); box-shadow: 0 8px 22px rgba(52, 196, 179, .32), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s, box-shadow .15s, filter .15s; }
.sheet.ln-sheet .sheet-foot .btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(52, 196, 179, .42), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sheet.ln-sheet .sheet-foot .btn.primary:active { transform: scale(.98); }
.sheet.ln-sheet .sheet-foot .btn.primary:disabled { opacity: .55; filter: saturate(.6); }
/* a choice as a tile: a round tick, the name, and what it is */
.sheet.ln-sheet .ln-picks { max-height: none; overflow: visible; display: grid; gap: 8px; transition: opacity .2s; }
.sheet.ln-sheet .ln-picks.is-off { opacity: .4; pointer-events: none; }
.sheet.ln-sheet .ln-pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.sheet.ln-sheet .ln-pick:hover { background: rgba(255, 255, 255, .1); }
.sheet.ln-sheet .ln-pick:active { transform: scale(.99); }
.sheet.ln-sheet .ln-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sheet.ln-sheet .ln-pick-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); color: transparent; transition: background .15s, border-color .15s, color .15s; }
.sheet.ln-sheet .ln-pick-box svg { stroke-width: 3; }
.sheet.ln-sheet .ln-pick-t { display: grid; gap: 2px; min-width: 0; }
.sheet.ln-sheet .ln-pick-t b { font-size: 14.5px; color: #f4f5fa; overflow-wrap: anywhere; }
.sheet.ln-sheet .ln-pick-t small { font-size: 11.5px; color: rgba(244, 245, 250, .6); }
.sheet.ln-sheet .ln-pick:has(input:checked) { background: rgba(110, 231, 168, .14); border-color: rgba(110, 231, 168, .6); }
.sheet.ln-sheet .ln-pick:has(input:checked) .ln-pick-box { background: #6ee7a8; border-color: #6ee7a8; color: #04201a; }
.sheet.ln-sheet .ln-pick:has(input:focus-visible) { outline: 2px solid #6ee7a8; outline-offset: 2px; }
.sheet.ln-sheet .ln-pick:has(input:disabled) { cursor: default; }
/* the code box and the embed list */
.sheet.ln-sheet .ln-code { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 12.5px; line-height: 1.55; background: rgba(2, 8, 20, .6); border-radius: 12px; }
.sheet.ln-sheet .ln-emb-row { padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); }
.sheet.ln-sheet .ln-emb-t strong { font-size: 15.5px; }
.sheet.ln-sheet .ln-emb-w { color: rgba(244, 245, 250, .65); opacity: 1; }
.sheet.ln-sheet .ln-emb-a { display: flex; gap: 8px; }
.sheet.ln-sheet .setting { background: transparent; border: 0; padding-inline: 0; }
.sheet.ln-sheet .setting .t { color: #f4f5fa; }
.sheet.ln-sheet .setting .d { color: rgba(244, 245, 250, .6); }
.sheet.ln-sheet .ln-pick { flex-direction: row; text-align: start; justify-content: flex-start; min-height: 56px; }
.sheet.ln-sheet .ln-picks { max-height: none; flex-direction: initial; }

/* a new course's corner tag, and the order of the results */
.ln-tag.is-new { background: linear-gradient(135deg, #8bf0bd, #4fd8a4); color: #04201a; }
.ln-sorts { display: flex; gap: 8px; padding: 4px var(--ln-pad) 8px; overflow-x: auto; scrollbar-width: none; }
.ln-sort { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ln-dim); font: 700 13px/1 inherit; cursor: pointer; transition: background .15s, color .15s; }
.ln-sort.is-on { background: rgba(110, 231, 168, .18); border-color: rgba(110, 231, 168, .6); color: #6ee7a8; }
/* the arrow of a choice box in the dark windows: a light chevron at its end */
.sheet.ln-sheet .select { appearance: none; -webkit-appearance: none; background-repeat: no-repeat; background-size: 18px 18px; background-position: left 14px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f5fa' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* my plan: where the person stands, what is open, and what the next level adds */
.ln-planlist { display: grid; gap: 14px; padding-block-end: 6px; }
.ln-pl-hero { --tc: #ffd27a; position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc) 26%, transparent), rgba(255, 255, 255, .04) 60%); overflow: hidden; }
.ln-pl-hero[data-tier="plus"] { --tc: #bcd7ff; }
.ln-pl-hero[data-tier="pro"] { --tc: #d6b8ff; }
.ln-pl-crown { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, rgba(0, 0, 0, .25)); border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--tc) 35%, transparent); }
.ln-pl-id { display: grid; line-height: 1.15; }
.ln-pl-id small, .ln-pl-count small { font-size: 12px; color: rgba(244, 245, 250, .7); }
.ln-pl-id strong { font-size: 26px; font-weight: 800; color: var(--tc); }
.ln-pl-count { display: grid; justify-items: end; line-height: 1.15; }
.ln-pl-count b { font-size: 20px; color: #f4f5fa; }
.ln-pl-bar { grid-column: 1 / -1; height: 6px; margin-block-start: 8px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ln-pl-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--tc), #fff); }
.ln-pl-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ln-pl-ladder li { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 6px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 700; color: rgba(244, 245, 250, .55); }
.ln-pl-ladder li i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); color: #04201a; }
.ln-pl-ladder li.is-past { color: rgba(244, 245, 250, .85); }
.ln-pl-ladder li.is-past i, .ln-pl-ladder li.is-now i { background: #6ee7a8; border-color: #6ee7a8; }
.ln-pl-ladder li.is-now { color: #f4f5fa; border-color: rgba(110, 231, 168, .7); background: rgba(110, 231, 168, .12); }
.ln-pl-ladder em { font-style: normal; font-size: 11px; font-weight: 700; color: #6ee7a8; }
.ln-pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ln-pl-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; font-size: 14.5px; color: #f4f5fa; }
.ln-pl-row + .ln-pl-row { border-block-start: 1px solid rgba(255, 255, 255, .07); }
.ln-pl-row .ln-pl-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(110, 231, 168, .2); color: #6ee7a8; }
.ln-pl-row .ln-pl-t { flex: 1; min-width: 0; }
.ln-pl-row .ln-pl-w { flex: none; margin: 0; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #6ee7a8; background: rgba(110, 231, 168, .12); }
.ln-pl-row.is-off { color: rgba(244, 245, 250, .5); }
.ln-pl-row.is-off .ln-pl-mark { background: rgba(255, 255, 255, .08); color: rgba(244, 245, 250, .5); }
.ln-pl-row .ln-pl-w.is-lock { color: #ffd27a; background: rgba(255, 210, 122, .12); }
.ln-pl-next { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px dashed rgba(255, 210, 122, .5); background: rgba(255, 210, 122, .07); }
.ln-pl-next strong { color: #ffd27a; font-size: 15px; }
.ln-pl-next span { font-size: 13px; line-height: 1.5; color: rgba(244, 245, 250, .75); }
.ln-pl-full { margin: 0; text-align: center; font-size: 14px; color: #6ee7a8; }

/* my plan, quiet: one line in the style of the chips (a dot in the colour of the level, the name of the plan), no crown and no gradient */
.ln-plan-btn { --tc: #ffd27a; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: var(--ln-fg); font: 600 14px/1 inherit; backdrop-filter: blur(8px); transition: background .15s, transform .1s; }
.ln-plan-btn:hover { background: rgba(255, 255, 255, .2); }
.ln-plan-btn[data-tier="plus"] { --tc: #8fb8ff; }
.ln-plan-btn[data-tier="pro"] { --tc: #c9a0ff; }
.ln-plan-btn[data-tier="plus"], .ln-plan-btn[data-tier="pro"] { color: var(--ln-fg); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); }
.ln-plan-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 28%, transparent); }
.ln-plan-l { font-weight: 500; color: var(--ln-dim); white-space: nowrap; }
.ln-plan-btn b, .ln-plan-btn[data-tier] b { font-size: 14px; font-weight: 800; color: var(--ln-fg); }
.ln-plan-btn span { display: inline; }
/* my plan, compact: only the dot and the name of the plan (the words "my plan" stay for screen readers and the tooltip) */
.ln-plan-btn { min-height: 40px; padding: 0 12px; gap: 7px; }
.ln-plan-btn .ln-plan-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ln-chips .ln-studio-btn { width: 40px; height: 40px; border-radius: 12px; }

/* my plan as a mark: a shield with the level's chevrons, in the colour of the plan; no words */
.ln-plan-btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; }
.ln-tier-mark { overflow: visible; }
.ln-tier-mark .tm-shield { fill: color-mix(in srgb, var(--tc) 16%, transparent); stroke: color-mix(in srgb, var(--tc) 75%, #fff 10%); stroke-width: 1.5; stroke-linejoin: round; }
.ln-tier-mark .tm-chev { fill: none; stroke: var(--tc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ln-plan-btn[data-tier="magnum"] .ln-tier-mark { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--tc) 70%, transparent)); }

/* my plan: the pass icon, plain white like the other tools (no colour of its own) */
.ln-plan-btn, .ln-plan-btn[data-tier] { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); }
.ln-plan-btn:hover { background: rgba(255, 255, 255, .2); }

/* the categories: a chip that opens a box of tiles */
.ln-chip-cat { display: inline-flex; align-items: center; gap: 6px; }
.ln-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ln-cat { position: relative; isolation: isolate; display: grid; align-content: end; gap: 2px; min-height: 96px; padding: 12px 14px; text-align: start; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); background: #0a2a32; color: #f4f5fa; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; }
.ln-cat:hover { transform: scale(1.02); }
.ln-cat-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.ln-cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 12, 24, .85), rgba(4, 12, 24, .15) 70%); }
.ln-cat strong { font-size: 16px; }
.ln-cat span { font-size: 12px; color: rgba(244, 245, 250, .75); }
.ln-cat.is-on { border-color: #6ee7a8; box-shadow: 0 0 0 2px rgba(110, 231, 168, .35); }
.ln-cat.is-all { grid-column: 1 / -1; min-height: 64px; background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); }

/* the categories box: a dark glass list that opens under its chip */
.ln-menu { position: fixed; z-index: 400; display: grid; align-content: start; gap: 2px; padding: 6px; overflow-y: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 22, 36, .94); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 44px rgba(0, 0, 0, .55); animation: ln-menu-in .14s ease-out; transform-origin: top; color-scheme: dark; }
@keyframes ln-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.ln-menu-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #f4f5fa; font: 600 15px/1 inherit; text-align: start; cursor: pointer; transition: background .12s; }
.ln-menu-i:hover, .ln-menu-i:focus-visible { background: rgba(255, 255, 255, .1); outline: 0; }
.ln-menu-i.is-on { background: rgba(110, 231, 168, .14); }
.ln-menu-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-menu-i small { font-size: 12px; font-weight: 600; color: rgba(244, 245, 250, .55); }
.ln-menu-ck { flex: none; display: grid; place-items: center; width: 18px; color: #6ee7a8; }
.ln-menu-i:first-child { border-block-end: 1px solid rgba(255, 255, 255, .08); border-radius: 10px 10px 4px 4px; margin-block-end: 4px; }
@media (prefers-reduced-motion: reduce) { .ln-menu { animation: none; } }

.ln-menu-h { margin: 8px 12px 2px; padding-block-start: 10px; border-block-start: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: rgba(244, 245, 250, .5); }
.ln-menu-i:not(.is-on) .ln-menu-t { opacity: .95; }

.ln-menu-i:first-child { border-block-end: 0; border-radius: 10px; margin-block-end: 0; }

.ln-tile.is-soon { opacity: 1; border-style: solid; }

/* the way into the codes of the whole app, at the top of the library's embed codes */
.ln-site-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: start; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); color: #f4f5fa; cursor: pointer; transition: background .15s, transform .1s; }
.ln-site-row:hover { background: rgba(255, 255, 255, .16); }
.ln-site-row:active { transform: scale(.99); }
.ln-site-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ln-site-t strong { font-size: 15px; }
.ln-site-t small { font-size: 12px; color: rgba(244, 245, 250, .65); }
.ln-site-row > svg:last-child { transform: rotate(90deg); opacity: .6; }
[dir="rtl"] .ln-site-row > svg:last-child { transform: rotate(90deg); }
.ln-site { display: grid; gap: 12px; }
.sheet.ln-sheet .ln-site .small, .sheet.ln-sheet .ln-site .dim { color: rgba(244, 245, 250, .7); }

.ln-site .btn.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 14px; font-weight: 800; color: #04201a; background: linear-gradient(135deg, #8bf0bd, #4fd8a4 55%, #34c4b3); }
/* setting out: the vessels that lie in ports */
.vy-vs-bar { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }
.vy-vs-list { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; padding: 2px; margin-block: 4px 8px; }
.vy-vs { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: start; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.vy-vs:hover:not(:disabled) { border-color: var(--accent); }
.vy-vs.is-on { border-color: var(--accent); background: var(--accent-soft); }
.vy-vs.is-off { opacity: .6; cursor: default; }
.vy-vs-pic { flex: none; width: 24px; height: 48px; object-fit: contain; transform: rotate(-90deg) scale(1.4); margin-inline: 30px 28px; }
.vy-vs-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vy-vs-t small { color: var(--text-3); font-size: 12px; }
.vy-vs-why { flex: none; max-width: 40%; font-style: normal; font-size: 11.5px; color: var(--danger, #c0392b); text-align: end; }
.vy-kind { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface-2, rgba(128, 128, 128, .08)); border: 1px solid var(--line); }
.vy-kind p { margin: 0; }
.vy-sail { display: grid; gap: 10px; margin-block-start: 10px; }
/* the kinds of ship in the shop */
.shop-ship.is-owned { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.shop-ship-steps { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; font-size: 12px; text-align: start; }
.shop-ship-steps li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.shop-ship-steps li.is-done { color: var(--ok, #2e9e5b); }
.shop-ship.is-rare { border-color: #d9b44a; background: linear-gradient(180deg, color-mix(in srgb, #d9b44a 14%, var(--surface)), var(--surface)); box-shadow: 0 0 0 1px rgba(217, 180, 74, .35), 0 10px 30px rgba(217, 180, 74, .18); }
.shop-ship-hero { display: grid; place-items: center; height: 220px; border-radius: 16px; background: linear-gradient(180deg, #0d3b5e, #09263e); margin-block-end: 8px; }
.shop-ship-hero img { height: 200px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.shop-ship-hero.is-rare { background: radial-gradient(120% 90% at 50% 40%, #11576f, #08202f 70%); box-shadow: inset 0 0 0 1px rgba(217, 180, 74, .5); }
.shop-ship-d { display: grid; gap: 6px; }
.shop-ship-d p { margin: 0; }
.vy-id-pic { width: 14px; height: 28px; object-fit: contain; transform: rotate(-90deg) scale(1.9); margin-inline: 22px 26px; }
.vy-kd { margin-block: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2, rgba(128, 128, 128, .08)); }
.vy-kd summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.vy-kd p { margin: 6px 0 0; }

/* the ships of the shop: a square picture, two to a row on a phone */
.shop-ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .shop-ship-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; } }
.shop-ship.is-owned { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.shop-ship.is-rare { border-color: #d9b44a; background: linear-gradient(180deg, color-mix(in srgb, #d9b44a 12%, var(--surface)), var(--surface)); box-shadow: 0 0 0 1px rgba(217, 180, 74, .25), 0 10px 26px rgba(217, 180, 74, .12); }
.shop-ship-sq { position: relative; aspect-ratio: 1 / 1; border-radius: 13px; overflow: visible; }
.shop-ship .n { font-size: 16px; padding-inline: 2px; }
.shop-ship-tag { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; padding-inline: 2px; }
.shop-ship-chips { display: flex; flex-wrap: wrap; gap: 4px; padding-inline: 2px; }
.shop-ship-chips span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); white-space: nowrap; }
.shop-ship-m { padding-inline: 2px; min-height: 20px; display: flex; align-items: center; }
.shop-ship-buy { display: grid; gap: 6px; margin-top: 2px; }
.shop-ship-price { display: inline-flex; align-items: baseline; gap: 5px; }
.shop-ship-price s { font-size: 11px; }
.shop-ship-one { position: absolute; inset-block-start: 7px; inset-inline-start: 7px; z-index: 3; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(8, 22, 36, .72); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; display: grid; place-items: center; padding: 0; cursor: help; }
.shop-ship-have { position: absolute; inset-block-end: 7px; inset-inline-end: 7px; z-index: 3; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.shop-ship-mine { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.shop-ship-mine-l { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-ship-mine-i { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.shop-ship-mine-i img { height: 26px; width: auto; }

/* the whole ship is seen: it lies across the square on the diagonal, so its full length fits */
.shop-ship-pic { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 13px; cursor: pointer; overflow: hidden; background: radial-gradient(130% 110% at 30% 18%, #1c6e9c 0%, #0f4268 46%, #082238 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.shop-ship-pic::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 15px); pointer-events: none; }
.shop-ship.is-rare .shop-ship-pic { background: radial-gradient(130% 110% at 30% 18%, #1f9ab8 0%, #0d5873 46%, #06202e 100%); box-shadow: inset 0 0 0 1px rgba(217, 180, 74, .55); }
.shop-ship-pic img { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none; transform: translate(-50%, -50%) rotate(38deg) scale(.92); filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .5)); transition: transform .3s ease; }
.shop-ship-pic:hover img { transform: translate(-50%, -50%) rotate(30deg) scale(.9); }
.shop-ship { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; padding: 8px 8px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: start; min-width: 0; }
.shop-ship-buy .btn { display: flex; justify-content: center; align-items: center; gap: 5px; width: 100%; min-width: 0; padding-inline: 6px; text-decoration: none; white-space: nowrap; font-size: 13px; }
.shop-ship-price s { display: none; }
.shop-ship-tip { position: absolute; z-index: 6; inset-inline: 6px; inset-block-start: 32px; padding: 6px 8px; border-radius: 9px; background: #0b1b2b; color: #fff; font-size: 11px; line-height: 1.4; text-align: start; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease; }
.shop-ship-one:hover + .shop-ship-tip, .shop-ship-one:focus-visible + .shop-ship-tip, .shop-ship-one.is-open + .shop-ship-tip { opacity: 1; transform: none; }
.shop-ship-steps { font-size: 11px; }
.shop-ship.is-rare .shop-ship-pic img { transform: translate(-50%, -50%) rotate(38deg) scale(.92); }
.shop-ship-prog { display: grid; gap: 5px; padding-inline: 2px; }
.shop-ship-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.shop-ship-bar i { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.shop-ship-bar i.is-part { background: color-mix(in srgb, #d9b44a 45%, transparent); }
.shop-ship-bar i.is-done { background: #d9b44a; }
.shop-ship-conds { display: grid; gap: 6px; }
.shop-ship-conds .shop-ship-steps { font-size: 13px; }

.shop-card .m b { flex: none; white-space: nowrap; }
.shop-card .m > span:first-child { min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.shop-ship.is-rare .shop-ship-pic:hover img { transform: translate(-50%, -50%) rotate(29deg) scale(.97); }

/* the ship's own sheet */
.sd { display: grid; gap: 14px; }
.sd-hero { position: relative; height: 250px; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 100% at 30% 15%, #1d77a8, #0e4166 50%, #071f33); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.sd.is-rare .sd-hero { background: radial-gradient(120% 100% at 30% 15%, #20a3c2, #0c5671 50%, #051c2a); box-shadow: inset 0 0 0 1px rgba(217, 180, 74, .6), 0 0 36px rgba(217, 180, 74, .18); }
.sd-sea { position: absolute; inset: -20%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 18px); animation: sd-drift 14s linear infinite; }
.sd-sea::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(255, 255, 255, .16), transparent 70%); }
.sd-ship { position: absolute; left: 50%; top: 46%; height: 78%; width: auto; transform: translate(-50%, -50%) rotate(30deg); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55)); animation: sd-bob 5s ease-in-out infinite; }
.sd-tag { position: absolute; inset-inline: 0; inset-block-end: 0; margin: 0; padding: 26px 16px 12px; font-size: 14px; color: #fff; text-align: center; background: linear-gradient(0deg, rgba(3, 14, 24, .85), transparent); }
@keyframes sd-drift { to { transform: translate(-36px, 18px); } }
@keyframes sd-bob { 0%, 100% { transform: translate(-50%, -50%) rotate(30deg); } 50% { transform: translate(-50%, -52%) rotate(27deg); } }
@media (prefers-reduced-motion: reduce) { .sd-sea, .sd-ship { animation: none; } }
.sd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sd-stat { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.sd-stat b { font-size: 20px; }
.sd-stat span { font-size: 11px; color: var(--muted); }
.sd-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.sd-abs { display: grid; gap: 8px; }
.sd-ab { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.sd-ab-i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff; }
.sd-ab.is-up .sd-ab-i { background: #2e9e5b; } .sd-ab.is-down .sd-ab-i { background: #d98a2b; } .sd-ab.is-skill .sd-ab-i { background: #4a6cf7; }
.sd-ab-t b { font-size: 14px; } .sd-ab-t p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.sd-earn { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #d9b44a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #d9b44a 45%, var(--line)); }
.sd-earn p { margin: 0; font-size: 13px; color: var(--muted); }
.sd-dots { display: flex; gap: 6px; }
.sd-conds { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid #d9b44a; }
.sd-world { text-align: center; margin: 0; }
.sd-buy { position: sticky; inset-block-end: 0; display: grid; gap: 6px; padding: 10px 0 2px; background: linear-gradient(0deg, var(--surface) 70%, transparent); }
.sd-buy .btn { display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; font-size: 16px; padding-block: 12px; text-decoration: none; }
.sd-buy > .xs { text-align: center; }

.sd-dots img { width: 38px; height: 38px; object-fit: contain; filter: grayscale(1) brightness(.7); opacity: .35; transition: filter .3s, opacity .3s, transform .3s; }
.sd-dots img.is-on { filter: drop-shadow(0 3px 5px rgba(120, 20, 20, .45)); opacity: 1; transform: rotate(-6deg); }
.shop-ship-st { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: 4px; }
.shop-ship-st img { width: 20px; height: 20px; }
.sd-cost { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); background: color-mix(in srgb, var(--text) 5%, transparent); }

/* the guide's swatches for the ships in port, the list of ships, and the sea where no ship sails */
.wm-g-sw.is-moored { background: linear-gradient(90deg, #5f7f3c 0 46%, #1d3050 46%); overflow: hidden; }
.wm-g-sw.is-moored::after { content: ''; position: absolute; left: 50%; top: 1px; width: 10px; height: 20px; margin-left: -3px; background: url(/static/img/ships/caravel.webp) center / contain no-repeat; }
.wm-g-sw.is-count { background: #1d3050; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.wm-g-sw.is-count::after { content: '52'; }
.wm-g-sw.is-void { background: #1d3050; }
.wm-g-sw.is-void::after { content: ''; position: absolute; inset: 3px 9px; background: rgba(232, 214, 160, .6); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* the placing mode of the map's ships (the owner's): a small bar, the rest is on the map itself */
.qm-bp { position: absolute; left: 50%; inset-block-end: 10px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(12, 22, 36, .9); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); font-size: 13px; }
.qm-bp[hidden] { display: none; }
.qm-bp-bs { display: flex; gap: 6px; }
.qm-bp-b { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.qm-bp-b.is-ok { background: #2e9e5b; }
.qm-btn-edit.is-on, .is-berth-edit .qm-btn-edit { background: #ffd24a; color: #0c1624; }
.is-berth-edit .qm-view { touch-action: none; }

/* what a voyage costs: the fee and the price of a hundred miles, the wheel of distance, the credit */
.sf { display: grid; gap: 3px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.sf-r { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12.5px; }
.sf-p { display: inline-flex; align-items: baseline; gap: 5px; }
.sf-p s { font-size: 11px; }
.sf-free { color: var(--ok, #2e9e5b); font-size: 13px; }
.sf-big { padding: 12px 14px; gap: 6px; }
.sf-big .sf-r { font-size: 15px; }
.sw { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.sw-sum { display: flex; align-items: baseline; gap: 4px; font-size: 20px; }
.sw-range { width: 100%; height: 34px; appearance: none; background: transparent; cursor: pointer; }
.sw-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1d6fa5, #0b3355); }
.sw-range::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1d6fa5, #0b3355); }
.sw-range::-webkit-slider-thumb { appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; border: 3px solid #fff; background: #ffd24a url(/static/img/ships/caravel.webp) center / 10px 20px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.sw-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: #ffd24a; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.sw-ends { display: flex; justify-content: space-between; }
.sw-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.sw-total { font-size: 26px; font-weight: 800; }
.sw-how { flex-basis: 100%; }
.shop-ship-credit { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shop-ship-credit-n { font-size: 22px; font-weight: 800; }
.shop-ship-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* the voyage's price, in the screen where it is set out */
.vy-quote { display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.vy-quote:empty { display: none; }
.vy-q-r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.vy-q-total { display: flex; align-items: baseline; gap: 8px; padding-block: 6px; border-block: 1px dashed var(--line); font-size: 15px; }
.vy-q-total b { font-size: 24px; margin-inline-start: auto; }
.vy-q-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vy-q-err { color: var(--danger, #c0392b); }
.vy-wheel { margin-block: 4px; }
.vy-vs-fee { display: inline-flex; gap: 4px; align-items: baseline; flex-wrap: wrap; }
.vy-here { margin: 0 0 6px; }

.vy-vs-fee { font-style: normal; color: var(--muted); }

.sf-r > span:first-child { white-space: nowrap; }
.sf-p { white-space: nowrap; }
/* In a narrow card (the shop beside its rail) a row that does not fit goes to two lines, the price at the far side, and never out of the card. */
.sf { min-width: 0; }
.sf-r { flex-wrap: wrap; row-gap: 0; min-width: 0; }
.sf-r > :last-child { margin-inline-start: auto; }
.shop-ship .sf-r > span:first-child { white-space: normal; }
.shop-ship .shop-pack-own { white-space: normal; max-width: 100%; }

/* the sign-in screens: a notice between the fields and the button */
.auth-card .callout { margin-block: 14px; }

/* ---- the Path's header photo: replaces the sky (the owner's choice: a meditator on a beach at dusk; the same by day and by night). It scrolls with the page,
   melts into the page's colour below, and the rank's mark is small and sits where the photo ends ---- */
:root { --pz-photo-h: min(56vh, 500px); }
.pz-sky, [data-theme="dark"] .pz-sky, .pz-sky[data-hour] { position: absolute; inset: 0 0 auto 0; height: var(--pz-photo-h); background: #1b1450 url('/static/img/path-hero.webp') 30% 38% / cover no-repeat; }
.pz-mist { background: linear-gradient(180deg, rgba(10, 6, 40, .30) 0%, transparent 24%, transparent 56%, color-mix(in srgb, var(--bg) 62%, transparent) 80%, var(--bg) 100%); }
@media (min-width: 900px) { .pz-sky, [data-theme="dark"] .pz-sky, .pz-sky[data-hour] { inset-inline-start: var(--sidebar-w); } body:has(.shell[data-collapsed="true"]) .pz-sky { inset-inline-start: var(--sidebar-w-collapsed); }
  .pz-mist { background: linear-gradient(180deg, rgba(10, 6, 40, .30) 0%, transparent 24%, transparent 56%, color-mix(in srgb, var(--bg) 62%, transparent) 80%, var(--bg) 100%); } }
.pz-stage { --size: min(34vw, 140px); margin-block-start: calc(var(--pz-photo-h) - 205px); }
.pz-float { width: 82%; }
.pz-greet { margin-block-start: 14px; }

/* ---- the rank panel (the owner's reference): a medallion with the mark, the rank and the way to the next one, where the photo ends ---- */
.pz-rank { position: relative; z-index: 3; width: 100%; max-width: 420px; margin-block-start: calc(var(--pz-photo-h) - 150px); display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 24px; cursor: pointer; text-align: start;
  background: rgba(24, 16, 56, .56); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 40px -18px rgba(10, 6, 40, .7); color: #fff; -webkit-tap-highlight-color: transparent; }
.pz-rank:active { transform: scale(.985); }
.pz-rank[data-tier="מבנה"] { --pz-a1: #8f7bff; --pz-a2: #b79bff; --pz-a3: #ff8ad8; }
.pz-rank[data-tier="אור"] { --pz-a1: #ffb347; --pz-a2: #ffd27a; --pz-a3: #ff7aa8; }
.pz-rank[data-tier="שלמות"] { --pz-a1: #ffd86b; --pz-a2: #fff1b8; --pz-a3: #ffb3e0; }
.pz-rank .pz-stage { --size: 76px; flex: none; width: 76px; height: 76px; margin: 0; transform: none; opacity: 1; perspective: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 60%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pz-a2) 70%, #fff 10%), 0 6px 18px -6px rgba(0, 0, 0, .6); }
.pz-rank .pz-float { width: 88%; animation: none; }
.pz-rank .pz-mark .rank3d { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.pz-rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pz-rank-k { font-size: 12px; font-weight: 600; opacity: .72; letter-spacing: .02em; }
.pz-rank-name { font-size: clamp(24px, 6.6vw, 30px); font-weight: 780; letter-spacing: -.02em; line-height: 1.1; }
.pz-rank-bar { display: block; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; margin-block: 4px 1px; }
.pz-rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--pz-a1), var(--pz-a2) 60%, var(--pz-a3)); }
.pz-rank-pct { font-size: 12px; font-weight: 600; opacity: .8; }
.pz-greet { margin-block-start: 22px; }

/* ---- the rank panel, richer: a medallion with a glowing progress ring that rises over the panel's edge, a metallic edge in the rank's colours, and a slow sweep of light ---- */
.pz-rank { margin-block-start: calc(var(--pz-photo-h) - 128px); padding: 18px; padding-inline-start: 126px; min-height: 104px; border-radius: 28px; overflow: visible; isolation: isolate;
  background: linear-gradient(135deg, rgba(34, 22, 78, .72), rgba(16, 12, 44, .66)); border: 0;
  box-shadow: 0 24px 48px -20px rgba(8, 4, 36, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.pz-rank::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--pz-a2), rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, .08) 62%, var(--pz-a3));
  -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 exclude, linear-gradient(#000 0 0); }
.pz-rank::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; overflow: hidden;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .13) 48%, transparent 66%); background-size: 260% 100%; background-position: 130% 0; animation: pz-sweep 7s ease-in-out 1.2s infinite; }
@keyframes pz-sweep { 0%, 55% { background-position: 130% 0; } 100% { background-position: -40% 0; } }
.pz-rank-medal { position: absolute; inset-inline-start: 14px; top: -30px; width: 100px; height: 100px; display: grid; place-items: center; }
.pz-rank-aura { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--pz-a2) 55%, transparent), transparent 72%); filter: blur(6px); animation: pz-halo 6s ease-in-out infinite; }
.pz-rank-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pz-rank-track { fill: rgba(20, 14, 52, .78); stroke: rgba(255, 255, 255, .16); stroke-width: 6; }
.pz-rank-arc { fill: none; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--pz-a2)); }
.pz-rank .pz-stage { --size: 74px; position: relative; z-index: 1; width: 74px; height: 74px; background: none; box-shadow: none; }
.pz-rank .pz-float { width: 92%; animation: pz-float 7s ease-in-out infinite; }
.pz-rank .pz-mark .rank3d { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); }
.pz-rank-body { gap: 2px; }
.pz-rank-k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pz-rank-name { font-size: clamp(28px, 7.8vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px color-mix(in srgb, var(--pz-a2) 55%, transparent); }
.pz-rank-bar { height: 6px; margin-block: 6px 3px; }
.pz-rank-bar i { position: relative; box-shadow: 0 0 10px color-mix(in srgb, var(--pz-a2) 70%, transparent); }
.pz-rank-bar i::after { content: ''; position: absolute; inset-inline-end: -1px; top: 50%; width: 10px; height: 10px; translate: 0 -50%; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--pz-a2); }
.pz-rank-pct b { font-weight: 800; color: #fff; } .pz-rank-pct { opacity: .85; }
.pz-greet { margin-block-start: 26px; }
@media (prefers-reduced-motion: reduce) { .pz-rank::after, .pz-rank-aura, .pz-rank .pz-float { animation: none; } }
html[data-motion="reduced"] .pz-rank::after, html[data-motion="reduced"] .pz-rank-aura { animation: none; }

/* the medallion stays inside the panel (nothing sticks out of it: the owner), so the panel reads as one piece */
.pz-rank { margin-block-start: calc(var(--pz-photo-h) - 112px); padding: 14px 16px 14px 14px; padding-inline-start: 14px; gap: 14px; min-height: 0; }
.pz-rank-medal { position: relative; inset: auto; top: auto; flex: none; width: 88px; height: 88px; }
.pz-rank .pz-stage { --size: 64px; width: 64px; height: 64px; }
.pz-rank-aura { inset: -6px; }

/* ---- the rank as a sheet (the owner did not like the glass panel): the page's own colour rises over the photo's edge, and the rank sits on it as part of the page. Nothing moves. ---- */
:root { --pz-sheet-up: 34px; }
.pz-mist { background: linear-gradient(180deg, rgba(10, 6, 40, .30) 0%, transparent 26%, transparent 100%); }
.pz-rank { position: relative; z-index: 3; width: auto; max-width: none; margin-inline: calc(var(--s4) * -1); margin-block-start: calc(var(--pz-photo-h) - var(--pz-sheet-up)); padding: 22px var(--s4) 6px; gap: 16px; min-height: 0;
  border-radius: 30px 30px 0 0; background: var(--bg); border: 0; color: var(--text); text-align: start; overflow: visible; isolation: auto;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -14px 28px -18px rgba(8, 4, 36, .55); }
.pz-rank::before, .pz-rank::after { display: none; }
.pz-rank:active { transform: none; }
.pz-rank-medal { position: relative; inset: auto; top: auto; flex: none; width: 84px; height: 84px; }
.pz-rank-aura { display: none; }
.pz-rank-track { fill: color-mix(in srgb, var(--text) 5%, var(--bg)); stroke: color-mix(in srgb, var(--text) 12%, transparent); stroke-width: 5; }
.pz-rank-arc { stroke-width: 5; filter: none; }
.pz-rank .pz-stage { --size: 62px; width: 62px; height: 62px; }
.pz-rank .pz-float { animation: none; width: 94%; }
.pz-rank .pz-mark { transform: none; }
.pz-rank .pz-mark .rank3d { filter: drop-shadow(0 4px 8px rgba(30, 20, 90, .25)); }
.pz-rank-k { color: var(--text-3); opacity: 1; letter-spacing: .08em; text-transform: none; font-size: 12px; font-weight: 650; }
.pz-rank-name { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); text-shadow: none; font-size: clamp(28px, 7.6vw, 34px); }
.pz-rank-bar { background: color-mix(in srgb, var(--text) 10%, transparent); height: 5px; }
.pz-rank-bar i { box-shadow: none; }
.pz-rank-bar i::after { display: none; }
.pz-rank-pct { color: var(--text-2); opacity: 1; } .pz-rank-pct b { color: var(--text); }
.pz-greet { margin-block-start: 18px; }

.pz-rank { align-self: stretch; margin-block-start: calc(var(--pz-photo-h) - 100px); }

/* ---- the rank laid on the photo (the owner did not like the boxes): plain type over a dark foot of the photo, the page's sheet rising under it. Nothing moves. ---- */
:root { --pz-rank-h: 124px; }
.pz-mist { background: linear-gradient(180deg, rgba(10, 6, 40, .30) 0%, transparent 22%, transparent 42%, rgba(12, 8, 44, .55) 74%, rgba(14, 9, 48, .88) 100%); }
.pz-rank { position: relative; z-index: 3; align-self: stretch; width: auto; max-width: none; margin-inline: 0; margin-block-start: calc(var(--pz-photo-h) - 62px - var(--pz-rank-h) - 46px); padding: 0; min-height: 0; gap: 4px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: start; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; cursor: pointer;
  -webkit-backdrop-filter: none; backdrop-filter: none; isolation: auto; overflow: visible; }
.pz-rank::before, .pz-rank::after { display: none; }
.pz-rank:active { transform: none; }
.pz-rank-top { display: flex; align-items: center; gap: 10px; }
.pz-rank .pz-stage { --size: 38px; position: relative; width: 38px; height: 38px; margin: 0; flex: none; display: grid; place-items: center; transform: none; opacity: 1; perspective: none; border-radius: 50%;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.pz-rank .pz-float { width: 84%; animation: none; }
.pz-rank .pz-mark { transform: none; }
.pz-rank .pz-mark .rank3d { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.pz-rank-k { font-size: 13px; font-weight: 650; letter-spacing: .06em; color: rgba(255, 255, 255, .86); }
/* The sword (rank 16) is long and thin: in the small round box it could not be made out, so its box, ring and caption are a little larger (the owner, 2026-11-28). */
.pz-rank[data-symbol="continuum"] .pz-stage { --size: 54px; width: 54px; height: 54px; margin-block: -8px;   /* (the row keeps its height: the name below stays where it was) */
  background: radial-gradient(circle at 50% 42%, rgba(46, 30, 92, .92), rgba(12, 8, 30, .94) 72%); box-shadow: inset 0 0 0 1px rgba(196, 160, 255, .55), 0 4px 14px rgba(0, 0, 0, .35); }
.pz-rank[data-symbol="continuum"] .pz-float { width: 96%; }
.pz-rank[data-symbol="continuum"] .pz-rank-k { font-size: 15px; }
.pz-rank-name { font-size: clamp(46px, 13vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; color: #fff; background: none; text-shadow: 0 2px 22px rgba(10, 6, 40, .55); }
/* The rank's name in the engraved letter of the characters' roles (Bellefair, which has only Hebrew letters); in English, a light modern letter (Outfit). */
@font-face { font-family: 'RetzefRankEn'; font-weight: 100 900; font-display: swap; src: url(/static/fonts/nx-outfit-latin.woff2) format('woff2'); }
.pz-rank-name, .pc-rank-name { font-family: 'RetzefRole', 'RetzefRankEn', Georgia, serif; font-weight: 300; letter-spacing: .02em; }
.pc-rank-name { font-size: 1.12em; }
.ladder-name { font-family: 'RetzefRole', 'RetzefRankEn', Georgia, serif; font-weight: 300; font-size: 1.2em; letter-spacing: .02em; }
.pc-rank-name b { font-family: var(--font); font-weight: 750; letter-spacing: 0; }
.pz-rank-line { display: flex; align-items: center; gap: 12px; align-self: stretch; margin-block-start: 6px; }
.pz-rank-bar { flex: 1; height: 3px; margin: 0; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.pz-rank-bar i { display: block; height: 100%; border-radius: 3px; background: #fff; box-shadow: none; }
.pz-rank-bar i::after { display: none; }
.pz-rank-pct { flex: none; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86); opacity: 1; } .pz-rank-pct b { color: #fff; font-weight: 800; }
.pz-sheet { position: relative; z-index: 2; align-self: stretch; margin-inline: calc(var(--s4) * -1); margin-block-start: 0; padding: 26px var(--s4) 4px; background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 24px -16px rgba(8, 4, 36, .5);
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.pz-greet { margin-block-start: 0; }
.pz-hero .pz-sheet > .pz-greet + .pz-date { margin-block-start: 8px; }

/* ---- the photo IS the top of the screen (the owner: the part from the greeting down must not look like a card laid over the photo, it must belong to the photo).
   The photo is the hero's own background, under the rank, the greeting and the numbers, darkening for the type and melting into the page's colour at its foot. ---- */
.pz-sky { display: none !important; }
.pz-hero { isolation: isolate; padding-top: 236px; padding-bottom: 64px; }
.pz-hero::before { content: ''; position: absolute; z-index: -1; inset: -80px calc(var(--s4) * -1) 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 6, 40, .34) 0%, rgba(10, 6, 40, 0) 20%, rgba(10, 6, 40, 0) 34%, rgba(12, 8, 44, .62) 54%, rgba(14, 9, 48, .86) 74%, rgba(14, 9, 48, .86) 84%, var(--bg) 100%),
    #1b1450 url('/static/img/path-hero.webp') 28% 0% / auto 700px no-repeat; }
.pz-rank { margin-block-start: 0; }
.pz-sheet { background: none; box-shadow: none; border-radius: 0; margin: 0; padding: 18px 0 0; }
.pz-hero .pz-hi { color: rgba(255, 255, 255, .82); }
.pz-hero .pz-name { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fff; animation: none !important; text-shadow: 0 2px 22px rgba(10, 6, 40, .55); }
.pz-hero .pz-date, .pz-hero .pz-date .hero-heb { color: rgba(255, 255, 255, .72); }
.pz-hero .pz-date .hero-day-mark { color: #fff; }
.pz-hero .pz-stat strong { color: #fff; } .pz-hero .pz-stat.is-day strong { color: transparent; }
.pz-hero .pz-stat span { color: rgba(255, 255, 255, .78); }
.pz-hero .pz-stat + .pz-stat::before { background: linear-gradient(transparent, rgba(255, 255, 255, .35), transparent); }
.pz-hero .pz-trend { color: rgba(255, 255, 255, .7); }

/* the photo melts into whatever the page is behind it (day or night), by a mask instead of a colour; the floating writing bar is gone from the Path (it hid part of the screen), the round + stays */
.pz-hero { padding-bottom: 96px; }
.pz-hero::before { background: linear-gradient(180deg, rgba(10, 6, 40, .34) 0%, rgba(10, 6, 40, 0) 20%, rgba(10, 6, 40, 0) 34%, rgba(12, 8, 44, .62) 52%, rgba(14, 9, 48, .86) 70%, rgba(14, 9, 48, .86) 100%), #1b1450 url('/static/img/path-hero.webp') 28% 0% / auto 700px no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, .55) 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 66%, rgba(0, 0, 0, .55) 84%, transparent 100%); }
body[data-view="today"] .pz-comp { display: none !important; }
body[data-view="today"] .fab { display: inline-flex; }

/* ==================================================================================================
   The flock, as one screen of five tabs (views/social.js): the day of the friends on top as a rail, the tabs under it (sticky), and a pane for each.
   ================================================================================================== */
.sc { gap: 16px; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.sc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sc-brand-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4f86ff, #8a62ff 58%, #ff6fc0); box-shadow: 0 12px 24px -14px #7a5cff, inset 0 1px 0 rgba(255, 255, 255, .35); }
.sc-brand-ic .ic { stroke: #fff; }
.sc-head .sc-title { font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.sc-head .sc-hero-s { margin-block-start: 2px; }
.sc-ib-bell { position: relative; }
.sc-ib-n { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #ff375f; box-shadow: 0 0 0 2px var(--bg); }
.sc-rail { padding-block-start: 34px; }
.sc-tabs { position: sticky; inset-block-start: calc(var(--nav-h, 56px) + env(safe-area-inset-top, 0px) - 2px); z-index: 25; display: flex; gap: 2px; padding: 4px; border-radius: 20px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px var(--line), 0 10px 26px -18px rgba(30, 20, 90, .5); }
.sc-tab { position: relative; flex: 1 1 0; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; border: 0; border-radius: 16px; background: none; font: inherit; font-size: 11.5px; font-weight: 650; color: var(--text-3); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
.sc-tab .ic, .sc-tab .logo-bird { stroke: currentColor; }
.sc-tab.is-on { color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); font-weight: 780; }
.sc-tab:active { transform: scale(.96); }
.sc-tab-n { position: absolute; inset-block-start: 3px; inset-inline-end: calc(50% - 22px); min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: #ff375f; box-shadow: 0 0 0 2px var(--surface); }
.sc-pane { display: flex; flex-direction: column; gap: 16px; }
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.sc-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; border: 0; border-radius: 17px; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--text-2); background: var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sc-chip b { font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 8px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.sc-chip.is-on { color: var(--surface); background: var(--text); box-shadow: none; } .sc-chip.is-on b { background: color-mix(in srgb, var(--surface) 22%, transparent); }
.sc-new { flex: none; }
.sc-search { display: flex; align-items: center; gap: 10px; height: 46px; padding-inline: 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--text-3); }
.sc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: inherit; font-size: 16px; color: var(--text); }
.sc-search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.sc-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sc-cgrid .sc-circle { width: auto; min-height: 142px; position: relative; padding: 16px; gap: 6px; }
.sc-cgrid .sc-circle.is-new { align-items: center; justify-content: center; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, transparent); box-shadow: none; }
.sc-circle-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4f86ff, #8a62ff); }
.sc-circle-plus .ic { stroke: #fff; }
.sc-hint { margin: 0; padding-inline: 4px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.sc-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-kind { --k1: #5e5ce6; --k2: #8f6bff; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; border: 0; border-radius: 20px; font: inherit; text-align: start; color: inherit; cursor: pointer; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-kind.is-chain { --k1: #0a9f8a; --k2: #34c7b0; } .sc-kind.is-race { --k1: #ff6a3d; --k2: #ffa21a; } .sc-kind.is-cowork { --k1: #2f7bff; --k2: #5ac8fa; }
.sc-kind-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--k1), var(--k2)); box-shadow: 0 8px 16px -10px var(--k1); }
.sc-kind-ic .ic { stroke: #fff; }
.sc-kind strong { font-size: 15px; } .sc-kind .sc-meta { font-size: 12.5px; line-height: 1.45; }
.sc-empty-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 22px; border-radius: 24px; text-align: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.sc-empty-card p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.sc-empty-card .btn { margin-block-start: 6px; }
.sc-empty-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.sc-moments { display: flex; flex-direction: column; gap: 8px; }
.sc-moment { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-pane > .ios-list { margin: 0; }
@media (min-width: 900px) { .sc-tabs { max-width: 560px; } .sc-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sc-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Lumora's header tile: midnight blue to turquoise, the two circles of light inside */
.sc-brand-ic { background: radial-gradient(circle at 30% 25%, #2a3fb8, #0b1f6b 70%); box-shadow: 0 12px 24px -14px #2de2d0, inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-brand-ic .lumora-mark { filter: drop-shadow(0 0 6px rgba(45, 226, 208, .55)); }
.sc-by { margin: 2px 0 0; font-size: 11.5px; letter-spacing: .04em; color: var(--text-3); }
.sc-head .sc-hero-s { display: none; }

/* ==================================================================================================
   Lumora as a social network: icons first (big, round, coloured), words second; stories-like highlights, covers for circles, a podium for the week
   ================================================================================================== */
.sc-hero-act { gap: 10px; }
/* (the two head buttons as the top bar's own: a plain rounded square, a dark sign; the owner did not like the coloured circles, 2026-11-28) */
.sc-ib { width: 40px; height: 40px; border-radius: var(--r2); color: var(--text); background: var(--surface); box-shadow: var(--sh-1); }
.sc-ib-bell, .sc-ib-status, .sc-hero-act .sc-ib:last-child { color: var(--text); background: var(--surface); }
.sc-ib-status span { font-size: 22px; }
.sc-ib-n { inset-block-start: -3px; inset-inline-end: -3px; }

/* the four numbers: highlights as in a story strip, an icon in a coloured disc with the number on its edge, a small word under it */
.sc-kpis { gap: 4px; padding-block: 2px; }
.sc-kpi { align-items: center; gap: 8px; padding: 6px 2px; background: none; box-shadow: none; text-align: center; border-radius: 16px; }
.sc-kpi-ic { position: relative; width: 62px; height: 62px; margin: 0; border-radius: 50%; box-shadow: 0 10px 20px -12px currentColor, inset 0 1px 0 rgba(255, 255, 255, .35); }
.sc-kpi.is-green { color: #0a9f6e; } .sc-kpi.is-orange { color: #ff6a00; } .sc-kpi.is-blue { color: #0a84ff; } .sc-kpi.is-violet { color: #6a4cff; }
.sc-kpi-ic svg, .sc-kpi-ic .logo-bird { stroke: #fff; width: 26px; height: 26px; }
.sc-kpi .sc-kpi-n { position: absolute; inset-block-end: -4px; inset-inline-end: -6px; min-width: 26px; height: 24px; padding-inline: 7px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 850; letter-spacing: 0; line-height: 1; color: currentColor; background: var(--surface); box-shadow: 0 0 0 2px var(--bg), 0 4px 10px -4px rgba(16, 18, 27, .35); white-space: nowrap; }
.sc-kpi > .sc-kpi-l { font-size: 12px; font-weight: 650; color: var(--text-2); line-height: 1.3; white-space: normal; overflow: visible; max-width: 100%; text-wrap: balance; }

/* circles: a cover in the circle's colour, the emblem rising over it */
.sc-cgrid .sc-circle { padding: 0 14px 14px; min-height: 164px; overflow: hidden; align-items: center; text-align: center; gap: 4px; }
.sc-circle-cover { align-self: stretch; height: 58px; margin-inline: -14px; background: radial-gradient(120% 140% at 80% 0%, color-mix(in srgb, var(--cc, #6a4cff) 55%, #fff), transparent 60%), linear-gradient(135deg, var(--cc, #6a4cff), color-mix(in srgb, var(--cc, #6a4cff) 55%, #000)); }
.sc-cgrid .sc-circle-ring { width: 58px; height: 58px; margin-block-start: -29px; font-size: 18px; box-shadow: 0 0 0 4px var(--surface), 0 8px 18px -8px var(--cc, #0a9f6e); }
.sc-cgrid .sc-circle-ring.has-emoji span { font-size: 28px; }
.sc-cgrid .sc-circle strong { font-size: 15.5px; }
.sc-circle-m { font-size: 12px; }
.sc-cgrid .sc-circle.is-unread { box-shadow: 0 0 0 2px var(--cc, var(--accent)), var(--sh-1); }
.sc-cgrid .sc-circle-badge { inset-block-start: 8px; inset-inline-end: 8px; background: #fff; color: #111; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.sc-cgrid .sc-circle.is-new { padding: 14px; min-height: 164px; }
.sc-circle-plus { width: 58px; height: 58px; }

/* the week: three faces on a podium, then the rest */
.sc-week { display: flex; flex-direction: column; gap: 12px; }
.sc-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 18px 10px 14px; border-radius: 24px; background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.sc-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 4px; border: 0; background: none; font: inherit; color: var(--text); min-width: 0; cursor: pointer; }
.sc-pod.is-1 { order: 2; padding-block-end: 14px; } .sc-pod.is-2 { order: 1; } .sc-pod.is-3 { order: 3; }
.sc-pod-face { position: relative; display: block; }
.sc-pod-n { position: absolute; inset-block-end: -6px; inset-inline-start: 50%; transform: translateX(-50%); min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12.5px; font-weight: 850; color: #fff; box-shadow: 0 0 0 2px var(--surface); background: #a35f2a; }
html[dir="rtl"] .sc-pod-n { transform: translateX(50%); }
.sc-pod.is-1 .sc-pod-n { background: linear-gradient(135deg, #f5cf4e, #c8921a); } .sc-pod.is-2 .sc-pod-n { background: linear-gradient(135deg, #cfd5de, #8e97a6); } .sc-pod.is-3 .sc-pod-n { background: linear-gradient(135deg, #e09a5c, #a35f2a); }
.sc-pod .sc-tname { margin-block-start: 8px; max-width: 100%; text-align: center; font-size: 13.5px; }
.sc-pod strong { font-size: 17px; font-weight: 850; }
.sc-pod.is-1 strong { color: #c8921a; font-size: 20px; }
.sc-pod.is-me .sc-tname { color: var(--accent-text, var(--accent)); }
.sc-table .sc-trow { padding-block: 7px; }
.sc-table .sc-tname { min-width: 0; flex: 0 1 96px; }

/* the circle room: a cover in the circle's colour, round actions, a strip of four numbers */
.cc-hero { padding-block-start: 30px; }
.cc-emblem { width: 92px; height: 92px; border-radius: 50%; font-size: 46px; box-shadow: 0 0 0 5px var(--surface), 0 14px 28px -12px var(--cc); }
.cc-stats { display: flex; gap: 8px; margin-block-start: 6px; }
.cc-stat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 12px; border-radius: 17px; color: var(--text-2); background: color-mix(in srgb, var(--cc) 11%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 22%, transparent); }
.cc-stat b { font-size: 14px; font-weight: 850; color: var(--text); }
.cc-hero-act { gap: 14px; margin-block-start: 12px; }
.cc-btn { width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
.cc-btn svg { width: 22px; height: 22px; }
.cc-ch-ic { width: 44px; height: 44px; border-radius: 50%; font-size: 21px; }
.cc-ch + .cc-ch::before, .cc-mem + .cc-mem::before { inset-inline-start: 72px; }
.cc-room-ic { width: 44px; height: 44px; border-radius: 50%; }
.cc-room-ic svg { width: 21px; height: 21px; }

/* the profile: a cover in the person's colour, a big face over it, round actions with a short word */
.prs-hero { padding-block-start: 66px; }
.prs-hero-bg { inset: 0 -20px auto; height: 128px; -webkit-mask: none; mask: none; border-radius: 0 0 28px 28px; background: radial-gradient(120% 140% at 80% 0%, color-mix(in srgb, var(--cc, #6a4cff) 55%, #fff), transparent 60%), linear-gradient(135deg, var(--cc, #6a4cff), color-mix(in srgb, var(--cc, #6a4cff) 50%, #000)); }
.prs-hero.is-inner .prs-hero-bg { background: radial-gradient(120% 140% at 80% 0%, #ffe9a6, transparent 60%), linear-gradient(135deg, #f5c542, #b8801a); }
.prs-hero .sc-face { box-shadow: 0 0 0 5px var(--bg); border-radius: 50%; }
.prs-quick { gap: 10px; }
.prs-q { background: none; box-shadow: none; padding: 4px 0; gap: 7px; }
.prs-q-ic { width: 58px; height: 58px; color: var(--accent); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); }
.prs-q-ic svg { width: 25px; height: 25px; }
.prs-q-ic .logo-bird-line { width: 28px; height: 28px; }
.prs-q-t { font-size: 12px; font-weight: 650; color: var(--text-2); }
.prs-stats { border-radius: 22px; }
.prs-stat strong { font-size: 19px; }
.prs-about { border-radius: 22px; }
.prs-bio { font-size: 15.5px; line-height: 1.65; }
/* the week lies open on the page: no box around the podium or the rows */
.sc-podium { background: none; box-shadow: none; padding-inline: 0; }
.sc-week .sc-group { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.sc-week .sc-trow { padding-inline: 4px; border-radius: 14px; }
.sc-week .sc-trow + .sc-trow { box-shadow: 0 -1px 0 var(--line); }
.sc-kpi { --kc: #0a9f6e; } .sc-kpi.is-orange { --kc: #ff6a00; } .sc-kpi.is-blue { --kc: #0a84ff; } .sc-kpi.is-violet { --kc: #6a4cff; }
.sc-kpi .sc-kpi-n { color: var(--kc); }

.sc .sc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-kpi-ic { width: 56px; height: 56px; }
.sc-kpi > .sc-kpi-l { font-size: 11.5px; }
.cc-stat .cc-hash { font-size: 17px; font-weight: 850; line-height: 1; }

.sc-ib-more { color: var(--text-2); background: var(--surface); } .sc-ib-more span { font-size: 22px; line-height: 1; }

/* circles as a list, as the big networks lay out groups: a rounded emblem, the name, one line, a badge; no boxes */
.sc-clist { display: flex; flex-direction: column; }
.sc-crow { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-crow + .sc-crow::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 74px 0; height: 1px; background: var(--line); }
.sc-crow:active { background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 16px; }
.sc-crow-ic { flex: none; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; font-weight: 850; color: #fff; }
.sc-crow-ic.is-emblem { background: radial-gradient(120% 120% at 25% 15%, color-mix(in srgb, var(--cc) 55%, #fff), var(--cc) 55%, color-mix(in srgb, var(--cc) 60%, #000)); box-shadow: 0 10px 20px -12px var(--cc), inset 0 1px 0 rgba(255, 255, 255, .35); }
.sc-crow.is-new .sc-crow-ic { color: var(--accent-text, var(--accent)); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent); }
.sc-crow.is-new .sc-crow-ic .ic { stroke: currentColor; }
.sc-crow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-crow-t strong { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-crow.is-unread .sc-crow-t strong { font-weight: 850; }
.sc-crow-t .sc-meta { font-size: 13px; color: var(--text-3); line-height: 1.35; }
.sc-crow.is-new .sc-crow-t strong { color: var(--accent-text, var(--accent)); }
.sc-crow-badge { flex: none; min-width: 24px; height: 24px; padding-inline: 8px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 850; color: #fff; background: var(--accent); }
.sc-crow-badge.is-at { background: #ff375f; }
.sc-chip-s { flex: none; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #8a5a00; background: linear-gradient(135deg, #fff2c6, #ffd77a); }
.sc-crow-ic { border-radius: 50%; }
.sc-crow-ic .ic { stroke: #fff; width: 32px; height: 32px; }
.sc-crow.is-new .sc-crow-ic .ic { stroke: currentColor; width: 26px; height: 26px; }
.cc-emblem .ic { stroke: #fff; width: 50px; height: 50px; }

/* my note's face has the same outer size as the friends' ringed faces, so the whole rail sits on one line */
.sc-me-face { padding: 3px; }

.sc .sc-kpi > .sc-kpi-l { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.25; }

/* the circle's own picture: the orbit of its members; a chosen emoji sits in the core */
.sc-crow-ic.is-emblem, .cc-emblem { position: relative; overflow: hidden; }
.sc-crow-ic .orbit-mark, .cc-emblem .orbit-mark { grid-area: 1 / 1; width: 100%; height: 100%; }
.sc-crow-em, .cc-emblem-em { grid-area: 1 / 1; position: relative; font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.cc-emblem-em { font-size: 34px; }
.cc-emblem { display: grid; place-items: center; }

/* New voyage: each ship a tidy row (the ship in its own space, the name, the port and the distance, the fee under them), and the sheet's captions in one voice */
.vy-vs { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 5px; align-items: center; padding: 12px 14px; border-radius: 16px; }
.vy-vs-pic { grid-column: 1; grid-row: 1 / span 2; justify-self: center; width: 38px; height: 76px; margin: -19px 0; transform: rotate(-90deg); }
.vy-vs-t { grid-column: 2; grid-row: 1; gap: 3px; }
.vy-vs-t strong { font-size: 15.5px; font-weight: 750; line-height: 1.3; }
.vy-vs-t small { font-size: 12.5px; line-height: 1.4; }
.vy-vs .vy-vs-fee, .vy-vs .vy-vs-why { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 650; line-height: 1.4; text-align: start; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.vy-vs .vy-vs-why { color: var(--danger, #c0392b); background: color-mix(in srgb, var(--danger, #c0392b) 10%, transparent); }
.vy-vs-list { gap: 8px; max-height: 340px; padding: 3px; }
.ac-form > .ln-lbl, .ac-form .vy-sail > .ln-lbl { display: block; margin-block: 16px 6px; font-size: 13px; font-weight: 750; letter-spacing: .01em; color: var(--text-2); }
.vy-here { display: inline-block; padding: 5px 12px; border-radius: 12px; font-size: 12.5px; background: color-mix(in srgb, var(--text) 6%, transparent); }.vy-kind { gap: 8px; padding: 14px; border-radius: 16px; }
.vy-kind > strong { font-size: 16.5px; font-weight: 800; }
.vy-kind p.small { padding-inline-start: 10px; border-inline-start: 3px solid var(--line); line-height: 1.5; }
.vy-kind p.small:nth-of-type(1) { border-color: #30d158; } .vy-kind p.small:nth-of-type(2) { border-color: #ff9f0a; } .vy-kind p.small:nth-of-type(3) { border-color: #8f6bff; }
.vy-kind p.small b { font-weight: 800; }
.vy-kind p.xs { margin-block-start: 2px; }
/* the chat's "+": a small card above the field, as on WhatsApp; the conversation stays in sight */
.sc-chat-bar { position: relative; }
.sc-tray { position: absolute; inset-block-end: calc(100% + 10px); inset-inline-start: 10px; z-index: 30; display: flex; gap: 6px; padding: 14px 12px 10px; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(20, 20, 60, .45); transform-origin: bottom left; animation: sc-tray-in 140ms ease-out; }
html[dir="rtl"] .sc-tray { transform-origin: bottom right; }
.sc-tray::after { content: ''; position: absolute; inset-block-end: -6px; inset-inline-start: 22px; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); border-radius: 3px; box-shadow: 1px 1px 0 var(--line); }
.sc-tray-i { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; padding: 0; border: 0; background: none; font: inherit; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-tray-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 18px -10px rgba(40, 40, 120, .6), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform 120ms; }
.sc-tray-i:active .sc-tray-ic { transform: scale(.92); }
.sc-tray-art { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-tray-t { font-size: 12px; font-weight: 600; line-height: 1.2; }
.sc-st-btn.is-open { color: #fff; background: var(--accent); transform: rotate(45deg); transition: transform 160ms; }
@keyframes sc-tray-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sc-tray { animation: none; } }
.vy-kind p.small b { font-size: inherit; font-family: inherit; }
.sc-tray.sc-later { flex-direction: column; align-items: stretch; gap: 10px; width: min(300px, calc(100% - 20px)); padding: 14px; }
.sc-later-h { font-size: 14.5px; font-weight: 800; }
.sc-later-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-later .input { width: 100%; font-size: 16px; }

/* ==================================================================================================
   Lumora's home feed, the signs of other networks, the zoomed face, the city picker
   ================================================================================================== */
.sc-tab { gap: 4px; padding-block: 9px 7px; }
.sc-tab .ic, .sc-tab .logo-bird { width: 22px; height: 22px; }

.lf { display: flex; flex-direction: column; }
.lf-host:empty { display: none; }
.lf-compose { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 2px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: start; cursor: pointer; border-block-end: 1px solid var(--line); }
.lf-compose-t { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 22px; font-size: 15px; color: var(--text-3); background: color-mix(in srgb, var(--text) 6%, transparent); }
.lf-compose-go { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2f6bff, #6a4cff); }
.lf-compose-go .ic { stroke: #fff; }
.lf-post { padding: 16px 2px 8px; border-block-end: 1px solid var(--line); }
.lf-pin { display: inline-flex; align-items: center; gap: 5px; margin-block-end: 8px; font-size: 12px; font-weight: 750; color: var(--accent-text, var(--accent)); }
.lf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lf-who { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.lf-who-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-time { font-size: 12.5px; color: var(--text-3); }
.lf-more { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: none; cursor: pointer; }
.lf-body { margin: 12px 0 4px; font-size: 16.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.lf-link { color: var(--accent-text, var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.lf-foot { display: flex; align-items: center; gap: 4px; margin-inline-start: -8px; }
.lf-act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 10px; border: 0; border-radius: 22px; background: none; font: inherit; font-size: 14px; font-weight: 650; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lf-act:disabled { opacity: .5; cursor: default; }
.lf-act:active:not(:disabled) .ic { transform: scale(.88); }
.lf-act .ic { transition: transform .15s; }
.lf-act.is-on { color: #ff375f; } .lf-act.is-on .ic { fill: #ff375f; stroke: #ff375f; }
.lf-n:empty { display: none; }
.lf-area { width: 100%; font-size: 16px; line-height: 1.6; resize: vertical; min-height: 140px; }
.lf-left { display: block; text-align: end; margin-block: 4px 12px; }
.lf-editor { display: flex; flex-direction: column; }
.lf-comments { display: flex; flex-direction: column; gap: 14px; padding-block-end: 8px; }
.lf-c { display: flex; align-items: flex-start; gap: 10px; }
.lf-c-t { flex: 1; min-width: 0; }
.lf-c-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lf-c-b { margin: 2px 0 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.lf-c-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: none; cursor: pointer; }
.lf-cbar { display: flex; gap: 8px; width: 100%; }
.lf-cin { flex: 1; min-width: 0; font-size: 16px; }

.prs-type { margin-block-start: 4px; padding: 2px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.prs-city { display: inline-flex; align-items: center; gap: 4px; margin-block-start: 4px; font-size: 13px; color: var(--text-3); }
.prs-id { align-items: center; }

.sn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-block: 2px; }
.sn-i { display: block; border-radius: 50%; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.sn-i:active { transform: scale(.92); }
.sn-badge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; box-shadow: 0 8px 16px -10px rgba(20, 20, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.pc-link .sn-badge, .pc-link .ic { flex: none; }

.prs-face { display: inline-block; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; border-radius: 50%; }
.zoom-veil { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(8, 10, 24, .5); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); animation: zoom-in 180ms ease-out; }
.zoom-veil.is-out { opacity: 0; transition: opacity 160ms; }
.zoom-face { border-radius: 50%; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 255, 255, .85); animation: zoom-pop 220ms cubic-bezier(.2, .9, .3, 1.2); }
@keyframes zoom-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-pop { from { transform: scale(.78); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .zoom-veil, .zoom-face { animation: none; } }

.cp { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cp-field { position: relative; }
.cp-in { width: 100%; padding-inline-end: 38px; font-size: 16px; }
.cp-x { position: absolute; inset-block-start: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: color-mix(in srgb, var(--text) 8%, transparent); cursor: pointer; }
.cp-x[hidden], .cp-list[hidden] { display: none; }
.cp-list { position: absolute; z-index: 40; inset-inline: 0; inset-block-start: calc(100% + 6px); max-height: 212px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(20, 20, 60, .45); }
.cp-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 15px; cursor: pointer; }
.cp-opt.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cp-opt.is-cur { font-weight: 800; color: var(--accent-text, var(--accent)); }
.cp-sub { font-size: 12px; color: var(--text-3); }
.cp-none { padding: 12px; font-size: 14px; color: var(--text-3); }
.cp-loc { align-self: flex-start; }

.ps-rows { display: flex; flex-direction: column; gap: 10px; margin-block: 8px; }
.ps-row { display: flex; align-items: center; gap: 10px; }
.ps-row-f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ps-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px 12px; }
.ps-add { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.ps-add:active { transform: scale(.92); }
.prs-hero.is-inner .prs-hero-bg { -webkit-mask: none; mask: none; }

.cp { min-width: min(210px, 56vw); }
.cp-list { inset-inline: auto 0; width: min(290px, 86vw); }
.cp-opt span:first-child { white-space: nowrap; }

/* #tags, @names, the emoji of a post, the suggestions while typing a name, the filter by a tag */
.lf-tag, .lf-mention { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--accent-text, var(--accent)); cursor: pointer; }
.lf-mention { color: #8a62ff; }
.lf-filter { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-block: 6px 2px; padding: 6px 8px 6px 14px; border-radius: 18px; font-weight: 750; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.lf-filter-x { width: 24px; height: 24px; border: 0; border-radius: 50%; display: grid; place-items: center; color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); cursor: pointer; }
.lf-tools { display: flex; align-items: center; gap: 6px; margin-block: 4px 10px; }
.lf-tool { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; font: inherit; font-size: 20px; font-weight: 700; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); cursor: pointer; }
.lf-tool.is-on { background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, transparent)); }
.lf-tools .lf-left { margin-inline-start: auto; margin-block: 0; }
.lf-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 188px; overflow-y: auto; margin-block-end: 12px; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.lf-emoji[hidden] { display: none; }
.lf-emoji-i { height: 40px; border: 0; border-radius: 10px; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.lf-emoji-i:active { background: color-mix(in srgb, var(--text) 10%, transparent); }
.lf-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 6px; }
.lf-sugs[hidden] { display: none; }
.lf-sug { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 0; border-radius: 20px; font: inherit; font-size: 14px; font-weight: 650; color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); cursor: pointer; }
.lf-cbar-wrap { width: 100%; }
/* The Path on a wide screen: the photo and everything under it take the whole width of the page (no narrow column with empty sides) */
@media (min-width: 900px) {
  .view:has(.pz) { max-width: none; }
  .pz { max-width: none; }
  .pz-hero::before { background-size: 100% 100%, cover; background-position: 0 0, center 30%; background-repeat: no-repeat; }
}
@media (min-width: 900px) { .pz-hero::before { inset: -80px -48px 0; } }

/* the profile's tabs show their whole text (on a wide screen too, and in English) */
.pf-tabs { max-width: 720px; }
.pf-tab { flex: 1 1 auto; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; padding-inline: 12px; }

.pc-type { padding: 2px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.pc-id .sn-row { justify-content: flex-start; margin-block-start: 8px; }

/* the area of the tab swipe reaches down the screen even when a tab has little in it */
.sc-pane { min-height: 70dvh; }

.lf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 20px; text-align: center; }
.lf-empty-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-text, var(--accent)); background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); }
.lf-empty strong { font-size: 16px; }
.lf-empty p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.6; color: var(--text-3); }

.ps-err { font-size: 12.5px; color: #d93025; }
.ps-err[hidden] { display: none; }
.ps-row .input.is-bad { box-shadow: 0 0 0 1.5px #d93025; }
.cp-choice { min-width: min(150px, 56vw); }

.cp-in { padding-inline-end: 68px; }
.cp-x { inset-inline-end: 36px; }
.cp-caret { position: absolute; inset-block-start: 50%; inset-inline-end: 12px; transform: translateY(-50%); pointer-events: none; color: var(--text-3); display: grid; }
.prs-full { font-size: 14px; color: var(--text-2); }

/* Lumora's header mark: the owner's own design (two luminous circles), as it was made */
.sc-brand-ic { width: 52px; height: 52px; border-radius: 24%; background: none; box-shadow: 0 12px 26px -14px #2de2d0; overflow: hidden; }
.sc-brand-img { display: block; width: 100%; height: 100%; border-radius: 24%; object-fit: cover; }

/* a screen that grows taller than the window must not push the page sideways when its scrollbar appears (on a computer): the room for the bar is always kept */
html { scrollbar-gutter: stable; }

/* the mark is a picture with its own rounded corners: no tile around it */
.sc-brand-ic { width: 52px; height: 52px; border-radius: 0; background: none; box-shadow: none; overflow: visible; filter: drop-shadow(0 8px 14px rgba(45, 226, 208, .35)); }
.sc-brand-img { border-radius: 0; object-fit: contain; }
.sc-title.sc-word { display: block; margin: 0; line-height: 0; }
.sc-word img { display: block; width: auto; max-width: 100%; }
/* the lamed's flag runs high above the icon, so the word itself sits close to it */
.sc-word img.is-he { height: 84px; margin-block: -10px -6px; margin-inline-start: -30px; max-width: none; }
.sc-word img.is-en { height: 38px; }
@media (min-width: 900px) { .sc-word img.is-he { height: 96px; } .sc-word img.is-en { height: 46px; } }

.sc-brand-ic { height: auto; }
.sc-brand-img { width: 100%; height: auto; }

/* Lumora's tabs: the glass capsule of the calendar's tab row (drag it, let go on a tab) */
.sc-tabs.glass-fixed { overflow: visible; }
.sc-tabs > .sc-tab { position: relative; z-index: 1; }
.sc-tabs > .sc-tab.is-on { background: transparent; }
.sc-tabs .glass-pill { z-index: 0; border-radius: 16px; }
.sc-tabs .glass-pill::after { border-radius: 16px; background: var(--accent-soft, color-mix(in srgb, var(--accent) 12%, transparent)); box-shadow: none; }
.sc-tab { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sc-tab:active { transform: none; }
.sc-tab-n[hidden] { display: none; }

/* The rest timer on a narrow phone (the owner, 2026-11-05: the words fell one under the other beside the buttons):
   the dial and the words on the first line, the three buttons on a line of their own under the words. */
@media (max-width: 560px) {
  #gx-rest .gx-rest-main { display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center; gap: 8px 10px; }
  #gx-rest .gx-rest-dial { grid-row: 1 / span 2; grid-column: 1; width: 92px; height: 92px; }
  #gx-rest .gx-rest-dial .gx-rest-clock { font-size: 1.75rem; }
  #gx-rest .gx-rest-l { grid-column: 2 / span 3; grid-row: 1; }
  #gx-rest .gx-rest-next { font-size: 1.02rem; }
  #gx-rest .gx-rest-btn { grid-row: 2; min-width: 0; width: 100%; height: 44px; }
}

/* The library's doorway: its words and buttons a little higher, clear of the bottom of the screen (the owner, 2026-11-05). */
.ln-door-in { padding-block-end: clamp(48px, 12vh, 140px); }
@media (max-height: 520px) and (orientation: landscape) { .ln-door-in { padding-block-end: 16px; } }

/* Lumora's title: one picture per language, swapped by the page's language at once; the Hebrew one smaller, so
   "מבית נומינאליס" sits close under it (the owner, 2026-11-05). */
.sc-word-pair { display: block; line-height: 0; }
html[lang="he"] .sc-word-pair img.is-en, html:not([lang="he"]) .sc-word-pair img.is-he { display: none; }
.sc-word img.is-he { height: 64px; margin-block: -8px -12px; }
@media (min-width: 900px) { .sc-word img.is-he { height: 76px; } }

/* A bio keeps the lines it was written in (the owner, 2026-11-05). */
.pc-bio, .prs-bio { white-space: pre-line; }

/* A long chat message, folded: its first lines fade out above "להמשך קריאה" (the owner, 2026-11-05). */
.sc-msg-long { display: block; }
.sc-msg-t.is-folded { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.sc-more { display: block; margin-block-start: 4px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Pictures are not offered for saving: no long-press menu, no dragging out (the owner, 2026-11-05: ships and characters in
   the shop). A screenshot can still be taken; this only removes the easy way. */
img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }

/* The mark on an enlarged profile picture: low on the picture, not at its very edge (the owner, 2026-11-05). */
.zoom-face { position: relative; }
.zoom-mark { position: absolute; inset-inline: 0; inset-block-end: 13%; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .55); pointer-events: none; user-select: none; }

/* Screens with a background of their own never show the general gradient first: from the moment the screen is chosen
   (before its content arrives, and with no connection), the page already has their colour (the owner, 2026-11-05). */
body[data-view="learn"]::before, body[data-view="inner"]::before { display: none; }
html:has(body[data-view="inner"]), body[data-view="inner"] { background: #07505c; }

/* The inner work's doorway: the library's, without the wall of pictures: a deep field of light instead (the owner, 2026-11-05). */
.ln-door.is-inner { background: radial-gradient(80% 60% at 70% 20%, rgba(98, 160, 255, .35), transparent 70%), radial-gradient(70% 55% at 20% 80%, rgba(45, 226, 208, .22), transparent 70%), linear-gradient(180deg, #06243f 0%, #07505c 100%); }

/* the administrator's list of ports on the map page */
.wm-ports { display: grid; gap: 4px; margin-block-start: 10px; max-height: 60vh; overflow-y: auto; }
.wm-ports .wm-result { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, rgba(127,127,127,.08)); }
/* (with the administrator's ports icon the search gives way, so the row stays one row: the map keeps its height) */
.wm-tools:has(.wm-ports-btn) .wm-search { flex-basis: 120px; min-width: 0; }
.wm-tools:has(.wm-ports-btn) .wm-search-in { min-width: 0; }
/* the berth editor's "held to the shore" switch, when on */
.qm-bp-b.is-on { background: #ffcf4d; color: #2a1606; }

/* The mailing's screens (settings, the administrator's): rows of contacts, lists and sources, and one person's sheet */
/* ---- the marketing area: numbers, a nav with icons, a title per section, content on cards ---- */
.mk-top { display: grid; gap: 14px; margin-block: 2px 18px; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mk-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); }
.mk-stat-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.mk-stat b { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mk-stat span:last-child { font-size: 13px; color: var(--text-2); }
.mk-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.mk-nav::-webkit-scrollbar { display: none; }
.mk-nav-b { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; border-radius: 12px; color: var(--text-2); font: inherit; font-weight: 600; padding: 10px 16px; cursor: pointer; transition: background .18s, color .18s; }
.mk-nav-b:hover { background: var(--surface-2); color: var(--text); }
.mk-nav-b:active { transform: scale(.98); }
.mk-nav-b.is-on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(10, 108, 255, .28); }
.mk-sec-h { margin-block: 4px 14px; }
.mk-sec-h h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.mk-sec-h p { margin: 4px 0 0; color: var(--text-2); }
.mk-subtabs { margin-bottom: 12px; }
.mk-panel { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.mk-panel .mk-row { background: var(--surface-2); }
.mk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.mk-panel.is-setup { background: none; box-shadow: none; padding: 0; }
.mk-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.mk-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.mk-card-h h3 { margin: 0; font-size: 18px; }
.mk-card-h p { margin: 4px 0 0; }
/* the main page: numbers, a chart, statuses, the biggest lists */
.mk-panel.is-home { background: none; box-shadow: none; padding: 0; }
.mkh-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mkh-bar h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; color: var(--text-2); font-weight: 600; }
.mkh-days { color: var(--text); }
.mkh-kpis { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 12px; }
.mkh-kpi { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 20px 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); text-align: center; }
.mkh-kpi b { font-size: 32px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mkh-kpi span { font-weight: 600; }
.mkh-kpi small { font-size: 12.5px; color: var(--text-3); }
.mkh-kpi-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px; }
.mkh-kpi.is-green .mkh-kpi-ic { background: rgba(52, 199, 89, .14); color: #1c8f4b; } .mkh-kpi.is-green b { color: #1c8f4b; }
.mkh-kpi.is-blue .mkh-kpi-ic { background: var(--accent-soft); color: var(--accent-text); } .mkh-kpi.is-blue b { color: var(--accent-text); }
.mkh-kpi.is-purple .mkh-kpi-ic { background: rgba(175, 82, 222, .14); color: #8e3fc2; } .mkh-kpi.is-purple b { color: #8e3fc2; }
.mkh-kpi.is-pink .mkh-kpi-ic { background: rgba(255, 55, 135, .12); color: #d01f6b; } .mkh-kpi.is-pink b { color: #d01f6b; }
.mkh-kpi.is-hero { color: #fff; background: radial-gradient(120% 140% at 85% 0%, #3fd17a 0%, #18a058 45%, #0f7a46 100%); box-shadow: 0 14px 34px rgba(24, 160, 88, .32); }
.mkh-kpi.is-hero b { font-size: 46px; }
.mkh-kpi.is-hero small { color: rgba(255, 255, 255, .8); }
.mkh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.mkh-card { padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--sh-1); min-width: 0; }
.mkh-card.is-wide { grid-column: 1 / -1; }
.mkh-card h4 { margin: 0 0 12px; font-size: 16px; }
.mkh-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mkh-card-h h4 { margin: 0; }
.mkh-legend { display: flex; gap: 14px; font-size: 13px; font-weight: 600; }
.mkh-legend span::before, .mkh-tip span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.is-join::before { background: #34c759; } .is-left::before { background: #ff6b6b; }
.mkh-chart-wrap { position: relative; }
.mkh-chart { width: 100%; height: auto; display: block; direction: ltr; touch-action: pan-y; }
.mkh-gridline { stroke: var(--line); stroke-width: 1; }
.mkh-axis { fill: var(--text-3); font-size: 11px; font-family: system-ui, sans-serif; }
.mkh-line { fill: none; stroke: #34c759; stroke-width: 2.6; stroke-linecap: round; }
.mkh-leftbar { fill: #ff6b6b; opacity: .75; }
.mkh-guide { stroke: var(--text-3); stroke-dasharray: 3 3; }
.mkh-dot { fill: #fff; stroke: #34c759; stroke-width: 3; }
.mkh-tip { position: absolute; top: 4px; width: 120px; display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-3); font-size: 12.5px; pointer-events: none; }
.mkh-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 8px; text-align: center; color: var(--text-2); }
.mkh-empty b { color: var(--text); font-size: 16px; }
.mkh-ill { width: min(300px, 80%); height: auto; margin-bottom: 6px; }
.mkh-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.mkh-stack i { display: block; height: 100%; }
.mkh-keys { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.mkh-keys li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.mkh-keys li i { width: 10px; height: 10px; border-radius: 3px; }
.mkh-keys b { font-variant-numeric: tabular-nums; }
.mkh-lists { display: grid; gap: 10px; }
.mkh-listrow { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mkh-listrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkh-listbar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mkh-listbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6e5bff); }
@media (max-width: 900px) { .mkh-kpis { grid-template-columns: 1fr 1fr; } .mkh-kpi.is-hero { grid-column: 1 / -1; } .mkh-grid { grid-template-columns: 1fr; } }

/* series: the list's switch, the new-series window, the page with its timeline */
.mk-switch { position: relative; display: inline-block; width: 44px; height: 26px; border: 0; border-radius: 999px; background: var(--surface-3); cursor: pointer; padding: 0; }
.mk-switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); }
.mks-trigger { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; }
.mks-listbox { display: grid; gap: 8px; }
.mks-pick { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.mks-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; }
.mks-opt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mks-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 0; }
.mks-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); margin-bottom: 18px; }
.mks-status { display: inline-flex; align-items: center; gap: 10px; }
.mks-start, .mks-end { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; font-weight: 700; }
.mks-start { background: var(--accent-soft); color: var(--accent-text); justify-self: start; }
.mks-end { margin-top: 6px; background: var(--ok-soft); color: var(--ok); }
.mks-end b { color: var(--text); }
.mks-line { list-style: none; margin: 0; padding: 0 0 0 0; border-inline-start: 2px dashed var(--line-strong); margin-inline-start: 24px; padding-inline-start: 20px; }
.mks-step { display: grid; gap: 8px; padding: 14px 0; }
.mks-wait { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-2); }
.mks-days { width: 72px; text-align: center; padding-block: 6px; }
.mks-mail { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh-1); }
.mks-n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.mks-mail-t { flex: 1; min-width: 0; display: grid; gap: 3px; justify-items: start; }
.mks-mail-a { display: flex; gap: 6px; align-items: center; }
.mks-add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px 0; margin-inline-start: 44px; padding: 12px 18px; border-radius: 14px; border: 2px dashed var(--accent); background: none; color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; }
.mks-add:hover { background: var(--accent-soft); }
.mks-week { display: flex; flex-wrap: wrap; gap: 8px; }
.mks-day { display: grid; justify-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.mks-day input { width: 22px; height: 22px; }
.mks-day.is-wide { margin-inline-start: 12px; }
.mks-hour { max-width: 140px; }
@media (max-width: 640px) { .mks-mail { flex-wrap: wrap; } .mks-mail-a { width: 100%; justify-content: flex-end; } .mks-add { margin-inline-start: 0; } }
.mk-setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mk-tile { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 16px 8px 14px; border: 1.5px solid transparent; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); font: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; cursor: pointer; transition: transform .15s, border-color .15s, color .15s; }
.mk-tile:hover { transform: translateY(-2px); color: var(--text); }
.mk-tile.is-on { border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.mk-tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); }
.mk-tile.is-on .mk-tile-ic { background: var(--accent); color: var(--on-accent); }
.mk-setup-panel { display: grid; gap: 8px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-1); }
.mk-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.mk-badge.is-ok { background: var(--ok-soft); color: var(--ok); }
.mk-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.mk-meter { display: grid; gap: 6px; margin-block: 6px; }
.mk-meter-h { display: flex; justify-content: space-between; font-size: 14px; }
.mk-meter-t { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mk-meter-t i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6e5bff); }
.mk-domain { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--warn); }
.mk-domain.is-ok { background: var(--ok-soft); color: var(--ok); }
.mk-domain > div { flex: 1; color: var(--text); }
.mk-dns { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mk-dns > div { display: grid; gap: 3px; min-width: 0; }
.mk-dns code { font-size: 12.5px; overflow-wrap: anywhere; color: var(--text-2); }
.mk-dns-v { opacity: .75; }
.mk-dns-st { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.mk-dns-st.is-ok { background: var(--ok-soft); color: var(--ok); }.mk-soon { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 34px 20px; }
.mk-soon-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), rgba(175, 82, 222, .14)); color: var(--accent-text); }
.mk-soon h3 { margin: 6px 0 0; font-size: 20px; }
.mk-soon p { margin: 0; color: var(--text-2); max-width: 520px; }
.mk-soon ul { margin: 6px 0 0; padding-inline-start: 18px; text-align: start; color: var(--text-2); display: grid; gap: 4px; }
@media (max-width: 640px) { .mk-nav-b span { display: none; } .mk-nav-b.is-on span { display: inline; } .mk-panel { padding: 12px; } }/* ---- the campaigns: the list (as in Rav Messer), the four-step page, the builder ---- */
.mkc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 4px 12px; }
.mkc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.mkc-info { display: grid; gap: 4px; min-width: 0; }
.mkc-name { justify-self: start; background: none; border: 0; padding: 0; font: inherit; font-size: 17px; font-weight: 700; color: var(--accent-text); cursor: pointer; text-align: start; }
.mkc-name:hover { text-decoration: underline; }
.mkc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.mkc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); }
.mkc-chip.is-big { padding: 6px 12px; font-size: 14px; }
.mkc-chip button { background: none; border: 0; color: var(--text-3); font-size: 16px; cursor: pointer; padding: 0 2px; }
.mkc-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.mkc-state.is-ready { color: var(--ok); }
.mkc-acts { display: flex; gap: 8px; align-items: center; }
.mkc-more { position: relative; }
.mkc-more > summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 20px; color: var(--text-2); }
.mkc-more > summary::-webkit-details-marker { display: none; }
.mkc-more[open] > summary, .mkc-more > summary:hover { background: var(--surface-2); }
.mkc-more-pop { position: absolute; inset-inline-end: 0; top: 38px; z-index: 5; display: grid; min-width: 140px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-3); }
.mkc-more-pop button { background: none; border: 0; text-align: start; padding: 9px 12px; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.mkc-more-pop button:hover { background: var(--surface-2); }
.mkc-more-pop button.danger { color: var(--danger); }
@media (max-width: 720px) { .mkc-row { grid-template-columns: 1fr; gap: 10px; } }

.mkw { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); color: var(--text); }
.mkw-top { display: flex; align-items: center; gap: 14px; padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mkw-title { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkw-exit { display: inline-flex; align-items: center; gap: 6px; }
.mkw-steps { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; padding: 16px 20px 6px; list-style: none; }
.mkw-step { display: flex; align-items: center; }
.mkw-step + .mkw-step::before { content: ''; width: 40px; height: 1px; background: var(--line-strong); margin-inline: 4px 10px; }
.mkw-step button { display: inline-flex; align-items: center; gap: 10px; line-height: 1; background: none; border: 0; padding: 4px; font: inherit; font-size: 16px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.mkw-step button:disabled { cursor: default; opacity: .55; }
.mkw-num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; line-height: 1; border: 2px solid var(--line-strong); font-weight: 700; color: var(--text-3); transition: background .2s, border-color .2s, color .2s; }
.mkw-step.is-done .mkw-num { background: var(--text); border-color: var(--text); color: var(--bg); }
.mkw-step.is-on .mkw-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mkw-step.is-on button { color: var(--accent-text); font-weight: 700; }
.mkw-body { overflow: auto; padding: 20px max(20px, calc((100% - 1180px) / 2)) 32px; }
.mkw.is-build .mkw-body { padding: 0; overflow: hidden; }
.mkw-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.mkw-foot .btn-primary { min-width: 180px; }
/* (room for the accessibility button, which stays on every screen) */
.mkw-foot { padding-inline-end: 84px; }
.mkw-narrow { max-width: 620px; display: grid; gap: 14px; }
.mkw-h { margin: 14px 0 6px; font-size: 17px; }
.mkw-h2 { margin: 0 0 12px; font-size: 22px; }
.mkw-lead { font-size: 16px; margin: 14px 0 4px; }
.mkw-kinds { display: grid; gap: 10px; max-width: 360px; }
.mkw-kind { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.mkw-kind.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mkw-kind.is-off { opacity: .55; cursor: not-allowed; }
.mkw-split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.mkw-pick { margin-top: 18px; display: grid; gap: 8px; }
.mkw-pick h4 { margin: 0; font-size: 17px; font-weight: 600; }
.mkw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mkw-addlist { display: flex; align-items: center; gap: 8px; max-width: 420px; }
.mkw-plus { color: var(--ok); display: inline-flex; }
.mkw-sum { position: sticky; top: 0; display: grid; justify-items: center; gap: 4px; padding: 28px 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); text-align: center; color: var(--accent-text); }
.mkw-sum > span { color: var(--text); font-size: 16px; }
.mkw-count { font-size: 46px; line-height: 1.1; font-weight: 300; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.mkw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mkw-subject { display: flex; gap: 8px; align-items: center; position: relative; }
.mkw-subject .input { flex: 1; }
.mkw-counter { white-space: nowrap; }
.mkw-emoji-wrap { position: relative; }
.mkw-emoji { position: absolute; z-index: 4; top: 40px; inset-inline-end: 0; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface); box-shadow: var(--sh-3); }
.mkw-emoji button { background: none; border: 0; font-size: 20px; height: 36px; border-radius: 8px; cursor: pointer; }
.mkw-emoji button:hover { background: var(--surface-2); }
.mkw-files { display: grid; gap: 8px; }
.mkw-file { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 6px; }
.mkw-radios { display: grid; gap: 8px; }
.mkw-radios label { display: flex; align-items: center; gap: 8px; }
.mkw-tpl { display: grid; gap: 16px; }
@media (max-width: 860px) { .mkw-split, .mkw-two { grid-template-columns: 1fr; } .mkw-sum { position: static; } .mkw-step span:not(.mkw-num) { display: none; } .mkw-step.is-on span:not(.mkw-num) { display: inline; } .mkw-step + .mkw-step::before { width: 14px; } }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mkt-card { display: grid; gap: 10px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: start; font: inherit; color: inherit; cursor: pointer; transition: transform .18s, box-shadow .18s; }
button.mkt-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.mkt-thumb { height: 300px; overflow: hidden; border-radius: 12px; pointer-events: none; background: #f4f1ea; }
.mkt-thumb iframe { width: 640px; height: 1000px; border: 0; transform: scale(.36); transform-origin: top right; }
[dir="ltr"] .mkt-thumb iframe { transform-origin: top left; }
.mkt-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.mkb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; }
.mkb-stage { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.mkb-tools { display: flex; gap: 4px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.mkb-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.mkb-tool:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.mkb-tool:disabled { opacity: .35; cursor: default; }
.mkb-redo svg { transform: scaleX(-1); }
.mkb-canvas { overflow: auto; padding: 32px 20px 60px; transition: background .25s; }
.mkb-card { margin: 0 auto; padding: 14px 0 6px; border: 1px solid #e6e0d2; overflow: hidden; box-shadow: 0 10px 40px rgba(20, 16, 40, .10); }
.mkb-empty { margin: 8px 24px; padding: 36px 16px; border: 2px dashed rgba(127, 127, 127, .45); border-radius: 14px; display: grid; gap: 6px; text-align: center; font-family: system-ui, sans-serif; color: #6b6f78; }
.mkb-empty b { font-size: 20px; color: #333; }
.mkb-blk { position: relative; padding: 6px 24px; outline: 1.5px solid transparent; outline-offset: -2px; transition: outline-color .12s; }
.mkb-blk.is-full { padding: 0; }
.mkb-blk:hover { outline-color: rgba(10, 108, 255, .35); }
.mkb-blk.is-sel { outline: 2px solid #0a6cff; }
.mkb-blk.is-drag { opacity: .4; }
.mkb-tag, .mkb-handle { position: absolute; top: 0; z-index: 2; opacity: 0; transition: opacity .12s; font-family: system-ui, sans-serif; }
.mkb-tag { inset-inline-end: 0; background: #0a6cff; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-end-start-radius: 8px; pointer-events: none; }
.mkb-handle { inset-inline-start: 0; width: 24px; height: 24px; display: grid; place-items: center; background: #0a6cff; color: #fff; border-end-end-radius: 8px; cursor: grab; }
.mkb-blk:hover .mkb-tag, .mkb-blk.is-sel .mkb-tag, .mkb-blk:hover .mkb-handle, .mkb-blk.is-sel .mkb-handle { opacity: 1; }
.mkb-line { height: 4px; margin: -2px 24px; border-radius: 4px; background: #0a6cff; box-shadow: 0 0 0 3px rgba(10, 108, 255, .2); }
.mkb-ed { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; border-radius: 4px; }
.mkb-ed:focus { background: rgba(10, 108, 255, .05); }
.mkb-ed:empty::before { content: '…'; opacity: .4; }
.mkb-h { font-size: 26px; font-weight: 700; line-height: 1.3; }
.mkb-h.is-m { font-size: 20px; }
.mkb-p { font-size: 16px; line-height: 1.6; }
.mkb-blk img { max-width: 100%; height: auto; border-radius: 8px; vertical-align: top; }
.mkb-ph { display: grid; place-items: center; gap: 6px; padding: 30px; border-radius: 10px; background: repeating-linear-gradient(45deg, rgba(127,127,127,.08) 0 10px, rgba(127,127,127,.14) 10px 20px); color: #6b6f78; font-family: system-ui, sans-serif; font-size: 13px; }
.mkb-btn { display: inline-block; padding: 12px 26px; border-radius: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.mkb-btn .mkb-ed:focus { background: rgba(255, 255, 255, .15); }
.mkb-hr { border: 0; border-top: 1px solid #e6e0d2; margin: 10px 0; }
.mkb-band { padding: 36px 28px; }
.mkb-band-t { font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.mkb-band-p { font-size: 16px; line-height: 1.6; opacity: .9; }
.mkb-quote { border-inline-start: 4px solid; padding: 6px 16px; font-style: italic; text-align: start; }
.mkb-quote-t { font-size: 18px; line-height: 1.6; }
.mkb-quote-by { font-size: 14px; font-style: normal; opacity: .7; margin-top: 6px; }
.mkb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: start; }
.mkb-col img { width: 100%; border-radius: 10px; margin-bottom: 10px; }
.mkb-col-t { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.mkb-col-p { font-size: 15px; line-height: 1.55; margin-bottom: 10px; }
.mkb-col-l { font-weight: 700; font-size: 15px; text-decoration: underline; }
.mkb-lockfoot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 24px 6px; padding: 10px; border-top: 1px dashed rgba(127,127,127,.35); font-family: system-ui, sans-serif; font-size: 12px; color: #8a8d94; }
.mkb-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--surface); border-inline-start: 1px solid var(--line); min-height: 0; }
.mkb-ptabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mkb-ptab { display: grid; justify-items: center; gap: 3px; padding: 10px 4px 9px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.mkb-ptab.is-on { color: var(--accent-text); border-bottom-color: var(--accent); }
.mkb-pbody { overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.mkb-palette { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mkb-el { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: 13px; color: var(--text); cursor: grab; transition: transform .15s, box-shadow .15s, border-color .15s; }
.mkb-el:hover { transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--sh-1); }
.mkb-el:active { cursor: grabbing; transform: scale(.97); }
.mkb-el-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-size: 18px; font-weight: 700; color: var(--accent-text); box-shadow: var(--sh-1); }
.mkb-head { display: flex; justify-content: space-between; align-items: center; }
.mkb-acts { display: flex; gap: 4px; }
.mkb-fields { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mkb-color { height: 40px; padding: 4px; width: 72px; }
.mkb-range { display: flex; align-items: center; gap: 10px; }
.mkb-range input { flex: 1; }
/* builder, round two: groups with drawings, a toolbar on the chosen element, + between elements, the new elements */
.mkb-fonts h5 { margin: 6px 0 6px; font-size: 12px; color: var(--text-3); font-weight: 700; }
.mkb-fontgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 340px; overflow: auto; padding: 2px; }
.mkb-font { display: grid; gap: 2px; justify-items: start; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: inherit; cursor: pointer; text-align: start; }
.mkb-font:hover { border-color: var(--accent); }
.mkb-font.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mkb-font-s { font-size: 19px; line-height: 1.2; }
.mkb-font-n { font-size: 11.5px; color: var(--text-2); }
.mkb-font small { font-size: 10.5px; color: var(--warn); }
.mkb-ratios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mkb-ratio { display: grid; justify-items: center; align-content: end; gap: 5px; height: 58px; padding: 6px 2px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 11.5px; color: var(--text-2); cursor: pointer; }
.mkb-ratio i { display: block; border: 1.8px solid currentColor; border-radius: 3px; }
.mkb-ratio i.is-free { border-style: dashed; }
.mkb-ratio:hover { border-color: var(--accent); }
.mkb-ratio.is-on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }.mkb-imgfield { display: grid; gap: 8px; }
.mkb-imgbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.mkb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mkb-gal { display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.mkb-gal:hover { border-color: var(--accent); }
.mkb-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }.mkb-hint { margin: 0; font-size: 13px; color: var(--text-2); }
.mkb-group h4 { margin: 4px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
.mkb-svg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--accent-text); box-shadow: var(--sh-1); }
.mkb-el .mkb-svg { transition: background .15s, color .15s; }
.mkb-el:hover .mkb-svg { background: var(--accent); color: var(--on-accent); }
.mkb-sep { width: 1px; align-self: stretch; margin: 4px 6px; background: var(--line); }
.mkb-tools .segmented { flex: 0 0 auto; }
.mkb-card.is-phone { transition: max-width .3s; }
.mkb-card.is-phone .mkb-cols { grid-template-columns: 1fr; }
.mkb-float { position: absolute; z-index: 4; top: -15px; inset-inline-start: 34px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #0a6cff; box-shadow: 0 6px 18px rgba(10, 108, 255, .35); }
.mkb-float button { width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: #fff; cursor: pointer; }
.mkb-float button:hover { background: rgba(255, 255, 255, .2); }
.mkb-float button.is-del:hover { background: #e5484d; }
.mkb-insert { position: absolute; z-index: 3; bottom: -12px; left: 50%; transform: translateX(-50%) scale(.85); width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #0a6cff; color: #fff; opacity: 0; cursor: pointer; transition: opacity .12s, transform .12s; box-shadow: 0 2px 8px rgba(10, 108, 255, .4); }
.mkb-blk:hover .mkb-insert, .mkb-blk.is-sel .mkb-insert { opacity: 1; transform: translateX(-50%) scale(1); }
.mkb-quick { position: absolute; z-index: 6; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: min(360px, 90vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--sh-3); font-family: system-ui, sans-serif; }
.mkb-quick button { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.mkb-quick button:hover { background: var(--surface-2); }
.mkb-quick .mkb-svg { width: 34px; height: 34px; box-shadow: none; background: var(--surface-2); }
.mkb-h.is-1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
.mkb-h.is-2 { font-size: 24px; }
.mkb-h.is-3 { font-size: 19px; }
.mkb-social { display: flex; gap: 10px; flex-wrap: wrap; justify-content: inherit; }
.mkb-blk[style*="center"] .mkb-social { justify-content: center; }
.mkb-blk[style*="end"] .mkb-social { justify-content: flex-end; }
.mkb-social img { width: 32px; height: 32px; }
.mkb-social img.is-faded { opacity: .35; }
.mkb-map { border: 1px solid #e6e0d2; border-radius: 14px; overflow: hidden; text-align: start; }
.mkb-map > img { display: block; width: 100%; }
.mkb-map-b { display: flex; gap: 10px; padding: 14px 16px; }
.mkb-blk .mkb-pin { width: 22px; height: 22px; flex: 0 0 auto; align-self: flex-start; margin-top: 2px; }
.mkb-map-t { font-weight: 700; font-size: 17px; }
.mkb-map-a { font-size: 15px; opacity: .8; }
.mkb-pills { display: flex; gap: 6px; margin-top: 8px; }
.mkb-pills span { padding: 6px 12px; border: 1px solid #d9d3c5; border-radius: 999px; font-size: 13px; font-weight: 700; }
.mkb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mkb-table th, .mkb-table td { padding: 9px 11px; border-bottom: 1px solid #e6e0d2; text-align: start; min-width: 40px; }
.mkb-table.is-striped tr:nth-child(odd) td { background: #f6f3ec; }
.mkb-btn.is-pay { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 12px; font-size: 17px; }
.mkb-btn.is-pay img { width: 16px; height: 16px; }
.mkb-pay-n { margin-top: 8px; font-size: 13px; color: #82868f; }
.mkb-video img:first-child { display: block; width: 100%; border-radius: 12px; }
.mkb-video-c { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; }
.mkb-video-c img { width: 26px; height: 26px; }
.mkb-ph.is-code { color: #4b4f5a; }
.mkb-html { position: relative; }
.mkb-htmlframe { display: block; width: 100%; min-height: 120px; border: 0; background: #fff; }
.mkb-html-cover { position: absolute; inset: 0; }
.mkb-nets { display: grid; gap: 8px; }
.mkb-net { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; }
.mkb-net label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.mkb-net img { width: 22px; height: 22px; }
.mkb-tablebtns { display: flex; flex-wrap: wrap; gap: 6px; }
.mkb-code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.5; direction: ltr; text-align: left; }
.mkb-ai { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--warn-soft); }
.mkb-ai ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 3px; font-size: 14px; }
.mkb-ai p { margin: 0; color: var(--text-2); }
.mkp { display: grid; gap: 12px; justify-items: center; }
.mk-preview-sheet .mk-preview { height: min(72vh, 760px); }
.mk-preview.is-desk { max-width: 100%; }
@media (max-width: 860px) { .mkb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 44%; } .mkb-panel { border-inline-start: 0; border-top: 1px solid var(--line); } .mkb-canvas { padding: 16px 8px 40px; } .mkb-cols { grid-template-columns: 1fr; } .mkb-tool span { display: none; } }
.mk-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 18px; background: #f4f1ea; }
.mk-preview.is-phone { max-width: 390px; justify-self: center; }
.mk-warn:empty { display: none; }
.mk-warn { color: #b45309; display: grid; gap: 2px; }
.mk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 12px; }
.mk-bar .input, .mk-bar .select { flex: 1 1 160px; min-width: 0; }
.mk-rows { display: grid; gap: 6px; }
.mk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(127, 127, 127, .08)); border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; margin-block-end: 6px; }
.mk-row.is-static { cursor: default; }
.mk-row-t { display: grid; gap: 2px; min-width: 0; }
.mk-row-t > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-row-s { display: grid; gap: 4px; justify-items: end; text-align: end; flex-shrink: 0; max-width: 50%; }
.mk-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(127, 127, 127, .16); }
.mk-st.is-subscribed { background: rgba(52, 199, 89, .18); color: #1d8a3f; }
.mk-st.is-blocked, .mk-st.is-complained, .mk-st.is-invalid { background: rgba(255, 59, 48, .14); color: #c4271c; }
.mk-st.is-unsubscribed { background: rgba(255, 159, 10, .16); color: #a35b00; }
.mk-more { display: flex; align-items: center; justify-content: space-between; margin-block: 10px; }
.mk-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mk-lists { display: grid; gap: 2px; }
.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 6px; }
.mk-hist { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.mk-hist code, .mk-hook code { word-break: break-all; font-size: 12px; }
.mk-hook { display: flex; gap: 8px; align-items: center; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.mk-person h4 { margin: 14px 0 6px; }
.mk-chips { display: grid; gap: 6px; }
.mk-emails { display: grid; gap: 6px; justify-items: start; }
.mk-emails .input { width: 100%; }
.mk-or { display: flex; gap: 8px; align-items: center; }
.mk-or > .input, .mk-or > .select { flex: 1 1 0; min-width: 0; }
.mk-exist { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(127, 127, 127, .08)); }
.mk-foot { display: flex; gap: 10px; }
.mk-foot > .btn { flex: 1; }
.mk-facts { display: grid; gap: 4px; }
.mk-rules { display: grid; gap: 8px; }
.mk-rule { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; align-items: center; }
.mk-rules-area { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2, rgba(127, 127, 127, .08)); }
.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-table th, .mk-table td { padding: 8px 6px; text-align: start; border-block-end: 1px solid rgba(127, 127, 127, .18); white-space: nowrap; }
.mk-table th { font-weight: 600; font-size: 12px; color: var(--text-2, #6b6b78); }
.mk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.mk-pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-block-start: 10px; }
.mk-pager .select { width: auto; display: inline-block; }
.mk-pager-b { display: flex; gap: 6px; }
.mk-check { display: flex; gap: 10px; align-items: flex-start; padding-block: 6px; cursor: pointer; }
.mk-check input { width: 20px; height: 20px; margin-block-start: 2px; flex-shrink: 0; }
.mk-check > span { display: grid; gap: 2px; }
.mk-table th, .mk-table td { padding: 8px 4px; }

/* the council of the characters: a faint light in the Sargasso Triangle, the only way in (no menu leads there) */
.qm-council { position: absolute; margin: -17px 0 0 -17px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #f6e7b0; background: radial-gradient(circle, rgba(46, 26, 92, .85) 0 45%, rgba(46, 26, 92, 0) 72%); transform: scale(var(--inv, 1)); cursor: pointer; pointer-events: auto; z-index: 3; opacity: .82; transition: opacity .2s; }
.qm-council:hover, .qm-council:focus-visible { opacity: 1; }
.qm-council svg { position: relative; filter: drop-shadow(0 0 4px rgba(246, 231, 176, .9)); }
.qm-council-glow { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 231, 176, .35), rgba(246, 231, 176, 0) 70%); animation: qmCouncil 4.5s ease-in-out infinite; }
@keyframes qmCouncil { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .qm-council-glow { animation: none; opacity: .6; } }
/* the level of Numinalis+ beside a name: Plus silver, Pro gold, Magnum deep purple */
.lvl-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 7px; margin-inline-start: 4px; border-radius: 999px; font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.lvl-tag.is-plus { color: #3d4452; background: linear-gradient(135deg, #f4f6f9, #cfd5de); box-shadow: inset 0 0 0 1px rgba(80, 90, 110, .25); }
.lvl-tag.is-pro { color: #5a3c00; background: linear-gradient(135deg, #ffe9a6, #e2b33f); box-shadow: inset 0 0 0 1px rgba(150, 100, 0, .3); }
.lvl-tag.is-magnum { color: #f3e7ff; background: linear-gradient(135deg, #5b2a8c, #2a0f4a); box-shadow: inset 0 0 0 1px rgba(200, 160, 255, .35), 0 0 8px rgba(120, 60, 200, .35); }
/* goals and ranks: where I stand, how the rank is counted, what things are worth, the ladder */
.gr-hero { display: grid; gap: 14px; background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); }
.gr-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.gr-kicker { font-size: 12px; font-weight: 700; color: var(--accent-text); letter-spacing: .04em; }
.gr-rank { margin: 2px 0 2px; font-size: 24px; letter-spacing: -0.01em; }
.gr-points { display: grid; justify-items: end; }
.gr-points b { font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.gr-points span { font-size: 12px; color: var(--text-3); }
.gr-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.gr-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6e5bff); }
.gr-next p { margin: 6px 0 0; }
.gr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gr-split > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.gr-split b { font-size: 18px; }
.gr-split span { font-size: 12.5px; color: var(--text-2); }
.gr-reset { justify-self: start; color: var(--danger); }
.gr-rules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: gr; }
.gr-rule { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.gr-rule:last-child { border-bottom: 0; }
.gr-rule-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.gr-rule b { font-size: 15px; }
.gr-rule p { margin: 3px 0 0; line-height: 1.55; }
.gr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-block: 6px 8px; }
.gr-tile { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.gr-tile b { font-size: 20px; color: var(--accent-text); }
.gr-tile span { font-size: 13px; color: var(--text-2); line-height: 1.35; }
.gr-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.gr-step { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.gr-step-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--text-3); }
.gr-step b { font-size: 14px; }
.gr-step.is-done .gr-step-n { background: var(--ok-soft); color: var(--ok); }
.gr-step.is-now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gr-step.is-now .gr-step-n { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .gr-hero-top { flex-direction: column; } .gr-points { justify-items: start; } }.gr-counts .card-head { align-items: center; }
.gr-count { margin-inline-start: auto; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 700; }
.gr-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-block: 10px 6px; }
.gr-cat { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.gr-cat-h { display: flex; align-items: center; gap: 8px; }
.gr-cat-h b { font-size: 15.5px; }
.gr-cat-h .xs { margin-inline-start: auto; }
.gr-cat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.gr-x { width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); cursor: pointer; }
.gr-x:hover { background: var(--danger-soft); color: var(--danger); }
.gr-cat .segmented { width: 100%; }
.gr-w { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.gr-w input[type=range] { width: 100%; accent-color: var(--c); }
.gr-w-v { min-width: 48px; text-align: end; font-size: 15px; }
.gr-sub { margin: 14px 0 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); background: var(--surface); font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.gr-chip:hover { border-style: solid; border-color: var(--c); color: var(--text); background: var(--surface-2); }/* (calmer, the owner: no coloured stripes, no icon tiles, no glow; plain numbers and one accent) */
.gr-hero { background: var(--surface); }
.gr-rule-ic { display: none; }
.gr-rule { gap: 14px; }
.gr-rule::before { counter-increment: gr; content: counter(gr); flex: 0 0 auto; min-width: 18px; font-weight: 700; font-size: 15px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gr-w input[type=range] { accent-color: var(--accent); }
.gr-tile b { color: var(--text); }
/* categories: a grid of tiles, the switched-off ones apart */
.ct-head { align-items: center; gap: 10px; }
.ct-head .btn { margin-inline-start: auto; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-block: 10px 4px; }
.ct-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.ct-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ct-tile > svg { color: var(--text-3); flex: 0 0 auto; }
.ct-tile.is-off { opacity: .6; }
.ct-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.ct-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ct-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the Numinalis+ tab of the plans screen in the Disney+ look of numinalis.com/numinalis-plus (the owner, 2026-11-07):
   page #040714, panels #1e1f24, fields #282a36, text #fafafa / #b7b8bd, the one action colour cyan #33ddff with deep ink #02172a; flat, no glow */
.pp-tab.is-on { background: #33ddff; color: #02172a; }
.nx { --nx-accent: #33ddff; --nx-accent2: #33ddff; --nx-text: #fafafa; --nx-muted: #b7b8bd; background: #040714; color: #fafafa; letter-spacing: .025em; }
.nx::before { display: none; }
.nx-sub { color: #fafafa; }
.nx-notice { background: #1e1f24; border: 0; }
.nx-notemark { border-color: #33ddff; color: #33ddff; }
.nx-notice p, .nx-q p, .nx-wait p { color: #b7b8bd; }
.nx-switch { background: #282a36; border-color: transparent; }
.nx-knob { background: #33ddff; box-shadow: none; }
.nx-switch button { color: #b7b8bd; }
.nx-switch button.is-on { color: #02172a; }
.nx-card, .nx-card.is-pro { background: #1e1f24; box-shadow: none; border: 2px solid transparent; border-radius: 12px; }
.nx-card.is-pro { border-color: #33ddff; }
.nx-badge { background: #33ddff; color: #02172a; }
.nx-price { border-bottom-color: rgba(250, 250, 250, .1); }
.nx-feats li { color: #b7b8bd; }
.nx-card.is-pro .nx-feats li { color: #fafafa; }
.nx-card .nx-feats li.is-off { color: #5f6168; }
.nx-card .nx-feats li.is-off .nx-mark { color: #3a3c44; }
.nx-mark { color: #fafafa; }
.nx-cta { border: 1px solid rgba(250, 250, 250, .55); border-radius: 12px; color: #fafafa; font-weight: 700; }
.nx-cta:hover { background: rgba(250, 250, 250, .08); border-color: #fafafa; }
.nx-cta.is-primary { border-color: #33ddff; background: #33ddff; color: #02172a; }
.nx-cta.is-primary:hover { background: #5ce5ff; border-color: #5ce5ff; }
.nx-cta.is-closed:hover { background: transparent; border-color: rgba(250, 250, 250, .55); }
.nx-panel, .nx-terms, .nx-q { background: #1e1f24; border: 0; }
.nx-wait { background: #1e1f24; border: 0; }
.nx-now .pp-card { box-shadow: none; }
/* the whole plans screen on the Disney+ canvas (#040714), flat, instead of the deep-blue wash */
html:has(body[data-view="plans"]), body[data-view="plans"] { background: #040714; }
.view:has(> .pl-page) { background: #040714; }
body[data-view="plans"] .shell, body[data-view="plans"] .main, body[data-view="plans"] .view-stack, body[data-view="plans"] .view-stack > .view { background-color: #040714 !important; }
body[data-view="plans"] .view { background: #040714 !important; }
.pl-page .nx { background: transparent; }
.nx-brand { color: #fafafa; }
.nx-brand i { background: rgba(250, 250, 250, .3); }
.nx-brand span { color: #b7b8bd; }
.nx-tag, .nx-card.is-pro .nx-tag { color: #b7b8bd; }
.nx-cur { color: #33ddff; }
.nx-feats li.nx-head { color: #b7b8bd; border-top-color: rgba(250, 250, 250, .1); }
.nx-more { border-color: rgba(250, 250, 250, .4); color: #fafafa; }
.nx-more:hover { background: rgba(250, 250, 250, .08); }
.pl-page .pl-note, .pl-page .pl-chars { color: #b7b8bd; }
/* the Retzef mark on the plans screen in white (the file is the dark mark), so it shows on the dark canvas */
.nx-brand img:not(.nx-brand-plus) { filter: brightness(0) invert(1); }

/* the "pay with credit" box at the top of a purchase sheet */
.pl-credit { display: grid; gap: 8px; }
.pl-credit:empty { display: none; }
.pl-credit-or { margin-block-start: 4px; }

/* the credit part of the shop: a wallet card, choosing a top-up, what it pays for, the history */
.cr { display: grid; gap: 18px; max-width: 560px; }
.cr-card { position: relative; overflow: hidden; display: grid; gap: 10px; padding: 22px 22px 20px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #2c2f7a 0%, #1b1d4f 55%, #11132f 100%); aspect-ratio: 1.75; max-height: 260px; }
.cr-card::after { content: ''; position: absolute; inset: auto -20% -55% auto; width: 75%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 26px rgba(255, 255, 255, .025), 0 0 0 58px rgba(255, 255, 255, .02); pointer-events: none; }
.cr-card-top { display: flex; align-items: center; justify-content: space-between; }
.cr-card-k { font-size: 14px; font-weight: 600; letter-spacing: .04em; opacity: .8; }
.cr-card-mark { width: 30px; height: 30px; filter: brightness(0) invert(1); opacity: .85; }
.cr-card-n { display: flex; align-items: baseline; gap: 8px; margin-block-start: auto; }
.cr-card-n b { font-size: clamp(46px, 9vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cr-card-n span { font-size: 24px; font-weight: 700; opacity: .85; }
.cr-card-sub { font-size: clamp(11.5px, 3.5vw, 13.5px); opacity: .78; }
/* the card's words embossed in silver, raised as on a bank card: a metal gradient, lit on its upper edge and casting a shadow below (drop-shadow, since a text-shadow would show through the clipped fill) */
/* the card's own face: Bellefair (SIL Open Font License), one weight, for Hebrew and Latin alike; never made falsely bold */
@font-face { font-family: 'RetzefCard'; font-weight: 400; font-display: swap; src: url(/static/fonts/mail/Bellefair-400-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'RetzefCard'; font-weight: 400; font-display: swap; src: url(/static/fonts/mail/Bellefair-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.cr-card { gap: 8px; font-family: 'RetzefCard', var(--font, system-ui), serif; font-synthesis: none; }
.cr-card-k, .cr-card-n b, .cr-card-n span, .cr-card-sub { font-weight: 400; }
.cr-card-k { font-size: 16px; letter-spacing: .08em; }
.cr-card-n b { font-size: clamp(50px, 10vw, 66px); letter-spacing: .01em; }
.cr-card-n span { font-size: 28px; }
.cr-card-sub { font-size: clamp(12.5px, 3.7vw, 14.5px); letter-spacing: .02em; }
/* the card's number: four groups spread across the card's width, left to right in every language */
.cr-card-no { display: flex; justify-content: space-between; direction: ltr; font-size: clamp(17px, 5.2vw, 22px); letter-spacing: .14em; font-variant-numeric: lining-nums tabular-nums; }
.cr-wait { margin-block-start: -4px; }
.cr-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-block-start: -6px; text-align: center; }
.cr-hint-chip { flex: none; width: 24px; height: 18px; border-radius: 4px / 4.5px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2044%2034%22%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cg%20transform%3D%22translate(.45%20.5)%22%20stroke%3D%22%23fff6d8%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%22.7%22%3E%3Cpath%20d%3D%22M0%2011.5H11.5Q15%2011.5%2015%208.5V0M0%2022.5H11.5Q15%2022.5%2015%2025.5V34M44%2011.5H32.5Q29%2011.5%2029%208.5V0M44%2022.5H32.5Q29%2022.5%2029%2025.5V34M22%200V9M22%2025V34M0%2017H15M29%2017H44%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%229%22%20width%3D%2214%22%20height%3D%2216%22%20rx%3D%223.2%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%234a3308%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%22.75%22%3E%3Cpath%20d%3D%22M0%2011.5H11.5Q15%2011.5%2015%208.5V0M0%2022.5H11.5Q15%2022.5%2015%2025.5V34M44%2011.5H32.5Q29%2011.5%2029%208.5V0M44%2022.5H32.5Q29%2022.5%2029%2025.5V34M22%200V9M22%2025V34M0%2017H15M29%2017H44%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%229%22%20width%3D%2214%22%20height%3D%2216%22%20rx%3D%223.2%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat,
    radial-gradient(120% 90% at 28% 18%, rgba(255, 250, 225, .55), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .04) 1px 2px),
    linear-gradient(135deg, #f1dc9e 0%, #cfa955 22%, #b58a36 45%, #e2c47a 62%, #a87f2e 82%, #d6b468 100%);
  box-shadow: inset 0 0 0 .75px rgba(74, 51, 8, .7), inset 1px 1px 1.5px rgba(40, 26, 0, .4), 0 1px 1px rgba(0, 0, 0, .15); }
/* the chip glints now and then until it has been touched once */
.cr-card-chip.is-hint::after { content: ''; position: absolute; inset: -5px; border-radius: 10px; border: 1.5px solid rgba(255, 226, 150, .85); opacity: 0; pointer-events: none; animation: cr-hint 2.8s ease-out 1.2s infinite; }
@keyframes cr-hint { 0% { opacity: 0; transform: scale(.85); } 18% { opacity: .9; } 55% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .cr-card-chip.is-hint::after { animation: none; opacity: .7; transform: none; } }
/* the card as a thing held in the hand. Two faces on one turning leaf (.cr-flip): the leaf leans toward the finger and turns over
   when the chip is touched; each face a card of its own, lifted by a layered shadow, lit on its upper edge and dark on its lower one */
.cr-flip { --rx: 0deg; --ry: 0deg; --gx: 30%; --turn: 0deg; position: relative; display: grid; transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--turn))); transition: transform .5s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.cr-flip.is-tilt { transition: transform .12s ease-out; }
.cr-flip.is-flipped { --turn: 180deg; }
.cr-flip.is-turning { transition: transform .8s cubic-bezier(.3, .9, .25, 1); }
.cr-flip > .cr-card { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* lit top edge, dark lower edge, a thin rim (seen on a dark page too), the card's own thickness below it, then its shadow on the page */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 .5px rgba(10, 12, 40, .25), 0 1px 3px rgba(20, 22, 60, .22), 0 5px 12px rgba(20, 22, 60, .18), 0 14px 30px rgba(20, 22, 60, .2), 0 26px 56px -8px rgba(20, 22, 60, .28); }
/* the card lies ON the page: a soft shadow on the page itself, under the card, that stays there as the card leans and turns */
.cr-stage { position: relative; padding-block-end: 10px; isolation: isolate; }
.cr-stage::before { content: ''; position: absolute; inset-inline: 7%; bottom: 0; height: 34px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 22, 60, .3), rgba(20, 22, 60, 0)); filter: blur(8px); }
.cr-flip > .cr-back { transform: rotateY(180deg); }
/* the gloss across the card, moving with the lean */
.cr-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(120% 90% at var(--gx) -10%, rgba(255, 255, 255, .15), rgba(255, 255, 255, .035) 38%, transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .045) 50%, transparent 60%); mix-blend-mode: screen; }
/* the guilloche: fine curved lines as on banknotes and bank cards (drawn once in shop.js, a picture of lines only) */
.cr-front { background-image: var(--guil, none), linear-gradient(135deg, #2c2f7a 0%, #1b1d4f 55%, #11132f 100%); background-size: cover; }
.cr-front::after { display: none; }
/* Retzef's bird as a security hologram: rainbow light inside the bird's shape, its colours sliding as the card leans */
.cr-holo { position: absolute; inset-inline-start: -6%; top: -14%; height: 128%; aspect-ratio: 1; pointer-events: none; z-index: 0; opacity: .5;
  -webkit-mask: url(/static/img/logo-mark.png) center / contain no-repeat; mask: url(/static/img/logo-mark.png) center / contain no-repeat;
  background: repeating-linear-gradient(62deg, rgba(255, 255, 255, .0) 0 2px, rgba(255, 255, 255, .22) 2px 3px),
    linear-gradient(110deg, rgba(255,106,213,.75) 0%, rgba(173,140,255,.7) 16%, rgba(148,208,255,.75) 32%, rgba(125,255,196,.7) 48%, rgba(253,255,143,.7) 64%, rgba(255,179,107,.7) 80%, rgba(255,106,213,.75) 100%);
  background-size: auto, 320% 100%; background-position: 0 0, var(--gx) 0; mix-blend-mode: screen; transition: background-position .5s ease; }
[dir="ltr"] .cr-holo { transform: scaleX(-1); }
.cr-flip.is-tilt .cr-holo { transition: background-position .12s ease-out; }
.cr-front > :not(.cr-holo) { position: relative; z-index: 1; }
/* the chip, set INTO the card: a cavity whose upper edge casts a shadow inward and whose lower edge catches the light. It is a button: it reads the card and turns it over */
.cr-card-chip { position: absolute !important; inset-inline-end: 24px; top: 46%; width: 46px; height: 35px; padding: 0; border: 0; border-radius: 7px / 8px; transform: translateY(-50%); cursor: pointer; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2044%2034%22%3E%3Cg%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%3E%3Cg%20transform%3D%22translate(.45%20.5)%22%20stroke%3D%22%23fff6d8%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%22.7%22%3E%3Cpath%20d%3D%22M0%2011.5H11.5Q15%2011.5%2015%208.5V0M0%2022.5H11.5Q15%2022.5%2015%2025.5V34M44%2011.5H32.5Q29%2011.5%2029%208.5V0M44%2022.5H32.5Q29%2022.5%2029%2025.5V34M22%200V9M22%2025V34M0%2017H15M29%2017H44%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%229%22%20width%3D%2214%22%20height%3D%2216%22%20rx%3D%223.2%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%234a3308%22%20stroke-opacity%3D%22.75%22%20stroke-width%3D%22.75%22%3E%3Cpath%20d%3D%22M0%2011.5H11.5Q15%2011.5%2015%208.5V0M0%2022.5H11.5Q15%2022.5%2015%2025.5V34M44%2011.5H32.5Q29%2011.5%2029%208.5V0M44%2022.5H32.5Q29%2022.5%2029%2025.5V34M22%200V9M22%2025V34M0%2017H15M29%2017H44%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%229%22%20width%3D%2214%22%20height%3D%2216%22%20rx%3D%223.2%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat,
    radial-gradient(120% 90% at 28% 18%, rgba(255, 250, 225, .55), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .04) 1px 2px),
    linear-gradient(135deg, #f1dc9e 0%, #cfa955 22%, #b58a36 45%, #e2c47a 62%, #a87f2e 82%, #d6b468 100%);
  box-shadow: -1px -1px 0 rgba(0, 0, 0, .55), 1px 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 .75px rgba(74, 51, 8, .7), inset 2px 2px 3px rgba(40, 26, 0, .45), inset -1px -1px 1px rgba(255, 236, 180, .4); }
.cr-card-chip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cr-card-chip.is-reading { animation: cr-read .42s ease-out; }
@keyframes cr-read { 0% { filter: none; } 45% { filter: brightness(1.45) drop-shadow(0 0 8px rgba(255, 220, 140, .9)); } 100% { filter: none; } }
/* the words raised in silver as on a bank card: a metal gradient with a hard band, lit on the upper-left edge, its shadow cast down-right
   (drop-shadow, since a text-shadow would show through the clipped fill) */
.cr-card-k, .cr-card-n b, .cr-card-n span, .cr-card-sub, .cr-back-cvv {
  background: linear-gradient(180deg, #ffffff 0%, #dfe2e7 30%, #a3a8b2 48%, #7d828d 54%, #c9ccd3 70%, #f3f4f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(-.6px -.7px 0 rgba(255, 255, 255, .6)) drop-shadow(.8px 1px 0 rgba(0, 0, 0, .8)) drop-shadow(1.2px 2px 1.5px rgba(0, 0, 0, .5)); opacity: 1; }
.cr-card-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the card's back: the black magnetic stripe, the signature strip with the account's name in hand, and the diamonds */
/* the face, too, measured in the card's own width: the same card on a small phone and a large one, nothing cut */
.cr-flip { max-width: 440px; margin-inline: auto; width: 100%; }
.cr-front { container-type: inline-size; padding: 6cqi 6.5cqi 5.5cqi; gap: 2.4cqi; max-height: none; }
.cr-front .cr-card-k { font-size: 7cqi; letter-spacing: .05em; }
.cr-front .cr-card-k { background-image: linear-gradient(180deg, #ffffff 0%, #eef0f3 40%, #c4c8cf 58%, #f7f8fa 100%); filter: drop-shadow(0 -.5px 0 rgba(255, 255, 255, .5)) drop-shadow(.6px 1px 0 rgba(0, 0, 0, .75)) drop-shadow(1px 1.6px 1.2px rgba(0, 0, 0, .45)); }
.cr-front .cr-card-n b { font-size: 13.5cqi; }
.cr-front { gap: 2cqi; }
/* (the digits of this face reach below the line, as 3, 5 and 9 do: room for them, and nothing clipped) */
.cr-front .cr-card-no, .cr-front .cr-card-name { overflow: visible; text-overflow: clip; line-height: 1.3; padding-block-end: .08em; }
.cr-front .cr-card-name { line-height: 1.2; }
/* raised, not cut in: the number and the name as embossed plastic with silver on its face, brightest above, a hard dark edge
   down and to the side where each letter rises from the card, and its shadow cast on the card beyond it */
.cr-front .cr-card-no, .cr-front .cr-card-name {
  background-image: linear-gradient(180deg, #ffffff 0%, #f1f2f5 35%, #d9dce2 70%, #c3c7ce 100%);
  filter: drop-shadow(-.4px -.5px 0 rgba(255, 255, 255, .35)) drop-shadow(1px 1.2px 0 rgba(6, 8, 30, .95)) drop-shadow(1.6px 2.6px 2px rgba(0, 0, 0, .55)); }
.cr-front .cr-card-name { font-size: 6.5cqi; letter-spacing: .08em; line-height: 1.2; }
.cr-front .cr-card-mark { width: 10cqi; height: 10cqi; display: block; filter: drop-shadow(0 -.5px 0 rgba(255, 255, 255, .45)) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); opacity: 1; }
.cr-card-mark > i { display: block; width: 100%; height: 100%;
  -webkit-mask: url(/static/img/logo-mark.png) center / contain no-repeat; mask: url(/static/img/logo-mark.png) center / contain no-repeat;
  background: linear-gradient(150deg, #ffffff 0%, #e6e9ed 34%, #b9bec7 54%, #f3f4f6 74%, #cfd3d9 100%); }
.cr-front .cr-card-n { gap: 2.2cqi; }
.cr-front .cr-card-n b { font-size: 17cqi; }
.cr-front .cr-card-n span { font-size: 8cqi; }
.cr-front .cr-card-no { font-size: 6cqi; justify-content: flex-start; gap: 5.5cqi; }
/* the chip */
.cr-front .cr-card-chip { inset-inline-end: 7cqi; top: 44%; width: 15.6cqi; height: 11.9cqi; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: transform .35s cubic-bezier(.2, .9, .25, 1.15), box-shadow .35s ease; }


/* ---- the card's own page: night blue, the card floating in its own light, glass beneath it; made for the phone first ---- */
.sheet.cs-sheet { --cs-ink: #f2f3ff; --cs-dim: rgba(226, 230, 255, .62); --cs-glass: rgba(255, 255, 255, .06); --cs-line: rgba(255, 255, 255, .1);
  color: var(--cs-ink); max-width: 560px;
  background: radial-gradient(120% 60% at 50% 0%, #2a2e78 0%, rgba(42, 46, 120, 0) 60%), linear-gradient(180deg, #121433 0%, #0a0b1e 100%); }
.cs-sheet .sheet-head { border-color: var(--cs-line); }
.cs-sheet .sheet-head h2 { color: #fff; letter-spacing: .01em; }
.cs-sheet .sheet-head .btn-icon { background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }
.cs-sheet .sheet-grab { background: rgba(255, 255, 255, .28); }
.cs { display: grid; gap: 18px; padding-block-end: max(12px, env(safe-area-inset-bottom)); }
.cs-stage { position: relative; display: grid; place-items: center; padding: 10px 6px 18px; }
.cs-glow { position: absolute; inset: 14% 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 132, 255, .55), rgba(122, 132, 255, 0)); filter: blur(22px); pointer-events: none; }
.cs-card { position: relative; width: min(100%, 380px); }
.cs-card .cr-card-chip { cursor: default; pointer-events: none; outline: none !important; }
/* the facts, in the card's own letters */
.cs-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 6px; border-radius: 18px; background: var(--cs-glass); box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-facts > div { display: grid; justify-items: center; gap: 3px; }
.cs-facts > div + div { border-inline-start: 1px solid var(--cs-line); }
.cs-facts small { font-size: 11px; letter-spacing: .12em; color: var(--cs-dim); }
.cs-facts b { font-family: 'RetzefCard', serif; font-weight: 400; font-size: 19px; letter-spacing: .05em; color: #fff; }
/* the balances: one wide (the credit), two beside each other */
.cs-bals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-bal { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 20px; background: var(--cs-glass); box-shadow: inset 0 0 0 1px var(--cs-line); position: relative; overflow: hidden; }
.cs-bal.is-credit { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(106, 111, 224, .28), rgba(255, 255, 255, .04)); }
.cs-bal.is-coin { background: linear-gradient(135deg, rgba(230, 187, 79, .2), rgba(255, 255, 255, .03)); }
.cs-bal.is-dmd { background: linear-gradient(135deg, rgba(90, 168, 255, .2), rgba(138, 92, 255, .08)); }
.cs-bal-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.cs-bal-t { display: grid; min-width: 0; }
.cs-bal small { font-size: 12px; color: var(--cs-dim); letter-spacing: .04em; }
.cs-bal b { justify-self: start; font-size: clamp(20px, 6vw, 26px); font-weight: 800; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.cs-bal.is-credit b { font-size: clamp(26px, 8vw, 34px); }
.cs-bal em { font-style: normal; font-size: 12px; color: var(--cs-dim); }
/* movements */
.cs-sec { display: grid; gap: 10px; }
.cs-h { margin: 6px 2px 0; font-size: 18px; font-weight: 800; color: #fff; }
.cs-seg { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(18, 20, 51, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--cs-line); overflow-x: auto; scrollbar-width: none; }
.cs-seg-b { flex: 1; min-width: max-content; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--cs-dim); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cs-seg-b.is-on { background: rgba(255, 255, 255, .14); color: #fff; }
.cs-list { display: grid; gap: 4px; }
.cs-month { margin: 10px 4px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--cs-dim); }
.cs-group { display: grid; border-radius: 18px; background: var(--cs-glass); box-shadow: inset 0 0 0 1px var(--cs-line); overflow: hidden; }
.cs-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; }
.cs-row + .cs-row { border-block-start: 1px solid var(--cs-line); }
.cs-row-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.cs-row-t { display: grid; min-width: 0; }
.cs-row-t b { font-size: 15px; font-weight: 700; color: #fff; }
.cs-row-t small { font-size: 12px; color: var(--cs-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row-n { font-weight: 800; font-size: 16px; color: rgba(255, 255, 255, .9); }
.cs-row-n.is-plus { color: #5ee6a0; }
.cs-row.is-pending { opacity: .6; }
/* chests */
.cs-chests { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-chest { scroll-snap-align: start; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 214, 120, .32), transparent 60%), linear-gradient(160deg, #3d2c10 0%, #1b1407 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, .24), 0 10px 24px -12px rgba(0, 0, 0, .6); }
.cs-chest b { font-size: 16px; }
.cs-chest small { font-size: 12px; color: rgba(255, 255, 255, .62); }
.cs-chest.is-closed { filter: saturate(.35) brightness(.85); }
.cs-chest-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .08); margin-block-end: 6px; }
.cs-empty { margin: 4px 4px; font-size: 14px; color: var(--cs-dim); }
.cs-private { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--cs-dim); }

.cr-back { max-height: none; }
.cr-back { background: linear-gradient(135deg, #24276a 0%, #17193f 60%, #0f1128 100%); padding: 0; gap: 0; align-content: start; cursor: pointer; container-type: inline-size; }
.cr-back::after { display: none; }
/* (all in the card's own width, so the back keeps its proportions on any screen and nothing is cut).
   The back as a card's back is laid out: the stripe; the signature strip with its security digits and, beside it, the hologram;
   then the coins and diamonds and the fine print, with the code in silver at the corner */
.cr-back-low { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4cqi; margin: 3.2cqi 6.5cqi 0; }
.cr-back-main { display: grid; gap: 1.6cqi; min-width: 0; }
.cr-back-low .cr-back-dmd { margin: 0; justify-content: flex-start; gap: 8cqi; }
.cr-back-low .cr-back-bal { flex: none; }
/* (the fine print in two short lines, so the back keeps a margin at its foot as a card does) */
.cr-back-low .cr-back-note { margin: 0; font-size: 2.3cqi; line-height: 1.4; }
.cr-back { padding-block-end: 4.5cqi; }
.cr-back-qr { display: block; width: 22.5cqi; height: 22.5cqi; padding: 1.8cqi; border-radius: 1.8cqi; background: rgba(6, 8, 30, .35) center / calc(100% - 3.6cqi) no-repeat; background-origin: content-box;
  filter: drop-shadow(0 .5px .5px rgba(0, 0, 0, .6)); }
.cr-back-sign .cr-back-name { justify-content: space-between; gap: 2cqi; }
.cr-back-sign .cr-back-cvv { font-family: 'RetzefCard', serif; font-size: 4.2cqi; color: #1b2a6b; background: none; filter: none; -webkit-text-fill-color: currentColor; font-style: italic; letter-spacing: .1em; }
.cr-back-sign .cr-back-holo { flex: none; width: 19cqi; height: 9.5cqi; }
.cr-back-stripe { height: 10cqi; margin-block-start: 4cqi; background: linear-gradient(180deg, #000 0%, #141416 50%, #050506 100%); }
.cr-back-sign { display: flex; align-items: center; gap: 3cqi; margin: 3cqi 6.5cqi 0; }
.cr-back-name { flex: 1; min-width: 0; height: 9.5cqi; padding-inline: 3cqi; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  font-family: 'RetzefSign', cursive; font-size: 6.8cqi; font-weight: 700; color: #1b2a6b; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #f4efe2 0 6px, #e9e1cd 6px 8px); }
.cr-back-cvv { font-size: 5cqi; letter-spacing: .12em; font-style: italic; }
.cr-back-dmd { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; margin: 3cqi 6.5cqi 0; }
.cr-back-bal { display: grid; gap: .6cqi; min-width: 0; flex: 1; }
/* (the coins at the far side: the block sits there, but the sum starts under the word's beginning, as on the other side) */
.cr-back-bal.is-end { justify-content: end; justify-items: start; text-align: start; }
.cr-back-k { display: flex; align-items: center; gap: 1.3cqi; font-size: 3.6cqi; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.cr-back-dmd b { font-size: 7.2cqi; letter-spacing: .03em; white-space: nowrap; line-height: 1; font-weight: 400;
  background: linear-gradient(180deg, #ffffff 0%, #dfe2e7 30%, #a3a8b2 48%, #7d828d 54%, #c9ccd3 70%, #f3f4f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(-.6px -.7px 0 rgba(255, 255, 255, .6)) drop-shadow(.8px 1px 0 rgba(0, 0, 0, .8)) drop-shadow(1.2px 2px 1.5px rgba(0, 0, 0, .5)); }
.cr-back-holo { flex: none; display: flex; align-items: center; justify-content: center; gap: 2cqi; width: 22cqi; height: 11cqi; border-radius: 1.6cqi; overflow: hidden; position: relative;
  background: repeating-linear-gradient(62deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .28) 2px 3px),
    linear-gradient(110deg, #f6c6ea 0%, #d6c7ff 20%, #c2e4ff 40%, #c6ffe6 60%, #fdffc9 80%, #ffd9b8 100%);
  background-size: auto, 300% 100%; background-position: 0 0, var(--gx) 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .35); }
/* the coin and the diamond in warm bronze on the hologram foil, as a premium card's metal stamping:
   their own light and shade, turned to bronze, raised by a lit upper edge and a shaded lower one */
.cr-back-holo svg { width: 6.8cqi; height: 6.8cqi; filter: grayscale(1) sepia(1) saturate(1.7) hue-rotate(-11deg) brightness(.68) contrast(1.45) drop-shadow(-.5px -.6px 0 rgba(255, 228, 200, .9)) drop-shadow(.6px .8px 0 rgba(70, 36, 12, .8)) drop-shadow(.8px 1.3px 1px rgba(60, 40, 0, .35)); }
.cr-back-note { margin: 2.6cqi 6.5cqi 0; font-size: 2.55cqi; line-height: 1.45; letter-spacing: .02em; color: rgba(255, 255, 255, .5); text-align: justify; font-family: var(--font, system-ui), sans-serif; }
@font-face { font-family: 'RetzefSign'; font-weight: 700; font-display: swap; src: url(/static/fonts/mail/AmaticSC-700-hebrew.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'RetzefSign'; font-weight: 700; font-display: swap; src: url(/static/fonts/mail/AmaticSC-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@media (prefers-reduced-motion: reduce) { .cr-flip, .cr-flip.is-turning { transform: rotateY(var(--turn)); transition: none; } .cr-holo { transition: none; } }
.cr-sec { display: grid; gap: 10px; }
.cr-h { margin: 0; font-size: 17px; font-weight: 700; }
.cr-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cr-amt { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 14px 6px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--text) 12%, transparent); background: var(--surface, transparent); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.cr-amt b { font-size: 20px; font-weight: 800; }
.cr-amt span { font-size: 13px; opacity: .7; }
.cr-amt:active { transform: scale(.97); }
.cr-amt.is-on { border-color: var(--accent, #007aff); background: color-mix(in srgb, var(--accent, #007aff) 10%, transparent); }
.cr-custom { width: 100%; }
.cr-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.cr-go.is-off { opacity: .5; pointer-events: none; }
.cr-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-3, inherit); opacity: .85; }
.cr-uses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-uses li { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.cr-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.cr-hist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.cr-hist li:last-child { border-bottom: 0; }
.cr-hist-t { display: grid; gap: 2px; }
.cr-hist-t b { font-size: 15px; font-weight: 600; }
.cr-hist-t small { font-size: 12px; opacity: .65; }
.cr-hist-n { font-weight: 700; font-size: 15px; }
.cr-hist-n.is-plus { color: #1f9d55; }
.cr-hist li.is-pending .cr-hist-n { opacity: .55; }

/* the Numinalis+ level on the profile card: a tag that opens the plans */
.lvl-tag.pc-lvl { height: 20px; padding: 0 9px; font-size: 11.5px; border: 0; cursor: pointer; margin-inline-start: 0; }
/* the subscriber's own line on the plans page, in its Disney+ night colours */
.pp .pl-status, .pp .pl-status.is-paid { background: #1e1f24; color: #fafafa; box-shadow: none; }

/* ---- foldable-shaped screens (the iPhone Duo closed 466x678 and open 890x626, each upright or on its side) ----
   Chosen by the room there is, never by a model: wider than an ordinary phone (441px), narrower than the desktop layout
   (899px), not as tall as a tablet (900px), and neither tall-thin nor wide-flat (5:8 to 8:5). An ordinary phone (under
   441px wide), a tablet (taller than 900px, or wider than 899px) and the desktop are outside it and keep every rule above. */
@media (min-width: 441px) and (max-width: 899px) and (min-height: 441px) and (max-height: 900px) and (min-aspect-ratio: 5/8) and (max-aspect-ratio: 8/5) {
  /* the notch / the hinge's rounded edges: the bars and the screens keep their content in from both sides */
  .topbar { padding-inline: max(var(--s4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .view { padding-inline: max(var(--s4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .bottomnav { padding-inline: max(0px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  /* a screen never grows wider than the one in view (no sideways scroll) */
  .main { overflow-x: clip; }
  /* sheets and dialogs stay inside what is visible: the keyboard and the browser bars taken away */
  .sheet { max-height: min(92dvh, calc(var(--vvh, 100dvh) - 8px)); }
  .modal-host { padding-block-start: max(var(--s3), min(8vh, 48px)); }
  .modal { max-height: min(80dvh, calc(var(--vvh, 100dvh) - var(--s3) - var(--s4))); }
}
/* on its side (wide and not tall): the photo at the top of the Path leaves room for what is under it, by the height */
@media (orientation: landscape) and (min-width: 441px) and (max-width: 899px) and (min-height: 441px) and (max-height: 700px) {
  .pz-hero { padding-top: clamp(84px, 24dvh, 160px); padding-bottom: 72px; }
  .pz-rank-name { font-size: clamp(38px, 9dvh, 58px); }
  .rz-a11y { inset-block-end: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
/* ---- foldable-shaped screens, the parts that need their own arrangement (same shape test as above, nothing else is touched) ---- */
@media (min-width: 441px) and (max-width: 899px) and (min-height: 441px) and (max-height: 900px) and (min-aspect-ratio: 5/8) and (max-aspect-ratio: 8/5) {
  /* the shop's courses: wide enough, two side by side with the picture on top (a picture squeezed to a third of a wide card was cropped and left the words cramped) */
  .shop-courses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
  .shop-course { grid-template-columns: minmax(0, 1fr); gap: 0; align-content: start; }
  .shop-course-img { height: auto; min-height: 0; aspect-ratio: 16 / 9; max-height: none; }
  /* the plans: all three together where they fit, one after the other where they do not (never two and then one) */
  .nx-cards { grid-template-columns: minmax(0, 520px); justify-content: center; }
  /* the Path's photo reaches both edges of the screen (it stopped short of them on a wide screen, leaving bands at the sides) */
  .pz-hero::before { inset-inline: calc(50% - 50vw); background-size: 100% 100%, cover; background-position: 0 0, 28% 0; }
  /* the profile's inner tabs: equal parts across the whole width */
  .pf-tabs { max-width: none; }
  .pf-tab { flex: 1 1 0; white-space: nowrap; padding-inline: 6px; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 880px) and (max-width: 899px) and (min-height: 441px) and (max-height: 900px) and (min-aspect-ratio: 5/8) and (max-aspect-ratio: 8/5) {
  .nx-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
}
/* ---- the mailing's automations: the engine card, the builder (trigger, blocks one under the other, "+" between, two branches) ---- */
.mkf-engine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 16px; margin-block-end: 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mkf-engine-t { display: grid; gap: 3px; min-width: 0; flex: 1 1 320px; }
.mkf-engine-a { display: flex; flex-wrap: wrap; gap: 8px; }
.mkf-err { color: var(--danger, #c0392b); }
.mkf-trigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.mkf-trig { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.mkf-trig.is-on { border-color: var(--accent); background: var(--accent-soft); }
.mkf-trig > span { display: grid; gap: 2px; }
.mkf-trig input { margin-top: 3px; accent-color: var(--accent); }
.mkf-extra { display: grid; gap: 10px; margin-top: 12px; }
.mkf .mkw-top { flex-wrap: wrap; }
.mkf-name { flex: 1 1 200px; min-width: 0; font-size: 17px; font-weight: 700; }
.mkf-st { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.mkf-st.is-active { background: var(--ok-soft); color: var(--ok); }
.mkf-st.is-paused { background: color-mix(in srgb, #e0a100 16%, transparent); color: #9a6a00; }
.mkf-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mkf-canvas { display: flex; flex-direction: column; align-items: center; padding: 18px 0 40px; min-width: 0; }
.mkf-block { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: min(100%, 420px); padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-1); cursor: pointer; text-align: start; }
.mkf-block:hover { box-shadow: 0 0 0 1.5px var(--accent), var(--sh-1); }
.mkf-block:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mkf-block.is-trigger { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
.mkf-block.is-end { cursor: default; grid-template-columns: auto 1fr; background: var(--surface-2); box-shadow: none; width: auto; padding-inline: 18px; }
.mkf-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.mkf-block.is-trigger .mkf-ic { background: var(--accent); color: var(--on-accent, #fff); }
.mkf-block.is-send .mkf-ic { background: var(--accent-soft); color: var(--accent-text); }
.mkf-block.is-if .mkf-ic { background: color-mix(in srgb, #e0a100 18%, transparent); color: #8a5d00; }
.mkf-block.is-end .mkf-ic { background: var(--ok-soft); color: var(--ok); }
.mkf-bt { display: grid; gap: 2px; min-width: 0; }
.mkf-bt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkf-count { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.mkf-tools { display: flex; gap: 2px; }
.mkf-line { display: block; width: 2px; height: 14px; background: var(--line-strong); }
.mkf-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--accent); background: var(--bg); color: var(--accent-text); cursor: pointer; padding: 0; }
.mkf-plus:hover { background: var(--accent-soft); }
.mkf-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(100%, 880px); margin-top: 0; }
.mkf-branch { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 10px 8px 12px; border-radius: 18px; border: 1.5px dashed var(--line-strong); }
.mkf-branch.is-yes { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.mkf-branch.is-no { border-color: color-mix(in srgb, var(--danger, #c0392b) 45%, transparent); }
.mkf-blabel { padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--surface-2); }
.mkf-branch.is-yes .mkf-blabel { background: var(--ok-soft); color: var(--ok); }
.mkf-branch.is-no .mkf-blabel { background: color-mix(in srgb, var(--danger, #c0392b) 12%, transparent); color: var(--danger, #c0392b); }
.mkf-branch .mkf-block { width: 100%; }
.mkf-pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mkf-pick { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 650; color: var(--text); cursor: pointer; text-align: start; }
.mkf-pick:hover { border-color: var(--accent); }
.mkf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.mkf-dry { display: grid; gap: 6px; padding-inline-start: 20px; margin: 0; }
.mkf-logs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mkf-log { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .mkf-branches { grid-template-columns: minmax(0, 1fr); } .mkf-block { grid-template-columns: auto minmax(0, 1fr) auto; } .mkf-tools { grid-column: 1 / -1; justify-content: flex-end; } }
/* ---- the automation builder, drawn as icons: palette | canvas | panel ---- */
.mkf { --mkf-trigger: #6d5dfc; --mkf-send: #2f7df6; --mkf-wait: #e09b12; --mkf-if: #9b5cf6; --mkf-list: #12a37a; --mkf-tag: #e0508e; --mkf-exit: #e5484d; --mkf-off: #7a8191; --mkf-end: #12a37a; }
.mkf .tone-trigger { --c: var(--mkf-trigger); } .mkf .tone-send, .mkf-ghost.tone-send { --c: var(--mkf-send); } .mkf .tone-wait, .mkf-ghost.tone-wait { --c: var(--mkf-wait); }
.mkf .tone-if, .mkf-ghost.tone-if { --c: var(--mkf-if); } .mkf .tone-list, .mkf-ghost.tone-list { --c: var(--mkf-list); } .mkf .tone-tag, .mkf-ghost.tone-tag { --c: var(--mkf-tag); }
.mkf .tone-exit, .mkf-ghost.tone-exit { --c: var(--mkf-exit); } .mkf .tone-off, .mkf-ghost.tone-off { --c: var(--mkf-off); } .mkf .tone-end { --c: var(--mkf-end); }
.sheet .tone-send { --c: #2f7df6; } .sheet .tone-wait { --c: #e09b12; } .sheet .tone-if { --c: #9b5cf6; } .sheet .tone-list { --c: #12a37a; } .sheet .tone-tag { --c: #e0508e; } .sheet .tone-exit { --c: #e5484d; } .sheet .tone-off { --c: #7a8191; }
.mkf .mkw-top { gap: 10px 12px; }
.mkf-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.mkf-note { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mkf-stage { display: grid; grid-template-columns: 132px minmax(0, 1fr) 340px; min-height: 0; overflow: hidden; }
.mkf.mkw { display: flex; flex-direction: column; }
.mkf-stage { flex: 1 1 auto; }
/* the palette */
.mkf-pal { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-inline-end: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.mkf-pal-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text-3); padding: 0 4px 4px; }
.mkf-pal-hint { text-align: center; padding-top: 4px; }
.mkf-pal-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 650; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; text-align: center; transition: background .15s; }
.mkf-pal-i:hover { background: var(--surface-2); }
.mkf-pal-i:active { cursor: grabbing; }
.mkf-glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); }
.mkf-pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.mkf-pickgrid .mkf-pal-i { cursor: pointer; }
/* the canvas: a soft dotted ground, the flow in its middle */
.mkf-canvas { overflow: auto; min-width: 0; padding: 28px 16px 80px; background-color: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--text) 13%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; }
.mkf-flow { display: flex; flex-direction: column; align-items: center; min-width: min-content; margin-inline: auto; }
.mkf-node { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 200px; }
.mkf-dot { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(0, 0, 0, .45); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s; }
.mkf-dot .mkf-glyph { width: 48px; height: 48px; }
.mkf-dot:hover { transform: translateY(-1px); }
.mkf-dot:active { transform: scale(.96); }
.mkf-dot:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.mkf-node.is-if .mkf-dot { border-radius: 16px; transform: rotate(45deg); width: 54px; height: 54px; }
.mkf-node.is-if .mkf-dot .mkf-glyph { border-radius: 12px; transform: rotate(-45deg); width: 44px; height: 44px; }
.mkf-node.is-if .mkf-dot:hover { transform: rotate(45deg) translateY(-1px); }
.mkf-node.is-if .mkf-dot:active { transform: rotate(45deg) scale(.96); }
/* selected: a clear ring in the block's own colour, its name in bold colour */
.mkf-node.is-sel .mkf-dot { box-shadow: 0 0 0 3px var(--c), 0 0 0 7px color-mix(in srgb, var(--c) 16%, transparent), 0 10px 22px -12px rgba(0, 0, 0, .5); }
.mkf-node.is-sel .mkf-glyph { color: #fff; background: var(--c); box-shadow: none; }
.mkf-node.is-sel .mkf-cap b { color: var(--c); }
.mkf-node.tone-trigger .mkf-glyph, .mkf-node.tone-end .mkf-glyph { color: #fff; background: var(--c); box-shadow: none; }
.mkf-node.is-lifted { opacity: .35; }
.mkf-cap { display: grid; justify-items: center; gap: 1px; text-align: center; max-width: 200px; }
.mkf-cap b { font-size: 13.5px; }
.mkf-cap span { font-size: 12.5px; color: var(--text-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkf-warn { position: absolute; top: -3px; inset-inline-end: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: #e5484d; box-shadow: 0 0 0 2px var(--surface); }
.mkf-node.is-if .mkf-warn, .mkf-node.is-if .mkf-badge { transform: rotate(-45deg); }
.mkf-badge { position: absolute; bottom: -6px; inset-inline-start: -10px; min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.mkf-line { display: block; width: 2px; height: 16px; background: color-mix(in srgb, var(--text) 18%, transparent); flex: none; }
/* a slot between two blocks: a small "+" at rest, a wide landing place while something is dragged */
.mkf-drop { position: relative; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: width .18s, height .18s, border-radius .18s, background .18s; }
.mkf-drop-in { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: background .15s, color .15s, transform .15s; }
.mkf-drop:hover .mkf-drop-in, .mkf-drop:focus-visible .mkf-drop-in { color: var(--accent-text); box-shadow: 0 0 0 1.5px var(--accent); transform: scale(1.12); }
.mkf.is-dragging .mkf-drop { width: 168px; height: 40px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); }
.mkf.is-dragging .mkf-drop-in { opacity: .5; }
.mkf.is-dragging .mkf-drop.is-hot { background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.mkf.is-dragging .mkf-drop.is-hot .mkf-drop-in { opacity: 1; color: #fff; background: var(--accent); box-shadow: none; }
.mkf.is-dragging, .mkf.is-dragging * { cursor: grabbing !important; }
.mkf-ghost { position: fixed; z-index: 9999; top: 0; left: 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--c), 0 16px 32px -14px rgba(0, 0, 0, .55); pointer-events: none; white-space: nowrap; font-size: 13.5px; }
/* a condition: two branches side by side, each with its own line of blocks */
.mkf-split { display: grid; grid-template-columns: repeat(2, minmax(220px, auto)); gap: 18px; padding-top: 0; position: relative; }
.mkf-arm { display: flex; flex-direction: column; align-items: center; padding: 10px 10px 14px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1.5px var(--line); }
.mkf-arm-l { padding: 3px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.mkf-arm.is-yes .mkf-arm-l { color: #0b7a59; background: color-mix(in srgb, #12a37a 15%, transparent); }
.mkf-arm.is-no .mkf-arm-l { color: #b4232a; background: color-mix(in srgb, #e5484d 13%, transparent); }
/* the panel */
.mkf-panel { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 24px; border-inline-start: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.mkf-ph { display: flex; align-items: center; gap: 10px; }
.mkf-ph b { flex: 1; font-size: 16px; }
.mkf-ph-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.mkf-panel-x { display: none; }
.mkf-todo { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #e09b12 10%, transparent); }
.mkf-todo ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.mkf-ready { margin: 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; color: #0b7a59; background: color-mix(in srgb, #12a37a 12%, transparent); }
.mkf-panel .mkf-trigs { grid-template-columns: minmax(0, 1fr); }
/* narrow screens: the palette a row on top, the panel a drawer from the bottom */
@media (max-width: 899px) {
  .mkf-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mkf-pal { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 2px; }
  .mkf-pal-h, .mkf-pal-hint { display: none; }
  .mkf-pal-i { flex: 0 0 76px; padding: 6px 2px; font-size: 11.5px; }
  .mkf-pal-i .mkf-glyph { width: 38px; height: 38px; }
  .mkf-panel { position: fixed; inset: auto 0 0 0; z-index: 30; max-height: 62vh; border-inline-start: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .5); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .mkf-panel.is-open { transform: none; }
  .mkf-panel-x { display: inline-grid; }
  .mkf-split { grid-template-columns: repeat(2, minmax(176px, auto)); gap: 10px; }
  .mkf-node, .mkf-cap { width: 170px; max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .mkf-dot, .mkf-drop, .mkf-panel { transition: none; } }
/* ---- the automation canvas as a nervous system: synapse pictures as blocks, axons as wires (overrides the earlier flow look) ---- */
.mkf-view { position: relative; min-width: 0; min-height: 0; display: flex; }
.mkf .mkf-canvas { flex: 1; display: block; position: relative; overflow: auto; padding: 0; cursor: grab; touch-action: none;
  background-color: #050813; background-image: radial-gradient(ellipse at 50% 30%, rgba(60, 80, 180, .18), transparent 60%), radial-gradient(rgba(140, 160, 255, .13) 1px, transparent 1.3px); background-size: 100% 100%, 26px 26px; background-attachment: local; }
.mkf .mkf-canvas.is-panning { cursor: grabbing; }
.mkf-surface { position: relative; width: 2600px; height: 2000px; transform-origin: 0 0; }
.mkf-wires { position: absolute; inset: 0; overflow: visible; }
.mkf-nodes { position: absolute; inset: 0; pointer-events: none; }
.mkf-nodes > * { pointer-events: auto; }
.mkf .mkf-node { position: absolute; display: block; width: 120px; height: 120px; gap: 0; }
.mkf .mkf-node.tone-trigger { --h: 40deg; } .mkf .mkf-node.tone-send { --h: 0deg; } .mkf .mkf-node.tone-wait { --h: 175deg; } .mkf .mkf-node.tone-if { --h: 75deg; }
.mkf .mkf-node.tone-list { --h: -70deg; } .mkf .mkf-node.tone-tag { --h: 115deg; } .mkf .mkf-node.tone-exit { --h: 140deg; }
.mkf .mkf-syn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.mkf .mkf-syn:focus-visible { outline: none; }
.mkf .mkf-syn:focus-visible .mkf-pic { filter: hue-rotate(var(--h, 0deg)) drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px var(--c)); }
.mkf-pic { display: block; width: 120px; height: 120px; pointer-events: none; filter: hue-rotate(var(--h, 0deg)) drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); transition: filter .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.mkf .mkf-node.tone-off .mkf-pic { filter: grayscale(.85) brightness(.9) drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.mkf .mkf-syn:hover .mkf-pic { transform: scale(1.04); }
/* selected: the synapse itself lights up in its colour, along its own outline */
.mkf .mkf-node.is-sel .mkf-pic, .mkf .mkf-node.is-target .mkf-pic { filter: hue-rotate(var(--h, 0deg)) brightness(1.15) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 12px var(--c)) drop-shadow(0 0 26px var(--c)); }
.mkf .mkf-node.is-target .mkf-pic { transform: scale(1.06); }
/* the block's own icon, where the picture's chip was */
.mkf .mkf-core { position: absolute; left: 63px; top: 85px; width: 32px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgba(8, 14, 40, .72); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); backdrop-filter: blur(3px); }
.mkf .mkf-node.is-sel .mkf-core { background: var(--c); }
.mkf .mkf-warn { position: absolute; top: 2px; left: 96px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: #ff4d5e; box-shadow: 0 0 0 2px #050813, 0 0 10px rgba(255, 77, 94, .8); transform: none; }
.mkf .mkf-badge { position: absolute; top: 4px; left: 0; bottom: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(12, 20, 50, .85); box-shadow: inset 0 0 0 1px var(--c); transform: none; }
/* the caption beside the picture (so the wire under it stays clear) */
.mkf .mkf-cap { position: absolute; top: 34px; right: calc(100% + 6px); left: auto; width: 168px; max-width: 168px; display: grid; justify-items: end; gap: 2px; text-align: right; pointer-events: none; }
.mkf .mkf-cap b { font-size: 13.5px; color: #eef1ff; text-shadow: 0 1px 6px #000; }
.mkf .mkf-cap span { font-size: 12px; color: #a9b2d6; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 6px #000; }
.mkf .mkf-node.is-sel .mkf-cap b { color: var(--c); }
.mkf-in { display: none; }
/* the outlets: pull a wire from here */
.mkf-out { position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 12px var(--c); cursor: crosshair; touch-action: none; transition: transform .15s; left: 60px; top: 124px; }
.mkf-out:hover, .mkf-out:focus-visible { transform: scale(1.3); outline: none; }
.mkf-out.is-yes { left: 122px; top: 86px; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3), 0 0 12px #34d399; }
.mkf-out.is-no { left: 38px; top: 124px; background: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, .3), 0 0 12px #ff5d6c; }
.mkf-out > span { position: absolute; top: 50%; transform: translateY(-50%); padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #04110b; background: #34d399; white-space: nowrap; pointer-events: none; left: 18px; }
.mkf-out.is-no > span { left: auto; right: 18px; color: #fff; background: #ff5d6c; }
.mkf .mkf-node.tone-trigger .mkf-out { top: 124px; }
/* the wires: an axon in its myelin sheath, light running in its core, and sparks travelling along it */
.mkf-w-hit { fill: none; stroke: transparent; stroke-width: 18; cursor: pointer; pointer-events: stroke; }
.mkf-w-sheath { fill: none; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 28 5; opacity: .2; pointer-events: none; }
.mkf-w-core { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .9; filter: url(#mkf-glow); pointer-events: none; }
.mkf-w-chem { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .1 13; opacity: .55; pointer-events: none; animation: mkf-chem 2.8s linear infinite; }
@keyframes mkf-chem { to { stroke-dashoffset: -66; } }
.mkf-wire:hover .mkf-w-sheath { opacity: .34; }
.mkf-wire.is-sel .mkf-w-sheath { opacity: .5; }
.mkf-wire.is-sel .mkf-w-core { stroke-width: 3; }
.mkf-w-spark { pointer-events: none; }
.mkf-bouton, .mkf-nt { pointer-events: none; }
.mkf-w-temp { fill: none; stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; filter: url(#mkf-glow); pointer-events: none; animation: mkf-chem 1.2s linear infinite; }
.mkf-cut { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255, 77, 94, .3), 0 6px 14px rgba(0, 0, 0, .5); cursor: pointer; }
.mkf.is-wiring .mkf-canvas, .mkf.is-wiring * { cursor: crosshair !important; }
.mkf.is-moving * { cursor: grabbing !important; }
/* zoom */
.mkf-zoom { position: absolute; bottom: 14px; left: 14px; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(14, 20, 44, .86); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.mkf-zoom .btn { color: #dfe4ff; background: none; border: 0; }
.mkf-zl { min-width: 46px; text-align: center; font-size: 12px; font-weight: 700; color: #dfe4ff; font-variant-numeric: tabular-nums; }
/* the palette: the same synapse, small */
.mkf-pal-i { --c: #4aa3ff; }
.mkf-pal-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 85%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.mkf-ghost { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(10, 16, 40, .92); color: #fff; box-shadow: 0 0 0 1.5px var(--c), 0 0 22px color-mix(in srgb, var(--c) 50%, transparent); }
.mkf-how { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.mkf-ph-ic { background: var(--c); }
@media (prefers-reduced-motion: reduce) { .mkf-w-chem, .mkf-w-temp { animation: none; } }
@media (max-width: 899px) { .mkf .mkf-cap { width: 120px; max-width: 120px; } .mkf .mkf-cap span { max-width: 120px; } }.mkf .mkf-cap, .mkf-out > span { direction: rtl; }
/* the block is the synapse picture itself: its black melts into the dark canvas (screen), its own glow stays */
.mkf-surface { background-color: #050813; background-image: radial-gradient(ellipse at 40% 20%, rgba(60, 80, 180, .16), transparent 55%), radial-gradient(rgba(140, 160, 255, .12) 1px, transparent 1.3px); background-size: 100% 100%, 26px 26px; }
.mkf .mkf-pic { width: 120px; height: 120px; mix-blend-mode: screen; filter: hue-rotate(var(--h, 0deg)); }
.mkf .mkf-node.tone-off .mkf-pic { filter: grayscale(.85) brightness(.85); }
.mkf .mkf-syn::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 62%); opacity: 0; transition: opacity .25s; mix-blend-mode: screen; pointer-events: none; }
.mkf .mkf-node.is-sel .mkf-syn::before, .mkf .mkf-node.is-target .mkf-syn::before { opacity: 1; }
.mkf .mkf-node.is-sel .mkf-pic, .mkf .mkf-node.is-target .mkf-pic { filter: hue-rotate(var(--h, 0deg)) brightness(1.3) saturate(1.25); }
.mkf .mkf-syn:focus-visible .mkf-pic { filter: hue-rotate(var(--h, 0deg)) brightness(1.3); }
.mkf .mkf-node.tone-send { --h: 0deg; } .mkf .mkf-node.tone-trigger { --h: 45deg; } .mkf .mkf-node.tone-wait { --h: 195deg; } .mkf .mkf-node.tone-if { --h: 70deg; }
.mkf .mkf-node.tone-list { --h: -60deg; } .mkf .mkf-node.tone-tag { --h: 110deg; } .mkf .mkf-node.tone-exit { --h: 150deg; }
.mkf .mkf-warn { left: 92px; top: 6px; }.mkf .mkf-cap { justify-items: start; text-align: right; }
/* the neurons: each kind its own picture; the start and the end keep their own colours */
.mkf .mkf-node.tone-trigger, .mkf .mkf-node.tone-end { --h: 0deg; }
.mkf .mkf-node.tone-send { --h: 0deg; }
/* the end: the nerve opening into the cosmos, larger, with one star for every person who arrived */
.mkf .mkf-node.is-end { width: 190px; height: 190px; }
.mkf .mkf-node.is-end .mkf-pic { width: 190px; height: 190px; }
.mkf .mkf-node.is-end .mkf-cap { top: 70px; }
.mkf .mkf-node.is-end .mkf-syn::before { inset: -10px; }
.mkf-stars { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.mkf-stars i { position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff, 0 0 9px #ffd27a; animation: mkf-twinkle 4s ease-in-out infinite; }
@keyframes mkf-twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }
.mkf .mkf-node.is-end .mkf-pic { animation: mkf-breathe 7s ease-in-out infinite; }
@keyframes mkf-breathe { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.18) saturate(1.15); } }
.mkf-galaxy-n { display: grid; justify-items: start; gap: 2px; padding: 14px 16px; border-radius: 16px; color: #fff; background: radial-gradient(circle at 20% 20%, #3b2a7a, #0b0f2a 70%); }
.mkf-galaxy-n b { font-size: 34px; line-height: 1; color: #ffd27a; text-shadow: 0 0 14px rgba(255, 210, 122, .7); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .mkf-stars i, .mkf .mkf-node.is-end .mkf-pic { animation: none; } }/* ---- the living neurons: the action potential's light runs down each cell, the cell flares as it fires, and breathes between ---- */
.mkf .mkf-pic { filter: hue-rotate(var(--h, 0deg)) brightness(calc(1 + var(--fire, 0) * .75)) saturate(calc(1 + var(--fire, 0) * .35)); }
.mkf .mkf-node.tone-off .mkf-pic { filter: grayscale(.85) brightness(calc(.85 + var(--fire, 0) * .6)); }
.mkf .mkf-node.is-sel .mkf-pic, .mkf .mkf-node.is-target .mkf-pic { filter: hue-rotate(var(--h, 0deg)) brightness(calc(1.3 + var(--fire, 0) * .6)) saturate(1.25); }
.mkf .mkf-syn { animation: mkf-breath 5.5s ease-in-out infinite; }
.mkf .mkf-node:nth-child(3n) .mkf-syn { animation-delay: -1.8s; } .mkf .mkf-node:nth-child(3n + 1) .mkf-syn { animation-delay: -3.6s; }
@keyframes mkf-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
.mkf-ap { position: absolute; left: 50%; top: var(--ap-y, 12%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; opacity: var(--ap-o, 0); mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0, color-mix(in srgb, var(--c) 85%, #fff) 18%, color-mix(in srgb, var(--c) 45%, transparent) 42%, transparent 70%); }
.mkf .mkf-node.is-end .mkf-ap { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
.mkf .mkf-node.is-end .mkf-stars { opacity: calc(.7 + var(--fire, 0) * .3); }
/* the outlet sits on the axon's end and shows itself only when the cell is pointed at or chosen (the wire looks like the axon going on) */
.mkf .mkf-out { width: 14px; height: 14px; margin: -7px 0 0 -7px; top: 117px; border-width: 1.5px; opacity: 0; transition: opacity .18s, transform .15s; }
.mkf .mkf-node:hover .mkf-out, .mkf .mkf-node.is-sel .mkf-out, .mkf.is-wiring .mkf-out, .mkf .mkf-out:focus-visible { opacity: 1; }
.mkf .mkf-node.tone-trigger .mkf-out { top: 117px; }
.mkf .mkf-out.is-yes, .mkf .mkf-out.is-no { opacity: .9; }
/* the axon's sheath a little thicker where it leaves, like the axon in the picture */
.mkf-w-sheath { stroke-width: 7; opacity: .26; }
.mkf-w-core { stroke-width: 2.6; }
@media (prefers-reduced-motion: reduce) { .mkf .mkf-syn { animation: none; } }/* (the breath on the picture itself: a moving parent would isolate the picture from the dark ground, and its black would show) */
.mkf .mkf-syn { animation: none; }
.mkf .mkf-pic { animation: mkf-breath 5.5s ease-in-out infinite; }
.mkf .mkf-node:nth-child(3n) .mkf-pic { animation-delay: -1.8s; } .mkf .mkf-node:nth-child(3n + 1) .mkf-pic { animation-delay: -3.6s; }
.mkf .mkf-node.is-end .mkf-pic { animation: mkf-breath 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mkf .mkf-pic, .mkf .mkf-node.is-end .mkf-pic { animation: none; } }
/* the end: no ball of light running over the galaxy; when a signal arrives the galaxy itself brightens from its heart, softly, and its stars flare */
.mkf .mkf-node.is-end .mkf-ap { display: none; }
.mkf .mkf-node.is-end .mkf-syn::after { content: ''; position: absolute; left: 50%; top: 58%; width: 150px; height: 110px; margin: -55px 0 0 -75px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse, rgba(255, 236, 190, .55) 0, rgba(190, 150, 255, .28) 35%, transparent 70%); opacity: calc(var(--fire, 0) * .85); transform: scale(calc(.85 + var(--fire, 0) * .25)); }
.mkf .mkf-node.is-end .mkf-stars i { opacity: calc(.4 + var(--fire, 0) * .6); }
/* every kind has its own neuron now: no tinting, the pictures keep their own colours */
.mkf .mkf-node { --h: 0deg !important; }
.mkf .mkf-node.tone-off .mkf-pic { filter: brightness(calc(1 + var(--fire, 0) * .75)) saturate(calc(1 + var(--fire, 0) * .35)); }
/* the condition's two outlets sit on the ends of its two axon branches (green "yes" right, red "no" left) */
.mkf .mkf-out.is-yes { left: 90px; top: 114px; }
.mkf .mkf-out.is-no { left: 26px; top: 114px; }
/* the palette's buttons are the same neurons, small, each on its own dark ground (so its black melts away) */
.mkf-pal-ic { width: 54px; height: 54px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #121a3a, #050813 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); overflow: hidden; }
.mkf-pal-ic img { width: 54px; height: 54px; mix-blend-mode: screen; display: block; }
.mkf-pal-i:hover .mkf-pal-ic { box-shadow: inset 0 0 0 1.5px var(--c), 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.mkf-ghost .mkf-pal-ic { width: 44px; height: 44px; } .mkf-ghost .mkf-pal-ic img { width: 44px; height: 44px; }
/* the neuron pictures are transparent now (their black taken out): no blending needed, they sit on any ground */
.mkf .mkf-pic { mix-blend-mode: normal; }
.mkf-pal-ic { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.mkf-pal-ic img { mix-blend-mode: normal; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 45%, transparent)); }
.mkf-pal-i:hover .mkf-pal-ic { box-shadow: none; }
.mkf-pal-i:hover .mkf-pal-ic img { filter: drop-shadow(0 0 9px var(--c)); }
/* the outlets: placed by the script on each picture's own axon end */
.mkf .mkf-out.is-yes, .mkf .mkf-out.is-no, .mkf .mkf-node.tone-trigger .mkf-out { top: auto; left: auto; }
/* a campaign on its way: its state, a thin bar of how far it went, and the numbers */
.mkc-prog { display: grid; gap: 4px; justify-items: start; min-width: 170px; }
.mkc-prog b { font-size: 14px; }
.mkc-prog.is-sending b, .mkc-prog.is-scheduled b { color: var(--accent-text); }
.mkc-prog.is-sent b { color: var(--ok); }
.mkc-prog.is-cancelled b, .mkc-prog.is-paused b { color: var(--text-2); }
.mkc-bar { display: block; width: 160px; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mkc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.mk-code { margin: 0; padding: 12px 14px; border-radius: 12px; background: #0e1424; color: #dfe6ff; font: 12.5px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.mk-sub-h { margin: 18px 0 6px; font-size: 15px; }

/* the treasure chest at the port: the chest itself is touched; it shakes, its lid opens, the prize rises out of it, and it is gone */
button.vy-chest { width: 100%; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .5s ease, transform .5s ease, max-height .6s ease; }
.vy-chest-art { position: relative; display: grid; place-items: center; flex: none; }
.vy-chest.is-closed .vy-chest-art { animation: vy-bob 2.6s ease-in-out infinite; }
.vy-chest.is-opening.is-closed .vy-chest-art { animation: vy-shake .45s ease-in-out infinite; }
.vy-chest.is-open .vy-chest-art { animation: vy-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.vy-gains { position: absolute; bottom: 60%; inset-inline-start: 50%; translate: 50% 0; display: grid; gap: 4px; justify-items: center; pointer-events: none; }
[dir="ltr"] .vy-gains { translate: -50% 0; }
.vy-gain { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: rgba(20, 16, 4, .78); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); opacity: 0; animation: vy-rise .9s cubic-bezier(.2, .9, .3, 1) forwards; }
.vy-gain + .vy-gain { animation-delay: .25s; }
.vy-gain b { font-size: 17px; }
.vy-gain small { font-size: 12px; opacity: .8; }
.vy-chest.is-gone { opacity: 0; transform: scale(.92); }
@keyframes vy-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes vy-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes vy-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes vy-rise { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: translateY(-6px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .vy-chest-art, .vy-gain { animation: none !important; opacity: 1; } }

/* ---- the coin shop (in the shop, under the card) ---- */
.cs-shop .cr-h { display: flex; align-items: center; gap: 6px; }
.cs-shop-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.cs-shop-cover { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); }
.cs-shop-t { display: grid; min-width: 0; gap: 1px; }
.cs-shop-t b { font-size: 15px; }
.cs-shop-t small { font-size: 12px; color: var(--muted, #888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-shop-row .btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* ---- the owner's lesson prices (administration) ---- */
.ls { display: grid; gap: 14px; }
.ls-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ls-h { margin: 0 0 4px; font-size: 18px; }
.ls-course { border-radius: 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.ls-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; cursor: pointer; }
.ls-cover { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); }
.ls-name { display: grid; min-width: 0; }
.ls-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-name small { font-size: 12px; color: var(--muted, #888); }
.ls-sw { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ls-on { width: 20px; height: 20px; accent-color: #c9a24c; }
.ls-body { padding: 0 12px 12px; display: grid; gap: 8px; border-block-start: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.ls-body[hidden] { display: none; }
.ls-cp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 10px; font-weight: 700; }
.ls-pctw { display: inline-flex; align-items: center; gap: 4px; }
.ls-pct { width: 74px; text-align: center; padding: 6px 8px; }
.ls-rows { display: grid; }
.ls-ch { margin: 8px 2px 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #a07d2c; }
.ls-row { display: grid; grid-template-columns: 26px 1fr auto 70px; align-items: center; gap: 10px; padding: 8px 2px; border-block-end: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.ls-k { font-size: 12px; color: var(--muted, #888); text-align: center; }
.ls-t { min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-pricew { display: grid; justify-items: end; line-height: 1.1; }
.ls-price { font-size: 16px; }
.ls-pricew small { font-size: 10px; color: var(--muted, #888); }
@media (max-width: 420px) { .ls-row { grid-template-columns: 22px 1fr auto; } .ls-pricew { grid-column: 2 / -1; justify-items: start; grid-row: 2; } }

/* ---- the treasure chest (a picture of its own, alone; small at the port and on the map) ---- */
.tc { --tc: 132px; position: relative; display: grid; place-items: center; height: calc(var(--tc) * 1.35); margin: 4px auto 10px; overflow: visible; transition: opacity .6s ease, transform .6s ease; }
.tc.is-gone { opacity: 0; transform: scale(.85) translateY(8px); }
.tc-chest { position: relative; width: var(--tc); height: var(--tc); border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tc-chest::before { content: ''; position: absolute; inset: 18% 8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 200, 255, .35), rgba(90, 200, 255, 0)); filter: blur(14px); animation: tc-breathe 2.8s ease-in-out infinite; }
.tc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); transition: opacity .2s ease; }
.tc-open { opacity: 0; }
.tc-chest.is-open .tc-closed { opacity: 0; }
.tc-chest.is-open .tc-open { opacity: 1; }
.tc-chest.is-idle { animation: tc-float 3.2s ease-in-out infinite; }
.tc-chest.is-shaking { animation: tc-shake .45s ease-in-out infinite; }
.tc-chest.is-open { animation: tc-pop .55s cubic-bezier(.2, 1.5, .4, 1); }
.tc-shadow { position: absolute; bottom: 8%; width: calc(var(--tc) * .72); height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.tc-burst { position: absolute; left: 50%; top: 46%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); pointer-events: none; background: radial-gradient(circle, #fff3c4 0%, rgba(255, 196, 80, .85) 25%, rgba(255, 170, 40, 0) 70%); }
.tc-rays { position: absolute; left: 50%; top: 44%; width: calc(var(--tc) * 2.4); height: calc(var(--tc) * 2.4); transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .22) 0 6deg, rgba(255, 214, 120, 0) 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); }
.tc.is-burst .tc-burst { animation: tc-burstk 1s ease-out forwards; }
.tc.is-burst .tc-rays { animation: tc-raysk 2.4s ease-out forwards; }
.tc-gains { position: absolute; bottom: 72%; left: 50%; translate: -50% 0; display: grid; gap: 6px; justify-items: center; pointer-events: none; z-index: 3; }
.tc-gain { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; white-space: nowrap; color: #fff; background: rgba(12, 10, 4, .82); box-shadow: 0 0 0 1px rgba(255, 214, 120, .35), 0 6px 18px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(26px) scale(.7); }
.tc-gain.is-up { animation: tc-rise .85s cubic-bezier(.2, 1.2, .3, 1) forwards; }
.tc-gain b { font-size: 17px; }
.tc-gain small { font-size: 12px; opacity: .85; }
.tc-relic { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
@keyframes tc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tc-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tc-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes tc-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes tc-burstk { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(40); opacity: 0; } }
@keyframes tc-raysk { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(40deg); } }
@keyframes tc-rise { to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .tc-chest, .tc-chest::before, .tc-gain.is-up, .tc.is-burst .tc-rays, .tc.is-burst .tc-burst { animation: none !important; } .tc-gain.is-up { opacity: 1; transform: none; } }
/* ---- the sea relics on the card's own page ---- */
.cs-relics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cs-relic { display: grid; gap: 4px; justify-items: center; text-align: center; font-size: 11px; color: var(--cs-dim, #aaa); }
.cs-relic span { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #111; box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .25); }
.cs-relic img { width: 100%; height: 100%; object-fit: cover; }
.cs-relic.is-missing img { filter: grayscale(1) brightness(.18) contrast(1.2); }
.cs-relic.is-rarest span { box-shadow: inset 0 0 0 1.5px rgba(120, 230, 255, .7), 0 0 14px rgba(90, 200, 255, .3); }

/* the treasure chest on the map, at the port the ship reached: small, standing above the port mark, scaled with the map like the other marks */
.qm-chest { position: absolute; width: 0; height: 0; z-index: 6; transform: scale(var(--inv, 1)); pointer-events: auto; }
.qm-chest .tc { --tc: 58px; position: absolute; left: 0; top: 0; margin: 0; translate: -50% -118%; }
.qm-chest .tc-gains { bottom: 92%; }
.qm-chest .tc-gain { padding: 3px 9px; }
.qm-chest .tc-gain b { font-size: 14px; }
.qm-chest .tc-gain small { font-size: 11px; }
.cs-item-ic { display: grid; place-items: center; }
.cs-item-ic svg { width: 30px; height: 30px; }

/* ---- the owner's admin screens for voyage rewards (lesson prices, the treasure path): one calm language ---- */
.adm { display: grid; gap: 16px; }
.adm-hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, #c9a24c 14%, var(--surface, #fff)), var(--surface, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9a24c 22%, transparent); }
.adm-hero-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
.adm-hero-ic.is-gold { background: linear-gradient(135deg, #e3c06a, #a87f2e); }
.adm-hero-ic.is-amber { background: linear-gradient(135deg, #e8a54a, #9a5f1c); }
.adm-hero-t h3 { margin: 0 0 4px; font-size: 19px; }
.adm-hero-t p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted, #777); }
.adm-stats { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.adm-stat { display: grid; padding: 8px 14px; border-radius: 14px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); min-width: 108px; }
.adm-stat b { font-size: 22px; line-height: 1.1; }
.adm-stat small { font-size: 12px; color: var(--muted, #888); }
.adm-stat.is-hot b { color: #d9822b; }
.adm-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-rules span { padding: 6px 12px; border-radius: 99px; font-size: 13px; background: color-mix(in srgb, #c9a24c 12%, transparent); color: var(--text); }
.adm-h { display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; font-size: 16px; }
.adm-empty { display: flex; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; color: var(--muted, #888); background: color-mix(in srgb, var(--text) 4%, transparent); }
.adm-list { display: grid; gap: 12px; }
.adm-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35), inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.adm-bar[hidden] { display: none; }
.adm-step { display: inline-flex; align-items: center; border-radius: 12px; background: color-mix(in srgb, var(--text) 6%, transparent); overflow: hidden; }
.adm-step button { width: 34px; height: 34px; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.adm-step button:active { background: color-mix(in srgb, var(--text) 10%, transparent); }
.adm-step-in { width: 48px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.adm-step-in::-webkit-outer-spin-button, .adm-step-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.adm-step i { font-style: normal; font-size: 12px; color: var(--muted, #888); padding-inline-end: 2px; }
/* lesson prices */
.ls2 { border-radius: 20px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; transition: box-shadow .2s ease; }
.ls2.is-on { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #c9a24c 55%, transparent), 0 10px 26px -16px rgba(150, 110, 30, .5); }
.ls2-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; }
.ls2-cover { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: color-mix(in srgb, var(--text) 8%, transparent); }
.ls2-name { display: grid; min-width: 0; }
.ls2-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls2-name small { font-size: 12px; color: var(--muted, #888); }
.ls2-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.ls2-body[hidden] { display: none; }
.ls2-worth { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #c9a24c 9%, transparent); }
.ls2-worth div { display: grid; }
.ls2-worth small { font-size: 12px; color: var(--muted, #888); }
.ls2-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ls2-sum span { display: grid; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.ls2-sum small { font-size: 11px; color: var(--muted, #888); }
.ls2-sum b { font-size: 16px; }
.ls2-rows { display: grid; }
.ls2-ch { position: sticky; top: 0; z-index: 1; padding: 10px 2px 6px; background: var(--surface, #fff); }
.ls2-ch span { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #a07d2c; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, #c9a24c 14%, transparent); }
.ls2-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 84px; align-items: center; gap: 10px; padding: 8px 2px; border-block-end: 1px solid color-mix(in srgb, var(--text) 6%, transparent); }
.ls2-row.is-custom .ls2-t { font-weight: 700; }
.ls2-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.ls2-t { min-width: 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls2-price { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 15px; }
@media (max-width: 520px) {
  .ls2-row { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: 'k t p' 'k s s'; row-gap: 6px; }
  .ls2-k { grid-area: k; align-self: start; } .ls2-t { grid-area: t; } .ls2-price { grid-area: p; } .ls2-row .adm-step { grid-area: s; justify-self: start; }
  .ls2-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the treasure path */
.tq2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tq2 { display: grid; border-radius: 20px; overflow: hidden; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent), 0 10px 24px -16px rgba(0, 0, 0, .4); }
.tq2-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.tq2-b { display: grid; gap: 10px; padding: 12px; }
.tq2-who { display: grid; min-width: 0; }
.tq2-who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq2-who small { font-size: 12px; color: var(--muted, #888); }
.tq2-sign { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #e8a54a 12%, transparent); }
.tq2-sign small { font-size: 12px; color: var(--muted, #888); }
.tq2-sign b { font-size: 18px; letter-spacing: .04em; }
.tq2-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tq2-act .btn { justify-content: center; }
.tq2-c { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent); }
.tq2-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, #e8a54a, #9a5f1c); }
.tq2-give { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .tq2-c { grid-template-columns: auto minmax(0, 1fr); } .tq2-give { grid-column: 1 / -1; } .tq2-give select { flex: 1; min-width: 0; } }

/* what a ship gives (coins a day, the chances in its chest) */
.ship-gives { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted, #888); }
.ship-gives span { display: inline-flex; align-items: center; gap: 3px; }
.ship-gives b { color: var(--text); }
.ship-gives.is-big { font-size: 13px; gap: 6px 14px; padding: 10px 2px; }

.ios-ic.is-pic { padding: 0; overflow: hidden; }
.ios-ic.is-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the surprise chest on the way: smaller; faint until the ship reaches it, then it wakes */
.qm-chest.is-surprise .tc { --tc: 44px; }
.qm-chest.is-surprise:not(.is-reached) .tc { opacity: .55; filter: saturate(.6); }
.qm-chest.is-surprise:not(.is-reached) .tc-chest { cursor: help; }

/* ---- the legends of the sea ---- */
.lg { display: grid; gap: 10px; margin: 10px 0; padding: 14px; border-radius: 18px; background: color-mix(in srgb, #3b2f7a 8%, var(--surface, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #5b4fd0 20%, transparent); }
.lg-race { display: grid; gap: 6px; }
.lg-race-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lg-race-h small { color: var(--muted, #888); font-size: 12px; }
.lg-bar { position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.lg-bar-us { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: linear-gradient(90deg, #3d6bff, #7a5cff); }
.lg-bar-them { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; background: #d33a2c; box-shadow: 0 0 6px rgba(211, 58, 44, .6); }
.lg-race-n { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted, #888); }
.lg-clue { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; }
.lg-guess { display: grid; gap: 6px; } .lg-guess small { color: var(--muted, #888); }
.lg-guess-b { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-stop-w { display: grid; gap: 4px; }
.lg-stop-w small { font-size: 12px; color: var(--muted, #888); }
.lg-stop { font-weight: 800; letter-spacing: .02em; color: #fff; border: 0; }
.lg-stop.is-eclipse { background: linear-gradient(135deg, #1a1a1a, #5a5a5a); }
.lg-stop.is-sapphire { background: linear-gradient(135deg, #0f2a7a, #2f6bd8); }
.lg-book-b { justify-self: start; display: inline-flex; gap: 6px; align-items: center; }
.lgb { display: grid; gap: 12px; }
.lgb-sum { margin: 0; } .lgb-power { margin: 0; font-size: 13px; color: #8a5cff; }
.lgb-list { display: grid; gap: 8px; }
.lgb-r { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.lgb-r div { display: grid; gap: 2px; } .lgb-r small { font-size: 12.5px; color: var(--muted, #888); }
.lgb-r.is-found { background: color-mix(in srgb, #c9a24c 12%, transparent); }
.lgb-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--text) 7%, transparent); }
.tc-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #f7d774, #b8862a); color: #fff; }
/* the moment of discovery */
.rv { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 45%, rgba(46, 12, 84, .95), rgba(4, 2, 10, .98)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rv-in .35s ease-out; cursor: pointer; }
.rv.is-out { opacity: 0; transition: opacity .35s ease; }
.rv-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rv-ch { position: absolute; top: calc(12% + var(--i) * 13%); inset-inline-start: calc(6% + (var(--i) * 37%) - (var(--i) * var(--i) * 4%)); font-size: clamp(38px, 12vw, 72px); font-weight: 900; color: #c78bff; opacity: .55; transform: rotate(calc(-12deg + var(--i) * 5deg)); text-shadow: 0 0 18px rgba(199, 139, 255, .6); animation: rv-shake .18s steps(2) infinite; }
.rv-card { position: relative; max-width: 420px; text-align: center; color: #fff; animation: rv-rise .6s cubic-bezier(.2, 1.3, .3, 1); }
.rv-card small { letter-spacing: .2em; font-size: 12px; color: #e6c9ff; }
.rv-card h2 { margin: 8px 0 10px; font-size: clamp(28px, 8vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: .01em; text-shadow: 0 0 24px rgba(199, 139, 255, .65), 0 4px 0 rgba(0, 0, 0, .4); }
.rv-card p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.rv-stop h2 { font-family: 'RetzefCard', serif; }
@keyframes rv-in { from { opacity: 0; } }
@keyframes rv-rise { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes rv-shake { 0% { translate: 0 0; } 100% { translate: 2px -2px; } }
@media (prefers-reduced-motion: reduce) { .rv-ch, .rv-card, .rv { animation: none !important; } }
/* the map on the day time stopped: frozen; the eclipse's grey, or sapphire */
.qm.is-timestop * { animation-play-state: paused !important; }
.qm.is-timestop.ts-eclipse { filter: grayscale(1) contrast(1.1); }
.qm.is-timestop.ts-sapphire { filter: grayscale(1) sepia(1) hue-rotate(185deg) saturate(2.4) brightness(.9); }

/* ---- the spiral card (the profile, and "my spiral" in the settings): ordered, and side by side where there is room ---- */
.spc-card { container-type: inline-size; display: grid; gap: 14px; padding: 18px; }
.spc-head { display: flex; align-items: center; gap: 12px; }
.spc-head h3 { margin: 0; font-size: 17px; }
.spc-head small { font-size: 12.5px; color: var(--muted, #888); }
.spc-head-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; background: conic-gradient(#ef4444, #f97316, #facc15, #22c55e, #3b82f6, #a855f7, #ef4444); }
.spc-head-ic i { position: absolute; inset: 7px; border-radius: 50%; background: var(--surface, #fff); box-shadow: inset 0 0 0 4px var(--h); }
.spc-body { display: grid; gap: 16px; }
.spc-side { display: grid; gap: 12px; justify-items: center; }
.spc-card .spc-wheel { width: 200px; height: 200px; margin: 4px auto 0; }
.spc-card .spc-lang { display: grid; gap: 2px; text-align: center; margin: 0; padding: 12px 14px; border-radius: 16px; width: 100%; box-sizing: border-box;
  background: color-mix(in srgb, var(--h) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 30%, transparent); }
.spc-card .spc-lang small { font-size: 11.5px; letter-spacing: .06em; color: var(--muted, #888); }
.spc-card .spc-lang > b { font-size: 16px; line-height: 1.35; color: var(--text); }
.spc-lang-c { font-size: 12.5px; color: var(--muted, #888); }
.spc-card .spc-rows { display: grid; gap: 6px; align-content: start; }
.spc-card .spc-row { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.spc-row-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spc-card .spc-name { width: auto; font-weight: 750; }
.spc-sub { flex: 1; min-width: 0; font-size: 12px; color: var(--muted, #888); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spc-card .spc-n { width: auto; font-size: 15px; }
.spc-card .spc-bar { height: 7px; }
.spc-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted, #888); text-align: center; }
@container (min-width: 560px) {
  .spc-body { grid-template-columns: 240px 1fr; align-items: center; }
  .spc-card .spc-wheel { width: 210px; height: 210px; }
}
.spx-h { margin-block: 22px 8px !important; }
.spx-req { display: grid; gap: 10px; justify-items: start; margin-block-start: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent); }
.spx-req p { margin: 0; font-size: 14px; color: var(--muted, #666); }
.spx-req.is-wait { background: color-mix(in srgb, #ff9500 10%, var(--surface, #fff)); }
.spx-req.is-ok { background: color-mix(in srgb, #34c759 10%, var(--surface, #fff)); }

/* (the spiral settings card: room at its sides, so the words and the switch keep inside it) */
.spx-card { padding: 0 16px; }
.spx-card .setting { gap: 12px; }

/* the spiral as the book draws it (a rising, widening coil, a turn for each colour) */
.spa-w { width: 100%; max-width: 330px; margin: 0 auto; color: color-mix(in srgb, var(--text) 30%, transparent); }
.spa { display: block; width: 100%; height: auto; overflow: visible; }
.spa-t { font-size: 13px; font-weight: 700; }
.spa-t .spa-p { fill: var(--text); font-weight: 800; }
.spa-t.is-lead { font-size: 15.5px; font-weight: 900; }
.spa-t.is-none { font-weight: 500; opacity: .45; }
@container (min-width: 560px) { .spc-body { grid-template-columns: 300px 1fr; } }

/* the spiral's night stage: the colours glow on it; the spiral draws itself turn by turn, specks of light rise, the leading turn breathes */
.spa-w { position: relative; max-width: 360px; border-radius: 24px; overflow: hidden; padding: 6px 4px 0;
  background: radial-gradient(120% 80% at 40% 100%, #1b1f4d 0%, #0d1030 55%, #070818 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 30px -18px rgba(10, 12, 40, .7); }
.spa-w::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #fff, transparent), radial-gradient(1.2px 1.2px at 64% 34%, #fff, transparent), radial-gradient(1px 1px at 22% 62%, #fff, transparent), radial-gradient(1px 1px at 88% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 40% 8%, #fff, transparent); }
.spa { position: relative; }
.spa-turn { stroke-dasharray: 1; stroke-dashoffset: 1; animation: spa-draw .9s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--k) * 130ms); }
.spa-turn.is-lead { animation: spa-draw .9s cubic-bezier(.3, .7, .2, 1) forwards calc(var(--k) * 130ms), spa-breathe 3.2s ease-in-out 2s infinite; }
.spa-tag { cursor: pointer; opacity: 0; animation: spa-fade .5s ease forwards; animation-delay: calc(400ms + var(--k) * 130ms); outline: none; }
.spa-tag rect { transition: fill-opacity .2s ease, stroke-width .2s ease; }
.spa-tag:hover rect, .spa-tag:focus-visible rect, .spa-tag.is-on rect { fill-opacity: .32; stroke-width: 1.6; }
.spa-tag.is-lead rect { stroke-width: 1.6; }
.spa-t { fill: #fff; font-size: 12.5px; font-weight: 700; }
.spa-tag.is-lead .spa-t { font-weight: 900; }
.spa-tag.is-none .spa-t { fill: rgba(255, 255, 255, .45); font-weight: 500; }
.spa-lead { opacity: 0; animation: spa-fade .5s ease forwards; animation-delay: calc(400ms + var(--k) * 130ms); }
.spa-specks circle { fill: #fff; opacity: 0; animation: spa-rise 6s linear infinite; animation-delay: var(--d); }
@keyframes spa-draw { to { stroke-dashoffset: 0; } }
@keyframes spa-fade { to { opacity: 1; } }
@keyframes spa-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes spa-rise { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x), -300px); } }
@media (prefers-reduced-motion: reduce) { .spa-turn, .spa-tag, .spa-lead { animation: none !important; stroke-dashoffset: 0; opacity: 1; } .spa-specks { display: none; } }
.spc-card .spc-lang { transition: background .3s ease, box-shadow .3s ease; }
/* ---- the Path's notices, fourth pass: straight on the page, no card, no glow. A small tinted tile with its sign, the words,
   and a plain chevron; notices that follow one another are one quiet list with a hairline between them. ---- */
.pz-alerts { gap: 0; }
.pz-alert { --o: var(--accent); gap: 12px; min-height: 56px; padding: 10px 0; }
.pz-alert.is-warn { --o: #e8930c; }
.pz-alert.is-danger { --o: #e5484d; }
.pz-alert.is-accent { --o: var(--accent); }
.pz-alert.is-quiet { --o: var(--text-3); }
.pz-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px;
  color: var(--o); background: color-mix(in srgb, var(--o) 13%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--o) 28%, transparent); }
.pz-ico .ic { stroke: currentColor; }
.pz-ico.is-num { font-size: 14.5px; font-weight: 750; letter-spacing: -.02em; }
.pz-alert-b { gap: 2px; }
.pz-alert-b strong { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.32; }
.pz-alert-b .pz-sub { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.pz-alert-go { width: 22px; height: 22px; border: 0; background: none; border-radius: 0; color: var(--text-3); }
.pz-alerts > .pz-alert + .pz-alert { position: relative; box-shadow: none; }
.pz-alerts > .pz-alert + .pz-alert::before,
.pz > .tw:is(.pz-part-alerts, .pz-part-overdue, .pz-part-scheduler) + .tw:is(.pz-part-alerts, .pz-part-overdue, .pz-part-scheduler)::before {
  content: ''; position: absolute; top: 0; inset-inline: 46px 0; height: .5px; background: color-mix(in srgb, var(--text) 16%, transparent); }
.pz > .tw:is(.pz-part-alerts, .pz-part-overdue, .pz-part-scheduler) + .tw:is(.pz-part-alerts, .pz-part-overdue, .pz-part-scheduler) { position: relative; margin-block-start: -34px; }
.pz-sched .pz-act.is-main { height: 34px; padding-inline: 14px; font-size: 13.5px; font-weight: 650; color: var(--accent-text, var(--accent));
  background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: none; }
.pz-sched .pz-act.is-main .ic { stroke: currentColor; }
.pz-od-list, .pz-od-note { padding-inline-start: 46px; }
@media (max-width: 420px) { .pz-sched .pz-act { margin-inline-start: 46px; } }
/* the coin shop's rows read whole on a phone: the words wrap instead of being cut, and where the column is narrow the price
   button goes under the words, so the name keeps the row's width */
.cs-shop { container-type: inline-size; }
.cs-shop-t small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
.cs-shop-t b { line-height: 1.3; }
@container (max-width: 400px) {
  .cs-shop-row { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; row-gap: 8px; }
  .cs-shop-cover { width: 44px; height: 44px; border-radius: 11px; }
  .cs-item-ic svg { width: 24px; height: 24px; }
  .cs-shop-row > .btn { grid-column: 2; justify-self: start; }
}
/* the top-up: the worth (what the credit opens) right above the amounts */
.cr-topup .cr-uses { margin-block: 4px 14px; }
/* the top-up within the first screen: its worth in one line, the amounts and the button right under the card */
.cr-topup .cr-h { margin-block-end: 2px; }
.cr-worth { margin-block: 0 10px; }
.cr-topup .cr-amounts { margin-block-end: 10px; }
.cr-other { display: block; margin: 8px auto 0; padding: 6px 12px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--accent-text, var(--accent)); cursor: pointer; }
.cr-custom[hidden] { display: none; }

/* the time stop's radar (the owner, 2026-11-16): a darker, see-through circle round the ship as far as its reach, fine rings, a beam
   sweeping round; a rival caught in it stands still that day. It turns even while the map is frozen (it is the power at work) */
.qm-radar { position: absolute; translate: -50% -50%; border-radius: 50%; pointer-events: none; z-index: 1; contain: layout paint;
  background: radial-gradient(circle, rgba(6, 10, 26, .18) 0%, rgba(6, 10, 26, .3) 70%, rgba(6, 10, 26, .38) 100%),
    repeating-radial-gradient(circle, transparent 0 calc(25% - 1px), rgba(190, 225, 255, .28) calc(25% - 1px) 25%);
  box-shadow: inset 0 0 0 1.5px rgba(190, 225, 255, .55), 0 0 24px rgba(120, 180, 255, .18); }
.qm-radar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(190, 225, 255, .22), rgba(190, 225, 255, .22)) center / 1px 100% no-repeat, linear-gradient(rgba(190, 225, 255, .22), rgba(190, 225, 255, .22)) center / 100% 1px no-repeat; }
.qm-radar-sweep { position: absolute; inset: 0; border-radius: 50%; will-change: transform; animation: qm-radar 3.4s linear infinite;
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(150, 215, 255, .08) 300deg, rgba(150, 215, 255, .38) 352deg, rgba(225, 245, 255, .85) 359deg, transparent 360deg); }
.qm-radar.ts-sapphire { box-shadow: inset 0 0 0 1.5px rgba(120, 190, 255, .7), 0 0 28px rgba(60, 140, 255, .3); }
.qm-radar.ts-sapphire .qm-radar-sweep { background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(80, 160, 255, .1) 300deg, rgba(80, 160, 255, .42) 352deg, rgba(200, 230, 255, .9) 359deg, transparent 360deg); }
@keyframes qm-radar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qm-radar-sweep { animation: none; } }
.qm-radar[hidden] { display: none; }

/* ---- the dream's symbols (the owner, 2026-11-16: the arrows and the lists felt generic): two seals, gold letters on night, small arcana cards ---- */
.dsym { display: grid; gap: 10px; }
.dsym-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dsym-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(214, 190, 255, .18); color: #e9e4ff; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.dsym-tab:active { transform: scale(.98); }
.dsym-tab.is-open { border-color: rgba(233, 196, 106, .55); background: linear-gradient(180deg, rgba(233, 196, 106, .14), rgba(167, 139, 250, .06)); box-shadow: 0 8px 22px -14px rgba(233, 196, 106, .6); }
.dsym-glyph { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(233, 196, 106, .55);
  background: radial-gradient(circle at 35% 30%, rgba(233, 196, 106, .25), rgba(20, 16, 50, .4)); }
.dsym-glyph.is-letter { font-family: 'RetzefMapLand', serif; font-size: 17px; line-height: 1; color: #f2d58a; padding-block-start: 1px; }
.dsym-glyph.is-card::before { content: ''; width: 11px; height: 16px; border-radius: 2.5px; border: 1.5px solid #f2d58a; box-shadow: inset 0 0 0 2px rgba(20, 16, 50, .6), inset 0 0 0 3px rgba(242, 213, 138, .5); }
.dsym-chev { margin-inline-start: auto; width: 8px; height: 8px; border-right: 1.6px solid rgba(233, 228, 255, .6); border-bottom: 1.6px solid rgba(233, 228, 255, .6); rotate: 45deg; translate: 0 -2px; transition: rotate .25s ease, translate .25s ease; }
.dsym-tab.is-open .dsym-chev { rotate: 225deg; translate: 0 2px; border-color: #f2d58a; }
.dsym-letters[hidden], .dsym-cards[hidden] { display: none; }
.dsym-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 7px; animation: dsym-in .25s ease; }
.dsym-letter { aspect-ratio: 1; display: grid; place-items: center; padding: 0; border-radius: 12px; cursor: pointer; border: 1px solid rgba(214, 190, 255, .16);
  background: radial-gradient(120% 90% at 50% 0, rgba(167, 139, 250, .18), rgba(10, 8, 30, .35)); transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.dsym-letter b { font-family: 'RetzefMapLand', serif; font-weight: 900; font-size: 21px; line-height: 1; background: linear-gradient(180deg, #fbe7ae, #d6a945); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dsym-letter:active, .dsym-card:active { transform: scale(.95); }
.dsym-letter.is-on { border-color: #e9c46a; box-shadow: 0 0 0 1px rgba(233, 196, 106, .5), 0 0 18px -4px rgba(233, 196, 106, .75); background: radial-gradient(120% 90% at 50% 0, rgba(233, 196, 106, .3), rgba(30, 20, 60, .5)); }
.dsym-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 7px; animation: dsym-in .25s ease; }
.dsym-card { position: relative; aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7px 4px 8px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(233, 196, 106, .35); color: #efe6ff;
  background: linear-gradient(160deg, rgba(60, 40, 120, .55), rgba(16, 12, 40, .75)); box-shadow: inset 0 0 0 3px rgba(10, 8, 30, .55), inset 0 0 0 4px rgba(233, 196, 106, .22);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.dsym-num { font-style: normal; font-family: 'RetzefMapLand', serif; font-size: 11px; letter-spacing: .08em; color: #f2d58a; }
.dsym-star { width: 18px; height: 18px; border-radius: 50%; opacity: .85; background: radial-gradient(circle, #fbe7ae 0 22%, transparent 24%), conic-gradient(from 0deg, transparent 0deg 40deg, rgba(242, 213, 138, .9) 45deg, transparent 50deg 85deg, rgba(242, 213, 138, .9) 90deg, transparent 95deg 130deg, rgba(242, 213, 138, .9) 135deg, transparent 140deg 175deg, rgba(242, 213, 138, .9) 180deg, transparent 185deg 220deg, rgba(242, 213, 138, .9) 225deg, transparent 230deg 265deg, rgba(242, 213, 138, .9) 270deg, transparent 275deg 310deg, rgba(242, 213, 138, .9) 315deg, transparent 320deg 355deg, rgba(242, 213, 138, .9) 360deg, transparent 365deg); }
.dsym-card b { font-family: 'RetzefMapSea', serif; font-weight: 400; font-size: 11.5px; line-height: 1.15; text-align: center; }
.dsym-card.is-on { border-color: #e9c46a; box-shadow: inset 0 0 0 3px rgba(10, 8, 30, .4), inset 0 0 0 4px rgba(233, 196, 106, .7), 0 0 20px -4px rgba(233, 196, 106, .7); background: linear-gradient(160deg, rgba(120, 90, 30, .55), rgba(40, 24, 70, .8)); }
@keyframes dsym-in { from { opacity: 0; translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .dsym-letters, .dsym-cards { animation: none; } }

/* ---- the sea's moments: coins flying to the wallet, the port reached, a day of rowing ---- */
.fly-coin { position: fixed; z-index: 9999; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.arv { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 24px; background: rgba(4, 8, 22, .72); animation: arv-in .45s ease both; }
.arv.is-out { animation: arv-out .4s ease forwards; pointer-events: none; }
.arv-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 45% at 50% 42%, rgba(242, 201, 106, .38), transparent 70%); animation: arv-glow 2.6s ease-in-out infinite alternate; }
.arv-card { position: relative; width: min(360px, 100%); padding: 26px 22px 20px; border-radius: 24px; text-align: center; color: #f6f1e4;
  background: linear-gradient(165deg, rgba(34, 40, 80, .96), rgba(14, 18, 44, .96)); border: 1px solid rgba(242, 201, 106, .45); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 50px -18px rgba(242, 201, 106, .5);
  animation: arv-rise .7s cubic-bezier(.2, .9, .3, 1.15) .1s both; }
.arv-k { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: #f2c96a; }
.arv-card h2 { margin: 6px 0 8px; font-family: 'RetzefMapLand', serif; font-size: clamp(28px, 8vw, 38px); line-height: 1.1;
  background: linear-gradient(180deg, #fff3cf, #e0b14e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arv-card p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: rgba(246, 241, 228, .82); }
.arv-coins { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 16px; padding: 8px 16px; border-radius: 999px; background: rgba(242, 201, 106, .12); border: 1px solid rgba(242, 201, 106, .35); }
.arv-coins b { font-size: 22px; font-weight: 800; color: #ffe29a; }
.arv-coins small { font-size: 12.5px; color: rgba(246, 241, 228, .75); }
.arv-go { width: 100%; }
@keyframes arv-in { from { opacity: 0; } }
@keyframes arv-out { to { opacity: 0; } }
@keyframes arv-rise { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes arv-glow { from { opacity: .7; } to { opacity: 1; } }
.rowed { position: fixed; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 9997; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; color: #eaf6ff; font-size: 14px; font-weight: 650;
  background: rgba(12, 30, 52, .92); border: 1px solid rgba(120, 200, 255, .3); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); animation: rowed-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.rowed.is-out { animation: rowed-out .35s ease forwards; }
.rowed-sea { position: relative; width: 54px; height: 28px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #1b5d8c, #0f3d63); }
.rowed-sea::after { content: ''; position: absolute; inset-block: 11px; inset-inline-start: -40px; width: 60px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65)); animation: rowed-wake 1.1s ease-out .2s both; }
.rowed-ship { position: absolute; top: 50%; inset-inline-start: 0; width: 15px; height: auto; rotate: 90deg; translate: 0 -50%; animation: rowed-ship 1.4s cubic-bezier(.3, .7, .3, 1) .15s both; }
[dir="rtl"] .rowed-ship { rotate: -90deg; }
@keyframes rowed-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes rowed-out { to { opacity: 0; transform: translateY(10px); } }
@keyframes rowed-ship { from { inset-inline-start: 2px; } to { inset-inline-start: 32px; } }
@keyframes rowed-wake { from { inset-inline-start: -60px; opacity: 0; } 40% { opacity: 1; } to { inset-inline-start: 4px; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .arv, .arv-card, .arv-glow, .rowed, .rowed-ship, .rowed-sea::after { animation: none !important; } }

/* the next goal in the coin shop: a thin bar filling toward the price, and what is left */
.cs-goal { display: grid; gap: 3px; margin-block-start: 4px; }
.cs-goal-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.cs-goal-fill { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #e0b14e, #f6d68a); transition: width .6s ease; }
.cs-goal.is-gem .cs-goal-fill { background: linear-gradient(90deg, #5aa9ff, #a6dcff); }
.cs-shop-t .cs-goal small { color: var(--text-2); font-size: 11.5px; white-space: normal; }

/* ---- Harbour News as stories (a modern social network): rings at the head of the feed, a full-screen player that plays them in turn ---- */
.hs { margin-block-end: 8px; }
.hs-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-row::-webkit-scrollbar { display: none; }
.hs-ring { flex: none; display: grid; justify-items: center; gap: 5px; width: 70px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hs-ring small { max-width: 70px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ring-c { --g: conic-gradient(from 200deg, #37b6ff, #5b6cff, #b04dff, #37b6ff); position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: var(--g); transition: transform .15s ease; }
.hs-ring:active .hs-ring-c { transform: scale(.94); }
.hs-ring.is-relic .hs-ring-c, .hs-ring.is-set .hs-ring-c { --g: conic-gradient(from 200deg, #ffd36b, #ff8a3d, #ffcf5a, #ffd36b); }
.hs-ring.is-race .hs-ring-c { --g: conic-gradient(from 200deg, #ff5f6d, #ffc371, #ff5f6d); }
.hs-ring.is-timestop .hs-ring-c, .hs-ring.is-arrow .hs-ring-c { --g: conic-gradient(from 200deg, #8e7bff, #e070ff, #5ac8ff, #8e7bff); }
.hs-ring.is-seen .hs-ring-c { --g: color-mix(in srgb, var(--text) 18%, transparent); }
.hs-ring-in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--bg, #fff); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #6fb6ef, #1f5e98 75%); }
[data-theme="dark"] .hs-ring-in { background: radial-gradient(circle at 50% 30%, #2a5b8f, #0c2342 75%); }
/* (each ship whole inside its ring, made smaller as its own shape asks: a long ship as much as a short one) */ .hs-ring-in:has(> img) { position: relative; } .hs-ring-in img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 44%; max-height: 76%; object-fit: contain; rotate: -20deg; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.hs-ring-k { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1d2b4a; border: 2px solid var(--bg, #fff); }
.hs-ring-k .ic { stroke: currentColor; }
/* the player */
.hs-view { --sky1: #0b1b3a; --sky2: #1c3f7a; --sea1: #0d3159; --sea2: #072040; --glow: rgba(120, 190, 255, .45); --ink: #fff;
  position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-rows: auto 1fr; color: var(--ink); background: #000; animation: hs-in .28s ease both; touch-action: none; }
.hs-view.is-out { animation: hs-out .28s ease forwards; }
:root:not([data-theme="dark"]) .hs-view { --sky1: #6fb7f2; --sky2: #cfe8ff; --sea1: #2f86d1; --sea2: #13579a; --glow: rgba(255, 255, 255, .7); }
.hs-view.is-relic, .hs-view.is-set { --sky1: #2b1a05; --sky2: #8a5a12; --glow: rgba(255, 205, 100, .6); }
:root:not([data-theme="dark"]) .hs-view.is-relic, :root:not([data-theme="dark"]) .hs-view.is-set { --sky1: #f6b94a; --sky2: #ffe7b0; --glow: rgba(255, 245, 210, .9); }
.hs-view.is-race { --sky1: #3a0d18; --sky2: #b8452d; --glow: rgba(255, 150, 110, .55); }
:root:not([data-theme="dark"]) .hs-view.is-race { --sky1: #ff8a5c; --sky2: #ffd2a8; }
.hs-view.is-timestop, .hs-view.is-arrow { --sky1: #120b33; --sky2: #4b2a9a; --sea1: #1d1550; --sea2: #0b0826; --glow: rgba(190, 160, 255, .6); }
:root:not([data-theme="dark"]) .hs-view.is-timestop, :root:not([data-theme="dark"]) .hs-view.is-arrow { --sky1: #8f7bf0; --sky2: #e2d9ff; --sea1: #5c4bc9; --sea2: #3a2c96; }
.hs-top { position: absolute; inset-inline: 0; top: 0; z-index: 3; display: grid; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 18px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.hs-bars { display: flex; gap: 4px; direction: ltr; }
[dir="rtl"] .hs-bars { flex-direction: row-reverse; }
.hs-bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .hs-bar i { transform-origin: right; }
.hs-meta { display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hs-src { display: inline-flex; align-items: center; gap: 7px; }
.hs-src b { font-size: 14px; font-weight: 750; }
.hs-src-dot { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 200deg, #37b6ff, #5b6cff, #b04dff, #37b6ff); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35); }
.hs-when { font-size: 12.5px; opacity: .75; }
.hs-x { margin-inline-start: auto; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.hs-x .ic { stroke: #fff; }
.hs-x:focus { outline: none; } .hs-x:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.hs-stage { position: relative; grid-row: 1 / -1; overflow: hidden; user-select: none; -webkit-user-select: none; background: var(--sea2); }
/* the world map round the port: soft, slowly nearing (a film's camera), tinted by the story's kind */
.hs-map { position: absolute; inset: 0; transform: scale(1.22) translateY(-7%); animation: hs-sail 6s linear both; }
.hs-view.is-timestop .hs-map { animation: none; transform: scale(1.1); }
.hs-map .hs-port { top: 42%; translate: -50% -7px; }
.hs-map-cv { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(1.15) contrast(1.05); transition: opacity .6s ease; }
.hs-map-cv.is-in { opacity: 1; }
.hs-view.is-timestop .hs-map-cv { filter: grayscale(1) contrast(1.15) brightness(.85); }
.hs-view.is-timestop.is-sapphire .hs-map-cv { filter: grayscale(1) sepia(1) hue-rotate(185deg) saturate(2.4) brightness(.8); }
.hs-shade { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 40%, transparent 30%, rgba(0, 0, 0, .45)), linear-gradient(rgba(0, 0, 0, .35), transparent 22%, transparent 55%, rgba(0, 0, 0, .78)); }
.hs-view.is-relic .hs-shade, .hs-view.is-set .hs-shade { background: radial-gradient(55% 35% at 50% 40%, rgba(255, 200, 90, .35), transparent 70%), radial-gradient(80% 55% at 50% 40%, transparent 25%, rgba(20, 10, 0, .7)), linear-gradient(transparent 55%, rgba(0, 0, 0, .8)); }
.hs-view.is-race .hs-shade { background: radial-gradient(60% 40% at 50% 40%, rgba(255, 120, 80, .28), transparent 70%), linear-gradient(rgba(0, 0, 0, .35), transparent 22%, transparent 50%, rgba(0, 0, 0, .8)); }
.hs-view.is-arrow .hs-shade { background: radial-gradient(55% 35% at 50% 40%, rgba(170, 130, 255, .38), transparent 70%), linear-gradient(rgba(0, 0, 0, .35), transparent 22%, transparent 50%, rgba(0, 0, 0, .8)); }
.hs-scene { position: absolute; inset: 0; }
/* a compass rose in the corner, as on an old chart */
.hs-rose { position: absolute; top: calc(92px + env(safe-area-inset-top)); inset-inline-end: 16px; width: 54px; height: 54px; opacity: .55; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .85) 0 3deg, transparent 3deg 87deg, rgba(255, 255, 255, .85) 87deg 93deg, transparent 93deg 177deg, rgba(255, 255, 255, .85) 177deg 183deg, transparent 183deg 267deg, rgba(255, 255, 255, .85) 267deg 273deg, transparent 273deg 357deg, rgba(255, 255, 255, .85) 357deg); }
.hs-rose::after { content: 'N'; position: absolute; top: -17px; left: 50%; translate: -50% 0; font: 700 11px/1 'RetzefMapLand', serif; color: #fff; }
/* the ship on the map, sailing up; its wake behind */
.hs-ship { position: absolute; top: 54%; left: 50%; width: 58px; height: auto; translate: -50% 0; z-index: 1; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); animation: hs-ship-in .8s cubic-bezier(.2, .9, .3, 1.1) both; }
/* the wake behind the sailing ship: foam that trails and shimmers (none in the frozen time) */
.hs-foam { position: absolute; top: calc(54% + 96px); left: 50%; width: 46px; height: 26%; translate: -50% 0; border-radius: 45% 45% 50% 50%; background: radial-gradient(50% 55% at 50% 0, rgba(255, 255, 255, .7), rgba(255, 255, 255, .18) 45%, transparent 75%); filter: blur(1.5px); animation: hs-foam 1.6s ease-in-out infinite; }
@keyframes hs-foam { 0%, 100% { opacity: .7; scale: 1 1; } 50% { opacity: 1; scale: 1.12 1.05; } }
.hs-route { position: absolute; top: calc(54% + 120px); left: 50%; width: 3px; height: 30%; translate: -50% 0; background: repeating-linear-gradient(rgba(255, 245, 220, .9) 0 8px, transparent 8px 16px); border-radius: 2px; mask: linear-gradient(#000, transparent); -webkit-mask: linear-gradient(#000, transparent); animation: hs-route 1.2s linear infinite; }
.hs-port { position: absolute; top: calc(33% - 64px); left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 6px; }
.hs-port i { width: 14px; height: 14px; border-radius: 50%; background: #ffd56b; box-shadow: 0 0 0 4px rgba(255, 213, 107, .35), 0 0 24px 6px rgba(255, 213, 107, .55); animation: hs-pulse 1.8s ease-out infinite; }
.hs-port b { padding: 4px 12px; border-radius: 999px; font: 700 15px/1.2 'RetzefMapLand', serif; color: #3a2508; background: linear-gradient(180deg, #fff3cf, #e6c06a); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); white-space: nowrap; }
/* a relic: the picture itself, large, in turning light and rising motes */
.hs-rays { position: absolute; top: 40%; left: 50%; width: 140vmax; height: 140vmax; translate: -50% -50%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .35) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(closest-side, #000 10%, transparent 60%); -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 60%); animation: hs-spin 24s linear infinite; }
.hs-rays.is-violet { background: repeating-conic-gradient(from 0deg, rgba(200, 170, 255, .4) 0 6deg, transparent 6deg 18deg); }
.hs-relic { position: absolute; top: 40%; left: 50%; width: min(56vw, 240px); height: auto; translate: -50% -50%; filter: drop-shadow(0 0 26px rgba(255, 210, 120, .7)) drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); animation: hs-float 3.6s ease-in-out infinite, hs-ship-in .9s cubic-bezier(.2, .9, .3, 1.15) both; }
.hs-rare { position: absolute; top: calc(40% + min(26vw, 115px)); left: 50%; translate: -50% 0; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 220, 140, .6); background: rgba(40, 24, 4, .55); }
.hs-rare b { font: 700 13px/1.2 'RetzefMapLand', serif; color: #ffe2a0; letter-spacing: .04em; }
.hs-motes i { position: absolute; bottom: 30%; left: calc(18% + var(--i) * 4.6%); width: 4px; height: 4px; border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 8px #ffd56b; opacity: 0; animation: hs-mote 4.2s ease-in infinite; animation-delay: calc(var(--i) * -.31s); }
.hs-seven { position: absolute; top: 40%; left: 50%; width: 260px; height: 260px; translate: -50% -50%; animation: hs-spin 40s linear infinite; }
.hs-seven img { position: absolute; top: 50%; left: 50%; width: 78px; height: auto; translate: -50% -50%; filter: drop-shadow(0 0 12px rgba(255, 210, 120, .75)); transform: rotate(calc(var(--i) * 51.43deg)) translateY(-104px) rotate(calc(var(--i) * -51.43deg)); }
/* the race: the two ships face to face, a chequered finish behind */
.hs-finish { position: absolute; top: 18%; left: 50%; width: 120%; height: 34px; translate: -50% 0; rotate: -6deg; opacity: .8; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 17px 17px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.hs-duel { position: absolute; top: 34%; inset-inline: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; }
.hs-duel > span { display: grid; justify-items: center; gap: 10px; }
.hs-duel small { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); }
.hs-ship-s { width: 56px; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55)); }
.hs-ship-s.is-rival { filter: brightness(.12) drop-shadow(0 0 10px rgba(255, 80, 60, .6)); }
.hs-duel-us .hs-ship-s { filter: drop-shadow(0 0 16px rgba(255, 220, 140, .8)) drop-shadow(0 14px 14px rgba(0, 0, 0, .55)); }
.hs-vs { font: 900 34px/1 'RetzefMapLand', serif; color: #ffe08a; text-shadow: 0 0 18px rgba(255, 140, 60, .9), 0 3px 0 #7a2b10; font-style: italic; }
/* the time stop: radar rings and a clock whose hands have stopped */
.hs-radar { position: absolute; top: 40%; left: 50%; width: 300px; height: 300px; translate: -50% -50%; }
.hs-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(200, 230, 255, .55); animation: hs-ring 3s ease-out infinite; }
.hs-radar i:nth-child(2) { animation-delay: -1s; } .hs-radar i:nth-child(3) { animation-delay: -2s; }
.hs-clock { position: absolute; top: calc(92px + env(safe-area-inset-top)); inset-inline-start: 18px; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .35); }
.hs-clock i { position: absolute; left: 50%; bottom: 50%; width: 2px; border-radius: 2px; background: #fff; transform-origin: bottom; translate: -50% 0; }
.hs-clock .h { height: 14px; rotate: -60deg; } .hs-clock .m { height: 20px; rotate: 72deg; }
.hs-arrow { position: absolute; top: calc(54% - 70px); left: 50%; translate: -50% 0; color: #e7dbff; filter: drop-shadow(0 0 18px rgba(190, 150, 255, .9)); animation: hs-float 2.6s ease-in-out infinite; }
.hs-arrow .ic { stroke: currentColor; }
@keyframes hs-sail { to { transform: scale(1.22) translateY(5%); } }
@keyframes hs-route { to { background-position: 0 16px; } }
@keyframes hs-pulse { to { box-shadow: 0 0 0 14px rgba(255, 213, 107, 0), 0 0 24px 6px rgba(255, 213, 107, .55); } }
@keyframes hs-spin { to { rotate: 360deg; } }
@keyframes hs-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
@keyframes hs-mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46vh); } }
@keyframes hs-ring { from { transform: scale(.25); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.hs-copy { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; gap: 10px; padding: 24px 22px calc(34px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; animation: hs-copy-in .5s ease .15s both; }
.hs-chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 750; color: #fff;
  background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .28); }
.hs-chip .ic { stroke: #fff; }
.hs-copy h3 { margin: 0; font-size: clamp(26px, 7.4vw, 34px); font-weight: 850; line-height: 1.12; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hs-name { display: block; font-size: .58em; font-weight: 700; opacity: .85; letter-spacing: 0; margin-block-end: 4px; }
.hs-copy p { margin: 0; font-size: 15px; line-height: 1.45; opacity: .85; }
@keyframes hs-in { from { opacity: 0; transform: scale(.96); } }
@keyframes hs-out { to { opacity: 0; transform: scale(.96); } }
@keyframes hs-bob { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -8px; } }
@keyframes hs-ship-in { from { opacity: 0; scale: .7; } }
@keyframes hs-wave { 0%, 100% { transform: translateX(-4%); } 50% { transform: translateX(4%); } }
@keyframes hs-copy-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hs-view, .hs-ship, .hs-ship-s, .hs-copy, .hs-map-cv, .hs-route, .hs-port i, .hs-rays, .hs-relic, .hs-motes i, .hs-seven, .hs-radar i, .hs-arrow, .hs-foam { animation: none !important; } }

/* the crew and the voyage on a story (when the circle chose to show them): the crew in the sea's engraved type, the voyage in the map's own */
.hs-crew { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hs-crew-n { font-family: 'RetzefMapSea', serif; font-size: 19px; letter-spacing: .02em; color: #ffe7b0; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hs-crew-v { font-family: 'RetzefMapLand', serif; font-size: 14px; color: rgba(255, 255, 255, .85); padding-inline-start: 10px; border-inline-start: 1px solid rgba(255, 255, 255, .4); }
/* nothing on a story to save or drag away */
.hs-view, .hs-view img, .hs-view canvas { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hs-view img, .hs-view canvas { pointer-events: none; -webkit-user-drag: none; }

/* ---- a story's social bar: views, quick reactions, share, the heart; bursts of hearts and emoji ---- */
.hs-actions { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); }
.hs-views { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .85); font-size: 13px; }
.hs-views .ic { stroke: currentColor; }
.hs-sp { flex: 1; }
.hs-act, .hs-like { height: 44px; min-width: 44px; display: inline-grid; grid-auto-flow: column; place-items: center; gap: 4px; padding: 0 10px; border: 0; border-radius: 22px; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.hs-act:active, .hs-like:active { transform: scale(.9); }
.hs-act .ic { stroke: #fff; }
.hs-like b { font-size: 13.5px; font-weight: 750; }
.hs-heart { width: 22px; height: 20px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.3 10.5 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.5 11.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21.3 10.5 20C5.4 15.4 2 12.3 2 8.5 2 5.4 4.4 3 7.5 3c1.7 0 3.4.8 4.5 2.1C13.1 3.8 14.8 3 16.5 3 19.6 3 22 5.4 22 8.5c0 3.8-3.4 6.9-8.5 11.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hs-like.is-on .hs-heart { background: #ff3b5c; animation: hs-heart-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hs-heart-pop { from { transform: scale(.4); } }
.hs-tray { position: absolute; bottom: calc(64px + env(safe-area-inset-bottom)); inset-inline-end: 14px; display: flex; gap: 4px; padding: 4px 6px; border-radius: 26px; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: hs-tray-in .2s ease both; }
.hs-tray[hidden] { display: none; }
.hs-q { width: 40px; height: 40px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.hs-q:active { transform: scale(1.3); }
@keyframes hs-tray-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.hs-burst { position: absolute; z-index: 6; font-size: 30px; line-height: 1; pointer-events: none; translate: -50% -50%; animation: hs-burst 1.2s cubic-bezier(.2, .7, .3, 1) var(--d) both; }
.hs-burst.is-big { font-size: 96px; color: #ff3b5c; text-shadow: 0 6px 24px rgba(255, 59, 92, .55); animation: hs-heart-big .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes hs-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -240px) scale(1.2); } }
@keyframes hs-heart-big { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: 1; transform: scale(1.15); } 45% { transform: scale(.95); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1) translateY(-30px); } }
.hs-copy { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .hs-burst, .hs-tray, .hs-like.is-on .hs-heart { animation: none !important; opacity: 0; } }

/* the quick reactions in 3D (Fluent Emoji, MIT): the system's flat glyphs looked weak */
.hs-q-img { width: 30px; height: 30px; pointer-events: none; }
.hs-burst-img { display: block; width: 40px; height: 40px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.hs-burst.is-big .hs-burst-img { width: 120px; height: 120px; filter: drop-shadow(0 10px 30px rgba(255, 59, 92, .55)); }

/* the fire of a shared streak in 3D, sitting on the text's line */
.fire3d { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-inline-end: 1px; }
.fire3d-n { display: inline-flex; align-items: center; gap: 2px; }

/* the circle's Harbour News switch: room inside its card, the words and the switch apart */
.cc-news { padding: 4px 14px; }
.cc-news > * { gap: 16px; padding-block: 10px; }

/* The statues on the world map: each standing on its point (the foot of the pedestal), upright whatever the map's turn, at the
   pins' readable size. Not reached: dark stone. Reached: its own colours with a warm light at its foot. */
.qm-statue { position: absolute; width: 64px; height: 64px; margin: -60px 0 0 -32px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; z-index: 2; transform: scale(var(--inv, 1)); transform-origin: 50% 94%; -webkit-tap-highlight-color: transparent; }
.qm-statue img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; filter: grayscale(1) brightness(.42) contrast(1.15) drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); transition: filter .4s ease; user-select: none; -webkit-user-drag: none; }
.qm-statue.is-awake img { filter: drop-shadow(0 0 6px rgba(255, 214, 140, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.qm-statue.is-legend { width: 84px; height: 84px; margin: -79px 0 0 -42px; }
.qm-statue.is-legend.is-awake img { filter: drop-shadow(0 0 10px rgba(255, 200, 90, .85)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.qm-statue.is-tap img { animation: qm-statue-tap .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes qm-statue-tap { 0% { transform: scale(1); } 40% { transform: scale(1.12, .94); } 100% { transform: scale(1); } }
.qm.is-far .qm-statue { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .qm-statue.is-tap img { animation: none; } }

/* The ship's instruments over the map (a voyage at sea): a brass compass whose needle points to the port, and beside it a small
   plaque with the port, the hourglass of the days left and the sextant's arc filled as far as the way is done. On the side
   opposite the zoom buttons, clear of the safe area. */
.bh { position: absolute; z-index: 3; inset-inline-end: 10px; inset-block-start: 10px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 40px; color: #f6e7c4; background: linear-gradient(180deg, rgba(46, 30, 14, .94), rgba(24, 15, 7, .94)); box-shadow: inset 0 0 0 1px rgba(214, 170, 92, .75), inset 0 1px 0 rgba(255, 230, 170, .22), 0 8px 18px -6px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[dir="rtl"] .bh { padding: 6px 6px 6px 12px; }
.bh-compass { position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.bh-compass:active { transform: scale(.94); }
.bh-compass > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bh-needle { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.bh-needle img { height: 74%; width: 9px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.bh-read { display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 3px; align-items: center; }
.bh-port { grid-column: 1 / -1; font-family: 'RetzefMapLand', Georgia, serif; font-size: 14px; line-height: 1.15; color: #ffe6a6; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.bh-row { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.bh-glass, .bh-arc { position: relative; flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.bh-glass img, .bh-arc img { width: 18px; height: 18px; object-fit: contain; display: block; }
.bh-arc-fill { display: none; }
.bh-read { max-width: 220px; overflow: hidden; transition: max-width .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.bh { transition: padding .35s cubic-bezier(.2, .8, .2, 1), gap .35s; }
.bh.is-min { padding: 4px !important; gap: 0; }
.bh.is-min .bh-read { max-width: 0; opacity: 0; }
.bh.is-hint .bh-compass::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 214, 140, .8); animation: bh-ping 2.4s ease-out 3; pointer-events: none; }
@keyframes bh-ping { 0% { transform: scale(.9); opacity: 1; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bh, .bh-read { transition: none; } .bh.is-hint .bh-compass::after { animation: none; opacity: .8; } }
.qm.is-space .bh { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bh-needle { transition: none; } }

/* A callout on the map: a small dark plaque with a gold hairline over the thing tapped, its name in the map's letters, a pointer down to it. */
.mtip { position: absolute; z-index: 20; max-width: 220px; padding: 8px 12px 9px; border-radius: 12px; text-align: center; color: #f3e6c8; background: linear-gradient(180deg, rgba(40, 27, 13, .95), rgba(22, 14, 6, .95)); box-shadow: inset 0 0 0 1px rgba(214, 170, 92, .7), 0 10px 22px -8px rgba(0, 0, 0, .7); pointer-events: none; animation: mtip-in .26s cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: var(--px, 50%) 100%; }
.mtip::after { content: ''; position: absolute; top: 100%; left: calc(var(--px, 50%) - 7px); border: 7px solid transparent; border-top-color: rgba(22, 14, 6, .95); }
.mtip.is-below { transform-origin: var(--px, 50%) 0; }
.mtip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: rgba(40, 27, 13, .95); }
.mtip-t { display: block; font-family: 'RetzefMapLand', Georgia, serif; font-size: 15px; line-height: 1.2; color: #ffe2a0; }
.mtip-x { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: rgba(243, 230, 200, .85); }
.mtip.is-out { opacity: 0; transition: opacity .28s ease; }
@keyframes mtip-in { from { opacity: 0; transform: translateY(4px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mtip { animation: none; } }

/* ---- the circles' soul banners (2026-11-19): a hanging silk banner instead of a round emblem; it sways a little ---- */
.sc-crow-ic.is-banner, .cc-emblem.is-banner { background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible; }
.cc-emblem.is-banner { width: auto; height: auto; }
.cbn { display: block; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(10, 8, 30, .35)); transform-origin: 50% 0; user-select: none; -webkit-user-drag: none; }
.cc-emblem .cbn { animation: cbn-sway 6s ease-in-out infinite; }
@keyframes cbn-sway { 0%, 100% { transform: rotate(-1.2deg) } 50% { transform: rotate(1.2deg) } }
@media (prefers-reduced-motion: reduce) { .cc-emblem .cbn { animation: none } }
.cbn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.cbn-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 16px; border: 1.5px solid transparent; background: color-mix(in srgb, var(--text) 4%, transparent); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; font: inherit; color: inherit; }
.cbn-pick:active { transform: scale(.96); }
.cbn-pick span { font-size: 11.5px; line-height: 1.25; text-align: center; color: var(--muted, inherit); }
.cbn-pick.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cbn-pick.is-on span { color: var(--text); font-weight: 700; }
.cs-shop-h { margin: 18px 0 6px; font-size: 14px; font-weight: 750; color: var(--muted, inherit); }
/* the coin shop's other goods (admin): cards like the lesson-price cards, a price row under each switch */
.cx-card { display: grid; gap: 10px; padding: 12px 14px; margin-block: 10px; }
.cx-card .setting { padding-inline: 0; }
.cx-price { display: grid; grid-template-columns: 1fr 110px auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #c9a24c 9%, transparent); font-size: 14px; }
.cx-price .input { text-align: center; padding-block: 8px; }
.cx-save { display: flex; justify-content: flex-end; margin-block: 4px 8px; }
.cx-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't b' 's b'; align-items: center; column-gap: 10px; row-gap: 2px; }
.cx-ev b { grid-area: t; } .cx-ev .small { grid-area: s; } .cx-ev .btn { grid-area: b; }
.cx-card ul { margin: 0; padding-inline-start: 18px; }
/* two ways to pay side by side (coins, and diamonds where the owner opened them) */
.cs-pay2 { display: inline-flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cx-price.is-gem { background: color-mix(in srgb, #5ac8fa 12%, transparent); }
.cx-price[hidden] { display: none; }
/* the inner page's bar: the back button and the title never touch (a long back label pushed into the title) */
.ios-nav .ios-title { inset-inline: var(--nav-side, 120px); }
.cx-sub { font-size: 13px; font-weight: 750; margin-block-start: 4px; }
.cx-courses { display: grid; border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); padding-inline: 10px; }
/* ---- the day's breath: five minutes of box breathing, a light running round a square ---- */
.br { position: fixed; inset: 0; z-index: 9000; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px 16px; text-align: center; color: #eef2ff;
  background: radial-gradient(120% 90% at 50% 30%, #1d2550 0%, #0c1030 55%, #05061a 100%); }
.br-h { margin: 0; font-size: 22px; } .br-sub { margin: 0; max-width: 300px; font-size: 14px; color: #b9c2e8; }
.br-box { container-type: inline-size; position: relative; width: min(64vw, 260px); aspect-ratio: 1; margin: 18px 0 6px; border-radius: 22px; border: 2px solid rgba(160, 190, 255, .35); }
.br-core { position: absolute; inset: 18%; display: grid; place-content: center; border-radius: 18px; background: radial-gradient(circle, rgba(120, 200, 255, .35), rgba(90, 120, 255, .08) 70%); transform: scale(var(--s, .8)); transition: transform .12s linear; }
.br-word { font-size: 22px; } .br-count { font-size: 15px; color: #b9c2e8; }
.br-dot { position: absolute; inset-block-start: -7px; inset-inline-start: -7px; width: 14px; height: 14px; border-radius: 50%; background: #9fe7ff; box-shadow: 0 0 14px 4px rgba(120, 220, 255, .7); }
[dir="rtl"] .br-dot { inset-inline-start: auto; left: -7px; }
.br-left { font-size: 28px; font-weight: 700; letter-spacing: .04em; }
.br-close { position: absolute; inset-block-start: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.cx-kprice { display: grid; gap: 6px; padding-block-end: 10px; } .cx-kprice[hidden] { display: none; }
.ios-nav.is-tight .ios-back > span:not(.ios-back-ic) { display: none; }
.ios-nav.is-tight .ios-back { padding-inline: 6px; }

/* ---- the sea relics (one of each in the world): list with powers, the merchant, the compass's glow on the map ---- */
.cs-rlist { display: grid; gap: 8px; }
.cs-rrow { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.cs-rrow:not(.is-mine) .cs-rpic img { filter: grayscale(1) brightness(.55); opacity: .7; }
.cs-rrow.is-mine { background: color-mix(in srgb, #5ac8fa 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #5ac8fa 40%, transparent); }
.cs-rpic img { width: 52px; height: 52px; object-fit: contain; display: block; }
.cs-rt { display: grid; gap: 2px; min-width: 0; } .cs-rt small { font-size: 12px; color: var(--muted, #888); line-height: 1.35; }
.cs-rstate { font-weight: 700; } .cs-rrow.is-mine .cs-rstate { color: #1a8fc4; }
.cs-merchant { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #c9a24c 10%, transparent); }
.cs-merchant > span { display: grid; gap: 2px; } .cs-merchant small { font-size: 12px; color: var(--muted, #888); }
.qm-relicglow { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(160, 235, 255, .75) 0%, rgba(90, 200, 250, .35) 35%, rgba(90, 200, 250, 0) 70%); animation: qm-relic 3.2s ease-in-out infinite; }
@keyframes qm-relic { 0%, 100% { opacity: .45; transform: scale(.85) } 50% { opacity: 1; transform: scale(1.1) } }
@media (prefers-reduced-motion: reduce) { .qm-relicglow { animation: none; opacity: .8 } }

/* God's console over a test voyage (the administrator's God view only) */
.god-panel { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, #af52de 55%, transparent); background: color-mix(in srgb, #af52de 7%, transparent); }
.god-h { font-size: 13px; }
.god-time { display: flex; flex-wrap: wrap; gap: 6px; }
.god-crew { display: grid; gap: 6px; }
.god-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .god-row > span { min-width: 70px; font-weight: 650; font-size: 14px; }
.cc-god-add { display: flex; gap: 8px; padding: 8px 0; } .cc-god-add .input { flex: 1; }

/* ---- God's river of time: a cosmic, golden line of days; the present a star that the hand moves ---- */
.god-panel { border: 0; padding: 0; background: none; }
.gt { position: relative; overflow: hidden; display: grid; gap: 12px; justify-items: center; padding: 20px 16px 18px; border-radius: 22px; color: #f4ecd6; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 214, 140, .18), transparent 60%), radial-gradient(1px 1px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 78% 22%, #fff, transparent), radial-gradient(1.4px 1.4px at 64% 70%, #ffe9b8, transparent), radial-gradient(1px 1px at 30% 80%, #cfe0ff, transparent), radial-gradient(1px 1px at 90% 60%, #fff, transparent), linear-gradient(180deg, #0d0a26 0%, #1b1240 55%, #070514 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .35), 0 18px 40px -18px rgba(40, 20, 90, .8); }
.gt::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 210, 120, .08), transparent 30%); animation: gt-spin 24s linear infinite; pointer-events: none; }
@keyframes gt-spin { to { transform: rotate(1turn) } }
.gt-head { position: relative; display: grid; justify-items: center; gap: 2px; }
.gt-eye { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, #fff 0 12%, #ffd98a 22%, rgba(255, 190, 90, .25) 55%, transparent 70%); box-shadow: 0 0 22px 6px rgba(255, 200, 110, .45); animation: gt-breathe 4s ease-in-out infinite; }
@keyframes gt-breathe { 50% { transform: scale(1.12); box-shadow: 0 0 34px 10px rgba(255, 200, 110, .6) } }
.gt-title { font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-size: 24px; letter-spacing: .04em; color: #ffe2a3; text-shadow: 0 0 14px rgba(255, 200, 110, .55); }
.gt-sub { font-size: 12px; color: #c9bfe8; letter-spacing: .06em; }
.gt-read { position: relative; display: grid; gap: 2px; }
.gt-day { font-family: 'RetzefMapLand', Georgia, serif; font-size: 30px; font-variant-numeric: tabular-nums; color: #fff6dd; text-shadow: 0 0 18px rgba(255, 220, 150, .6); }
.gt-read small { font-size: 12px; color: #d8cdf5; }
.gt-river { position: relative; width: 100%; height: 44px; }
.gt-flow { position: absolute; inset-inline: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, rgba(150, 170, 255, .35), #ffd98a 50%, rgba(255, 140, 200, .35)); box-shadow: 0 0 12px rgba(255, 210, 130, .6); }
.gt-flow::after { content: ''; position: absolute; inset: -3px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 12px); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); opacity: .6; }
.gt-star { position: absolute; top: 50%; left: calc(6px + var(--p, .5) * (100% - 12px)); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, #ffe2a3 30%, rgba(255, 190, 90, .35) 60%, transparent 72%); box-shadow: 0 0 20px 6px rgba(255, 210, 130, .7); transition: left .15s ease; }
[dir="rtl"] .gt-star { left: auto; right: calc(6px + var(--p, .5) * (100% - 12px)); margin: -13px -13px 0 0; transition: right .15s ease; }
.gt-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; }
.gt-btns { position: relative; display: flex; gap: 8px; }
.gt-btn { min-width: 40px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 214, 140, .45); background: rgba(255, 214, 140, .08); color: #ffe2a3; font: inherit; font-size: 17px; cursor: pointer; transition: background .15s, transform .1s; }
.gt-btn:active { transform: scale(.95); } .gt-btn:hover { background: rgba(255, 214, 140, .18); }
.gt-btn.is-now { font-size: 13px; font-weight: 700; background: linear-gradient(180deg, #ffe2a3, #c9963f); color: #2a1a05; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .gt::before, .gt-eye { animation: none } }
.gt-chests { position: relative; display: grid; gap: 6px; width: 100%; padding: 10px 12px; border-radius: 14px; background: rgba(255, 214, 140, .08); box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .25); text-align: start; font-size: 13px; }
.gt-chest { display: flex; align-items: center; gap: 8px; } .gt-chest svg, .gt-chest img { width: 22px; height: 22px; }
/* the river's step buttons: centred comets of light (a back step points to the river's start; in Hebrew the start is on the right) */
.gt-btn { display: inline-grid; place-items: center; padding: 0 10px; line-height: 0; }
.gt-btn.is-now { line-height: 1; }
.gt-comet { width: 28px; height: 18px; display: block; transform: scaleX(-1); filter: drop-shadow(0 0 4px rgba(255, 214, 140, .7)); }
.gt-comet.is-fwd { transform: none; }
[dir="rtl"] .gt-comet { transform: none; } [dir="rtl"] .gt-comet.is-fwd { transform: scaleX(-1); }
.gt-btn.is-now { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0 16px; padding-block-start: 1px; }
.cc-god-list { display: grid; gap: 6px; padding-block: 8px 0; } .cc-god-row { display: flex; gap: 8px; } .cc-god-row .input { flex: 1; }
/* the souls aboard, inside the river's card: each a row of light with its face, its oar and its day */
.gt-sep { position: relative; width: 70%; height: 1px; margin-block: 4px; background: linear-gradient(90deg, transparent, rgba(255, 214, 140, .6), transparent); }
.gt-crew-h { position: relative; font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-size: 17px; letter-spacing: .03em; color: #ffe2a3; text-shadow: 0 0 10px rgba(255, 200, 110, .45); }
.gt-all { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gt .god-crew { position: relative; display: grid; gap: 8px; width: 100%; }
.gt .god-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; text-align: start;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 214, 140, .05)); box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .18); }
.gt-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gt-who b { font-size: 15px; color: #fff6dd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-who > :first-child { flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 214, 140, .5), 0 0 12px rgba(255, 210, 130, .35); }
.gt-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 214, 140, .45); background: rgba(255, 214, 140, .08);
  color: #ffe2a3; font: inherit; font-size: 13px; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s, box-shadow .2s, transform .1s; }
.gt-pill:active { transform: scale(.96); } .gt-pill:hover { background: rgba(255, 214, 140, .16); }
.gt-pill.is-gold { background: linear-gradient(180deg, #ffe2a3, #c9963f); color: #2a1a05; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(255, 200, 110, .8); }
.gt-pill.is-small { min-height: 30px; padding: 0 11px; font-size: 12px; }
.gt-pill.is-on { color: #10220f; border-color: transparent; background: radial-gradient(circle at 30% 30%, #f3ffd9, #9fe39a 60%, #5fb86a); box-shadow: 0 0 14px rgba(150, 240, 150, .55); }
.gt-pill.is-row:not(.is-on) { border-style: dashed; }
@media (max-width: 380px) { .gt .god-row { grid-template-columns: minmax(0, 1fr) auto; } .gt .god-row .gt-who { grid-column: 1 / -1; } }
/* each soul's row: the name always whole on its own line, the actions under it */
.gt .god-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gt .god-row .gt-who { flex: 1 1 100%; }
.gt-who b { overflow: visible; white-space: normal; text-overflow: clip; }
.gt .god-row .gt-pill { flex: 1 1 0; }
/* the card's slow light goes on from where it was after a redraw (no restart, no jump) */
.gt::before { animation-delay: var(--spin-at, 0s); } .gt-eye { animation-delay: var(--breathe-at, 0s); }
.gt-star { transition: left .6s cubic-bezier(.2, .8, .2, 1), right .6s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .gt-star { transition: right .6s cubic-bezier(.2, .8, .2, 1); }
.gt-river.is-drag .gt-star { transition: none; }
/* ---- the seal of God's closed test world: a small star in a golden ring on deep indigo, beside the circle's name ---- */
.test-seal { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px 0 8px; margin-inline-start: 8px; vertical-align: middle; border-radius: 999px;
  font-size: 11px; font-weight: 750; letter-spacing: .04em; line-height: 1; color: #ffe2a3; white-space: nowrap;
  background: linear-gradient(180deg, #221a4a, #120c2c); box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .55), 0 2px 8px -3px rgba(40, 20, 90, .6); }
.test-seal i { position: relative; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px #ffd98a; }
.test-seal i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, #ffd98a 60%, transparent 70%); box-shadow: 0 0 6px rgba(255, 210, 130, .9); }
.sc-crow-t strong { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.sc-crow.is-test { background: linear-gradient(90deg, color-mix(in srgb, #2a1f5c 8%, transparent), transparent 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9a24c 35%, transparent); border-radius: 18px; }
.cc-hero.is-test .test-seal { margin: 2px auto 0; height: 26px; font-size: 12px; padding: 0 12px 0 10px; }
.cc-hero.is-test { box-shadow: inset 0 0 0 1px color-mix(in srgb, #c9a24c 40%, transparent); }
/* "the present": the word's own ink centred, not its line box (a Hebrew face sits low in its line) */
.gt-btn.is-now { padding-block: 0; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) { .gt-btn.is-now { padding-block: 0 3px; } }
.gt-btn.is-now { text-box: normal; padding-block: 0; }
/* the word's ink, not its line, in the middle of the button (this face sits its letters about 1.5px low) */
.gt-now-t { display: block; transform: translateY(-1.5px); }
/* the test world's seal: a ringed golden world, sized and centred with its word */
.test-seal { gap: 5px; padding: 0 10px 0 7px; }
.test-seal i { display: none; }
.test-seal-ic { width: 16px; height: 16px; flex: none; display: block; overflow: visible; filter: drop-shadow(0 0 3px rgba(255, 210, 130, .6)); }
.test-seal-t { display: block; transform: translateY(-.5px); }
/* the faces aboard: one row that never grows the card, faces overlapping a little, then "+N" and the whole list */
.qm-sc-crew { flex-wrap: nowrap; gap: 0; min-width: 0; overflow: hidden; }
.qm-sc-crew > *:not(.qm-sc-all):not(.qm-sc-more) { flex: none; margin-inline-start: -8px; box-shadow: 0 0 0 2px #f4e6c4; border-radius: 50%; }
.qm-sc-crew > *:first-child { margin-inline-start: 0; }
.qm-sc-more { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 28px; margin-inline-start: -6px; padding: 0 6px; border: 0; border-radius: 999px; background: #5b3d16; color: #f4e6c4; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; box-shadow: 0 0 0 2px #f4e6c4; }
.qm-sc-crew .qm-sc-all { flex: none; margin-inline-start: 8px; white-space: nowrap; }
/* the faces aboard: all of them, in one row the finger slides sideways (no overlap, no wrap), fading at its edges */
.qm-sc-crew { flex-wrap: nowrap; gap: 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; touch-action: pan-x; scrollbar-width: none; padding-block: 3px; padding-inline: 2px;
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.qm-sc-crew::-webkit-scrollbar { display: none; }
.qm-sc-crew > *:not(.qm-sc-all):not(.qm-sc-more) { margin-inline-start: 0; scroll-snap-align: start; }
.qm-sc-crew .qm-sc-all { margin-inline-start: 4px; }
/* each good of the coin shop under the sign of what it does (a freeze, a mended run, a crown a level up) */
.cs-item-ic.is-snowflake { color: #5ac8fa; background: color-mix(in srgb, #5ac8fa 14%, transparent); }
.cs-item-ic.is-chainfix { color: #af52de; background: color-mix(in srgb, #af52de 13%, transparent); }
.cs-item-ic.is-crownup { color: #d9a325; background: color-mix(in srgb, #d9a325 15%, transparent); }
.cs-item-ic.is-snowflake .ic, .cs-item-ic.is-chainfix .ic, .cs-item-ic.is-crownup .ic { stroke: currentColor; }
/* the faces row takes the room left beside its label and scrolls inside it (it never pushes the card wider) */
.qm-sc-r > .qm-sc-crew { flex: 1 1 auto; min-width: 0; max-width: 100%; justify-content: flex-start; }
/* ---- the map's loading: a ship on a night sea, a gentle bar, and the sea's lore passing (never a black screen) ---- */
.qm-loading { background: radial-gradient(120% 70% at 50% 35%, #12305a 0%, #0a1a36 45%, #04060d 100%); padding: 24px; text-align: center; }
.qm-loading-ring { display: none; }
.qm-ld-sea { position: relative; width: 190px; height: 92px; overflow: hidden; border-radius: 0 0 46px 46px; }
.qm-ld-ship { position: absolute; left: 50%; bottom: 18px; width: 92px; margin-left: -46px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); animation: qm-bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes qm-bob { 0%, 100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-6px) rotate(3deg) } }
.qm-ld-wave { position: absolute; left: -50%; bottom: 0; width: 200%; height: 26px; background: radial-gradient(14px 8px at 14px 0, transparent 13px, #2b6cb0 14px) 0 0 / 28px 26px repeat-x; opacity: .85; animation: qm-wave 3.6s linear infinite; }
.qm-ld-wave.is-2 { bottom: -6px; opacity: .55; background-color: transparent; filter: brightness(.8); animation-duration: 5.2s; animation-direction: reverse; }
@keyframes qm-wave { to { transform: translateX(28px) } }
.qm-ld-bar { position: relative; width: 160px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(160, 190, 255, .18); }
.qm-ld-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, #8fb5ff, transparent); animation: qm-bar 1.6s ease-in-out infinite; }
@keyframes qm-bar { from { transform: translateX(-100%) } to { transform: translateX(260%) } }
.qm-lore { max-width: 300px; min-height: 2.8em; font-size: 13.5px; line-height: 1.45; color: #b9cdf0; transition: opacity .35s ease, transform .35s ease; }
.qm-lore.is-out { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .qm-ld-ship, .qm-ld-wave, .qm-ld-bar i { animation: none } }
/* the loading, as the world itself: its picture in the mist, drawing slowly near, under the brass compass turning (no drawn ship or waves) */
.qm-ld-sea { display: none; }
.qm-loading { overflow: hidden; background: #050913; }
.qm-ld-world { position: absolute; inset: -8%; background: center / cover no-repeat; filter: blur(14px) saturate(1.15) brightness(.55); opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease; animation: qm-near 14s ease-out forwards; }
.qm-ld-world.is-in { opacity: 1; }
.qm-ld-world::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 45%, transparent 0%, rgba(5, 9, 19, .55) 70%, #050913 100%); }
@keyframes qm-near { to { transform: scale(1); filter: blur(7px) saturate(1.15) brightness(.62) } }
.qm-loading > :not(.qm-ld-world) { position: relative; z-index: 1; }
.qm-ld-compass { position: relative; width: 110px; height: 110px; opacity: 0; transform: scale(.9); transition: opacity .6s ease, transform .6s ease; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(255, 200, 120, .25)); }
.qm-ld-compass.is-in { opacity: 1; transform: none; }
.qm-ld-dial { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qm-ld-needle { position: absolute; left: 50%; top: 12%; height: 76%; width: auto; margin-left: -6%; transform-origin: 50% 50%; animation: qm-seek 4.5s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes qm-seek { 0% { transform: rotate(-40deg) } 30% { transform: rotate(25deg) } 55% { transform: rotate(-12deg) } 75% { transform: rotate(6deg) } 100% { transform: rotate(-40deg) } }
.qm-loading .qm-loading-t { font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-size: 20px; color: #ffe2a3; text-shadow: 0 0 14px rgba(255, 200, 110, .45); }
.qm-ld-bar { background: rgba(255, 214, 140, .15); } .qm-ld-bar i { background: linear-gradient(90deg, transparent, #ffd98a, transparent); }
.qm-lore { color: #e9dcc0; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .qm-ld-world, .qm-ld-needle { animation: none } }
.qm-ld-cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }

/* ---- the profile, after the owner's reference (2026-11-20): a deep night card, the cover above, the picture over its edge, a level card and "my world" ---- */
.pc { --pv-bg: #0f1730; --pv-card: #141e3c; --pv-line: rgba(140, 160, 255, .16); --pv-ink: #e9eeff; --pv-soft: #9aa6cf; --pv-acc: #8b6cff;
  background: linear-gradient(180deg, #121a36, var(--pv-bg)); color: var(--pv-ink); border-radius: 22px; box-shadow: 0 0 0 1px var(--pv-line), 0 20px 40px -24px rgba(10, 10, 40, .8); overflow: hidden; }
.pc .pc-cover { height: 150px; filter: saturate(1.2) brightness(.75); }
.pc .pc-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #121a36); }
.pc .pc-cover { position: relative; }
.pc .pc-name { color: #fff; }
.pc .pc-facts, .pc .pc-bio { color: var(--pv-soft); }
.pc .pc-figs { border-block: 1px solid var(--pv-line); }
.pc .pc-fig strong { color: #fff; } .pc .pc-fig span { color: var(--pv-soft); }
.pc-lv-kick { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--pv-soft); } .pc-lv-kick.is-en { font-size: 10px; letter-spacing: .18em; opacity: .7; }
.pc-level { display: grid; gap: 12px; margin: 16px 0 0; padding: 14px; border-radius: 16px; background: var(--pv-card); box-shadow: inset 0 0 0 1px var(--pv-line); text-align: start; }
.pc-lv-top { display: flex; justify-content: space-between; }
.pc-lv-id { display: flex; align-items: center; gap: 12px; }
.pc-lv-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #2a2f63, #1a1f45); box-shadow: inset 0 0 0 1.5px rgba(150, 170, 255, .45), 0 0 18px -4px var(--pv-acc); }
.pc-lv-t { display: grid; } .pc-lv-t small { color: var(--pv-soft); font-size: 12px; } .pc-lv-t b { font-size: 18px; color: #fff; }
.pc-lv-bar { display: grid; gap: 6px; } .pc-lv-bar > span { font-size: 12px; color: var(--pv-soft); }
.pc-lv-bar i { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pc-lv-bar i b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6a5cff, #b18cff); box-shadow: 0 0 10px rgba(160, 130, 255, .6); transition: width .8s ease; }
.pc-lv-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-lv-boxes > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--pv-line); }
.pc-lv-boxes small { font-size: 11px; color: var(--pv-soft); } .pc-lv-boxes b { font-size: 18px; color: #fff; }
.pc-lv-next { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, rgba(139, 108, 255, .14), rgba(139, 108, 255, .06)); box-shadow: inset 0 0 0 1px rgba(160, 130, 255, .3); }
.pc-lv-next .ic { color: #ffd27a; stroke: currentColor; } .pc-lv-next span { display: grid; } .pc-lv-next small { font-size: 11px; color: var(--pv-soft); } .pc-lv-next b { color: #fff; }
.pc-world { display: grid; gap: 4px; margin: 14px 0 4px; padding: 14px; border-radius: 16px; background: var(--pv-card); box-shadow: inset 0 0 0 1px var(--pv-line); text-align: start; }
.pc-world h3 { margin: 0; font-size: 18px; color: #fff; } .pc-world p { margin: 0 0 8px; font-size: 12.5px; color: var(--pv-soft); }
.pc-world-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pc-wt { display: grid; justify-items: center; gap: 2px; padding: 0 0 10px; border: 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--pv-line); color: var(--pv-ink); font: inherit; cursor: pointer; transition: transform .15s; }
.pc-wt:active { transform: scale(.97); }
.pc-wt-pic { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin-bottom: 6px; background: radial-gradient(circle at 50% 40%, rgba(139, 108, 255, .28), transparent 70%), #10183a; }
.pc-wt-pic img { max-width: 78%; max-height: 82%; object-fit: contain; }
.pc-wt small { font-size: 10.5px; color: var(--pv-soft); } .pc-wt b { font-size: 13px; padding-inline: 6px; text-align: center; line-height: 1.25; }
.pc-wt-empty .ic { width: 30px; height: 30px; color: var(--pv-soft); stroke: currentColor; }
/* the profile's night: the whole screen in its colours while it is open, by day as by night */
html.is-pv { color-scheme: dark;
  --bg: #0b1226; --bg-elevated: #121a36; --bg-sunken: #070d1d; --surface: #141e3c; --surface-2: #1a2548; --surface-3: #22305a;
  --text: #e9eeff; --text-2: #a9b3d8; --text-3: #8e98c2; --text-inverse: #0b1226;
  --line: rgba(140, 160, 255, .16); --line-strong: rgba(140, 160, 255, .3);
  --accent: #8b6cff; --accent-soft: rgba(139, 108, 255, .2); --accent-text: #b5a2ff;
  --glass-bg: rgba(18, 26, 54, .78); }
html.is-pv body { background: radial-gradient(120% 60% at 50% 0%, #17204a 0%, #0b1226 55%, #070d1d 100%) fixed; color: var(--text); }
html.is-pv .pc .pc-social b, html.is-pv .pc [class*="pc-soc"] b, html.is-pv .pc .soc-n, html.is-pv .pc strong { color: #fff; }
html.is-pv body::before, html.is-pv body::after { opacity: 0 !important; background: none !important; }

/* the profile: one's own cover, interests and signature; the tab bar in the night's colours; the streak card under its flame */
.pc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-cover.has-own .pc-art { visibility: hidden; }
.pc-cover-edit { position: absolute; z-index: 2; inset-block-start: 10px; inset-inline-start: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(10, 14, 30, .55); color: #fff; backdrop-filter: blur(6px); cursor: pointer; }
.pc-cover-edit .ic { stroke: currentColor; }
.pc-cover-sheet { display: grid; gap: 10px; }
.pc-tags-row, .pc-sig { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--pv-card, #141e3c); box-shadow: inset 0 0 0 1px var(--pv-line, rgba(140,160,255,.16)); text-align: start; }
.pc-tags-h { font-size: 13px; font-weight: 750; color: #fff; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag-chip { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: #e7dcff; background: rgba(139, 108, 255, .14); box-shadow: inset 0 0 0 1px rgba(160, 130, 255, .45); border: 0; font-family: inherit; }
.pc-tag-chip.is-add { cursor: pointer; color: var(--pv-soft, #9aa6cf); background: transparent; box-shadow: inset 0 0 0 1px dashed; }
.pc-sig { border-inline-start: 0; } .pc-sig p { margin: 0; font-size: 14px; color: var(--pv-ink, #e9eeff); font-style: italic; }
.pc-sig-empty { justify-self: start; border: 0; background: none; padding: 0; color: var(--pv-soft, #9aa6cf); font: inherit; font-size: 13px; cursor: pointer; }
html.is-pv .pf-tabs { background: #121a36; box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .16); }
html.is-pv .pf-tab { color: #a9b3d8; }
html.is-pv .pf-tab[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2a2f63, #1f2450); box-shadow: inset 0 0 0 1px rgba(150, 170, 255, .4), 0 0 14px -4px #8b6cff; }
.st-head { align-items: center; } .st-flame { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 0 6px rgba(255, 170, 70, .55)); }
html.is-pv .st-card { background: linear-gradient(180deg, #17204a, #141e3c); box-shadow: inset 0 0 0 1px rgba(255, 190, 110, .2); }
html.is-pv .st-count strong { color: #ffd27a; text-shadow: 0 0 16px rgba(255, 180, 80, .45); }
html.is-pv .st-day { border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .2); }
html.is-pv .st-day.is-full { background: linear-gradient(180deg, #ffb23e, #ff7a2b); box-shadow: 0 0 10px -2px rgba(255, 150, 60, .7); color: #2a1404; }
html.is-pv .st-day.is-kept { background: linear-gradient(180deg, #6fa8ff, #4a6cff); color: #fff; }
html.is-pv .st-day.is-broken { background: rgba(255, 90, 90, .14); box-shadow: inset 0 0 0 1px rgba(255, 100, 100, .35); }
html.is-pv .st-shield { color: #8fb5ff; } html.is-pv .st-shield.is-used { color: rgba(140, 160, 255, .3); }
html.is-pv .st-bar { background: rgba(255, 255, 255, .08); } html.is-pv .st-bar span { background: linear-gradient(90deg, #ff7a2b, #ffd27a); }
/* framing a cover freely: the picture, a frame over it moved by its middle and pulled by its corners */
.cf-wrap { display: grid; justify-items: center; gap: 10px; }
.cf-stage { position: relative; touch-action: none; user-select: none; border-radius: 10px; overflow: hidden; background: #000; }
.cf-img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.cf-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); outline: 2px solid #fff; cursor: move; }
.cf-h { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.cf-h.is-nw { left: -11px; top: -11px; cursor: nwse-resize } .cf-h.is-ne { right: -11px; top: -11px; cursor: nesw-resize }
.cf-h.is-sw { left: -11px; bottom: -11px; cursor: nesw-resize } .cf-h.is-se { right: -11px; bottom: -11px; cursor: nwse-resize }
/* the fourteen days as a path of lights (no squares): a thread runs through them; lit flame, blue spark, dim ember, today's ring */
.st-days { position: relative; display: grid !important; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 0 !important; align-items: start; padding: 6px 2px 0; }
.st-days::before { content: ''; position: absolute; inset-inline: 4%; top: 15px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 170, 80, .15), rgba(255, 190, 110, .45), rgba(255, 170, 80, .15)); }
.st-day { position: relative; display: grid !important; justify-items: center; gap: 4px; width: auto !important; height: auto !important; aspect-ratio: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.st-day small { font-size: 9.5px; line-height: 1; color: var(--text-3); }
.st-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.st-day.is-full .st-dot { width: 18px; height: 18px; margin-top: 1px; background: radial-gradient(circle at 50% 65%, #fff4c2 0 18%, #ffbe4a 45%, #ff6a2b 100%); box-shadow: 0 0 10px 1px rgba(255, 150, 60, .65); }
.st-day.is-kept .st-dot { width: 16px; height: 16px; margin-top: 2px; background: radial-gradient(circle, #e9f1ff 0 20%, #6fa8ff 55%, #3f5fe0 100%); box-shadow: 0 0 9px rgba(110, 160, 255, .6); }
.st-day.is-broken .st-dot { width: 10px; height: 10px; margin-top: 5px; background: rgba(255, 110, 110, .35); box-shadow: none; }
.st-day.is-open .st-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.st-day.is-now .st-dot { box-shadow: 0 0 0 3px rgba(255, 200, 110, .35), inset 0 0 0 1.5px #ffd27a; animation: st-now 2.4s ease-in-out infinite; }
.st-day.is-now small { color: var(--text); font-weight: 700; }
@keyframes st-now { 50% { box-shadow: 0 0 0 6px rgba(255, 200, 110, .12), inset 0 0 0 1.5px #ffd27a } }
@media (prefers-reduced-motion: reduce) { .st-day.is-now .st-dot { animation: none } }
/* the streak's count in its own flame, no box (a cold grey flame at 0) */
.st-count { position: relative !important; display: grid !important; justify-items: center; align-content: end; width: 86px; min-height: 104px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.st-bigflame { position: absolute; inset: 0 0 18px; width: 100%; height: calc(100% - 18px); filter: drop-shadow(0 0 12px rgba(255, 140, 60, .45)); animation: st-flick 3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes st-flick { 0%, 100% { transform: scale(1) } 40% { transform: scale(1.03, .98) } 70% { transform: scale(.98, 1.03) } }
.st-count strong { position: relative; z-index: 1; margin-bottom: 4px; font-size: 30px !important; font-weight: 850; color: #3a1300 !important; text-shadow: 0 1px 0 rgba(255, 240, 200, .6) !important; line-height: 1; }
.st-count span { position: relative; z-index: 1; font-size: 11.5px; color: var(--text-2); }
.st-count.is-cold .st-bigflame { filter: grayscale(1) brightness(.75); opacity: .55; animation: none; }
.st-count.is-cold strong { color: #fff !important; text-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { .st-bigflame { animation: none } }
/* the profile's cards as in the owner's reference: nearly square corners, a thin bright edge, flat deep navy (no puffy roundness) */
html.is-pv .pc, html.is-pv .pf-body .card, html.is-pv .pf-body [class*="pf-tile"], html.is-pv .pf-grid > * { border-radius: 10px !important; }
html.is-pv .pc-level, html.is-pv .pc-world, html.is-pv .pc-tags-row, html.is-pv .pc-sig, html.is-pv .pc-lv-boxes > div, html.is-pv .pc-lv-next, html.is-pv .pc-wt { border-radius: 8px !important; }
html.is-pv .pc-lv-n { border-radius: 8px; }
html.is-pv .pf-body .card, html.is-pv .pf-grid > * { background: #111a35 !important; box-shadow: inset 0 0 0 1px rgba(120, 140, 220, .22) !important; border: 0 !important; }
html.is-pv .pc { box-shadow: inset 0 0 0 1px rgba(120, 140, 220, .22), 0 18px 36px -24px rgba(5, 8, 25, .9); }
html.is-pv .pf-tabs, html.is-pv .pf-tab { border-radius: 8px !important; }
html.is-pv .pc-tag-chip { border-radius: 6px; }
html.is-pv .pf-body .card .card, html.is-pv .pf-body [class*="st-"] > div[class], html.is-pv .duty, html.is-pv [class*="duty"] { border-radius: 8px !important; }
.pc-wt-pic { height: 96px; aspect-ratio: auto !important; overflow: hidden; }
.pc-wt-pic img { max-height: 84px !important; max-width: 86% !important; width: auto; height: auto; object-fit: contain; }
.pc-wt-char .avatar-edit-btn, .pc-wt-char button, .pc-wt-char [class*="edit"] { display: none !important; }
.pc-int-sheet { display: grid; gap: 12px; } .pc-int-add { display: flex; gap: 8px; } .pc-int-add .input { flex: 1; }
.pc-tag-chip.is-edit { display: inline-flex; align-items: center; gap: 6px; } .pc-tag-chip.is-edit button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.pc-tag-chip.is-add { border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(160, 130, 255, .45); }
.pc-cry { font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-size: 18px !important; font-style: normal !important; color: #ffd27a !important; text-shadow: 0 0 12px rgba(255, 190, 90, .45); letter-spacing: .02em; }
.arv-cry { margin: 4px 0 0; font-family: 'RetzefMapLand', 'Frank Ruhl Libre', Georgia, serif; font-size: 22px; color: #ffd27a; text-shadow: 0 0 16px rgba(255, 190, 90, .6); animation: arv-cry .7s .5s both cubic-bezier(.2, 1.4, .4, 1); }
@keyframes arv-cry { from { opacity: 0; transform: scale(.6) rotate(-4deg) } to { opacity: 1; transform: none } }
/* a thing of "my world" shown large (drawn on a canvas: nothing to save) */
.pc-big { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 20px; background: rgba(4, 7, 20, .82); backdrop-filter: blur(6px); animation: pc-big-in .22s ease; }
.pc-big.is-out { opacity: 0; transition: opacity .25s; }
@keyframes pc-big-in { from { opacity: 0 } }
.pc-big-card { display: grid; justify-items: center; gap: 6px; width: min(420px, 100%); padding: 18px; border-radius: 12px; background: #111a35; color: #e9eeff; box-shadow: inset 0 0 0 1px rgba(120, 140, 220, .25); text-align: center; }
.pc-big-stage { display: grid; place-items: center; width: 100%; min-height: 240px; max-height: 60vh; border-radius: 8px; background: radial-gradient(circle at 50% 45%, rgba(139, 108, 255, .3), transparent 70%), #0b1226; overflow: hidden; user-select: none; -webkit-touch-callout: none; }
.pc-big-stage canvas { max-width: 100%; max-height: 58vh; pointer-events: none; }
.pc-big-stage > :not(canvas) { transform: scale(2.4); margin: 70px 0; pointer-events: none; }
.pc-big-card small { color: #9aa6cf; font-size: 12px; } .pc-big-card b { font-size: 18px; }
.pc-big-acts { display: flex; gap: 8px; margin-top: 8px; }
.pc-big-stage canvas { width: auto; height: min(52vh, 360px); object-fit: contain; image-rendering: auto; }
/* the profile's tabs carry Lumora's glass capsule: the chosen tab itself stays clear under it */
.pf-tabs.glass-tabs > .pf-tab { position: relative; z-index: 1; }
.pf-tabs.glass-tabs > .pf-tab[aria-selected="true"] { background: transparent !important; box-shadow: none !important; }
.pf-tabs .glass-pill { z-index: 0; border-radius: 10px; }
html.is-pv .pf-tabs .glass-pill::after { border-radius: 10px; background: linear-gradient(180deg, #2a2f63, #1f2450); box-shadow: inset 0 0 0 1px rgba(150, 170, 255, .4), 0 0 14px -4px #8b6cff; }
/* (the drawn cover follows day and night, as everywhere; only its keys stay dark glass) */
html.is-pv .pc-gear { background: rgba(20, 24, 44, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
html.is-pv .pc-gear .ic { stroke: currentColor; }
/* the menu key on the profile by day: no white edge of the day theme */
html.is-pv .hb { border-color: rgba(140, 160, 255, .22) !important; box-shadow: none !important; }
/* the side menu keeps the day's own colours by day, even over the profile (the profile's night is for the profile only) */
html.is-pv:not([data-theme="dark"]) .nm { color-scheme: light;
  --bg: #f2f2f7; --bg-elevated: #ffffff; --bg-sunken: #e9e9ef; --surface: #ffffff; --surface-2: #f7f7fa; --surface-3: #ececef;
  --text: #11131a; --text-2: #4b4f5a; --text-3: #82868f; --text-inverse: #ffffff; --line: rgba(60, 60, 67, 0.14); --line-strong: rgba(60, 60, 67, 0.28);
  --accent: #0a6cff; --accent-soft: rgba(10, 108, 255, 0.12); --accent-text: #0a5ad6; --glass-bg: rgba(255, 255, 255, 0.72); color: var(--text); }
/* the profile picture's frame by day: the card's own navy in the gap round the picture, not the day theme's white */
html.is-pv .pc-avatar, html.is-pv .pc-avatar::after { background: #141e3c !important; }

/* ---- my world: the shelf of every statue woken (2026-11-20) ---- */
.pc-shelf { display: grid; gap: 8px; width: 100%; margin-top: 4px; text-align: start; }
.pc-shelf > small { font-size: 11.5px; opacity: .75; }
.pc-shelf-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: min(38vh, 300px); overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.pc-shelf-it { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 6px 4px 8px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .18); color: inherit; font: inherit; cursor: pointer; transition: transform .15s; }
.pc-shelf-it:active { transform: scale(.96); }
.pc-shelf-it.is-top { box-shadow: inset 0 0 0 1.5px rgba(255, 210, 122, .7); }
.pc-shelf-it canvas { width: 100%; max-width: 64px; height: auto; aspect-ratio: 4 / 5; pointer-events: none; }
.pc-shelf-it b { font-size: 11.5px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.pc-shelf-it small { font-size: 10px; opacity: .7; }

/* ---- the leap from "my world" to a place (2026-11-20, warp.js): stars from the tapped point, one flash, the place behind ---- */
.wp { position: fixed; inset: 0; z-index: 9000; pointer-events: all; }
.wp > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wp-veil { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #1a1850 0%, #070a1e 70%); opacity: 0; transition: opacity .35s ease; }
.wp.is-in .wp-veil { opacity: .96; }
.wp-pic { position: absolute; display: grid; place-items: center; border-radius: 16px; overflow: hidden; transition: transform .22s cubic-bezier(.3, 1.5, .5, 1), filter .22s; will-change: transform, left, top, opacity; }
.wp-pic > * { max-width: 100%; max-height: 100%; }
.wp-pic.is-lift { transform: scale(1.1); filter: drop-shadow(0 0 18px rgba(170, 150, 255, .8)); }
.wp-pic.is-go { transition: left .9s cubic-bezier(.6, 0, .4, 1), top .9s cubic-bezier(.6, 0, .4, 1), transform .93s cubic-bezier(.7, 0, .9, .4), opacity .9s ease-in, filter .9s ease-in; transform: scale(3.2); opacity: 0; filter: blur(6px) brightness(2.2) drop-shadow(0 0 40px rgba(255, 230, 190, 1)); }
.wp-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #fff2d8 35%, #c9bdff 70%, rgba(255, 255, 255, .9) 100%); opacity: 0; }
.wp-flash.is-on { animation: wp-flash .5s ease-out forwards; }
@keyframes wp-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 1; } }
.wp.is-out { transition: opacity .85s ease; opacity: 0; pointer-events: none; }
/* (on the map: the ring where the camera lands, and one tremble) */
.qm-land-ring { position: absolute; width: 0; height: 0; pointer-events: none; }
.qm-land-ring > i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 226, 160, .95), 0 0 24px 6px rgba(170, 150, 255, .7), inset 0 0 18px rgba(255, 240, 210, .6); animation: qm-land 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
.qm-land-ring > i + i { animation-delay: .18s; box-shadow: 0 0 0 2px rgba(200, 180, 255, .9), 0 0 16px 4px rgba(120, 150, 255, .6); }
@keyframes qm-land { 0% { transform: scale(.1); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.is-quake { animation: qm-quake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes qm-quake { 0%, 100% { translate: 0 0; } 15% { translate: -5px 3px; } 30% { translate: 4px -3px; } 45% { translate: -3px 2px; } 60% { translate: 2px -1px; } 80% { translate: -1px 1px; } }
@media (prefers-reduced-motion: reduce) { .is-quake, .qm-land-ring > i { animation: none; } }

/* (the camera high in the sky before its fall: the map a little cooler and darker at the edges) */
.is-sky::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(circle at 50% 50%, transparent 35%, rgba(8, 14, 40, .55) 100%); animation: qm-sky-in .3s ease both; }
@keyframes qm-sky-in { from { opacity: 0; } to { opacity: 1; } }

.wp-flash.is-off { opacity: 1; animation: wp-flash-off .45s ease-out forwards; }
@keyframes wp-flash-off { to { opacity: 0; } }

/* (the cruise while the map loads: the stars carried by the graphics card, not by the page) */
.wp > canvas.is-cruise { transform-origin: 50% 50%; will-change: transform, opacity; animation: wp-cruise 1.4s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes wp-cruise { from { transform: scale(1.12) rotate(-2deg); opacity: .85; } to { transform: scale(1.55) rotate(3deg); opacity: 1; } }

.wp > canvas.wp-tun { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform, opacity; animation: wp-tun 1.6s linear infinite; }
@keyframes wp-tun { 0% { transform: scale(.55) rotate(0deg); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(2.3) rotate(6deg); opacity: 0; } }
/* (the leap, all on the graphics card: one star picture in three layers flown through, a light at their centre) */
.wp-field { position: absolute; pointer-events: none; will-change: transform; }
.wp-field > .wp-layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; transform: scale(.25); opacity: 0; }
.wp-glow { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 210, .85) 0%, rgba(150, 130, 255, .35) 40%, rgba(20, 20, 60, 0) 70%); will-change: transform, opacity; }
.wp-pic { transition: none; will-change: transform, opacity; }
.wp-veil { transition: none; }

/* (the world map built ahead: laid out at full size off the screen, unseen, untouchable) */
.view.is-ghost { position: fixed !important; inset: 0; width: 100vw; height: 100dvh; transform: translateX(-300vw); visibility: hidden; pointer-events: none; contain: strict; }

/* (the flight to a place: the names and marks hidden until the landing, then faded in) */
.is-flying .qm-names, .is-flying .qm-pins { opacity: 0 !important; }
.is-landed .qm-names, .is-landed .qm-pins { animation: qm-names-in .8s ease both; }
@keyframes qm-names-in { from { opacity: 0; } to { opacity: 1; } }

/* (the film of the fall: pictures of the way down flown through by the graphics card, over the live map) */
.qm-film-l { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; contain: strict; background: #0d1530; }
.qm-film-l > .qm-film { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform, opacity; }

/* (the clouds of the way into the map, carried by the graphics card) */
.wp-cloud { position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax; opacity: 0; pointer-events: none; will-change: transform, opacity; }
/* (the landing ring on the statue itself) */
.qm-statue > .qm-land-ring { position: absolute; left: 50%; top: 62%; }
/* (during the flight the names and marks are not laid out at all: hundreds of them, measured on every change of the page, cost frames) */
.is-flying .qm-names, .is-flying .qm-pins { display: none !important; }
/* ---- the owner's looks at the proof photos (views/proofs.js): a card a swipe, right to approve, left to turn down ---- */
.pr { display: grid; gap: 14px; position: relative; }
.pr-head { display: grid; gap: 2px; text-align: center; } .pr-head small { color: var(--text-dim, #8a8fa3); font-size: 12px; }
.pr-stage { position: relative; height: min(64vh, 520px); display: grid; place-items: center; }
.pr-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #0d1226; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); touch-action: none; user-select: none; transition: transform .26s cubic-bezier(.2, .8, .3, 1), opacity .26s; --yes: 0; --no: 0; cursor: grab; }
.pr-card.pr-under { transform: scale(.95) translateY(10px); opacity: .6; pointer-events: none; }
.pr-img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.pr-info { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(5, 8, 20, .85)); color: #fff; text-align: start; }
.pr-info span { font-size: 13px; opacity: .8; } .pr-info em { justify-self: start; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #ff9f0a; color: #1c1300; }
.pr-tag { position: absolute; top: 22px; padding: 6px 14px; border-radius: 10px; font-weight: 800; font-size: 20px; letter-spacing: .04em; border: 3px solid; }
.pr-yes { inset-inline-start: 18px; color: #34c759; border-color: #34c759; opacity: var(--yes); transform: rotate(-12deg); }
.pr-no { inset-inline-end: 18px; color: #ff453a; border-color: #ff453a; opacity: var(--no); transform: rotate(12deg); }
.pr-keys { display: flex; justify-content: center; gap: 28px; }
.pr-key { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--surface, #fff); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .15s; }
.pr-key:active { transform: scale(.92); } .pr-key.is-yes { color: #34c759; } .pr-key.is-no { color: #ff453a; }
.pr-key .ic { stroke: currentColor; }
.pr-empty { display: grid; justify-items: center; gap: 8px; color: var(--text-dim, #8a8fa3); text-align: center; padding: 30px; } .pr-empty .ic { color: #34c759; stroke: currentColor; }
.pr-ask { position: absolute; inset: auto 0 0 0; z-index: 3; display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: var(--surface, #fff); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .4); text-align: start; animation: pr-up .25s ease; }
.pr-ask p { margin: 0; font-size: 13.5px; color: var(--text-dim, #6b7080); line-height: 1.55; }
.pr-ask-back { border: 0; background: none; color: var(--text-dim, #6b7080); font: inherit; cursor: pointer; padding: 6px; }
@keyframes pr-up { from { transform: translateY(20px); opacity: 0; } }
.pr-look { display: grid; gap: 10px; }
.pr-sign, .pr-guide, .pr-past { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(120, 120, 140, .08)); text-align: start; }
.pr-sign small, .pr-guide small, .pr-past small { font-size: 11.5px; color: var(--text-dim, #8a8fa3); font-weight: 700; }
.pr-sign b { font-size: 20px; } .pr-guide span { font-size: 13.5px; line-height: 1.5; }
.pr-alike { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 159, 10, .14); color: #b86e00; font-weight: 700; font-size: 13.5px; } .pr-alike .ic { stroke: currentColor; }
.pr-past-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pr-past-g figure { margin: 0; display: grid; gap: 3px; justify-items: center; } .pr-past-g img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; pointer-events: none; } .pr-past-g figcaption { font-size: 11px; color: var(--text-dim, #8a8fa3); }
/* ---- the photo of a day's rowing (proofcam.js): the camera full screen, the gesture to show, the time left ---- */
.pc-cam { position: fixed; inset: 0; z-index: 9500; background: #000; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.pc-cam-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-cam-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 16px 10px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.pc-cam-x, .pc-cam-flip { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; } .pc-cam-x .ic, .pc-cam-flip .ic { stroke: currentColor; }
.pc-cam-t { font-size: 18px; padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .45); }
.pc-cam-brief { position: relative; align-self: end; margin: 0 14px 10px; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 14, 30, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: start; }
.pc-cam-sign { display: grid; gap: 2px; } .pc-cam-sign small { font-size: 11.5px; opacity: .75; } .pc-cam-sign b { font-size: 22px; }
.pc-cam-brief p { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .92; }
.pc-cam-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; padding: 14px 16px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.pc-cam-shot { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; transition: transform .12s; } .pc-cam-shot:active { transform: scale(.92); } .pc-cam-shot:disabled { opacity: .5; }
/* (the oar's kind of goal) */
.oar-tags-k { font-size: 12px; font-weight: 700; color: var(--text-dim, #8a8fa3); }
.oar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.oar-tag { border: 1px solid var(--line, rgba(120, 120, 140, .3)); background: transparent; color: inherit; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.oar-tag.is-on { background: var(--accent, #5b5bf0); border-color: transparent; color: #fff; }
.oar-guide { line-height: 1.5; }
/* (what waits for the owner's look) */
.vy-held, .tc-held { display: flex; align-items: center; gap: 6px; color: #b86e00; } .vy-held .ic, .tc-held .ic { stroke: currentColor; flex: none; }
.tc-held { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 159, 10, .14); font-size: 13px; line-height: 1.45; text-align: start; }
.cr-held { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 159, 10, .1); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, .3); text-align: start; }
.cr-held-h { display: flex; align-items: center; gap: 8px; color: #b86e00; } .cr-held-h .ic { stroke: currentColor; }
.cr-held-p { margin: 0; font-size: 12.5px; color: var(--text-dim, #6b7080); }
.cr-held-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 159, 10, .2); }
.cr-held-l { display: grid; } .cr-held-l small { font-size: 12px; color: var(--text-dim, #6b7080); }
.cr-held-v { display: flex; gap: 10px; align-items: center; } .cr-held-v > span { display: inline-flex; gap: 4px; align-items: center; }
/* (the shared oar: chosen at the launch, shown on the card) */
.vy-shared { display: grid; gap: 8px; margin-top: 8px; } .vy-shared[hidden] { display: none; }
.vy-sharedcard { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(120, 120, 140, .08)); text-align: start; }
.vy-sharedcard small { font-size: 11.5px; font-weight: 700; color: var(--text-dim, #8a8fa3); } .vy-sharedcard b { font-size: 15px; }

/* ---- the port guardians (guardians.js): the shop's cards, the map's statues awake or asleep ---- */
.gd { display: grid; gap: 10px; }
.gd-skill { margin: 0; line-height: 1.55; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gd-card { display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: var(--surface-2, rgba(120, 120, 140, .08)); text-align: center; }
.gd-card.is-locked { opacity: .65; }
.gd-pic { display: grid; place-items: center; width: 100%; aspect-ratio: 1; } .gd-pic img { max-width: 80%; max-height: 92%; object-fit: contain; pointer-events: none; }
.gd-card.is-locked .gd-pic img { filter: grayscale(1) brightness(.6); }
.gd-st { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; } .gd-st .ic { stroke: currentColor; }
.gd-st.is-awake { color: #2e9d55; } .gd-st.is-asleep { color: var(--text-dim, #8a8fa3); }
.gd-buy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gd-why { font-size: 12px; color: var(--text-dim, #8a8fa3); }
.gd-ports { display: flex; flex-wrap: wrap; gap: 6px; }
.qm-statue.is-guardian.is-asleep img { filter: grayscale(1) brightness(.7); }
.qm-statue.is-guardian.is-relic img { filter: hue-rotate(150deg) saturate(1.3); }
.qm-statue.is-guardian.is-relic.is-asleep img { filter: grayscale(1) brightness(.7); }
.gd-admin { display: grid; gap: 10px; } .gd-admin-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .gd-admin-r .input { width: 96px; }
/* (the port guardians in the shop, 2026-11-20: cards as the characters', the statue in full colour on a night-sky plate; drawn on canvases) */
.shop-card.is-guardian .gd-pic { display: grid; place-items: end center; width: 100%; aspect-ratio: 1; margin-block-end: 4px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(255, 214, 140, .35), transparent 60%), linear-gradient(180deg, #1b2450, #0e1430); }
.gd-cv { display: block; max-width: 86%; max-height: 94%; width: auto; height: auto; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.shop-card.is-guardian .gd-cv { max-height: 92%; }
.gd-tag { z-index: 1; }
.gd-sheet .gd-sheet-pic { width: 200px; height: 240px; border-radius: 20px; display: grid; place-items: end center; overflow: hidden; background: radial-gradient(circle at 50% 28%, rgba(255, 214, 140, .4), transparent 62%), linear-gradient(180deg, #1b2450, #0e1430); }
.gd-sheet .gd-cv { max-height: 96%; max-width: 92%; }
.gd-power { display: grid; gap: 8px; width: 100%; padding: 14px; border-radius: 16px; background: var(--surface-2, rgba(120, 120, 140, .08)); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .3); text-align: start; }
.gd-power-h { display: flex; align-items: center; gap: 8px; color: #c9a24c; } .gd-power-h .ic { stroke: currentColor; }
.gd-power p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.gd-power-t { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(233, 196, 106, .2); font-size: 13px; }
.gd-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* (the guardian's sheet, 2026-11-20: the statue on its plate, then its status window and its power card, as a character's) */
.gd-sheet { gap: 14px; }
.gd-hero { position: relative; width: 100%; height: 300px; display: grid; place-items: end center; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #161d47 0%, #0b1030 70%, #070a20 100%); box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .35), 0 18px 40px -22px rgba(10, 10, 40, .9); }
.gd-hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 22%, rgba(255, 214, 140, .45), transparent 55%), radial-gradient(circle at 50% 110%, rgba(139, 108, 255, .35), transparent 60%); animation: gd-breathe 6s ease-in-out infinite alternate; will-change: opacity; }
.gd-skin .gd-hero-glow { background: radial-gradient(circle at 42% 12%, rgba(255, 190, 90, .55), transparent 40%), radial-gradient(circle at 50% 110%, rgba(170, 90, 255, .4), transparent 60%); }
@keyframes gd-breathe { to { opacity: .7; } }
.gd-hero-cv { position: relative; max-height: 92%; max-width: 80%; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.gd-hero-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: grid; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(10, 12, 32, .55); color: #ffd98a; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; box-shadow: inset 0 0 0 1px rgba(233, 196, 106, .4); }
.gd-hero-role { position: absolute; bottom: 10px; inset-inline: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: reduce) { .gd-hero-glow { animation: none; } }
/* (a statue's sheet as a character's, 2026-11-20: the statue alone, standing, no plate behind it; in a wishlist, the same) */
.av-info.is-statue .av-info-pic { width: 150px; height: 200px; border-radius: 0; display: grid; place-items: end center; }
.av-info.is-statue .av-info-pic .gd-statue { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(10, 12, 30, .4)); }
.av-info.is-statue .av-info-pic .av-lock { top: 6px; inset-inline-end: 6px; }
.wl-pic.wl-statue { display: grid; place-items: end center; background: none; }
.wl-pic.wl-statue .gd-cv { max-width: 92%; max-height: 96%; }
/* (the statue shown whole, 2026-11-20: no plate, no frame, nothing cut) */
.shop-card.is-guardian .gd-pic { background: none; overflow: visible; border-radius: 0; place-items: end center; }
.shop-card.is-guardian .gd-cv { max-width: 100%; max-height: 100%; filter: drop-shadow(0 8px 10px rgba(10, 12, 30, .35)); }
.wl-pic.wl-statue { border-radius: 0; overflow: visible; }
.gd-noget, .shop-card.is-guardian .gd-pic, .wl-pic.wl-statue { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* (the account's cover in the administrator's sheet) */
.user-cover-img { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; }
/* (the administration's cards one under another: room and a quiet line between them) */
.users-host > .adm + .adm { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line, rgba(120, 120, 140, .2)); }
/* (a tab whose icon is a silhouette: the statues' real figure on a clean plinth, in the tab's own ink like the line icons) */
.shop-ic-mask { width: 30px; height: 30px; display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* the 3D world over Retzef (main.js openWorld3d): the whole screen; Retzef's sheets and toasts open above it */
#w3d { position: fixed; inset: 0; z-index: 90; background: #05080d; }
#w3d iframe { display: block; width: 100%; height: 100%; border: 0; }
html:has(#w3d) .sheet-host, html:has(#w3d) .toast-host { z-index: 100; }
html:has(#w3d) #modal-host { z-index: 100; }
/* the shop's planes */
.shop-planes { display: grid; gap: 12px; }
.shop-plane { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(120, 170, 255, .14), rgba(120, 170, 255, .04)); box-shadow: inset 0 0 0 1px rgba(140, 170, 255, .18); }
.shop-plane-pic { width: 100%; max-width: 420px; height: auto; margin-inline: auto; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.shop-plane-t { display: grid; gap: 2px; }
.shop-plane-t small { opacity: .7; }
.shop-plane-acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* one's own photo: the small camera on the profile picture, and the sheet's switch */
.pc-avatar { position: relative; }
.pc-photo-edit { position: absolute; inset-inline-end: -2px; bottom: 2px; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg, #fff); background: var(--accent, #5b5bd6); color: #fff; cursor: pointer; }
.pc-photo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.pc-photo-row span { display: grid; gap: 2px; }
.pc-photo-row small { opacity: .7; }
.avatar img.av-photo { object-fit: cover; }
/* the first three in the ranking rows (everyone is a row since 2026-11-24): a medal for the place, the row in its metal's light; the first with a
   crown over its medal and a slow shine running along its frame */
.bd-row.is-gold, .bd-row.is-silver, .bd-row.is-bronze { position: relative; border-radius: 16px; }
.bd-row.is-gold { background: linear-gradient(90deg, rgba(255, 206, 84, .22), rgba(255, 206, 84, .05) 70%); box-shadow: inset 0 0 0 1.5px rgba(232, 178, 52, .65), 0 6px 22px -8px rgba(232, 178, 52, .55); }
.bd-row.is-silver { background: linear-gradient(90deg, rgba(196, 206, 222, .26), rgba(196, 206, 222, .05) 70%); box-shadow: inset 0 0 0 1px rgba(160, 172, 192, .6); }
.bd-row.is-bronze { background: linear-gradient(90deg, rgba(214, 140, 84, .2), rgba(214, 140, 84, .04) 70%); box-shadow: inset 0 0 0 1px rgba(190, 118, 66, .5); }
.bd-row.is-gold .bd-place, .bd-row.is-silver .bd-place, .bd-row.is-bronze .bd-place { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-inline: auto; border-radius: 50%; font-weight: 900; color: #2b1d00; }
.bd-row.is-gold .bd-place { background: radial-gradient(circle at 35% 30%, #fff4c2, #f5c84a 45%, #b8831a); box-shadow: 0 0 0 2px #fff3c4, 0 4px 14px rgba(214, 160, 40, .6); }
.bd-row.is-silver .bd-place { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd6e2 45%, #8b96a8); box-shadow: 0 0 0 2px #eef2f8; }
.bd-row.is-bronze .bd-place { background: radial-gradient(circle at 35% 30%, #ffe2c8, #d99560 45%, #8f5328); box-shadow: 0 0 0 2px #f6dcc6; color: #2a1406; }
.bd-row.is-gold .bd-place::before { content: ''; position: absolute; top: -15px; left: 50%; width: 22px; height: 15px; translate: -50% 0; background: linear-gradient(180deg, #fff1a8, #e3a92d); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M2 15h20l2-11-6 5-6-8-6 8-6-5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M2 15h20l2-11-6 5-6-8-6 8-6-5z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(120, 80, 0, .5)); }
.bd-row.is-gold::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255, 240, 190, .35) 48%, transparent 66%) no-repeat; background-size: 220% 100%; animation: bd-shine 4.5s ease-in-out infinite; }
@keyframes bd-shine { 0% { background-position: 140% 0; } 60%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .bd-row.is-gold::after { animation: none; } }
/* another person's card (social.js openProfile + profile.js personHero): the whole sheet in the profile page's own night blue */
.sheet.is-person-sheet { color-scheme: dark;
  --bg: #0b1226; --bg-elevated: #121a36; --bg-sunken: #070d1d; --surface: #141e3c; --surface-2: #1a2548; --surface-3: #22305a;
  --text: #e9eeff; --text-2: #a9b3d8; --text-3: #8e98c2; --text-inverse: #0b1226;
  --line: rgba(140, 160, 255, .16); --line-strong: rgba(140, 160, 255, .3); --accent: #8b6cff; --accent-soft: rgba(139, 108, 255, .2); --accent-text: #b5a2ff;
  --pc-bg: #131728; --pc-ink: #f2f4ff; --pc-ink2: #9aa3c0; --pc-line: rgba(160, 175, 230, .16);
  background: radial-gradient(120% 60% at 50% 0%, #17204a 0%, #0b1226 55%, #070d1d 100%); color: var(--text); }
.sheet.is-person-sheet .pc strong, .sheet.is-person-sheet .pc .pc-name { color: #fff; }
.sheet.is-person-sheet .ios-card, .sheet.is-person-sheet .prs-chip { background: #141e3c; color: var(--text); }
/* another's people list (profile.js peopleOf) */
.pp-list { display: grid; gap: 6px; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pp-row:hover { background: rgba(255, 255, 255, .08); }
.pp-who { display: grid; gap: 2px; }
.pp-who small { opacity: .7; }
button.pc-soc-c { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* the picture in a profile card stands over the ring's own layer (another's picture was hidden under it); the social counts always in white */
.pc-avatar .bd-pic, .pc-avatar .avatar-editor { position: relative; z-index: 1; }
.pc .pc-soc b, .pc .pc-soc-c b, .pc .pc-fig strong { color: #fff !important; }
.pc-avatar > .bd-pic { width: calc(100% - 8px) !important; height: calc(100% - 8px) !important; margin: 0; grid-area: 1 / 1; place-self: center; }
/* (another's picture pinned exactly inside its ring: the same 4px all round, whatever the box's size) */
.pc-avatar > .bd-pic { position: absolute !important; inset: 4px !important; width: auto !important; height: auto !important; margin: 0 !important; z-index: 1; border-radius: 50%; }
.pc-avatar > .bd-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pc-photo-edit { border: 0 !important; box-shadow: none !important; }
.pc-avatar .avatar-cam, .pf-arch-pic .avatar-cam, .pc-avatar .pc-photo-edit { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
.adm.adm-planes { margin-block-start: 18px; }
/* the ships' cards: picture, name, status, and the button always at the same height, whatever the status says (the owner, 2026-11-27) */
.shop-ship { display: flex; flex-direction: column; }
.shop-ship-sq { flex: none; }
.shop-ship-m { flex: 1; min-height: 2.6em; align-items: flex-start; }
.shop-ship-buy { margin-top: auto; }
/* the cruise ship's own picture (from the bow, at golden hour): the card shows it whole, and the sheet's top is made of it */
.shop-ship-pic.is-hero::before { display: none; }
.shop-ship-pic.is-hero img, .shop-ship.is-rare .shop-ship-pic.is-hero img, .shop-ship-pic.is-hero:hover img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; }
.sd-hero.is-photo .sd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.sd-hero.is-photo .sd-tag { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 22px 14px 10px; color: #fff; background: linear-gradient(0deg, rgba(5, 14, 26, .72), transparent); }
/* the ranking table, calmed (the owner, 2026-11-27: the top three looked machine-made, the colours of the list were not orderly): no rays, no crown, no shine, no glow;
   every row on the same ground, and a flat medal on the place of the first three, which is the one signal that tells them apart */
.bd-rays { display: none; }
.bd-emblem-big { background: color-mix(in srgb, #c9a227 16%, transparent); color: #b08a14; box-shadow: none; }
.bd-row.is-gold:not(.is-you), .bd-row.is-silver:not(.is-you), .bd-row.is-bronze:not(.is-you) { background: transparent; box-shadow: none; }
.bd-row.is-gold::after { display: none; }
.bd-row.is-gold .bd-place::before { display: none; }
.bd-row.is-gold .bd-place, .bd-row.is-silver .bd-place, .bd-row.is-bronze .bd-place { width: 30px; height: 30px; font-size: 14px; font-weight: 800; box-shadow: none; }
.bd-row.is-gold .bd-place { background: #d4a72c; color: #2b1d00; }
.bd-row.is-silver .bd-place { background: #aab3c0; color: #18202c; }
.bd-row.is-bronze .bd-place { background: #bb7c4e; color: #2a1406; }
/* (the table by keyboard: a row you can open is reached by Tab and shows where it stands; the small labels no smaller than 12px) */
.bd-row.is-tap:focus-visible { outline: 2px solid var(--accent, #6b4dff); outline-offset: -2px; }
.bd-stat-l, .bd-pts span { font-size: 12px; }
/* the cruise ship in the small pictures is shown at an angle, as on the map: not a tall picture to be turned on its side */
.rowed-ship.is-angled, [dir="rtl"] .rowed-ship.is-angled { rotate: none; width: 34px; translate: 0 -50%; }
.vy-id-pic.is-angled { width: 44px; height: auto; transform: none; margin-inline: 4px 8px; }
.vy-vs-pic.is-angled { width: 70px; height: auto; margin: 0; transform: none; object-fit: contain; }
.hs-ship.is-angled { width: 120px; }
.hs-ship-s.is-angled { width: 110px; }
.hs-ring-in img.is-angled { max-width: 82%; }

/* the owner's list of ports and his marina sheet (2026-11-27) */
.wm-prow { display: flex; gap: 6px; align-items: stretch; }
.wm-prow .wm-result { flex: 1; }
.wm-mar { display: grid; gap: 12px; padding: 4px 0 12px; }
.wm-mar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wm-mar-row > span { flex: 1 1 100px; }
.wm-mar-row > strong { min-width: 3.2em; text-align: center; }

/* the spiral cocktail card in a language with longer words: the text wraps inside its card and never runs past it (the owner, 2026-11-28) */
.spc-card .spc-side, .spc-card .spc-rows, .spc-card .spc-lang, .spc-card .spc-lang * { min-width: 0; overflow-wrap: anywhere; }
.spc-card .spc-lang small { white-space: normal; }
.spc-card .spc-row-t { flex-wrap: wrap; }

/* the Creator's Seal: a space from the card above it (it comes in its own holder), and room between everything inside it (the owner, 2026-11-28) */
.mseal { margin-block-start: 16px; display: grid; gap: 10px; }
.mseal > p { margin: 0; }
.mseal .btn-primary { margin-block: 4px 0; justify-self: start; }
.mseal-out .btn { margin: 0; }
.mseal-out > * + .btn, .mseal-out .btn + .btn { margin-block-start: 8px; }

/* Weekday names in the calendar's week and month: the Hebrew word in Hebrew, three English letters in any other language */
.dn-en { display: none; }
html:not([lang="he"]) .dn-he { display: none; }
html:not([lang="he"]) .dn-en { display: inline; }
/* The week's day headers: every column starts at the top, so the names, the dates and the Hebrew dates sit on one line each
   (a button centres what it holds: a day with a holiday line was raised above the others) */
.tg-dayname { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; }
.tg-dayname .dn, .tg-dayname .dh { white-space: nowrap; line-height: 1.3; }
.tg-dayname .dev { max-width: 100%; }
.month-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==== Lumora's community (2026-11-28): stories, pictures in posts, the story player, saved moments, reports.
   The look follows SnapShot (a reference only): a violet accent, rounded cards on a soft background that follows day and night. ==== */
.lf { --cm-accent: #877eff; --cm-accent2: #ff5ca8; --cm-line: color-mix(in srgb, var(--text) 9%, transparent); }   /* (the feed itself keeps its published look) */
.cm-stories-wrap { margin-block-end: 10px; }
.cm-stories { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cm-stories::-webkit-scrollbar { display: none; }
.cm-ring-w { flex: none; display: grid; justify-items: center; gap: 5px; width: 72px; }
.cm-ring-w small { max-width: 72px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-ring { position: relative; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-ring-c { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--cm-accent), var(--cm-accent2), #ffb347, var(--cm-accent)); }
.cm-ring-c > * { border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg, #fff); }
.cm-ring.is-seen .cm-ring-c, .cm-ring.is-empty .cm-ring-c { background: color-mix(in srgb, var(--text) 18%, transparent); }
.cm-ring:active .cm-ring-c { transform: scale(.94); }
.cm-plus { position: absolute; inset-block-end: 0; inset-inline-end: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cm-accent); color: #fff; box-shadow: 0 0 0 2.5px var(--bg, #fff); }
.cm-modbtn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cm-line); background: var(--cm-card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
/* a post's pictures: one large, or a row to slide through with dots; the owner's Livid film */
.cm-pics { position: relative; margin-block: 8px 4px; }
.cm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.cm-track::-webkit-scrollbar { display: none; }
.cm-track img { flex: 0 0 100%; width: 100%; max-height: 520px; object-fit: cover; scroll-snap-align: center; background: color-mix(in srgb, var(--text) 6%, transparent); }
.cm-dots { position: absolute; inset-block-end: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.cm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.cm-dots i.is-on { background: #fff; }
.cm-video { position: relative; margin-block: 8px 4px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; }
.cm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* picking pictures, the upload bar, a new story */
.cm-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.cm-thumb, .cm-add { position: relative; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; }
.cm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-thumb-x { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.cm-add { display: grid; place-items: center; align-content: center; gap: 2px; border: 1.5px dashed color-mix(in srgb, var(--cm-accent, #877eff) 60%, transparent); background: none; color: var(--text-2); cursor: pointer; font: inherit; }
.cm-bar { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; margin-block: 8px; }
.cm-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #877eff, #ff5ca8); transition: width .2s; }
.cm-new { display: grid; gap: 10px; }
.cm-prev { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 18px; background: #000; }
/* the story player */
.cm-view { position: fixed; inset: 0; z-index: 9000; background: #000; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.cm-stage { position: relative; width: min(100vw, 56.25vh); height: 100%; max-height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.cm-media { width: 100%; height: 100%; object-fit: contain; }
.cm-bars { position: absolute; inset-block-start: calc(env(safe-area-inset-top, 0px) + 8px); inset-inline: 10px; display: flex; gap: 4px; direction: ltr; }
[dir="rtl"] .cm-bars { flex-direction: row-reverse; }
.cm-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.cm-bars i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .cm-bars i { transform-origin: right; }
.cm-top { position: absolute; inset-block-start: calc(env(safe-area-inset-top, 0px) + 20px); inset-inline: 10px; display: flex; align-items: center; gap: 6px; color: #fff; }
.cm-who { flex: 1; display: grid; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.cm-who small { opacity: .8; font-size: 12px; }
.cm-tool { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.cm-cap { position: absolute; inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 54px); inset-inline: 16px; margin: 0; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .45); color: #fff; text-align: center; }
.cm-views { position: absolute; inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 16px); inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 5px; color: #fff; opacity: .85; font-size: 13px; }
/* saved moments on a profile */
.cm-moments { margin-block: 12px; }
.cm-mh { margin: 0 0 8px; font-size: 15px; }
.cm-mrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.cm-moment { flex: none; width: 78px; height: 120px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #111; }
.cm-moment img, .cm-moment video { width: 100%; height: 100%; object-fit: cover; }
/* reports */
.cm-reports { display: grid; gap: 10px; }
.cm-report { display: grid; gap: 6px; padding: 12px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.cm-report p { margin: 0; }
.cm-rmedia { max-width: 100%; max-height: 220px; border-radius: 12px; }
.cm-ract { display: flex; gap: 8px; justify-content: flex-end; }
/* Lumora's home: a few plain words on what the place is, above the board (no branded banner) */
.sc-intro { display: grid; gap: 4px; margin-block: 4px 14px; padding-inline: 4px; }
.sc-intro-t { margin: 0; font-size: 22px; font-weight: 760; letter-spacing: -.02em; }
.sc-intro-s { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.sc-intro-p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* Lumora's board (after SKOOL's structure, in Retzef's look): the category pills, a post's category beside its date */
.lf-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-block: 2px 12px; }
.lf-cats::-webkit-scrollbar { display: none; }
.lf-cat { flex: none; height: 34px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.lf-cat.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.lf-cats.is-pick { margin-block: 8px 4px; }
.lf-postcat { color: var(--accent-text); font-weight: 650; }
/* Lumora's head: the signs alone at its end; the tab bar under it is part of the page (a line under it, the chosen part underlined), not a card */
.sc-head { justify-content: flex-end; }
.sc-head-sp { flex: 1; }
.view[data-view="social"] .sc-tabs { padding: 0; gap: 0; border-radius: 0; background: var(--bg); box-shadow: none; border: 0; border-block-end: 1px solid var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.view[data-view="social"] .sc-tabs .glass-pill { display: none; }
.view[data-view="social"] .sc-tab { border-radius: 0; background: none !important; color: var(--text-3); box-shadow: inset 0 -2px 0 transparent; }
.view[data-view="social"] .sc-tab.is-on { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); background: none; }
/* the personality type and the spiral under the bio: two quiet chips side by side */
.pc-traits { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 2px; }
.pc-traits:empty { display: none; }
.pc-trait { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 10px 12px; border: 1px solid var(--pc-line, var(--line)); border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: default; }
.pc-trait small { opacity: .7; font-size: 12px; }
.pc-trait b { font-weight: 750; letter-spacing: .02em; }
.pc-trait.is-spiral { cursor: pointer; }
.pc-trait.is-spiral b { color: var(--sp); }
.pc-trait-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #16a34a; color: #fff; }
/* Lumora's tab bar: held right under the top bar, in its same glass, edge to edge: the two read as one bar, also while scrolling */
.view[data-view="social"] .sc-tabs { position: sticky; inset-block-start: var(--topbar-h, 66px); z-index: 29; margin-inline: calc(var(--s4) * -1); margin-block-start: -22px; padding-inline: var(--s4); background: none; }
body[data-view="social"] .topbar { border-block-end-color: transparent; }
.view[data-view="social"] .sc-head { margin-block-start: 8px; }
/* one's own counts in one row (friends, inner circle, circles, followers, following) */
.pc .pc-soc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; max-width: none; }
.pc .pc-soc-c { min-width: 0; font-size: 12px; text-align: center; }
.pc .pc-soc-c b { font-size: 16px; }
/* Lumora's signs scroll under the tab bar, never over it */
.view[data-view="social"] .sc-head { position: relative; z-index: 0; }
.view[data-view="social"] .sc-tabs { z-index: 29; isolation: isolate; }
/* one's counts: each label on one line */
.pc .pc-soc-c, .pc .pc-soc-c span { white-space: nowrap; font-size: 11.5px; }

/* the board's filter button and the categories' editor */
.lf-filterbtn { display: inline-grid; place-items: center; width: 38px; padding: 0; }
.lf-fh { margin: 4px 2px 8px; font-size: 14px; color: var(--text-3); font-weight: 650; }
.lf-catedit { display: grid; gap: 8px; }
.lf-catrow { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 6px; }
.lf-catstaff { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
/* the tab bar is solid enough that nothing scrolls through it, in the top bar's own tone */
.view[data-view="social"] .sc-tabs.glass::before { background: color-mix(in srgb, var(--bg-elevated) 97%, transparent); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); opacity: 1; }
/* (at the top the tab bar lies on the page itself; scrolled, its solid background fades in) */
.view[data-view="social"] .sc-tabs.glass { background-color: transparent; transition: background-color .22s ease, box-shadow .22s ease; }
/* scrolled: the top bar's own glass (one surface with it, not a card), blurred enough that nothing under it can be read */
.view[data-view="social"] .sc-tabs.glass.is-stuck { background-color: var(--glass-bg); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); box-shadow: none; }
.lf-catbar { display: flex; align-items: center; gap: 8px; margin-block: 2px 12px; }
.lf-catbar .lf-cats { flex: 1; min-width: 0; margin: 0; }
.lf-catbar .lf-filterbtn { flex: none; }

/* the map's search in the colour of the buttons round it (its sizes as published) */
.wm-search { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.view[data-view="social"] .sc-tabs { inset-block-start: calc(var(--topbar-h, 66px) - 1px); }   /* (one pixel under the top bar: no thin seam to see through while scrolling) */
/* the comments window, as a messaging app's: small faces, the name bold with the time beside it, the words under it;
   a writing bar with one's own face, a round field and a small send sign inside it */
.lf-c2 { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; padding: 10px 2px; border: 0; }
.lf-c2 .lf-c-h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.lf-c2 .lf-c-h .lf-time { font-size: 12px; color: var(--text-3); }
.lf-c2 .lf-c-b { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.lf-c2 .lf-c-x { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; }
.lf-c2 .lf-c-x:hover { background: var(--surface-2); color: #ff3b30; }
.lf-cempty { display: grid; justify-items: center; gap: 4px; padding: 26px 8px 18px; color: var(--text-3); text-align: center; }
.lf-cempty-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-block-end: 6px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); }
.lf-cempty b { color: var(--text); font-size: 15px; }
.lf-cempty small { font-size: 13px; }
.lf-cbar2 { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; }
.lf-cfield { display: flex; align-items: center; gap: 4px; min-height: 42px; padding-inline: 14px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.lf-cfield:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface); }
.lf-cin2 { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; }
.lf-csend { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; transition: opacity .15s, transform .15s; }
.lf-csend:disabled { opacity: .35; cursor: default; }
.lf-csend:not(:disabled):active { transform: scale(.92); }
[dir="rtl"] .lf-csend .ic { transform: scaleX(-1); }
/* one's counts, tidy: five equal columns, the number over its word, each centred; a long word breaks neatly in two; the requests' dot sits on the friends' number, not in a column of its own */
.pc .pc-soc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 4px; row-gap: 0; align-items: start; }
.pc .pc-soc-c { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-width: 0; padding: 4px 0; white-space: normal; text-align: center; }
.pc .pc-soc-c b { font-size: 17px; line-height: 1.1; white-space: nowrap; }
.pc .pc-soc-c span { font-size: 11.5px; line-height: 1.25; white-space: normal; text-wrap: balance; overflow-wrap: anywhere; opacity: .85; }
.pc .pc-soc-dot { position: absolute; inset-block-start: 4px; inset-inline-start: calc(10% - 10px); }
.pc > .pc-soc { width: 100%; max-width: none; margin-block: 12px 4px; }
.pc .pc-soc-c span { overflow-wrap: normal; word-break: keep-all; }
/* the spiral under the bio: its sign alone (no box), in the leading colour, and the colour's name beside it */
.pc-trait.is-spiral { gap: 6px; height: auto; padding: 2px 0; border: 0; background: none; }
.pc-trait.is-spiral .ic { color: var(--sp); width: 20px; height: 20px; }
.pc-trait.is-spiral b { color: var(--sp); font-size: 14px; }

/* the spiral under the bio: in the colour of the username line (the owner, 2026-11-28) */
.pc .pc-trait.is-spiral .ic, .pc .pc-trait.is-spiral b { color: var(--pv-soft, var(--pc-ink2)); }

.pc .pc-trait.is-spiral { cursor: default; }

/* bold in the bio: the B button beside the label, the bold words a touch brighter */
.pf-bold { display: inline-grid; place-items: center; width: 26px; height: 22px; margin-inline: 8px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; vertical-align: middle; }
.pc-bio strong, .prs-bio strong { font-weight: 750; color: var(--text); }
.pf-bio-lab { display: inline-flex; align-items: center; }
/* switch rows inside an iOS-style card (the post's window and the like): the same inner margin and height as the card's other rows, nothing on the box's edges */
.ios-card > .setting { min-height: 50px; padding: 8px 14px; gap: 12px; flex-wrap: nowrap; border-block-end: 0; position: relative; }
.ios-card > .setting + .setting::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 14px 0; height: 1px; background: var(--line, rgba(0, 0, 0, .08)); }
.ios-card > .setting .setting-text .t { font-weight: 500; font-size: 16px; }

/* a circle's shared goal (views/circle-goals.js): in a goal's window, in the circle, and the code */
.cg-panel { margin-block: 14px 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 10px; }
.cg-head { display: flex; align-items: center; gap: 10px; }
.cg-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.cg-crew { display: grid; gap: 6px; }
.cg-crew-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cg-panel p { margin: 0; }
.cg-code { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cg-code-l { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cg-code-v { font-size: 18px; letter-spacing: .14em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cg-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-acts .is-danger { color: var(--danger, #ff3b30); }
.cg-join { display: grid; gap: 12px; }
.cg-join p { margin: 0; }
.cg-card { display: grid; gap: 12px; }
.cg-card-h { display: flex; align-items: center; gap: 8px; }
.cg-card p { margin: 0; }
.cg-goal { display: grid; gap: 6px; padding-block-start: 10px; border-block-start: 1px solid var(--line); }
.cg-goal .btn { justify-self: start; }
.cg-goal-t { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-cg-chip { display: inline-flex; align-items: center; gap: 4px; }
/* a post's text: a size for reading in a feed, not a page; paragraphs with a small gap (the owner, 2026-11-28) */
.lf-post { padding: 12px 2px 6px; }
.lf-body { margin: 8px 0 2px; font-size: 15px; line-height: 1.5; }
.lf-para { display: block; }
.lf-para + .lf-para { margin-block-start: 7px; }
/* the goals' head in one row (the owner, 2026-11-28): the title, then the study and shared-goal signs as icons, then the new goal */
.obj-view-head { flex-wrap: nowrap; gap: 8px; }
.obj-view-head h2 { flex: 1; min-width: 0; }
.obj-view-head .obj-head-ic { flex: none; width: 34px; height: 34px; min-height: 34px; }
.obj-view-head .btn-primary { flex: none; }

/* the automations' palette on a phone: a finger scrolls the row (a tap adds the block), nothing holds the page still */
@media (max-width: 899px) { .mkf-pal { touch-action: pan-x; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; } .mkf-pal-i { touch-action: pan-x; } }
/* Lumora's categories (the owner, 2026-11-29): room under the divider, the filter a pill of the same height beside the row, and the row
   fading out softly at its end instead of being cut off by the filter */
.lf-catbar { margin-block: 14px 14px; gap: 10px; }
.lf-catbar .lf-filterbtn { height: 34px; width: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lf-catbar .lf-cats { padding-inline-end: 18px; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22px); mask-image: linear-gradient(to left, transparent 0, #000 22px); }
[dir="rtl"] .lf-catbar .lf-cats, :root[dir="rtl"] .lf-catbar .lf-cats { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px); mask-image: linear-gradient(to right, transparent 0, #000 22px); }
/* (better than a fade: the categories and the filter flow as one row of pills that wraps when needed, so nothing is ever cut off) */
.lf-catbar { flex-wrap: wrap; row-gap: 8px; }
.lf-catbar .lf-cats, [dir="rtl"] .lf-catbar .lf-cats, :root[dir="rtl"] .lf-catbar .lf-cats { display: contents; -webkit-mask-image: none; mask-image: none; }
/* (the owner: one row, not two) the filter first, then the categories, all in one row that scrolls sideways and runs to the screen's
   edges, so a category goes off the edge of the screen like any row of cards instead of being cut in the middle by the filter */
.lf-catbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); scroll-padding-inline: var(--s4); }
.lf-catbar::-webkit-scrollbar { display: none; }
.lf-catbar .lf-filterbtn { order: -1; }
/* (the owner: not to the screen's edge, and not looking cut) inside the page's margins again; the row's far end fades softly into the
   background, the sign of a row that scrolls, and the last category can scroll fully into view past the fade */
.lf-catbar { margin-inline: 0; padding-inline: 0 28px; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px); mask-image: linear-gradient(to left, transparent 0, #000 28px); }
[dir="rtl"] .lf-catbar, :root[dir="rtl"] .lf-catbar { padding-inline: 0 28px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }

/* Lumora's category row, final (the owner, 2026-11-29): the filter always shown first and still; the categories beside it scroll on their
   own inside the page's margins, smaller pills so a usual list fits, and only when there is more to scroll does their far end fade */
.lf-catbar { flex-wrap: nowrap; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 8px; -webkit-mask-image: none; mask-image: none; }
[dir="rtl"] .lf-catbar, :root[dir="rtl"] .lf-catbar { padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
.lf-catbar .lf-filterbtn { order: 0; flex: none; height: 32px; width: 36px; }
.lf-catbar .lf-cats, [dir="rtl"] .lf-catbar .lf-cats, :root[dir="rtl"] .lf-catbar .lf-cats { display: flex; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-inline-end: 0; -webkit-mask-image: none; mask-image: none; }
.lf-catbar .lf-cat { height: 32px; padding-inline: 12px; font-size: 13.5px; }
.lf-catbar .lf-cats.is-more { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 56px); mask-image: linear-gradient(to left, transparent 0, #000 56px); }
[dir="rtl"] .lf-catbar .lf-cats.is-more, :root[dir="rtl"] .lf-catbar .lf-cats.is-more { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px); mask-image: linear-gradient(to right, transparent 0, #000 56px); }

/* Lumora's category row: the soft fade also on the filter's side, once the categories were scrolled away from their start */
.lf-catbar .lf-cats.is-back { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 100%); }
.lf-catbar .lf-cats.is-more { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%); }
.lf-catbar .lf-cats.is-back.is-more { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 56px), transparent 100%); }
[dir="rtl"] .lf-catbar .lf-cats.is-back, :root[dir="rtl"] .lf-catbar .lf-cats.is-back { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 100%); mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 100%); }
[dir="rtl"] .lf-catbar .lf-cats.is-more, :root[dir="rtl"] .lf-catbar .lf-cats.is-more { -webkit-mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 56px), transparent 100%); }
[dir="rtl"] .lf-catbar .lf-cats.is-back.is-more, :root[dir="rtl"] .lf-catbar .lf-cats.is-back.is-more { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 44px, #000 calc(100% - 56px), transparent 100%); }
/* the filter's icon in the middle of its pill (the categories' side padding is not for it) */
.lf-catbar .lf-filterbtn { padding: 0; display: inline-grid; place-items: center; }
.lf-catbar .lf-filterbtn .ic { display: block; margin: 0; }

/* Lumora's tab bar on a turned iPhone: it reaches exactly the page's own side margins (which grow with the notch in landscape), never past them */
.view[data-view="social"] .sc-tabs { margin-inline: calc(max(var(--s4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) * -1); padding-inline: max(var(--s4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); max-width: 100vw; }
/* (2026-12-03, the owner: the fade was gone) the solid layer under the tabs shows only once the page scrolls under them, fading in and out;
   at the top the bar lies on the page itself */
.view[data-view="social"] .sc-tabs.glass::before { opacity: 0; transition: opacity .22s ease; }
.view[data-view="social"] .sc-tabs.glass.is-stuck::before { opacity: 1; }
/* on a phone, however it is turned: the bar spans the screen edge to edge whatever the page's own margins are (they change with the notch),
   and its tabs keep inside the notch's safe margins */
@media (max-width: 899px) {
  .view[data-view="social"] .sc-tabs { box-sizing: border-box; width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); padding-inline: max(var(--s4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
}

/* Lumora: "new posts" while reading further down (nothing jumps; a tap goes up to them) */
.lf-newpill { position: fixed; z-index: 40; inset-block-start: calc(var(--topbar-h, 66px) + 64px); inset-inline-start: 50%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; }
[dir="ltr"] .lf-newpill { transform: translateX(-50%); }
.lf-newpill .ic { stroke: #fff; }

/* a comment's heart and "reply", and the replies under the comment they answer */
.lf-c-acts { display: flex; align-items: center; gap: 14px; margin-block-start: 4px; }
.lf-c-like, .lf-c-reply { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.lf-c-like.is-on { color: #ff375f; }
.lf-c-like.is-on .ic { fill: currentColor; }
.lf-c-like b { font-weight: 700; }
.lf-c.is-reply { margin-inline-start: 40px; }
.lf-replyto { display: flex; align-items: center; gap: 4px; padding: 4px 10px 6px; font-size: 12.5px; color: var(--text-2); }
.lf-replyto-x { margin-inline-start: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-2); cursor: pointer; }
/* Lumora on the iPhone Duo (open, and closed or open on its side; the same shape test as the other foldable rules): the tab bar stays across
   the screen, the posts and what is above them keep a reading width in the middle, so lines never run across a wide screen */
@media (min-width: 441px) and (max-width: 899px) and (min-height: 441px) and (max-height: 900px) and (min-aspect-ratio: 5/8) and (max-aspect-ratio: 8/5) {
  .view[data-view="social"] .sc-pane, .view[data-view="social"] .sc-head { max-width: 600px; margin-inline: auto; width: 100%; }
}

/* the bug report's counter: on the label's line, light and small, warm only near the end */
.bug-count { font-size: 12px; font-weight: 400; color: var(--text-3); }
.bug-count.is-full { color: var(--danger, #c0392b); }
.bug-field { display: grid; gap: 6px; }
/* the mailing's windows on an iPhone (the owner, 2026-11-29: some screens would not scroll): every scrolling part of a full-screen window,
   a sheet and the builder's panel says plainly that a finger scrolls it up and down, keeps the scroll to itself (the page behind does not
   take it), and scrolls with the phone's own momentum */
.mkw-body, .mkf-panel, .mkw .sheet-body, .mkc-body, .mkw-pane { touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mkw { height: 100dvh; max-height: 100dvh; }
.mkw > * { min-height: 0; }

/* Settings → appearance: the accessibility menu's fixed place */
.a11y-card { display: grid; gap: 10px; margin-block-end: 14px; }
.a11y-card-sw { cursor: pointer; }

/* the library's next release: one quiet line under the banner, and the day and hour on a locked episode (no clock: the owner, 2026-12-03) */
.ln-next { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 2px 0 14px; font-size: 14px; color: var(--text-2); }
.ln-next svg { color: var(--accent); flex: none; }
.ln-ep-rel { display: block; margin-top: 4px; font-size: 12.5px; color: var(--accent); }
.ln-sched { display: grid; gap: 10px; }

/* Lumora: editing one's own comment in place */
.lf-c-editw { display: grid; gap: 8px; margin-top: 4px; }
.lf-c-edit { width: 100%; min-height: 64px; resize: vertical; font: inherit; font-size: 14.5px; }
.lf-c-edita { display: flex; gap: 8px; }

/* goals: one's own reward for finishing (free text, nothing of the app's) */
.obj-reward-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-block: 4px 14px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, #ff9f0a 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff9f0a 22%, var(--line)); }
.obj-reward-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #ff9f0a; background: color-mix(in srgb, #ff9f0a 16%, transparent); }
.obj-reward-t { display: grid; gap: 2px; min-width: 0; }
.obj-reward-t .small { color: var(--text-2); overflow-wrap: anywhere; }
.obj-ms-rw { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: #d98306; }
.obj-ms-gift { color: var(--text-3); }
.obj-ms-gift.is-on { color: #ff9f0a; }
.obj-earned { display: grid; justify-items: center; gap: 10px; text-align: center; padding-block: 6px 4px; }
.obj-earned-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; color: #ff9f0a; background: color-mix(in srgb, #ff9f0a 16%, transparent); }
.obj-earned-row { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--surface); width: 100%; }
.obj-earned-row b { font-size: 16px; overflow-wrap: anywhere; }

/* the menu, a place chosen: the place opens under it and the menu fades away whole (no circle folding back over the new screen) */
.nm.is-open.is-leaving { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { .nm.is-open.is-leaving { transition-duration: .05s; } }

/* the plans with the free card first (the owner, 2026-12-03), laid out as on the landing page, by the room the page really has:
   four in one row on a computer and on an open foldable on its side, two rows of two on a tablet or an open foldable upright,
   one under the other on a phone; never one card alone in a row */
.nx .nx-cards.has-free { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 16px; }
@media (min-width: 600px) { .nx .nx-cards.has-free { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 800px) { .nx .nx-cards.has-free { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 800px) and (max-width: 1059px) {
  .nx .nx-cards.has-free .nx-card { padding-inline: 12px; }
  .nx .nx-cards.has-free .nx-desc, .nx .nx-cards.has-free .nx-feats li { font-size: 13px; }
  .nx .nx-cards.has-free .nx-cta { padding-inline: 6px; font-size: 13px; }
}
@media (min-width: 1060px) { .nx .nx-cards.has-free { gap: 16px; } .nx .nx-cards.has-free .nx-card { padding-inline: 22px; } }
/* a closed foldable on its side (wide, but not tall): all four in one row, sized by the room there is */
@media (orientation: landscape) and (min-width: 600px) and (max-width: 799px) and (min-height: 441px) and (max-height: 620px) {
  .nx .nx-cards.has-free { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 10px); }
  .nx .nx-cards.has-free .nx-card { padding-inline: clamp(8px, 1.6vw, 12px); }
  .nx .nx-cards.has-free .nx-desc, .nx .nx-cards.has-free .nx-feats li { font-size: clamp(11px, 1.7vw, 12.5px); }
  .nx .nx-cards.has-free .nx-cta { padding-inline: 4px; font-size: clamp(11px, 1.8vw, 13px); }
}
.nx-card.is-free .nx-cta.is-quiet { opacity: .7; cursor: default; }
.nx-trial.is-blank { display: block; visibility: hidden; min-height: 1.6em; }
/* four in a row: the price smaller and allowed to wrap, so nothing is cut in a narrow card */
@media (min-width: 800px) and (max-width: 1279px) { .nx .nx-cards.has-free .nx-price { flex-wrap: wrap; row-gap: 2px; } .nx .nx-cards.has-free .nx-price b { font-size: clamp(30px, 3.4vw, 42px); } }
@media (orientation: landscape) and (min-width: 600px) and (max-width: 799px) and (min-height: 441px) and (max-height: 620px) { .nx .nx-cards.has-free .nx-price { flex-wrap: wrap; row-gap: 2px; } .nx .nx-cards.has-free .nx-price b { font-size: clamp(26px, 4.4vw, 32px); } }
/* the plans on a wide screen: the four cards take the room there is (the owner, 2026-12-03: there is more width than was given) */
@media (min-width: 1200px) { .pl-page.pp { max-width: min(1440px, 100%); } }
@media (min-width: 1200px) { body[data-view="plans"] #view-root { max-width: none; } }
/* the plans on a computer: the cards' words at a comfortable size (the owner, 2026-12-03: the type was small there) */
@media (min-width: 1200px) {
  .nx .nx-cards.has-free .nx-tier { font-size: 30px; }
  .nx .nx-cards.has-free .nx-tag { font-size: 17px; }
  .nx .nx-cards.has-free .nx-desc { font-size: 16px; line-height: 1.6; }
  .nx .nx-cards.has-free .nx-feats li { font-size: 15.5px; }
  .nx .nx-cards.has-free .nx-cta, .nx .nx-cards.has-free .nx-more { font-size: 15px; }
  .nx .nx-hero .nx-sub, .nx .nx-herodesc { font-size: 17px; }
}
/* the cards side by side share their rows (the owner, 2026-12-03: the free card's items must sit on the same lines as the others'):
   the name, the tagline, the words, the price, the list, its "more", the button and the trial link, each row as tall as its tallest */
@media (min-width: 600px) {
  .nx .nx-cards.has-free { grid-auto-rows: auto; }
  .nx .nx-cards.has-free > .nx-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .nx .nx-cards.has-free > .nx-card > .nx-price { align-self: end; }
  .nx .nx-cards.has-free > .nx-card > .nx-feats { align-self: start; }
  .nx .nx-cards.has-free > .nx-card > .nx-cta { align-self: end; }
}
/* the plans' cards rise a little under the pointer, as on the landing page (only where there is a real pointer, never stuck on a phone) */
.nx-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .nx-card:hover { transform: translateY(-6px); border-color: rgba(51, 221, 255, .45); box-shadow: 0 34px 70px -30px rgba(4, 7, 20, .9); }
}
@media (prefers-reduced-motion: reduce) { .nx-card { transition: border-color .2s ease; } .nx-card:hover { transform: none; } }

/* the library's YouTube player with the app's own buttons (src/static/js/watch.js): YouTube's buttons and links out of reach */
.yp { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: inherit; overflow: hidden; }
.yp-frame, .yp > iframe, .yp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yp:not(.is-livid) .yp-frame, .yp:not(.is-livid) .yp-frame iframe { pointer-events: none; }
.yp-shield { position: absolute; inset: 0 0 52px; cursor: pointer; }
.yp-cover { position: absolute; inset: 0 0 52px; display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: opacity .2s ease; }
.yp:not(.is-paused) .yp-cover { opacity: 0; pointer-events: none; }
.yp.is-ended .yp-cover { background: #000; }
.yp-big { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.yp-ctrls { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .55)); color: #fff; }
.yp-b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.yp-b:hover { background: rgba(255, 255, 255, .12); }
.yp-time { font-size: 12.5px; white-space: nowrap; opacity: .9; }
.yp-bar { flex: 1; min-width: 40px; accent-color: var(--accent); }
.yp.is-fake-fs { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
.yp:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
/* the big play sign in the very middle of the video (the owner: centred, not high), the buttons' bar above the cover */
.yp-cover { inset: 0; }
.yp-ctrls { z-index: 2; }
.ln-player > .yp { position: absolute; inset: 0; aspect-ratio: auto; }
/* YouTube's own screens never show: before the first play the episode's picture, opaque; paused, solid bands over its title (top)
   and its link out (bottom), the frame dimmed between them; ended, black */
.yp.is-fresh .yp-cover { background-color: #000; background-size: cover; background-position: center; }
.yp.is-paused:not(.is-fresh) .yp-cover { background: linear-gradient(180deg, #000 0, #000 72px, rgba(0, 0, 0, .45) 130px, rgba(0, 0, 0, .45) calc(100% - 120px), #000 calc(100% - 52px), #000 100%); }
.yp.is-ended .yp-cover { background: #000; }
.yp.is-paused.is-ended .yp-cover { background: #000; }
.yp::after { content: ''; position: absolute; inset: 0 0 auto; height: 76px; background: linear-gradient(180deg, #000 0, #000 58px, rgba(0, 0, 0, 0)); opacity: 0; pointer-events: none; transition: opacity .6s ease; z-index: 1; }
.yp.is-starting::after { opacity: 1; transition: none; }
.yp.is-livid::after { display: none; }
.yp-cc { font-size: 12px; letter-spacing: .02em; border: 1.5px solid rgba(255, 255, 255, .55); height: 24px; min-width: 32px; border-radius: 6px; }
.yp-cc.is-on { background: #fff; color: #000; border-color: #fff; }
.yp.is-fresh .yp-cover { background-repeat: no-repeat; }
/* YouTube's own player, whole (no covers): it takes the clicks itself */
.yp.is-native .yp-frame, .yp.is-native .yp-frame iframe, .yp.is-native > iframe { pointer-events: auto; }
.yp.is-native::after { display: none; }
/* the manager's "⋯" never lies over a lesson's name: the words keep clear of its corner (the owner, 2026-12-03) */
.ln-ep:has(> .ln-ep-more) > .ln-ep-b, .ln-ep:has(> .ln-ep-more) > .ln-ep-d { padding-inline-end: 44px; }
.ln-ep-quiz:has(.ln-ep-more) .ln-ep-b { padding-inline-end: 44px; }
/* a swiped task: the buttons exactly as tall as the task's box, and nothing behind its round corners (the owner, 2026-12-03):
   the box's own space under it moves out to the swipe's frame, the frame and the layer behind take the box's own roundness */
.swipe-track > .agenda-item { margin-block-end: 0; }
.swipe-row:has(> .swipe-track > .agenda-item) { margin-block-end: 10px; border-radius: 14px; }
.swipe-track { border-radius: inherit; }
.swipe-action { border-radius: inherit; }

/* ===== "תכנון": the goals and the tasks in one screen (the owner, 2026-12-04) ===== */
.pl-day { padding: 12px 14px; margin-block-end: 12px; }
.pl-bar { height: 7px; border-radius: 99px; background: var(--line); margin-block-start: 9px; overflow: hidden; }
.pl-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s var(--ease); }
.pl-list { display: grid; gap: 12px; }
.pl-goal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.pl-goal-head { display: flex; gap: 12px; align-items: center; text-align: start; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.pl-goal-meta { min-width: 0; flex: 1; }
.pl-goal-title { margin: 0; font-size: var(--fs-md, 1rem); font-weight: 650; }
.pl-ring { position: relative; flex: none; width: 52px; height: 52px; }
.pl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring .or-track { fill: none; stroke: var(--line); stroke-width: 5; }
.pl-ring .or-fill { fill: none; stroke: var(--obj, var(--accent)); stroke-width: 5; stroke-linecap: round; }
.pl-ring-v { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 650; }
.pl-next { font-size: var(--fs-sm); padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.pl-task { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--surface-2); cursor: pointer; width: 100%; }
.pl-task.is-done .pl-task-title { text-decoration: line-through; color: var(--text-3); }
.pl-task-body { flex: 1; min-width: 0; }
.pl-task-title { font-weight: 560; }
.pl-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-3); cursor: pointer; }
.pl-task.is-done .pl-tick { background: var(--ok, #2faa6b); border-color: transparent; color: #fff; }
.pl-hour { flex: none; font-size: var(--fs-xs); }
.pl-lib { flex: none; display: inline-flex; gap: 4px; align-items: center; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, #8b5cf6 18%, transparent); color: #8b5cf6; }
.pl-empty { text-align: start; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #f59e0b 55%, transparent); background: color-mix(in srgb, #f59e0b 9%, transparent); color: #d97706; font-size: var(--fs-sm); cursor: pointer; }
.pl-sub { margin: 6px 0 -4px; font-size: var(--fs-sm); color: var(--text-2); }
.pl-loose { display: grid; gap: 8px; }
.pl-none { text-align: center; padding: 24px 8px; display: grid; gap: 12px; justify-items: center; }
.pl-newgoal { justify-self: start; }
.swipe-track > .pl-task { margin: 0; }
.swipe-row:has(> .swipe-track > .pl-task) { border-radius: 12px; }
@media (min-width: 900px) { .pl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .pl-sub, .pl-loose, .pl-none, .pl-newgoal { grid-column: 1 / -1; } }
.obj-view-head > div:first-child:not(.obj-head-ic) { flex: 1; min-width: 0; }

/* A row that scrolls sideways fades at the end with more to see, and at the start once scrolled away from it (the owner, 2026-12-04; the
   same fade as Lumora's categories): on the planning screen's filters and the library's topics. edgeFade() in ui.js sets the two classes. */
.edge-fade.is-more { -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 44px), transparent 100%); }
.edge-fade.is-back { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 100%); }
.edge-fade.is-back.is-more { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%); }
[dir="rtl"] .edge-fade.is-more, :root[dir="rtl"] .edge-fade.is-more { -webkit-mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(to left, #000 0, #000 calc(100% - 44px), transparent 100%); }
[dir="rtl"] .edge-fade.is-back, :root[dir="rtl"] .edge-fade.is-back { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px, #000 100%); mask-image: linear-gradient(to left, transparent 0, #000 36px, #000 100%); }
[dir="rtl"] .edge-fade.is-back.is-more, :root[dir="rtl"] .edge-fade.is-back.is-more { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 36px, #000 calc(100% - 44px), transparent 100%); }
/* no coloured stripe on the side of a box (the owner, 2026-12-04): a goal and a task are told apart by their own icon, tinted in their colour */
.pl-ic { flex: none; display: inline-grid; place-items: center; border-radius: 10px; color: var(--ic, var(--accent)); background: color-mix(in srgb, var(--ic, var(--accent)) 16%, transparent); }
.pl-ic-goal { width: 42px; height: 42px; border-radius: 13px; --ic: var(--obj, var(--accent)); }
.pl-ic-task { width: 28px; height: 28px; --ic: var(--tc, var(--accent)); }

/* "תכנון", polish pass (unslop's method, the owner's choices, 2026-12-04): sizes on the 4px scale, two weights, one icon size, quiet tiles
   (the colour of a goal lives in its ring only), no animated width, hover and keyboard focus states */
.pl-day { padding: 12px 16px; }
.pl-bar { height: 8px; margin-block-start: 8px; }
.pl-bar > i { width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .35s var(--ease); }
:root[dir="rtl"] .pl-bar > i { transform-origin: right center; }
.pl-goal { border-radius: 16px; }
.pl-goal-title { font-weight: 600; }
.pl-ring-v { font-weight: 500; }
.pl-next { padding: 8px 12px; border-radius: 8px; }
.pl-task { padding: 8px 12px; border-radius: 8px; transition: background-color .15s var(--ease); }
.pl-task:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface-2)); }
.pl-task-title { font-weight: 500; }
.pl-tick { transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.pl-tick:hover { border-color: var(--text-3); }
.pl-task:focus-visible, .pl-tick:focus-visible, .pl-goal-head:focus-visible, .pl-empty:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-ic { color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); border-radius: 8px; }
.pl-ic-goal { width: 40px; height: 40px; border-radius: 12px; }
.pl-ic-task { width: 28px; height: 28px; }
.pl-lib { padding: 0; border-radius: 0; background: none; color: var(--text-3); font-size: 12px; }
.pl-empty { padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--line); background: none; color: var(--text-2); }
.pl-empty b { color: var(--text); font-weight: 500; }
.pl-sub { margin: 8px 0 0; font-weight: 500; }
.swipe-row:has(> .swipe-track > .pl-task) { border-radius: 8px; }

/* מסלול, polish pass (unslop's method, the owner's choices, 2026-12-04): the shortcut chips in the planning screen's quiet style (a neutral
   icon tile and no hue of their own), no glow on a day's dots or on the writing bar, no gradient text on the rest-day mark, weights 500 and
   600 where they were 650 to 800. The three drifting rows, the greeting and the photo stay as they are. */
.pz-greet { font-weight: 600; }
.pz-hi { font-weight: 500; }
.pz-date { font-weight: 500; }
.pz-date .hero-day-mark { font-weight: 600; }
.pz-stat strong { font-weight: 600; }
.pz-stat span { font-weight: 500; }
.pz-hero .pz-stat.is-day strong { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.pz-chip { gap: 8px; padding-inline: 8px 16px; border-radius: 16px; }
.pz-chip-ic { border-radius: 8px; color: var(--text-2); background: color-mix(in srgb, var(--text) 7%, transparent); }
.pz-chip-ic .ic { stroke: var(--text-2); }
.pz-chip-dot { width: 8px; height: 8px; margin-inline: 12px 4px; box-shadow: none; }
.pz-chip-lead { font-weight: 600; }
.pz-chip-tail { font-weight: 500; color: var(--text-2); }
.pz-comp:focus-within { box-shadow: var(--pz-glass-sh), 0 0 0 2px var(--accent); }
.pz-comp-spark { color: var(--accent); }
.pz-comp-spark .ic { stroke: var(--accent); }
.pz-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== The day and night backgrounds (the owner, 2026-12-04) =====
   Day: the page in numinalis.com's own background (#EDE8EA, measured on the site), the boxes and both bars in a lighter tone of it instead
   of white, the lines in the site's burgundy at low opacity, the text in the site's ink (#323232). Night: the blue-black ramp, the page
   #0b0d14 with its cards a step above. No colour wash behind the page. The Library and the Profile keep exactly what they had (below). */
:root:not([data-theme="dark"]):not([data-contrast="high"]) {
  --bg: #EDE8EA; --bg-elevated: #F6F3F4; --bg-sunken: #E6E0E3;
  --surface: #F6F3F4; --surface-2: #EFEAEC; --surface-3: #E6E0E3;
  --text: #323232; --text-3: #625e66;   /* (the old grey #82868f read 3.0 to 1 on this page colour; this one reads 4.9) */
  --line: rgba(59, 2, 19, .12); --line-strong: rgba(59, 2, 19, .24);
  --glass-bg: rgba(246, 243, 244, .8); --glass-border: rgba(59, 2, 19, .10);
}
[data-theme="dark"] {
  --bg: #0b0d14; --bg-elevated: #11141c; --bg-sunken: #080a10;
  --surface: #11141c; --surface-2: #1a1e28; --surface-3: #222736;
  --glass-bg: rgba(17, 20, 28, .8); --glass-border: rgba(255, 255, 255, .08);
}
:root:not([data-contrast="high"]) body::before { background: var(--bg); }
/* the Library and the Profile: what they had before, untouched */
:root:not([data-theme="dark"]) .view[data-view="learn"], :root:not([data-theme="dark"]) .view[data-view="profile"] {
  --bg: #f8f6fb; --bg-elevated: #ffffff; --bg-sunken: #e9e9ef; --surface: #ffffff; --surface-2: #f7f7fa; --surface-3: #ececef;
  --text: #11131a; --text-3: #82868f; --line: rgba(60, 60, 67, .14); --line-strong: rgba(60, 60, 67, .28);
  --glass-bg: rgba(255, 255, 255, .72); --glass-border: rgba(255, 255, 255, .55);
}
[data-theme="dark"] .view[data-view="learn"], [data-theme="dark"] .view[data-view="profile"] {
  --bg: #06070d; --bg-elevated: #16161a; --bg-sunken: #0a0a0c; --surface: #1b1b20; --surface-2: #232329; --surface-3: #2c2c33;
  --glass-bg: rgba(28, 28, 33, .72); --glass-border: rgba(255, 255, 255, .1);
}
:root:not([data-contrast="high"]) body[data-view="learn"]::before, :root:not([data-contrast="high"]) body[data-view="profile"]::before {
  background:
    radial-gradient(65% 48% at 0% 0%, var(--wash-a), transparent 70%),
    radial-gradient(55% 40% at 50% 0%, var(--wash-b), transparent 72%),
    radial-gradient(60% 50% at 100% 0%, var(--wash-c), transparent 70%),
    radial-gradient(70% 45% at 100% 72%, var(--wash-d), transparent 75%),
    linear-gradient(180deg, var(--wash-top) 0%, var(--wash-bottom) 62%);
}
/* the menu button's box as big as the search button's beside it */
.hb { width: 34px; height: 34px; border-radius: 12px; padding-inline: 7px; }
/* the main menu on the same page colour as the screens, without the coloured orbs that drifted behind it */
.nm-bg, [data-theme="dark"] .nm-bg { background: var(--bg); }
.nm-orb { display: none; }
/* two greys fixed in the code that fell short on the page colour (the settings' group titles, the ranking table's column heads) */
:root:not([data-contrast="high"]) .ios-group-t { color: var(--text-3); }
:root:not([data-contrast="high"]) .bd-head { color: var(--bd-dim); }

/* Windows (sheets, dialogs, the command palette) in day mode take the page colour, with their boxes and fields a step lighter inside,
   as on the screens themselves (the owner, 2026-12-04). By night they stay a step above the page. The Library's own windows are not touched. */
:root:not([data-theme="dark"]):not([data-contrast="high"]) .sheet:not(.ln-sheet),
:root:not([data-theme="dark"]):not([data-contrast="high"]) .sheet:not(.ln-sheet) .sheet-foot,
:root:not([data-theme="dark"]):not([data-contrast="high"]) .modal { background: var(--bg); }

/* "התגמול שלי בסיום המטרה", redrawn in the quiet style (unslop's method): no orange tint, a neutral icon tile, one hairline,
   two weights, the gift in the text colour; the reward written on a step is plain secondary text too */
.obj-reward-card { gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.obj-reward-ic { width: 36px; height: 36px; border-radius: 8px; color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); }
.obj-reward-t { gap: 4px; }
.obj-reward-t b { font-weight: 600; }
.obj-reward-t .small { font-weight: 400; color: var(--text-2); }
.obj-ms-rw { color: var(--text-2); }

/* The Library and the Profile are dark screens in day mode too, so the bars over them are dark as well, in both modes (they were a pale
   or tinted glass over a dark page, the owner, 2026-12-04). The screens themselves are untouched. */
body[data-view="learn"] .topbar, body[data-view="learn"] .bottomnav,
body[data-view="profile"] .topbar, body[data-view="profile"] .bottomnav {
  color-scheme: dark; color: var(--text);
  --text: #f2f2f5; --text-2: #a8abb4; --text-3: #8f939c; --text-inverse: #11131a;
  --bg: #07080d; --bg-elevated: #16161a; --bg-sunken: #0a0a0c; --surface: #1b1b20; --surface-2: #232329; --surface-3: #2c2c33;
  --line: rgba(235, 235, 245, .14); --line-strong: rgba(235, 235, 245, .26);
  --glass-bg: rgba(7, 8, 13, .9); --glass-border: rgba(255, 255, 255, .08);
  --accent-text: #8b7dff;
}
/* "תכנון": the tasks that belong to no goal sit straight on the page, so each is a real box (the box colour and a hairline), not the
   inner tone that only reads inside a goal's card */
.pl-loose .pl-task { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pl-loose .pl-task:hover { background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
/* the fourteen-day bars: a label never breaks inside a word ("היום" was split in two); today's, a little wider than its bar, spills evenly to both sides */
.pf-bar-n, .pf-bar-d { white-space: nowrap; }
.pf-bar { overflow: visible; }

/* The Path's top bar (the owner, 2026-12-04, "the sky continues behind the bar"), driven by the scroll itself: --pz-p, 0 at the top and 1 once the
   photo has gone (set on the bar by today-scene.js, eased), so nothing switches: the bar's colour, the veil, the box of every button and its icon
   cross over together as the finger moves (at the very top the bar has no background at all, only the icons over the sky, and the pair's capsule draws
   itself in with the scroll). A cap of the sky's own colour fills
   the strip above the photo (measured there too). The photo, the greeting and everything below are untouched. */
body[data-view="today"] .topbar { --pz-p: 0;
  background-color: color-mix(in srgb, var(--bg-elevated) calc(var(--pz-p) * 100%), transparent);
  border-block-end-color: color-mix(in srgb, var(--line) calc(var(--pz-p) * 100%), transparent);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
body[data-view="today"] .topbar::before { content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none; opacity: 0; transition: none; background: none; }
/* the two single buttons (search, menu): dark glass over the sky, the app's own surface once scrolled */
body[data-view="today"] .topbar > .btn, body[data-view="today"] .topbar > .hb {
  background: color-mix(in srgb, var(--surface) calc(var(--pz-p) * 100%), transparent);
  border-color: color-mix(in srgb, var(--glass-border, var(--line)) calc(var(--pz-p) * 100%), transparent);
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .2s var(--ease); }
/* the day-night and language buttons are one pair, always close (2px apart), and the box that holds them draws itself around them as the page scrolls:
   over the sky two glass buttons side by side, then one capsule (its padding and its fill grow, the glass of each button fades out). Every box
   (menu, search, and each of the pair) is the same 4px from the next in every state (the capsule's outer edge counts), and the buttons are one size; only the profile picture stands apart. */
body[data-view="today"] .topbar { gap: 4px; }
body[data-view="today"] .topbar .topbar-group { gap: 4px; padding: calc(2px * var(--pz-p)); border-radius: 999px; box-shadow: none; border-color: transparent;
  background: color-mix(in srgb, var(--line) calc(35% * var(--pz-p)), transparent); -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
body[data-view="today"] .topbar .topbar-group .btn-icon { width: 34px; height: 34px; min-height: 34px; border-radius: calc(12px + 5px * var(--pz-p));
  background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .2s var(--ease); }
/* icons and the menu's lines cross from white to the ink of the page */
body[data-view="today"] .topbar .btn .ic, body[data-view="today"] .topbar .btn svg { stroke: color-mix(in srgb, var(--text-2) calc(var(--pz-p) * 100%), #fff); transition: none;
  filter: drop-shadow(0 1px 5px color-mix(in srgb, rgba(10, 14, 50, .55) calc((1 - var(--pz-p)) * 100%), transparent)); }
body[data-view="today"] .topbar .hb { filter: drop-shadow(0 1px 5px color-mix(in srgb, rgba(10, 14, 50, .55) calc((1 - var(--pz-p)) * 100%), transparent)); }
body[data-view="today"] .topbar .hb .hb-l { background: color-mix(in srgb, var(--text) calc(var(--pz-p) * 100%), #fff); }
body[data-view="today"] .topbar .hb .hb-l.is-3 { background: color-mix(in srgb, var(--accent) calc(var(--pz-p) * 100%), rgba(255, 255, 255, .72)); }
.pz-hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; inset-inline: calc(var(--s4) * -1);
  inset-block-start: calc(var(--pz-hero-y, 88px) * -1); height: var(--pz-cap-h, 12px);
  background: linear-gradient(90deg, rgb(52, 72, 177), rgb(63, 78, 178) 35%, rgb(67, 81, 179) 60%, rgb(67, 81, 178)); }

/* Inner tabs (the owner, 2026-12-04, unslop's method): the single-choice strips (planning, tasks, goals, insights, workout, calendar, settings, the days of
   a timetable) drop the full pill, the outline and the accent tint. Each tab is a quiet tonal box with a size-based radius (10), and the chosen one is a
   raised surface with a hairline and one soft shadow, the capsule that slides to it, as in the app's segmented controls. */
.chips-scroll.glass-tabs > .chip { border-color: transparent; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--text-2); font-weight: 500; }
.chips-scroll.glass-tabs > .chip[aria-pressed="true"] { background: transparent; border-color: transparent; color: var(--text); font-weight: 600; }
.chips-scroll .glass-pill { border-radius: 10px; }
.chips-scroll .glass-pill::after { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.chips-scroll.glass-tabs > .chip:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--text) 9%, transparent); }
.chips-scroll.glass-tabs > .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the label stays above the raised capsule that slides under the chosen tab */
.chips-scroll.glass-tabs > .chip { position: relative; z-index: 3; }

/* The back button (the owner, 2026-12-04, unslop's method): a small quiet box with the arrow, like the edit and delete boxes, instead of blue text with a
   chevron (the accent is for the one main action of a screen). The name of the place it leads to stays for the screen reader and as the tooltip. */
.ios-back { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 34px; padding: 0; gap: 0; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2); color: var(--text-2); cursor: pointer; line-height: 1;
  transition: background-color .15s var(--ease), color .15s var(--ease); }
.ios-back:hover { background: var(--surface-3); color: var(--text); }
.ios-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ios-back .ios-back-ic { display: grid; place-items: center; }
.ios-back .ic { width: 16px; height: 16px; stroke: currentColor; }
.ios-back > span:not(.ios-back-ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the back arrow: no coloured circle behind it, the arrow in the button's own text colour */
.ios-back .ios-back-ic { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; color: inherit; }
.ios-back .ios-back-ic svg { stroke: currentColor; stroke-width: 2; width: 16px; height: 16px; }
/* the single-choice tab strips have no magnifying lens (a second, larger copy of the labels on top of the real ones: the label read twice while the
   capsule was dragged); the capsule just slides, raised, under the labels */
.chips-scroll .glass-lens { display: none; }
/* dragging the capsule of a tab strip: the same raised surface, a little deeper shadow and a touch larger, no iridescent glass edge (pink and blue light
   on its sides) and no blur; stated with more weight than the lens rules above, which it has to beat */
:root .chips-scroll.glass-tabs.glass-drag .glass-pill::after, :root .chips-scroll.glass-tabs.glass-press .glass-pill::after,
:root[data-theme="dark"] .chips-scroll.glass-tabs.glass-drag .glass-pill::after, :root[data-theme="dark"] .chips-scroll.glass-tabs.glass-press .glass-pill::after {
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-2); -webkit-backdrop-filter: none; backdrop-filter: none; transform: scale(1.04); }
.chips-scroll .glass-pill::before { display: none; }

/* ===== The shop (the owner, 2026-12-04, unslop's method) =====
   Price tiles (icon, the price under it; the words and the buy button in a small popup), quiet cards for the characters, skins, statues and ships, an event with no
   stars or gold, the credit's amounts as one control. The bank card of the credit is not touched (.cr-flip). */
.shop-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-block: 8px; }
.shop-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; cursor: pointer; min-height: 88px; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.shop-tile:hover { background: var(--surface-2); border-color: var(--line-strong); }
.shop-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-tile.is-off .shop-tile-ic, .shop-tile.is-off .shop-tile-p { opacity: .55; }
.shop-tile-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); background: color-mix(in srgb, var(--text) 6%, transparent); }
.shop-tile-ic .ic { stroke: currentColor; }
.shop-tile-p { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; }
.shop-pop { position: fixed; z-index: 95; display: grid; gap: 8px; padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--sh-3); outline: 0; }
.shop-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-pop-h b { font-weight: 600; font-size: var(--fs-md); }
.shop-pop-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.shop-pop-x:hover { background: var(--surface-3); color: var(--text); }
.shop-pop-x:focus-visible, .shop-pop-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-pop-t { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.shop-pop-why { margin: 0; font-size: var(--fs-xs); color: var(--text-3); }
.shop-pop .cs-goal { margin: 0; }
.shop-pop-buy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; }

/* cards: characters, skins, statues */
.shop-card, [data-theme="dark"] .shop-card, .shop-card.is-skin, [data-theme="dark"] .shop-card.is-skin { background: var(--surface); box-shadow: none; border: 1px solid var(--line); border-radius: 12px; }
.shop-card:hover { border-color: var(--line-strong); }
.shop-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-card img, .shop-card .shop-loop { border-radius: 8px; }
.shop-card .n { font-weight: 600; }
.shop-card .m b, [data-theme="dark"] .shop-card .m b { color: var(--text); font-weight: 600; }
.shop-card .own { color: var(--text-2); font-weight: 500; }
.shop-card .own::before { content: '✓ '; color: var(--ok); }
.shop-mythic, .shop-rar, .shop-chip { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text-2); border: 1px solid var(--line); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); letter-spacing: 0; font-weight: 500; border-radius: 6px; padding: 2px 8px; }
.shop-rail .shop-ic, .shop-rt .shop-ic { border-radius: 10px; box-shadow: none; }

/* the event: no stars, no gold, no gradient text; the picture is the moment */
.splash h3 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-weight: 650; letter-spacing: 0; }
.sp-buy { box-shadow: none; }
.sp-stars { gap: 8px; }

/* the credit's amounts: one control, the chosen amount raised (like the app's segmented controls) */
.cr-amounts { gap: 2px; padding: 3px; border-radius: 12px; background: var(--bg-sunken); border: 1px solid var(--line); }
.cr-amt { padding: 10px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); }
.cr-amt.is-on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); border: 0; }
.cr-amt b { font-weight: 600; font-size: 18px; }
.cr-amt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* tabs of Lumora, the profile and the library: the same raised capsule, quiet boxes, no tint, no blur, no lens */
.sc-tabs { border-radius: 12px; background: var(--bg-sunken); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line); }
.sc-tab { position: relative; z-index: 3; border-radius: 9px; font-weight: 500; color: var(--text-2); }
.sc-tab.is-on { background: transparent; color: var(--text); font-weight: 600; }
.sc-tabs .glass-lens { display: none; }
.sc-tabs .glass-pill { border-radius: 9px; }
:root .sc-tabs.glass-tabs .glass-pill::after,
:root .sc-tabs.glass-tabs.glass-drag .glass-pill::after,
:root .sc-tabs.glass-tabs.glass-press .glass-pill::after,
:root[data-theme="dark"] .sc-tabs.glass-tabs.glass-drag .glass-pill::after,
:root[data-theme="dark"] .sc-tabs.glass-tabs.glass-press .glass-pill::after {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sc-tabs .glass-pill::before::before { display: none; }
.ln-chip { border-radius: 10px; border-color: transparent; background: rgba(255, 255, 255, .08); font-weight: 500; }
.ln-chip:hover { background: rgba(255, 255, 255, .14); }
.ln-chip.is-on { background: rgba(255, 255, 255, .92); color: #07080d; border-color: transparent; font-weight: 600; }
/* the shop's side rail: the chosen part is a raised tile (no purple gradient, no glow), the event's tile like the others */
.shop-rt.is-on .shop-ic { color: var(--text); background: var(--surface); border-color: var(--line-strong); box-shadow: var(--sh-1); }
.shop-rt.is-on::before { background: var(--accent); }
.shop-rt-event .shop-ic { color: var(--text-2); background: var(--surface); border-color: var(--line); }
.shop-rt-event.is-on .shop-ic { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
/* the event panel over the picture: the page's own glass, no cream and gold; the buttons as the app's buttons */
.splash .sp-glass { background: color-mix(in srgb, var(--bg-elevated) 88%, transparent); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.splash .sp-role, .splash .sp-ended { color: var(--text-2); }
.sp-notify, .sp-buy { border-radius: 10px; box-shadow: none; }
.sp-notify { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.sp-buy { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 600; }
/* the ships */
.shop-ship, .shop-ship.is-owned { background: var(--surface); box-shadow: none; border: 1px solid var(--line); border-radius: 12px; }
.shop-ship-mine { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.shop-ship .n { font-weight: 600; }
.shop-ship-buy .btn, .shop-ship .btn { border-radius: 10px; font-weight: 500; }
.shop-pack-own { color: var(--text-2); font-weight: 500; }
/* the popup's X exactly in the middle of its box (the button's own padding was narrower than the icon and pushed it aside) */
.shop-pop-x { padding: 0; line-height: 0; }
.shop-pop-x .ic { display: block; margin: 0; }

/* ===== Inside the cards (the owner, 2026-12-04): the boxes of the character, skin, collector and statue sheets in the quiet style (their animations and the status window are not touched) ===== */
.av-lore-text::first-letter { font-size: inherit; line-height: inherit; color: inherit; }
.av-info-role { color: var(--text-2) !important; font-weight: 400; }
.av-lore-pill { border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; color: var(--text-2); font-weight: 500; }
.av-badge, .av-badge-mythic, .av-badge-lg { background: var(--surface-2) !important; color: var(--text-2) !important; border: 1px solid var(--line); box-shadow: none !important; letter-spacing: 0; font-weight: 500; border-radius: 6px; }
.av-lore-rule::before, .av-lore-rule::after { background: var(--line); }
/* (the status window, the Solo Leveling design, stays exactly as it was: the owner, 2026-12-04) */
/* the price chip and the tier chips on a statue's or collector's sheet: the same quiet box (their cream and gold rules are more specific) */
.av-lore-pill, .tier-collector .av-lore-pill, .is-statue .av-lore-pill { background: var(--surface-2) !important; border-color: var(--line) !important; color: var(--text-2) !important; box-shadow: none !important; }

/* ===== Inside the character's card (the owner, 2026-12-04): the journey card, the boxes of what each character gives and of what a skill means, the side stripes,
   and the notes of the status window. The holographic card, its glare, the ring and the status window itself keep every animation and their look. The boxes take the
   skill's colours, not grey: the app's one accent for the journey (a solid text, a soft tile, a solid bar), the character's own colour (--r) for its boxes, hairlines
   in a tint of it; no gradient figures, no glow, no side stripes. ===== */
/* the journey to the character */
.gx { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.gx-kicker { color: var(--accent-text); font-weight: 600; letter-spacing: 0; }
.gx-count { border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.gx-pct { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text); font-weight: 600; letter-spacing: 0; }
.gx-row { border-radius: 12px; }
.gx-row-ic { border-radius: 8px; color: var(--accent-text); background: var(--accent-soft); box-shadow: none; }
.gx-row-bar i { background: var(--accent); box-shadow: none; }
.gx-row-st { background: none; padding: 0; border-radius: 0; color: var(--accent-text); font-weight: 600; }
/* what each character gives, the steps, the meaning in practice: the character's own colour in the boxes, no stripe at the side */
.sk-effect { border-inline-start: 0; padding-inline: 0; }
.sk-plain::after { display: none; }
.sk-foot li { border-radius: 8px; }
.sk-tile { border-radius: 12px; }
.sk-tile-ic { border-radius: 8px; }
.sk-rules-h { font-weight: 600; }
/* the notes of the status window: the window stays as it is; a note is a neutral box with a hairline, its label small and toned (the colour only where it means something),
   label and text on the same line as before */
.sys-note, .sys-note.is-warn, .sys-note.is-good, .sys-note.is-cold { border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: var(--sys-ink); }
.sys-note { --k: var(--sys-2); } .sys-note.is-warn { --k: #fbbf24; } .sys-note.is-good { --k: #34d399; } .sys-note.is-cold { --k: #818cf8; }
.sys-note-tag, .sys-note.is-warn .sys-note-tag, .sys-note.is-good .sys-note-tag, .sys-note.is-cold .sys-note-tag { background: none; color: var(--k); border-radius: 0; padding: 0; font-weight: 600; letter-spacing: 0; }

/* the rarity labels keep one quiet colour each, in the text and a hairline (not a filled badge): Mythic in the app's accent, Collector in amber */
.shop-mythic, .av-badge-mythic, .shop-card.is-skin .shop-mythic { color: var(--accent-text) !important; border-color: color-mix(in srgb, var(--accent) 38%, var(--line)) !important;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)) !important; }
.shop-rar, .tier-collector .av-badge, .sp-stars .shop-rar { color: var(--warn) !important; border-color: color-mix(in srgb, var(--warn) 40%, var(--line)) !important;
  background: color-mix(in srgb, var(--warn) 10%, var(--surface)) !important; }
/* a note's label and its words on one line, one size and one baseline */
.sys-note { align-items: baseline; }
.sys-note-tag, .sys-note.is-warn .sys-note-tag, .sys-note.is-good .sys-note-tag, .sys-note.is-cold .sys-note-tag { font: 600 12.5px/1.5 system-ui, sans-serif; }
/* the library's topic buttons (the owner, 2026-12-04): one box for all, no outline on the others; the chosen one is one step lighter with a hairline INSIDE its box and white text,
   not a big white block (which looked taller than its neighbours) */
.ln-chip { border: 1px solid transparent; min-height: 42px; box-sizing: border-box; background: rgba(255, 255, 255, .08); color: var(--ln-fg); }
.ln-chip.is-on { background: #fff; background-clip: padding-box; color: #07080d; border-color: transparent; box-shadow: none; font-weight: 600; }
.ln-chip { background-clip: padding-box; }   /* (every box painted to the same edge, so the white one is exactly as big as its neighbours) */
.ln-chip:hover:not(.is-on) { background: rgba(255, 255, 255, .14); }

/* Lumora's tab bar (the owner, 2026-12-04, unslop's method): the bar keeps its place, its full width and its fade; the tabs are quiet boxes with a size-based radius, the
   chosen one a raised capsule with a hairline that slides under it (the same as the other inner tabs), and no accent underline or accent text */

/* ---- 2026-12-04 unslop: Path "daily circle" card and the open / waiting rows. Flat surface and hairline, no glass, glow or gradient; one accent for the main action; icon boxes neutral (amber only on the overdue mark, where it means something). ---- */
.pz .cy-card { --pn-glow: var(--accent-rgb, 99, 102, 241); gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--sh-1); }
.pz .cy-ic { width: 32px; height: 32px; border-radius: 10px; color: var(--text-2); background: var(--surface-2, color-mix(in srgb, var(--text) 6%, transparent)); box-shadow: inset 0 0 0 1px var(--line); }
.pz .cy-h { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.pz .cy-k { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.pz .cy-intent q { font-weight: 500; }
.pz .cy-intent q::before { color: var(--text-3); }
.pz .cy-card .input, .pz .cy-card .textarea { border-radius: 10px; border: 1px solid var(--line); background: var(--bg, var(--surface)); box-shadow: none; }
.pz .cy-card .input:focus, .pz .cy-card .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pz .cy-card .btn { border-radius: 10px; padding-inline: 14px; font-weight: 500; border: 1px solid var(--line); color: var(--text); background: transparent; transition: background .15s; }
.pz .cy-card .btn:hover { background: color-mix(in srgb, var(--text) 6%, transparent); transform: none; }
.pz .cy-card .btn:active { transform: scale(.98); }
.pz .cy-card .btn:focus-visible, .pz .cy-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pz .cy-card .btn-primary { border-color: transparent; color: #fff; background: var(--accent); box-shadow: none; }
.pz .cy-card .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); box-shadow: none; transform: none; }
.pz .cy-dot { border-color: var(--line-strong, var(--text-3)); }
.pz .cy-dot + .cy-dot::before { background: var(--line-strong, var(--text-3)); opacity: .5; }
.pz .cy-dot.is-on { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.pz .cy-link { color: var(--text-2); }
/* rows: 21 open items from earlier days, 22 waiting for a slot */
.pz-ico { border-radius: 10px; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pz-alert.is-warn .pz-ico { color: var(--o); }
.pz-ico.is-num { font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.pz-alert.is-warn .pz-ico.is-num { color: var(--text); }
.pz-alert-b strong { font-weight: 600; letter-spacing: 0; }
.pz-alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }

/* ---- 2026-12-04 unslop: Lumora inner chips (feed categories, chats filter, people lists): the same as the other inner tabs: a quiet tonal box (radius 10), the chosen one a raised surface with a hairline ---- */
.view[data-view="social"] .lf-cat, .view[data-view="social"] .sc-chip { height: 36px; padding-inline: 12px; border: 1px solid transparent; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: none; }
.view[data-view="social"] .lf-cat:hover, .view[data-view="social"] .sc-chip:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
.view[data-view="social"] .lf-cat:focus-visible, .view[data-view="social"] .sc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.view[data-view="social"] .sc-chip b { font-size: 12px; font-weight: 500; padding: 0; background: none; color: var(--text-3); font-variant-numeric: tabular-nums; }
.view[data-view="social"] .lf-cat.is-on, .view[data-view="social"] .sc-chip.is-on { color: var(--text); font-weight: 600; background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.view[data-view="social"] .sc-chip.is-on b { background: none; color: var(--text-2); }

/* ---- 2026-12-04 unslop: "new circle" row: a neutral icon box (radius by size), plain title, no accent tint or heavy outline ---- */
.view[data-view="social"] .sc-crow.is-new .sc-crow-ic { width: 48px; height: 48px; border-radius: 12px; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.view[data-view="social"] .sc-crow.is-new .sc-crow-ic .ic { width: 22px; height: 22px; }
.view[data-view="social"] .sc-crow.is-new .sc-crow-t strong { color: var(--text); font-weight: 600; }
.view[data-view="social"] .sc-crow.is-new:hover .sc-crow-ic { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
.view[data-view="social"] .sc-crow.is-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* ---- 2026-12-04 unslop: category markers. No glowing dots: a small flat rounded swatch in the category's own colour (the colour is data), the same in the Path rows and chips, the legends, the calendar and the settings ---- */
.pz-row-dot, .pz-chip-dot, .chip-dot, .gr-cat-dot, .pz-rr-legend i { border-radius: 3px; box-shadow: none; }
.pz-row-dot { width: 10px; height: 10px; margin-inline: 4px; }
.pz-chip-dot { width: 10px; height: 10px; }
.chip-dot { width: 10px; height: 10px; }
.pz-rr-legend i { width: 8px; height: 8px; }
.pz-rr-dot { box-shadow: 0 0 0 2px var(--bg); }
.ins-pulse .pz-rr-dot { box-shadow: 0 0 0 2px var(--surface); }

/* the reset-score button: the icon and the words on one centre line */
.gr-reset { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.gr-reset .ic, .gr-reset svg { display: block; flex: none; margin: 0; vertical-align: 0; }
.ct-dot { width: 10px; height: 10px; border-radius: 3px; }
.ct-tile { border-radius: 12px; }
.month-dot { width: 6px; height: 6px; border-radius: 2px; box-shadow: none; }
.gr-reset .ic, .gr-reset svg { transform: translateY(1.5px); }

/* ---- 2026-12-04 unslop: settings "what counts toward the rank" (.gr-*): flat surfaces and hairlines, radius by size, neutral icon boxes, one flat accent, no pills, dashes, glow or gradient ---- */
.gr-count { padding: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gr-hero { background: var(--surface); }
.gr-rank { letter-spacing: 0; font-weight: 600; }
.gr-points b { letter-spacing: 0; font-weight: 600; }
.gr-kicker { letter-spacing: 0; font-weight: 500; color: var(--text-2); }
.gr-bar i { background: var(--accent); }
.gr-split > div, .gr-tile, .gr-step { border-radius: 12px; }
.gr-tile b, .gr-split b { font-weight: 600; }
.gr-step.is-now { border-color: var(--line-strong, var(--line)); box-shadow: var(--sh-1); }
.gr-step.is-now .gr-step-n { background: var(--text); color: var(--bg); }
.gr-step-n { border-radius: 8px; font-weight: 600; }
.gr-cat { border-radius: 12px; gap: 12px; padding: 14px; }
.gr-cat-h b { font-weight: 600; }
.gr-cat-dot { border-radius: 3px; }
.gr-x { position: relative; width: 28px; height: 28px; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.gr-x::after { content: ''; position: absolute; inset: -8px; }
.gr-x:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.gr-x:focus-visible, .gr-chip:focus-visible, .gr-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gr-chip { border: 1px solid transparent; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-2); font-weight: 500; }
.gr-chip:hover { border-color: var(--line); background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.gr-sub { font-weight: 500; }
.gr-w-v { font-weight: 600; }

/* night: the chosen Lumora chip is the page's own light ink (a soft white, from the palette) with the page colour as its text, as the chosen topic in the Library */
:root[data-theme="dark"] .view[data-view="social"] .lf-cat.is-on, :root[data-theme="dark"] .view[data-view="social"] .sc-chip.is-on { background: var(--text); border-color: transparent; color: var(--bg); box-shadow: none; }
:root[data-theme="dark"] .view[data-view="social"] .sc-chip.is-on b { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .view[data-view="social"] .lf-cat.is-on, :root:not([data-theme="light"]) .view[data-view="social"] .sc-chip.is-on { background: var(--text); border-color: transparent; color: var(--bg); box-shadow: none; } :root:not([data-theme="light"]) .view[data-view="social"] .sc-chip.is-on b { color: color-mix(in srgb, var(--bg) 70%, var(--text)); } }

/* the habits to quit, in the daily circle: a row per habit with one confirm button */
.pz .cy-habits { display: grid; gap: 8px; }
.pz .cy-habit { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.pz .cy-habit-n { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 2026-12-04 unslop: the level tags beside a name (Plus, Pro, Magnum): a quiet tonal box with the level's own hue in the text, no metallic gradient or glow ---- */
.lvl-tag { --lt: #7a8499; height: 18px; padding: 0 6px; border-radius: 6px; font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, var(--lt) 70%, var(--text)); background: color-mix(in srgb, var(--lt) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lt) 28%, transparent); }
.lvl-tag.is-plus { --lt: #7a8499; color: color-mix(in srgb, var(--lt) 70%, var(--text)); background: color-mix(in srgb, var(--lt) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lt) 28%, transparent); }
.lvl-tag.is-pro { --lt: #c28a0a; color: color-mix(in srgb, var(--lt) 70%, var(--text)); background: color-mix(in srgb, var(--lt) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lt) 28%, transparent); }
.lvl-tag.is-magnum { --lt: #8e4fd8; color: color-mix(in srgb, var(--lt) 70%, var(--text)); background: color-mix(in srgb, var(--lt) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lt) 28%, transparent); }

/* ---- 2026-12-04 unslop: Lumora, the rest: the four counters (no rainbow icon tiles), the test-world marker (quiet amber text, no glow or dark pill), the test circle row, the podium ---- */
.view[data-view="social"] .sc .sc-kpi .sc-kpi-ic, .view[data-view="social"] .sc-kpi.is-green .sc-kpi-ic, .view[data-view="social"] .sc-kpi.is-orange .sc-kpi-ic,
.view[data-view="social"] .sc-kpi.is-blue .sc-kpi-ic, .view[data-view="social"] .sc-kpi.is-violet .sc-kpi-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.view[data-view="social"] .sc-kpi-ic svg, .view[data-view="social"] .sc-kpi-ic .ic, .view[data-view="social"] .sc-kpi-ic .logo-bird { stroke: currentColor; width: 22px; height: 22px; }
.view[data-view="social"] .sc-kpi-ic .logo-bird-line { color: currentColor; }
.view[data-view="social"] .sc-kpi .sc-kpi-n { min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong, var(--line)); inset-block-end: -6px; inset-inline-end: -6px; }
.view[data-view="social"] .sc-kpi { --kc: var(--text); }
.view[data-view="social"] .sc-kpi > .sc-kpi-l { font-weight: 500; }
.test-seal { height: 20px; padding: 0 8px; border-radius: 6px; font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, #b7791f 75%, var(--text)); background: color-mix(in srgb, #d9a325 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9a325 32%, transparent); }
.test-seal i { box-shadow: inset 0 0 0 1.2px currentColor; }
.test-seal i::after { background: currentColor; box-shadow: none; inset: 3.5px; }
.sc-crow.is-test { background: none; border-radius: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9a325 30%, transparent); }
.cc-hero.is-test { box-shadow: inset 0 0 0 1px color-mix(in srgb, #d9a325 30%, transparent); }
.sc-chip-s { border-radius: 6px; font-weight: 600; color: color-mix(in srgb, #b7791f 75%, var(--text)); background: color-mix(in srgb, #d9a325 14%, transparent); }

/* ---- 2026-12-04 unslop: Lumora chats and people lists lie straight on the page (no card around them), the last line of a chat says when it was sent or seen,
   a follower row has its actions, the post-order menu is a small popover, the new-post window is quiet ---- */
.sc-group.is-flat { background: none; box-shadow: none; border-radius: 0; overflow: visible; gap: 2px; }
.sc-group.is-flat .sc-row { padding: 10px 0; border-radius: 12px; gap: 14px; }
.sc-group.is-flat .sc-row + .sc-row::before { display: none; }
.sc-group.is-flat .sc-row:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.sc-group.is-flat .sc-who strong, .sc-group.is-flat .sc-name { font-weight: 600; }
.sc-group.is-flat .sc-chev { display: none; }
.sc-ago { font-size: 12.5px; line-height: 1.3; color: var(--text-3); }
.sc-chat-row.is-unread .sc-ago { color: var(--text-2); }
.sc-chat-row .sc-time { display: none; }
.sc-chat-row .sc-unread { min-width: 20px; height: 20px; padding-inline: 6px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--accent); color: #fff; }
.sc-acts { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.sc-acts .btn { height: 34px; min-height: 34px; padding-inline: 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.sc-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; }
.sc-x:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.sc-x:focus-visible, .lf-pop-i:focus-visible, .lf-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-x .ic { display: block; }

/* the filter button: its icon on the box's centre; the menu is small, as wide as its words */
.lf-filterbtn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; }
.lf-filterbtn .ic, .lf-filterbtn svg { display: block; margin: 0; }
.lf-pop { position: absolute; z-index: 30; width: max-content; min-width: 148px; max-width: calc(100vw - 32px); padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-2, 0 8px 24px -12px rgba(0, 0, 0, .35)); }
.lf-pop-i { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; height: 40px; padding-inline: 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--text); text-align: start; cursor: pointer; }
.lf-pop-i:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.lf-pop-i.is-on { font-weight: 600; }
.lf-pop-i .ic { color: var(--text-2); flex: none; }

/* the home composer and the new-post window */
.lf-compose-t { border-radius: 12px; font-size: 14.5px; }
.lf-tools { gap: 6px; }
.lf-tool { width: 38px; height: 38px; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 600; }
.lf-tool:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.lf-tool.is-on { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.lf-tool .ic { display: block; }
.lf-area { border-radius: 10px; }
.lf-emoji { border-radius: 12px; }
.lf-editor .lf-cats.is-pick { margin-block: 12px 4px; }
.sc-chat-row .sc-ago { font-size: 13px; color: var(--text-3); }
.sc-chat-row.is-unread .sc-who-top .sc-name, .sc-chat-row.is-unread .sc-who-top strong { font-weight: 700; }
.cm-add { border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.cm-add:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.cm-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the Lumora mark on the home tab, at the start of the title and the line under it (no wordmark beside it, no glow) */
.sc-intro-head { display: flex; align-items: center; gap: 14px; }
.sc-intro-mark { flex: none; width: 52px; height: 52px; border-radius: 24%; display: block; }
.sc-intro-ts { display: grid; gap: 2px; min-width: 0; }
.sc-intro-t { font-weight: 600; letter-spacing: 0; }

/* the post window lives outside the Lumora view, so its category tabs take the same inner-tab look here (a quiet tonal box, the chosen one a raised surface with a hairline; soft white at night) */
.lf-editor .lf-cat { height: 36px; padding-inline: 12px; border: 1px solid transparent; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: none; }
.lf-editor .lf-cat:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
.lf-editor .lf-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lf-editor .lf-cat.is-on { color: var(--text); font-weight: 600; background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
:root[data-theme="dark"] .lf-editor .lf-cat.is-on { background: var(--text); border-color: transparent; color: var(--bg); box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lf-editor .lf-cat.is-on { background: var(--text); border-color: transparent; color: var(--bg); box-shadow: none; } }
/* the filter button: no side padding (the chip rule would squeeze its box and push the icon off the centre); the funnel's drawing sits a little low, so it is lifted */
.view[data-view="social"] .lf-filterbtn { padding: 0; width: 36px; }
.lf-filterbtn .ic, .lf-filterbtn svg { transform: translateY(-1px); }

/* a segmented control whose labels are long: it fills its card, never wider, and a label wraps instead of running out of the box */
.segmented.is-fit { display: flex; width: 100%; max-width: 100%; box-sizing: border-box; }
.segmented.is-fit button { flex: 1 1 0; min-width: 0; white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; overflow-wrap: anywhere; }

/* ---- 2026-12-04 unslop: the inner work (its screen and its windows) follows the app's day and night; no cosmic gradient, glow, gradient button or gold, one accent, hairlines and radius by size ---- */
:root body[data-view="inner"], :root html:has(body[data-view="inner"]), :root .view[data-view="inner"] { background: var(--bg); }
:root body[data-view="inner"] .view { background: var(--bg); }
.ln.inp { background: none; min-height: 0; color: var(--text); }
.inp, .sheet.inx { --ln-fg: var(--text); --ln-dim: var(--text-2); --ln-gold: var(--accent-text); --g: var(--accent-text); --t: var(--accent-text); --dim: var(--text-2); }
.inp-hero-t h2 { text-shadow: none; font-weight: 600; letter-spacing: 0; color: var(--text); }
.inp-d { color: var(--text-2); }
.inp .inx-hero-h, .inx-hero-h { color: var(--text); font-family: inherit; font-weight: 600; }
.inx-eyebrow { letter-spacing: 0; color: var(--text-2); }
.inp .inx-ring-box, .inx-ring-box { filter: none; }
.inx-ring-c b { color: var(--text); font-weight: 500; }
.inp .inx-tabs, .inx-tabs { position: sticky; top: 64px; background: color-mix(in srgb, var(--text) 5%, var(--bg)); border: 1px solid var(--line); border-radius: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.inx-tab { color: var(--text-2); border-radius: 9px; }
.inp .inx-tab.is-on, .inx-tab.is-on { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); }
.inp .inx-tile, .inp .inx-card, .inp .inx-flaw, .inp .inx-sign, .inx-tile, .inx-card, .inx-flaw, .inx-sign { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.inx-flaw { border-inline-start: 1px solid var(--line); }
.inx-flaw.is-central { background: var(--surface); box-shadow: none; border-color: var(--line-strong, var(--line)); }
.inx-tile b, .inx-flaw-h b, .inx-left, .inx-sign-n, .inx-dream p { color: var(--text); font-family: inherit; font-weight: 600; }
.inx-tile .xs, .inx-hint, .inx-lbl, .inx-date, .inx-tags summary, .inx-hero-s, .inx-wd { color: var(--text-2); }
.inx-tile-ic { border-radius: 10px; }
.inp .inx-tile.is-on, .inx-tile.is-on { background: var(--surface); border-color: var(--text-2); box-shadow: none; }
.inx-tile.is-on .inx-tick { background: var(--accent); border-color: transparent; color: #fff; }
.inx-tick { border-color: var(--line-strong, var(--text-3)); }
.inx-tremor { border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.inx-pill { border-radius: 6px; font-weight: 600; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.inx-wd i { background: linear-gradient(to top, var(--accent) var(--h, 0%), var(--line) var(--h, 0%)); }
.inx select, .inx .inx-sel, .inx input.input, .inx textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.inx input::placeholder, .inx textarea::placeholder { color: var(--text-3); }
.inx-clock { filter: none; }
.inx-btn, .inp .inx-btn { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 500; box-shadow: none; }
.inx-btn.is-main, .inp .inx-btn.is-main { border: 0; background: var(--accent); color: #fff; box-shadow: none; }
.inx-chip { border-radius: 10px; border: 1px solid transparent; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-2); font-weight: 500; }
.inx-chip.is-on { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 600; box-shadow: var(--sh-1); }
.inx-bar { background: var(--line); }
.inx-bar i { background: var(--accent); }
.inx-quote { border-inline-start: 0; padding-inline-start: 0; color: var(--text-2); }
.inx-links button { color: var(--accent-text); }
.inx-night { background: var(--surface); }
.inx-dream { border-bottom: 1px solid var(--line); }
.inx-x { color: var(--danger); }
.inx-sign-g { text-shadow: none; }
.inp .ln-btn { border-radius: 10px; background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; box-shadow: none; }
.inp .ln-btn-main { background: var(--accent); color: #fff; border: 0; }
:root .sheet.inx { background: var(--surface); color: var(--text); border-top: 1px solid var(--line); box-shadow: none; }
.sheet.inx::before { display: none; }
.inx .sheet-head h2 { color: var(--text); font-family: inherit; font-weight: 600; letter-spacing: 0; font-size: 1.1rem; }
.inx .sheet-head .btn { background: transparent; color: var(--text); border-color: var(--line); }
.inx .sheet-grab { background: var(--line-strong, var(--line)); }
:root[data-theme="dark"] .inx-chip.is-on, :root[data-theme="dark"] .inp .inx-tab.is-on, :root[data-theme="dark"] .inx-tab.is-on { background: var(--text); color: var(--bg); border-color: transparent; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inx-chip.is-on, :root:not([data-theme="light"]) .inp .inx-tab.is-on, :root:not([data-theme="light"]) .inx-tab.is-on { background: var(--text); color: var(--bg); border-color: transparent; box-shadow: none; } }
.inx-ring path:not(.inx-ray) { stroke: var(--line-strong, var(--line)); }

/* the weekly load's first card: four tiles in two columns on a phone, four in a row on a wide screen; the label above its figure, the figure may wrap */
.cap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .cap-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cap-stats .stat { min-width: 0; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cap-stats .stat-l { order: -1; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.cap-stats .stat-v { font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.35; overflow-wrap: anywhere; }

/* a title or a detail that is shown in full: it wraps onto a second line instead of being cut with an ellipsis */
.wrap-text { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.setting-text .t.wrap-text, .setting-text .d { white-space: normal; overflow-wrap: anywhere; }
.pz-next-b { min-width: 0; text-align: start; }
.pz-next-b strong, .pz-next-b .pz-sub { display: block; white-space: normal; overflow: visible; text-overflow: clip; }

/* ---- 2026-12-04 inner work, second pass: the page itself (no turquoise behind or beside it), one accent instead of a rainbow of rays, neutral icon boxes, sans type ---- */
:root:has(body[data-view="inner"]), html:has(body[data-view="inner"]) { background: var(--bg); color-scheme: light dark; }
:root[data-theme="light"]:has(body[data-view="inner"]) { color-scheme: light; }
:root[data-theme="dark"]:has(body[data-view="inner"]) { color-scheme: dark; }
body[data-view="inner"], body[data-view="inner"] .view, body[data-view="inner"] .main, body[data-view="inner"] .view-stack { background: var(--bg); }
.inx-ring path.inx-ray { stroke: var(--accent); }
.inx-tile { --ray: var(--accent); }
.inx-tile-ic { background: color-mix(in srgb, var(--text) 6%, transparent); border: 0; color: var(--text-2); }
.inx-tile.is-on .inx-tile-ic { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.inx-planet, .inx-planet-l, .inx-sign-g, .inx-wake, .inx-sign-p { color: var(--accent-text); }
.inx-flaw-h { align-items: center; }
.inx-flaw-h::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--text-3)); }
.inp .ln-kicker, .inx-lbl { letter-spacing: 0; text-transform: none; }
.inx-sign-n, .inx-hero-h, .sp-q, .inx .sheet-head h2 { font-family: inherit; }
.inp .inx-tabs { top: calc(var(--topbar-h, 56px) + 6px); }

/* ---- 2026-12-04 inner work, redesigned: a calm daily ritual. A compact header (a slim ring and the day beside it), the seven practices as one list of rows with a check at the end, the rest as quiet cards; one accent, hairlines, plenty of air ---- */
.inp-in { gap: 20px; max-width: 640px; padding-block: 12px 32px; }
.inp .inp-hero { flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 18px; padding-block: 4px 0; }
.inp .inp-hero-t { gap: 6px; flex: 1; min-width: 0; }
.inp .inp-hero-t h2 { font-size: 26px; line-height: 1.2; font-weight: 600; }
.inp .ln-kicker { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.inp .inp-d { font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 44ch; }
.inp .inx-hero-h { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.inp .ln-hero-b { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.inp .ln-btn { height: 40px; padding-inline: 16px; font-size: 14px; }
.inp .inx-ring-box { width: 104px; height: 104px; flex: none; align-self: flex-start; margin-block-start: 4px; }
.inp .inx-ring-box svg { width: 104px; height: 104px; }
.inp .inx-ring-c b { font-size: 1.7rem; font-weight: 500; }
.inp .inx-ring-c span { font-size: 11.5px; margin: 2px 0 0; }
.inp .inx-ring path { stroke-width: 7; }
@media (max-width: 420px) { .inp .inp-hero { gap: 14px; } .inp .inx-ring-box, .inp .inx-ring-box svg { width: 88px; height: 88px; } .inp .inp-hero-t h2 { font-size: 23px; } }

.inp .inx-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.inp .inx-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; grid-template-areas: "ic t tick" "ic d tick"; column-gap: 14px; row-gap: 1px; align-items: center; min-height: 68px; padding: 12px 14px; border: 0; border-radius: 0; background: none; text-align: start; }
.inp .inx-tile + .inx-tile { border-block-start: 1px solid var(--line); }
.inp .inx-tile:active { background: color-mix(in srgb, var(--text) 5%, transparent); transform: none; }
.inp .inx-tile.is-on { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-color: var(--line); }
.inp .inx-tile-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 10px; }
.inp .inx-tile b { grid-area: t; font-size: 15px; font-weight: 600; align-self: end; }
.inp .inx-tile .xs { grid-area: d; align-self: start; font-size: 12.5px; line-height: 1.4; }
.inp .inx-tick { grid-area: tick; position: static; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong, var(--text-3)); font-size: 13px; }
.inp .inx-tile.is-on .inx-tick { background: var(--accent); border-color: transparent; color: #fff; }
.inp .inx-tile.is-on b { color: var(--text); }
.inp .inx-tile:focus-visible, .inp .inx-tab:focus-visible, .inx-chip:focus-visible, .inx-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.inp .inx-tremor { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); gap: 12px; }
.inp .inx-tremor .xs { flex: 1 1 160px; font-size: 13px; color: var(--text-2); }
.inp .inx-week { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); height: auto; gap: 6px; }
.inp .inx-wd i { height: 36px; border-radius: 6px; }
.inp .inx-pane { gap: 14px; }
.inp .inx-card, .inp .inx-flaw { padding: 16px; border-radius: 14px; }
.inp .inx-tabs { padding: 3px; gap: 2px; border-radius: 12px; }
.inp .inx-tab { padding-block: 8px; font-size: 12px; font-weight: 500; }

/* the last seven days: a small row of squares, the day's practices as the strength of the accent (an empty day is only a hairline), the date under each */
.inp .inx-week { align-items: flex-start; height: auto; gap: 6px; }
.inp .inx-wd { gap: 6px; height: auto; justify-content: flex-start; align-items: center; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.inp .inx-wd i { display: block; width: 100%; max-width: 40px; aspect-ratio: 1; height: auto; border-radius: 8px; background: color-mix(in srgb, var(--accent) calc(var(--h, 0%) * .9), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.inp .inx-wd i[style*="--h: 0%"] { background: transparent; }

/* the inner work's header ring (the day's seven practices) in Numinalis' burgundy (#3B0213, from its site); the cream of its site at night, where the dark burgundy would vanish. The clock's ring keeps its own look. */
.inp-hero { --bd: #3B0213; --bd-soft: color-mix(in srgb, #3B0213 13%, transparent); }
:root[data-theme="dark"] .inp-hero { --bd: #EDE8EA; --bd-soft: color-mix(in srgb, #EDE8EA 20%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inp-hero { --bd: #EDE8EA; --bd-soft: color-mix(in srgb, #EDE8EA 20%, transparent); } }
.inp-hero .inx-ring path.inx-ray { stroke: var(--bd); }
.inp-hero .inx-ring path:not(.inx-ray) { stroke: var(--bd-soft); }
.inp-hero .inx-ring-c b { color: var(--bd); }
.gx-pct, .gx.is-done .gx-pct { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-weight: 600; letter-spacing: 0; }
.gx.is-done .gx-pct { color: var(--accent-text); }

/* ---- 2026-12-04 unslop: the calendar's list screen, as the Path's lists: rows on the page with a hairline between, the category as a small flat swatch (no stripe), one quiet time column, a quiet status word ---- */
.agenda-day { margin-block-end: 20px; }
.agenda-date { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); padding-block-end: 4px; }
.agenda-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-radius: 0; border-block-end: 1px solid var(--line); background: none; box-shadow: none; text-align: start; }
.agenda-item:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.agenda-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.agenda-item .ai-stripe { flex: none; width: 10px; height: 10px; min-width: 10px; align-self: center; border-radius: 3px; }
.agenda-item .ai-time { flex: none; min-width: 48px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); text-align: start; }
.agenda-item .ai-time .muted, .agenda-item .ai-time .xs { color: var(--text-3); font-weight: 400; font-size: 12px; }
.agenda-item .ai-body { flex: 1; min-width: 0; }
.agenda-item .ai-title { font-size: 15px; font-weight: 600; }
.agenda-item .ai-meta { font-size: 12.5px; color: var(--text-2); white-space: normal; overflow: visible; text-overflow: clip; }
.agenda-item .ai-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.agenda-item .badge { border-radius: 6px; font-size: 11.5px; font-weight: 500; padding: 2px 8px; }
.agenda-item .btn-icon { width: 36px; height: 36px; border-radius: 10px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.agenda-item .btn-icon:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.swipe-row:has(> .swipe-track > .agenda-item) { border-radius: 0; }

/* ---- 2026-12-04 unslop: the calendar's blocks: the category's colour as a quiet tint with a hairline in its own hue (no side stripe, no gradient, no glow), today's marker flat ---- */
.ev { border-inline-start: 0; border: 1px solid color-mix(in srgb, var(--ev-color, var(--accent)) 38%, transparent); background: color-mix(in srgb, var(--ev-color, var(--accent)) 14%, var(--surface)); box-shadow: none; }
.ev:hover { box-shadow: var(--sh-1); }
.ev.inactive { border-style: dashed; }
.month-cell.is-today .md, .tg-dayname.is-today .dd { box-shadow: none; }
.tg-dayname .dd, .month-cell .md { letter-spacing: 0; }
/* the chart's read-out under Insights: the date on its own line, then the two figures, one font */
.ins-tip { font-family: inherit; line-height: 1.5; }
.ins-tip strong { flex: 0 0 100%; font-size: 14px; font-weight: 600; }
.ins-tip span { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; font-weight: 500; color: var(--text-2); }
.ins-tip .ins-tip-share { color: var(--accent-text, var(--accent)); font-weight: 600; }

/* the profile's tabs keep their own glass bubble (the owner, 2026-12-04); while it slides, the words of the tabs stay on top of it and readable */
.pf-tabs.glass-tabs > .pf-tab { position: relative; z-index: 3; }
.pf-tabs.glass-tabs .glass-lens { display: none; }
/* the calendar's list: the row's hover and press have room around the words; the hairline between rows sits on the row's wrapper */
.agenda-item { padding: 12px 10px; border-radius: 10px; border-block-end: 0; }
.agenda-day > .swipe-row, .agenda-day > .agenda-item { border-block-end: 1px solid var(--line); }
/* the Path at the very top: no hairline above the bar (it showed as a thin band over the sky); it comes back as the bar fills on scroll */
body[data-view="today"] .topbar { border-top-color: color-mix(in srgb, var(--line) calc(var(--pz-p) * 100%), transparent); }

/* the inner work on wider screens (a tablet, an open foldable, a desktop): a wider page, the practices in two columns, a larger ring */
@media (min-width: 720px) {
  .inp-in { max-width: 920px; padding-inline: 24px; }
  .inp .inp-hero { gap: 28px; }
  .inp .inx-ring-box, .inp .inx-ring-box svg { width: 132px; height: 132px; }
  .inp .inp-hero-t h2 { font-size: 30px; }
  .inp .inx-grid { grid-template-columns: 1fr 1fr; }
  .inp .inx-tile + .inx-tile { border-block-start: 0; }
  .inp .inx-tile { border-block-end: 1px solid var(--line); }
  .inp .inx-tile:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .inp .inx-tabs { max-width: 560px; }
}
@media (min-width: 1100px) { .inp-in { max-width: 1040px; } }
@media (min-width: 720px) { .inp .inx-tile:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; } }
/* Planning's head on a phone: the title and its line on their own row, the three buttons under them */
@media (max-width: 520px) { .obj-view-head { flex-wrap: wrap; row-gap: 10px; } .obj-view-head > div:first-child { flex: 1 1 100%; } }
/* the inner work on a desktop: it uses the width of the page, with larger type, rows and ring */
@media (min-width: 1024px) {
  .inp-in { width: 100%; max-width: 1240px; padding-inline: 40px; gap: 26px; }
  .inp .inp-hero { gap: 36px; }
  .inp .inx-ring-box, .inp .inx-ring-box svg { width: 168px; height: 168px; }
  .inp .inx-ring-c b { font-size: 2.4rem; }
  .inp .inp-hero-t h2 { font-size: 38px; }
  .inp .inp-d { font-size: 16px; max-width: 60ch; }
  .inp .ln-kicker { font-size: 14px; }
  .inp .ln-btn { height: 44px; padding-inline: 20px; font-size: 15px; }
  .inp .inx-tabs { max-width: 720px; }
  .inp .inx-tab { font-size: 13.5px; padding-block: 10px; }
  .inp .inx-tile { min-height: 84px; padding: 16px 20px; grid-template-columns: 48px minmax(0, 1fr) 28px; column-gap: 16px; }
  .inp .inx-tile-ic { width: 48px; height: 48px; }
  .inp .inx-tile b { font-size: 16.5px; }
  .inp .inx-tile .xs { font-size: 14px; }
  .inp .inx-tick { width: 26px; height: 26px; }
  .inp .inx-tremor { padding: 16px 20px; }
  .inp .inx-tremor .xs { font-size: 14.5px; }
  .inp .inx-week { padding: 20px; gap: 12px; }
  .inp .inx-wd { font-size: 13px; }
  .inp .inx-wd i { max-width: 64px; border-radius: 10px; }
  .inp .inx-card, .inp .inx-flaw { padding: 20px; }
}
/* "Next up" and "Sleep tonight" in Hebrew order: the hour first on the right with its name to its left, and inside the hour the number
   rightmost ("10:00 אחה״צ"); the hour in one solid colour, not gradient text */
:root[dir="rtl"] .pz-next-row { direction: rtl; }
:root[dir="rtl"] .pz-next-time { direction: rtl; text-align: start; unicode-bidi: isolate; }
:root[dir="rtl"] .pz-sleep-big { direction: rtl; text-align: start; }
:root[dir="rtl"] .pz-sleep-big b { direction: rtl; unicode-bidi: isolate; }
.pz-sleep-big b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text, var(--accent)); }
/* the name of what is next (and "in 3:10 hours" under it) stands on the right, as Hebrew reads; the hour to its left */
:root[dir="rtl"] .pz-next-row .pz-next-b { order: -1; align-items: flex-start; text-align: start; }
/* the same order in English, mirrored: the name first (on the left), the hour after it */
:root[dir="ltr"] .pz-next-row { direction: ltr; }
:root[dir="ltr"] .pz-next-row .pz-next-b { order: -1; align-items: flex-start; text-align: start; }
:root[dir="ltr"] .pz-next-time { direction: ltr; text-align: start; }
:root[dir="ltr"] .pz-sleep-big, :root[dir="ltr"] .pz-sleep-big b { direction: ltr; text-align: start; }

/* the dream journal's "letters" and "cards" (and what they open) follow day and night: surfaces, hairlines, the app's text, one accent; no gold gradient or glow */
.dsym-tab { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; font-weight: 500; }
.dsym-tab.is-open { border-color: var(--text-2); background: var(--surface); box-shadow: none; }
.dsym-glyph { border-color: var(--line-strong, var(--line)); background: none; box-shadow: none; }
.dsym-glyph.is-letter { color: var(--accent-text); }
.dsym-glyph.is-card::before { border-color: var(--accent-text); box-shadow: none; }
.dsym-chev, .dsym-tab.is-open .dsym-chev { border-color: var(--text-2); }
.dsym-letter, .dsym-card { background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.dsym-letter b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text); font-weight: 700; }
.dsym-card b { color: var(--text); }
.dsym-num { color: var(--text-2); letter-spacing: 0; }
.dsym-star { opacity: .55; filter: grayscale(1); }
.dsym-letter.is-on, .dsym-card.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: none; }
/* the Path's photo itself reaches the very top of the page (under the clear bar and an iPhone's notch area); the painted cap that filled the
   gap above it guessed the sky's colour and showed as a band on tall bars, so it is gone */
:root .pz-hero::before { top: calc(var(--pz-hero-y, 88px) * -1); }
.pz-hero::after { display: none; }
body[data-view="today"] .topbar { border-inline-color: transparent; }
/* a figure with a Hebrew unit ("15 מיליון") reads in Hebrew order, number on the right; a plain figure is unchanged */
.pz-stat strong { unicode-bidi: plaintext; }
/* the title in the top bar is shown in full on a phone: it takes the room it needs and the group of buttons beside it is a little tighter */
.topbar #topbar-title { flex: 0 1 auto; text-align: start; font-size: clamp(14px, 4vw, 17px); }   /* (beside the picture as it was; it takes only the room its words need) */
@media (max-width: 480px) { .topbar .topbar-group { gap: 2px; } .topbar { gap: 6px; } }
@media (max-width: 480px) { .topbar #topbar-title { font-size: 14px; letter-spacing: 0; margin-inline-start: 6px; margin-inline-end: 6px; }   /* (a little room between the words and the picture) */ .topbar .topbar-group .btn-icon { width: 34px; } }
/* a short figure such as 4M or 61K stays one piece inside a Hebrew line */
.pz-stat strong, .bd-pts strong, .bd-stat-v, .pc-lv b { unicode-bidi: isolate; }

/* 2026-12-05: the map guide shows one road, as the map draws it (dark red dashes), no gold road any more */
.wm-g-sw.is-road::after { content: ''; position: absolute; inset: 9px 4px; border-top: 4px dashed #8a4a2a; }

/* 2026-12-05: the profile cover on a computer (the phone is left as it is). The strip was 150px high across 1100px, which cropped a 3:1 picture to
   its middle seventh and stretched it; now it is taller in step with the width, so more of the picture shows, and the picture sits a little high. */
@media (min-width: 900px) {
  .pc .pc-cover { height: clamp(210px, 21vw, 300px); }
  .pc .pc-cover-img { object-position: 50% 40%; }
}

/* the cover's frame is held to 3:1 (what a computer draws); the dashed middle is what the phone's narrower strip shows */
.cf-guide { position: absolute; inset-block: 0; inset-inline: 12.6%; border-inline: 2px dashed rgba(255, 255, 255, .9); pointer-events: none; display: flex; align-items: flex-end; justify-content: center; font: 600 11px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); padding-block-end: 6px; }
/* (on a computer the strip is 3:1 of the card's width, never taller than 340px; the card is measured, so the strip keeps the full width) */
@media (min-width: 900px) {
  .pc { container-type: inline-size; }
  .pc .pc-cover { height: min(340px, calc((100cqw + 40px) / 3)); }
}

/* the drawn sky waits while the account's own cover is still being asked for (profile.js), so it never flashes before the picture */
.pc-cover.is-wait .pc-art { visibility: hidden; }
/* while a picture is still being asked for (its own photo, or its own cover) there is no empty coloured disc or empty sky: only what is really theirs appears */
.avatar.is-wait { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.pc-cover.is-wait { background: none !important; }
.pc-cover.is-wait::after { display: none; }
/* a cover of one's own has no colour of its own behind it */
.pc-cover.has-own { background: none !important; }
/* the filter box: the tick sits before the words (on the right in Hebrew), and an unticked row keeps its words in line with a ticked one */
.lf-pop-i { justify-content: flex-start; gap: 10px; }
.lf-pop-i .ic { order: -1; }
.lf-pop-i:not(.is-on)::before { content: ''; flex: none; width: 16px; height: 16px; order: -1; }

/* ===== 2026-12-05, the quiet pass on the settings boxes (the owner): flat rows, thin lines, no round chips, no glow ===== */

/* the picks in the settings cards (days, accent colours): rounded squares, not pills; the chosen one tinted (soft white at night) */
.card .chips:not(.chips-scroll) > .chip { border-radius: 10px; min-height: 40px; padding-inline: 14px; background: transparent; border: 1px solid var(--line); color: var(--text-2); font-weight: 560; box-shadow: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
@media (hover: hover) and (pointer: fine) { .card .chips:not(.chips-scroll) > .chip:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); } }
.card .chips:not(.chips-scroll) > .chip[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--accent-text); }
:root[data-theme="dark"] .card .chips:not(.chips-scroll) > .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.card .chips:not(.chips-scroll) > .chip:active { transform: scale(.97); }

/* the notes and warnings: a thin line and a tint of their colour, the words in the ordinary colour */
.callout { border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--text-2); box-shadow: none; }
.callout .ic { color: var(--text-3); }
.callout-warn { background: color-mix(in srgb, var(--warn) 6%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); color: var(--text-2); }
.callout-warn .ic { color: var(--warn); }
.callout-danger { background: color-mix(in srgb, var(--danger) 6%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); color: var(--text-2); }
.callout-danger .ic { color: var(--danger); }
.callout-ok { background: color-mix(in srgb, var(--ok) 6%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); color: var(--text-2); }
.callout-ok .ic { color: var(--ok); }
.callout-accent { background: color-mix(in srgb, var(--accent) 7%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--text-2); }
.callout-accent .ic { color: var(--accent-text); }

/* a foldable row: a flat row, and a plain chevron (no round chip, no tint), the same chevron as the rest of the app */
details.disc { border-radius: 12px; }
details.disc > summary { background: transparent; transition: background-color .15s ease; }
@media (hover: hover) and (pointer: fine) { details.disc > summary:hover { background: color-mix(in srgb, var(--text) 4%, transparent); } }
details.disc > summary::after, details.gx-plates-wrap > summary::after, details.shop-pick > summary::after {
  width: 16px; height: 16px; border-radius: 0; background-image: none; background-color: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s cubic-bezier(.23, 1, .32, 1), opacity .15s ease; }
details.disc[open] > summary::after, details.gx-plates-wrap[open] > summary::after, details.shop-pick[open] > summary::after { background-color: currentColor; opacity: .9; transform: rotate(180deg); }
details.disc > summary:hover::after, details.gx-plates-wrap > summary:hover::after, details.shop-pick > summary:hover::after { background-color: currentColor; opacity: 1; }
@media (prefers-reduced-motion: reduce) { details.disc > summary::after, details.gx-plates-wrap > summary::after, details.shop-pick > summary::after { transition: none; } }
/* the seven days: one even row, never one day alone on a second line */
.card .chips[aria-label="בחירת ימים"] { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.card .chips[aria-label="בחירת ימים"] > .chip { min-width: 0 !important; padding-inline: 0; justify-content: center; }
/* the spiral: the language box is a flat box with a thin line, no coloured fill */
.spc-card .spc-lang { border-radius: 12px; background: transparent; box-shadow: none; border: 1px solid var(--line); }
/* the accent colours: three even columns */
.card .chips:has(> .chip > .chip-dot) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card .chips:has(> .chip > .chip-dot) > .chip { justify-content: center; min-width: 0; }
/* the owner (2026-12-05): no lavender picks and no orange boxes. The chosen pick is ink (the text colour on the page colour, by day and by night), a note is a grey surface with a thin line, and the colour is only in the small icon */
.card .chips:not(.chips-scroll) > .chip[aria-pressed="true"],
:root[data-theme="dark"] .card .chips:not(.chips-scroll) > .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.callout-warn, .callout-danger, .callout-ok, .callout-accent { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }
/* a row of picks keeps its air: it never sits on the line above it or on the next row (the days, the accent colours) */
.card .chips[aria-label="בחירת ימים"], .card .chips:has(> .chip > .chip-dot) { margin-block: 12px 14px; }
/* the step-level colours (settings): a flat list, one line each, a round swatch, the code, and a sample with a dot of its colour (no side stripe) */
.lvl-row { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.lvl-row:last-child { border-block-end: 0; padding-block-end: 2px; }
.lvl-pick { -webkit-appearance: none; appearance: none; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; overflow: hidden; }
.lvl-pick::-webkit-color-swatch-wrapper { padding: 0; }
.lvl-pick::-webkit-color-swatch { border: 0; border-radius: 9px; }
.lvl-pick::-moz-color-swatch { border: 0; border-radius: 9px; }
.lvl-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lvl-row .hex-in { flex: none; width: 6.4rem; height: 40px; min-height: 0; }
.lvl-row .obj-lvl { flex: 1; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-inline-start: 0; border-radius: 10px; background: var(--lvl-fill, transparent); color: var(--text); font-size: 14px; }
.lvl-row .obj-lvl::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lvl-line, var(--text-3)); }
.lvl-row .btn { flex: none; }
/* the level colours, in the goals as well as in the settings: no side stripe; a tint of the level's colour and a thin outline of it, the words in the ordinary colour (so it reads by day and by night) */
.obj-lvl { border-inline-start: 0; border-radius: 10px; background: color-mix(in srgb, var(--lvl-line, transparent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lvl-line, var(--line)) 38%, transparent); color: var(--text); }
.lvl-row .obj-lvl { background: color-mix(in srgb, var(--lvl-line, transparent) 10%, transparent); }
.lvl-row .obj-lvl::before { display: none; }
.obj-ms.obj-lvl { padding: 8px 10px; border-block-end: 0; margin-block-end: 4px; }
/* the pop-up for joining a shared goal: on the page, under the key, a thin line and a soft shadow */
.jp-pop { position: absolute; z-index: 30; width: min(320px, calc(100vw - 32px)); padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--sh-2, 0 8px 24px -12px rgba(0, 0, 0, .35)); display: grid; gap: 10px; animation: jpIn .16s cubic-bezier(.23, 1, .32, 1) both; transform-origin: top; }
.jp-head { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.jp-head .ic { color: var(--text-3); }
.jp-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.jp-row { display: flex; gap: 8px; align-items: stretch; }
.jp-code { flex: 1; min-width: 0; height: 42px; text-align: center; letter-spacing: .16em; font-size: 17px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.jp-go { flex: none; height: 42px; }
@keyframes jpIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .jp-pop { animation: none; } }
/* the requests to join a shared goal, in the manager's panel: flat rows, a thin line between */
.cg-reqs { display: grid; gap: 0; margin-block: 8px; }
.cg-req { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-block-start: 1px solid var(--line); }
.cg-req-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.cg-req-acts { display: flex; gap: 6px; flex: none; }

/* 2026-12-05: the captain's card, quiet: a flat surface and a thin line, no gold tint, and the stamps in an even row (no tilt, no glow) */
.sd-earn { gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sd-earn > b { font-size: 13px; font-weight: 600; color: var(--muted); }
.sd-earn p { font-size: 14px; line-height: 1.55; color: var(--text); }
.sd-earn .sd-dots { gap: 8px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.sd-earn .sd-dots img { width: 30px; height: 30px; filter: grayscale(1); opacity: .28; transition: opacity .2s; }
.sd-earn .sd-dots img.is-on { filter: none; opacity: 1; transform: none; }
.ls2-gift { display: grid; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.ls2-gift-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ls2-gift-top > div { display: grid; }
.ls2-gift-top small { opacity: .7; }
.ls2-worth[hidden] { display: none; }
.ls2-sw { display: grid; justify-items: center; gap: 4px; }
.ls2-sw small { font-size: 11px; opacity: .7; }
.ls2-gift.is-free { opacity: .6; }
.ls2-pay { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, #c9a24c 9%, transparent); }
.ls2-pay-b { display: flex; flex-wrap: wrap; gap: 6px; }
.ls2-pay small { opacity: .7; }
.about-doc .about-text { cursor: pointer; }
.about-doc .about-text a, .about-doc .about-text button { cursor: auto; }
