/* BM ERP: the frame's layout. Every colour, size and speed comes from the house tokens (tokens.css = HRMS_Claude/Design_Tokens_HRMS.css,
   unchanged), so light and dark follow them. Logical properties (inline-start / inline-end) so Arabic and Urdu mirror by themselves. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5; }
html.lang-ar body, html.lang-ur body { font-family: var(--font-arabic); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
html.lang-ar h1, html.lang-ur h1 { font-family: var(--font-arabic); letter-spacing: 0; }
h1 { font-size: var(--text-xl); }
button, input { font: inherit; color: inherit; }
/* The house tokens give every <button> the 38 px green action look (height, background, hover). The frame's other buttons (tiles,
   links, rows, icons) are their own: no fixed height, and a hover of their own (--hover-bg) instead of the green one. */
button { cursor: pointer; height: auto; line-height: 1.3; }
button:not(.btn):not(.go):hover:not(:disabled) { background: var(--hover-bg, transparent); }
:focus-visible { outline: var(--ring-width) solid var(--ring-color); outline-offset: var(--ring-offset); }
[hidden] { display: none !important; }
.sub { color: var(--muted); margin: 0 0 var(--space-4); }
.sub.small { font-size: var(--text-sm); margin: 0; }
.noscript { padding: var(--space-6) var(--space-4); text-align: center; }

/* ---------------- the sign-in card ---------------- */
.si { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--space-6) var(--space-4); }
.si-box { width: min(420px, 100%); }
.si-wide .si-box { width: min(900px, 100%); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--space-6); }
.logo { width: 56px; height: 56px; border-radius: 14px; display: block; margin-bottom: var(--space-3); }
.eyebrow { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 var(--space-2); }
.for { background: var(--brand-soft); color: var(--brand-strong); border-radius: var(--radius-sm); padding: var(--space-3); font-weight: 600; font-size: var(--text-base); margin: 0 0 var(--space-4); }
label { display: block; font-weight: 600; font-size: var(--text-base); margin: 0 0 var(--space-2); }
input { width: 100%; height: 52px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--text-lg); letter-spacing: .02em; }
input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder { color: var(--faint); }
.pinwrap { position: relative; }
.pinwrap input { padding-inline-end: 52px; }
.eye { --hover-bg: var(--surface-2); position: absolute; inset-inline-end: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-sm); display: grid; place-items: center; }
.btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 52px; margin-top: var(--space-4); border: 0; border-radius: var(--radius);
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: var(--text-md); transition: background var(--duration-fast) var(--ease-out), transform var(--duration-instant); }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: var(--opacity-disabled); cursor: default; }
.btn.light { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-top: var(--space-2); }
.btn.light:hover:not(:disabled) { background: var(--surface-2); }
.link { --hover-bg: transparent; background: none; border: 0; color: var(--brand); font-weight: 600; padding: var(--space-2) 0; margin-top: var(--space-2); display: block; text-align: start; min-height: 44px; }
.link.inline { display: inline; margin: 0; padding: 0; min-height: 0; }
.link.back { margin: 0 0 var(--space-2); }
.msg { border-radius: var(--radius-sm); padding: var(--space-3); font-size: var(--text-base); margin-top: var(--space-4); }
.msg.crit { background: var(--crit-soft); color: var(--crit); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.langs .link { margin: 0; color: var(--muted); font-weight: 600; }
.langs .link.on { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.langs.left { justify-content: flex-start; border-top: 0; margin-top: 0; padding-top: 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--space-3); }
.num { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; letter-spacing: .1em; margin: var(--space-3) 0 var(--space-1); font-variant-numeric: tabular-nums; direction: ltr; }
.num.big { font-size: 40px; color: var(--brand-strong); margin: 0 0 var(--space-2); }

/* ---------------- the laptop: QR code and number ---------------- */
.qr-wrap { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 760px) { .qr-wrap { grid-template-columns: 300px 1fr; gap: var(--space-8); } .si-wide .si-box { padding: var(--space-8); } }
.qr-side { text-align: center; }
.qr { width: min(280px, 100%); aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 6px; display: grid; place-items: center; color: #0E2A1C;
  transition: opacity var(--duration-normal); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr.dim { opacity: .18; }
.steps { margin: var(--space-2) 0 var(--space-4); padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 40px; margin-bottom: var(--space-3); min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong);
  font-weight: 700; font-size: var(--text-sm); display: grid; place-items: center; }
.alt { margin: var(--space-4) 0 0; border-top: 1px solid var(--line); padding-top: var(--space-2); }

/* ---------------- the top bar ---------------- */
.bar { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: var(--space-2); height: 60px; padding: 0 var(--space-3) 0 var(--space-4);
  padding-top: env(safe-area-inset-top); background: var(--side); color: var(--side-ink); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-inline-end: auto; }
.mark { width: 34px; height: 34px; border-radius: 9px; display: block; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; }
.bar .icon-btn { --hover-bg: var(--side-hover); }
.sh-head .icon-btn, .d-head .icon-btn { --hover-bg: var(--surface-2); }
.count { position: absolute; top: 4px; right: 2px;   /* the same corner in Arabic and Urdu, clear of the bell */ min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-full); background: var(--red-600); color: #fff;
  font-size: var(--text-xs); font-weight: 700; display: grid; place-items: center; border: 2px solid var(--side); }
.offline-bar { background: var(--warn-soft); color: var(--warn); text-align: center; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 600; }

/* ---------------- home: one tile per module ---------------- */
.home { max-width: 1040px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-12); }
.hello { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-2); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); text-align: start; min-height: 148px; padding: var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-fast); }
.tile { --hover-bg: var(--surface); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.tile:active { transform: scale(.985); }
.t-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--space-2); }
.t-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.2; }
html.lang-ar .t-name, html.lang-ur .t-name { font-family: var(--font-arabic); }
.t-blurb { color: var(--muted); font-size: var(--text-sm); line-height: 1.4; }
.tile.busy { pointer-events: none; }
.tile.busy::after { content: ''; position: absolute; top: var(--space-4); inset-inline-end: var(--space-4); width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--brand);
  border-inline-end-color: transparent; animation: spin .7s linear infinite; }
#hMsg .msg { margin: 0 0 var(--space-3); }
.laptop-card { --hover-bg: var(--surface-2); display: flex; align-items: center; gap: var(--space-3); width: 100%; margin-top: var(--space-5); padding: var(--space-4); text-align: start; color: var(--ink); }
.laptop-card > svg { flex: none; color: var(--brand); }
.laptop-card b { display: block; }
.laptop-card .sub { display: block; margin: 0; font-size: var(--text-sm); }

/* ---------------- the menu ---------------- */
.scrim { position: fixed; inset: 0; background: rgba(6, 21, 13, .45); z-index: var(--z-overlay); }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 88vw); z-index: var(--z-dialog); background: var(--surface); box-shadow: var(--shadow-lg);
  overflow-y: auto; padding: var(--space-4); padding-top: calc(var(--space-4) + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: var(--space-2); }
.d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.d-head b { display: block; font-size: var(--text-md); }
.d-head .sub { display: block; margin: 0; font-size: var(--text-sm); }
.d-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 48px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--ink); text-decoration: none; font-weight: 600; text-align: start; }
.d-item { --hover-bg: var(--surface-2); }
.d-item svg { color: var(--brand); flex: none; }
.d-item.out { margin-top: var(--space-2); color: var(--crit); }
.d-item.out svg { color: var(--crit); }
.d-sect { padding: var(--space-3); border-top: 1px solid var(--line); }
.d-label { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: var(--space-2); }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { --hover-bg: var(--surface-2); flex: 1; min-height: 40px; border: 0; background: transparent; font-weight: 600; font-size: var(--text-sm); }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.on { background: var(--brand-soft); color: var(--brand-strong); }
.d-foot { color: var(--faint); font-size: var(--text-xs); margin: auto 0 0; padding: var(--space-3); }

/* ---------------- the bell (js/bmbell.js draws it; its colours from these tokens) ---------------- */
.bell-host { display: flex; --bmb-ring: var(--side); --bmb-hover: var(--side-hover); }
.sheet { position: fixed; z-index: var(--z-dialog); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  inset-inline: 0; bottom: 0; max-height: 80vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 640px) { .sheet { inset-inline: auto var(--space-4); top: 64px; bottom: auto; width: 400px; max-height: 70vh; border-radius: var(--radius-lg); } }
.sh-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sh-head b { margin-inline-end: auto; font-family: var(--font-display); font-size: var(--text-md); }
.sh-head .link { margin: 0; min-height: 40px; }
.sh-body { overflow-y: auto; padding: var(--space-2); }
.note { display: grid; gap: 2px; width: 100%; padding: var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; text-align: start; color: var(--ink); }
.note { --hover-bg: var(--surface-2); }
.note.unread { background: var(--brand-soft); --hover-bg: var(--brand-soft); }
.note + .note { margin-top: 2px; }
.n-app { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); font-weight: 700; }
.n-text { font-size: var(--text-base); overflow-wrap: anywhere; }
.n-at { font-size: var(--text-xs); color: var(--muted); direction: ltr; text-align: start; }
.empty { color: var(--muted); text-align: center; padding: var(--space-6) var(--space-3); margin: 0; }

/* ---------------- small notices ---------------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: var(--z-toast);
  background: var(--ink); color: var(--surface); padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-weight: 600; font-size: var(--text-base); max-width: calc(100% - 32px);
  transition: opacity var(--duration-normal), transform var(--duration-normal) var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* the install chip: Android shows the browser's own install prompt; iPhone gets the two-tap tip (CLAUDE.md section 6) */
.install { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-toast); display: none; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px); background: #fff; color: #0E2A1C; border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(0,0,0,.28); font-weight: 600; font-size: 14px; }
.install.show { display: flex; }
.install img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.install button { border: 0; border-radius: 8px; padding: 9px 12px; font-weight: 700; font-size: 13px; min-height: 40px; }
.install .go { background: #16784A; color: #fff; }
.install .no { --hover-bg: #EEF3F0; background: transparent; color: #35523F; min-width: 40px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ---------------- home, redesigned (2026-10-15): the dark scene of the company website (businessmagnificence.com) ---------------- */
.scene { --mint: #2EE6A0; --mint-soft: rgba(46, 230, 160, .14); --glass: rgba(255, 255, 255, .05); --glass-line: rgba(255, 255, 255, .11); --on-scene: #E9F6EF; --on-scene-muted: #A9C8B8;
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; background: #06130C; color: var(--on-scene); overflow: hidden; }
.scene::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(900px 520px at 78% 8%, rgba(46, 230, 160, .13), transparent 62%), radial-gradient(700px 420px at 6% 96%, rgba(22, 120, 74, .22), transparent 60%); }
.scene .bar { background: rgba(6, 19, 12, .6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(46, 230, 160, .12); }
.scene .bar .icon-btn { --hover-bg: rgba(255, 255, 255, .08); }
.scene .home { max-width: 1120px; padding: clamp(44px, 9vw, 104px) var(--space-4) var(--space-12); }
.scene .hello { font-size: clamp(38px, 7.2vw, 72px); line-height: 1.04; letter-spacing: -.032em; font-weight: 700; color: #fff; margin: 0; max-width: 13ch; text-wrap: balance; }
html.lang-ar .scene .hello, html.lang-ur .scene .hello { letter-spacing: 0; line-height: 1.25; }
.scene .hello .who { display: inline-block; margin-top: .08em; padding: .02em .26em .08em; color: #67F5BD; border: 1px solid rgba(46, 230, 160, .55); border-radius: .3em;
  background: var(--mint-soft); box-shadow: 0 0 44px rgba(46, 230, 160, .24), inset 0 0 22px rgba(46, 230, 160, .08); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; }
.chip { display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--on-scene-muted);
  font-size: var(--text-sm); font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip-id { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.scene .tiles { margin-top: clamp(36px, 7vw, 76px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 760px) { .scene .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 1040px) { .scene .tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
.scene .tile { --hover-bg: rgba(46, 230, 160, .09); min-height: 180px; padding: 22px; gap: 6px; border-radius: 22px; color: #fff; background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 16px 40px rgba(0, 0, 0, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out), border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-normal) var(--ease-out); }
.scene .tile:hover { transform: translateY(-5px); border-color: rgba(46, 230, 160, .6); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 56px rgba(0, 0, 0, .4), 0 0 38px rgba(46, 230, 160, .14); }
.scene .tile:active { transform: translateY(-1px) scale(.985); }
.scene .tile:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.scene .t-icon { width: 56px; height: 56px; border-radius: 50%; margin-bottom: var(--space-3); color: #04150D;
  background: radial-gradient(circle at 32% 28%, #8CF7CF, #25C987 58%, #0E7A4F); box-shadow: 0 0 30px rgba(46, 230, 160, .42), 0 2px 0 rgba(255, 255, 255, .35) inset;
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal); }
.scene .tile:hover .t-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 46px rgba(46, 230, 160, .62), 0 2px 0 rgba(255, 255, 255, .35) inset; }
.scene .t-name { font-size: 24px; letter-spacing: -.02em; color: #fff; }
.scene .t-blurb { color: var(--on-scene-muted); font-size: var(--text-base); line-height: 1.42; max-width: 24ch; }
.t-go { position: absolute; inset-block-end: 20px; inset-inline-end: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--mint);
  border: 1px solid rgba(46, 230, 160, .4); opacity: .75; transition: transform var(--duration-normal) var(--ease-out), background var(--duration-fast), color var(--duration-fast), opacity var(--duration-fast); }
html[dir="rtl"] .t-go svg { transform: scaleX(-1); }
.scene .tile:hover .t-go { transform: translateX(4px); background: var(--mint); color: #04150D; opacity: 1; }
html[dir="rtl"] .scene .tile:hover .t-go { transform: translateX(-4px); }
.scene .tile.busy::after { border-color: var(--mint); border-inline-end-color: transparent; }
.scene .sub, .scene .sub.empty { color: var(--on-scene-muted); }
.scene .laptop-card { --hover-bg: rgba(255, 255, 255, .09); background: var(--glass); border: 1px solid var(--glass-line); color: #fff; box-shadow: none; border-radius: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scene .laptop-card > svg { color: var(--mint); }
.scene .laptop-card .sub { color: var(--on-scene-muted); }
.scene .msg, .scene #hMsg .msg { margin-top: var(--space-4); }
/* one entrance: the greeting rises, then the tiles follow one after another; then the page is still (the globe keeps its slow turn) */
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scene .hello, .scene .chips { animation: riseIn .7s var(--ease-out) both; }
.scene .chips { animation-delay: .12s; }
.scene .tile { animation: riseIn .7s var(--ease-out) both; animation-delay: calc(.22s + var(--i, 0) * .08s); }
.scene .laptop-card { animation: riseIn .7s var(--ease-out) both; animation-delay: .6s; }

/* ---- the picture: everyone connected (js/connect.js) ---- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: 470px; gap: var(--space-4); } .scene .home { padding-top: clamp(36px, 5vw, 64px); } }
.hero-text { position: relative; z-index: 2; }
.net { position: relative; width: 100%; max-width: 720px; justify-self: center; }
.cn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cn-spoke { fill: none; stroke: rgba(46, 230, 160, .34); stroke-width: 1.2; stroke-dasharray: 3 7; animation: cnFlow 2.6s linear infinite; }
.cn-link { fill: none; stroke: rgba(46, 230, 160, .16); stroke-width: 1; }
.cn-spoke.off, .cn-link.off { stroke: rgba(255, 255, 255, .06); animation: none; }
@keyframes cnFlow { to { stroke-dashoffset: -20; } }
.cn-pl { fill: none; stroke: rgba(46, 230, 160, .2); stroke-width: .8; }
.cn-pd { fill: #7FF5C8; opacity: .8; transform-box: fill-box; transform-origin: center; animation: cnFloat 5.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.cn-p.off .cn-pd { fill: #5C7A6C; opacity: .35; animation: none; } .cn-p.off .cn-pl { stroke: rgba(255, 255, 255, .06); }
@keyframes cnFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2.5px, -3px); } }
.cn-p.ping .cn-pd { animation: cnPing .9s var(--ease-out) 1; }
.cn-p.ping .cn-pl { stroke: rgba(46, 230, 160, .7); }
@keyframes cnPing { 0% { transform: scale(1); fill: #fff; } 40% { transform: scale(2.6); fill: #fff; opacity: 1; } 100% { transform: scale(1); } }
.cn-node .cn-orb { fill: url(#cnOrb); filter: drop-shadow(0 0 14px rgba(46, 230, 160, .5)); }
.cn-node .cn-ico { color: #04150D; stroke: #04150D; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cn-node .cn-ring { fill: none; stroke: rgba(46, 230, 160, .5); stroke-width: 1.5; }
.cn-node .cn-halo { fill: rgba(46, 230, 160, .07); }
.cn-node .cn-label { fill: #E9F6EF; font: 700 24px var(--font-display); letter-spacing: -.01em; paint-order: stroke fill; stroke: #06130C; stroke-width: 8px; stroke-linejoin: round; }
@media (max-width: 520px) { .cn-node .cn-label { font-size: 28px; stroke-width: 9px; } }   /* the picture is drawn small on a phone: the names are made larger so they read at 360 px, and the dark edge keeps the lines and dots from running through them */
.cn-node.off .cn-orb { fill: #26352D; filter: none; } .cn-node.off .cn-ico { stroke: #6C8678; } .cn-node.off .cn-ring, .cn-node.off .cn-halo { stroke: rgba(255, 255, 255, .1); fill: none; } .cn-node.off .cn-label { fill: #6C8678; }
.cn-node .cn-ring { transform-box: fill-box; transform-origin: center; }
.cn-node.hit .cn-ring { animation: cnHit 1.3s var(--ease-out) 1; }
.cn-node.hit .cn-orb { animation: cnGlow 1.3s var(--ease-out) 1; }
@keyframes cnHit { 0% { transform: scale(1); opacity: 1; stroke-width: 3; } 100% { transform: scale(1.9); opacity: 0; stroke-width: .5; } }
@keyframes cnGlow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(46, 230, 160, .5)); } 25% { filter: drop-shadow(0 0 34px rgba(120, 255, 205, .95)); } }
.cn-hring { fill: none; stroke: rgba(46, 230, 160, .45); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: cnHub 3.6s var(--ease-out) infinite; }
.cn-hring.r2 { animation-delay: 1.8s; }
@keyframes cnHub { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
.cn-hubt { fill: #67F5BD; font: 700 28px var(--font-display); }
.cn-ghost { fill: none; stroke: none; }
.cn-pk-g { fill: rgba(120, 255, 205, .28); } .cn-pk-d { fill: #D6FFEE; }
.cn-svg.still .cn-spoke, .cn-svg.still .cn-link { stroke: rgba(46, 230, 160, .3); }
.cn-cap { margin: var(--space-2) 0 0; min-height: 2.8em; text-align: center; color: var(--on-scene-muted); font-size: var(--text-base); font-weight: 600; }
.cn-cap-t { display: inline-block; opacity: 0; }
.cn-cap-t.in { animation: capIn .6s var(--ease-out) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cn-dots { display: flex; justify-content: center; gap: 7px; margin: 6px 0 0; }
.cn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background var(--duration-normal), transform var(--duration-normal), width var(--duration-normal); }
.cn-dots i.on { background: var(--mint, #2EE6A0); width: 20px; border-radius: 999px; }
.scene .tile { padding-bottom: 66px; }   /* room for the arrow under the words, in every language */
