/* Neuron on every Apple screen: one study screen whose pieces have a frame on each platform (everywhere.js). */
.app-every { --border: rgba(0, 0, 0, 0.07); }

/* ——— the Mac's desktop, menu bar, window and floating sidebar ——— */
.ev-desk {
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(120, 156, 255, 0.55), rgba(120, 156, 255, 0) 70%),
    radial-gradient(60% 70% at 96% 92%, rgba(150, 110, 230, 0.5), rgba(150, 110, 230, 0) 70%),
    linear-gradient(158deg, #233c7c 0%, #172552 52%, #10183a 100%);
}
.ev-desk > i { position: absolute; inset: 0; background: radial-gradient(120% 40% at 50% 112%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%), radial-gradient(90% 30% at 30% 70%, rgba(170, 196, 255, 0.14), rgba(170, 196, 255, 0) 70%); }
.ev-menu { display: flex; align-items: center; gap: 20px; padding: 0 18px; font-family: var(--sf); font-size: 13px; font-weight: 500; color: #fff; background: rgba(8, 14, 32, 0.3); white-space: nowrap; }
.ev-menu b { font-weight: 700; }
.ev-menu em { margin-left: auto; white-space: pre; }
.ev-win { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 0.5px rgba(10, 16, 34, 0.18), 0 26px 60px rgba(10, 16, 40, 0.3); }
.ev-side { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.ev-lights { display: flex; gap: 8px; }
.ev-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14); }
.ev-lights i:nth-child(2) { background: #febc2e; }
.ev-lights i:nth-child(3) { background: #28c840; }

/* ——— the TV's tab bar and the headset's ornament ——— */
.ev-tvbar { display: flex; align-items: center; gap: 6px; padding: 0 8px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ev-tvbar span { flex: 1; height: 46px; display: grid; place-items: center; border-radius: 23px; font-size: 21px; font-weight: 600; color: rgba(255, 255, 255, 0.66); }
.ev-tvbar span.on { color: #fff; background: rgba(255, 255, 255, 0.2); }
.ev-orn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 14px 30px rgba(14, 20, 40, 0.16); }

/* ——— the sidebar: the name, today's session, the streak, the sets, a new set ——— */
.ev-brand { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
.ev-sech { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; line-height: 12px; white-space: nowrap; }
.ev-sess {
  display: flex; align-items: center; gap: 12px; padding: 0 14px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #298566, #1a5c80); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 6px 14px rgba(26, 92, 128, 0.22);
}
.ev-ring { position: relative; flex: none; width: 36px; height: 36px; }
.ev-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-ring .tr { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 4.5; }
.ev-ring .pr { fill: none; stroke: #ffe36b; stroke-width: 4.5; }
.app-every .ev-ok { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: #fff070; }
.ev-sess p { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-sess small { font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.74); white-space: nowrap; }
.ev-sess b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.ev-streak > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 5px; }
.app-every .ev-fl { width: 18.3px; height: 31.8px; flex: none; }
.ev-streak b { font-size: 18px; font-weight: 800; color: var(--streak); font-variant-numeric: tabular-nums; }
.ev-set { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 10px; }
.ev-set.on { box-shadow: inset 0 0 0 1px var(--border), 0 2px 6px rgba(20, 30, 60, 0.06); }
.ev-set p { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-set p b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.ev-set .n-split { width: 100%; max-width: 150px; }
.ev-set em { font-size: 12px; font-weight: 800; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ev-new { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--acc), var(--deep)); box-shadow: 0 5px 12px rgba(46, 97, 209, 0.3); white-space: nowrap; }
.app-every .ev-new .sym { width: 16px; height: 16px; }

/* ——— the study pieces ——— */
.ev-title b { position: absolute; top: 0; left: calc(var(--ta, 1) * 50%); transform: translateX(calc(var(--ta, 1) * -50%)); font-size: 12px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.ev-route { overflow: hidden; }
.ev-route i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--acc), var(--deep)); transform-origin: 0 50%; }
.ev-mpill {
  background: linear-gradient(135deg, color-mix(in srgb, #ffffff calc(var(--pw, 0) * 100%), var(--acc)), color-mix(in srgb, #ffffff calc(var(--pw, 0) * 100%), var(--deep)));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 10px rgba(46, 97, 209, calc(0.3 * (1 - var(--pw, 0)))), 0 10px 26px rgba(0, 0, 0, calc(0.3 * var(--pw, 0)));
}
.app-every .ev-mode .ev-mi { position: absolute; left: 0; top: 0; width: calc(var(--is) * 1px); height: calc(var(--is) * 1px); transform: translate(calc(var(--ix) * 1px), calc(var(--iy) * 1px)); }
.ev-mode .ev-ml { position: absolute; left: 0; top: 0; font-size: calc(var(--fs) * 1px); line-height: 1.25; font-weight: 800; white-space: nowrap; transform: translate(calc(var(--lx) * 1px - var(--lc) * 50%), calc(var(--ly) * 1px)); }
.ev-mode[data-m="m1"] { box-shadow: inset 0 0 0 1px var(--border); }
.ev-count { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.ev-count b { font-size: 28px; font-weight: 800; line-height: 34px; font-variant-numeric: tabular-nums; }
.ev-count span { font-size: 14px; font-weight: 500; color: color-mix(in srgb, currentColor 30%, #7c7c86); }

/* the rails: the iPhone's swipe rail, a capsule button, or a round one; Learnt fills green as it is chosen */
.ev-rail { --c: 46, 184, 107; }
.ev-dn { --c: 230, 77, 87; }
.ev-rail > span {
  position: absolute; inset: 0; border-radius: inherit; transform: scale(calc(1 + 0.06 * var(--focus, 0)));
  color: color-mix(in srgb, #ffffff calc(var(--pull, 0) * 100%), rgb(var(--c)));
  background: color-mix(in srgb, #ffffff calc(var(--focus, 0) * (1 - var(--pull, 0)) * 100%), rgba(var(--c), calc(0.16 + 0.84 * var(--pull, 0))));
  box-shadow: inset 0 0 0 2px rgba(var(--c), calc(0.55 * (1 - var(--pull, 0)) * (1 - var(--focus, 0)))), 0 calc(3px + 12px * var(--focus, 0)) calc(6px + 10px * var(--pull, 0) + 20px * var(--focus, 0)) rgba(0, 0, 0, calc(0.3 * var(--focus, 0))), 0 3px calc(6px + 10px * var(--pull, 0)) rgba(var(--c), calc(0.12 + 0.28 * var(--pull, 0)));
}
.ev-rail p, .ev-rail .ev-rb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.ev-rt { display: flex; align-items: center; gap: 10px; opacity: var(--rt); }
.app-every .ev-rt .sym { width: 18px; height: 18px; }
.ev-rt span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ev-rt small { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; opacity: 0.85; }
.ev-rt b { font-size: 18px; font-weight: 900; }
.ev-rb { font-size: 17px; font-weight: 800; opacity: var(--rb); }
.ev-rr { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: var(--rr); }
.app-every .ev-rr .sym { width: 26px; height: 26px; }
.ev-rr small { font-size: 12px; font-weight: 800; }

/* the card: its label, words and foot turn with it about its middle */
.ev-flip {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--surface); transform-origin: 50% 50%;
  box-shadow: inset 0 0 0 1px var(--border), 0 calc(6px + 18px * var(--lift, 0)) calc(12px + 34px * var(--lift, 0)) rgba(0, 0, 0, calc(0.08 + 0.32 * var(--lift, 0)));
}
.ev-flip.is-a { background: var(--cardback); }
.ev-mg { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(135deg, var(--acc), var(--deep)); }
.ev-top { position: absolute; left: 26px; top: 22px; }
.ev-lab { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; color: var(--acc); }
.ev-txt { position: absolute; left: 50%; top: 50%; width: 300px; transform: translate(-50%, -50%); text-align: center; font-weight: 600; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.ev-foot { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.app-every .ev-foot .sym { width: 12px; height: 12px; }

/* the ribbon: twelve plates, green because the set is held; the one in play stands up */
.ev-rib { width: 393px; height: 72px; }
.ev-pl { position: absolute; left: 0; top: 0; width: 28px; height: 40px; border-radius: 5px; transform-origin: 50% 100%; }
.ev-pl > .bk { position: absolute; left: 1.2px; top: calc(1.2px + var(--pop, 0) * 0.6px); width: 100%; height: 100%; border-radius: inherit; background: rgba(46, 184, 107, 0.5); }
.ev-pl > .fc { position: absolute; inset: 0; border-radius: inherit; background: rgba(46, 184, 107, 0.8); box-shadow: inset 0 0 0 calc(2.1px + var(--pop, 0) * 0.5px) rgba(46, 46, 51, calc(0.5 + var(--pop, 0) * 0.22)); }
.ev-pl > .fc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, calc(0.12 + 0.3 * var(--pop, 0))), rgba(255, 255, 255, 0) 50%); }

/* the Mac's keys and inspector */
.ev-keys { display: flex; gap: 22px; font-family: var(--sf); font-size: 12px; color: var(--ink2); white-space: nowrap; }
.ev-keys span { display: flex; align-items: center; gap: 7px; }
.ev-keys i {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 600;
  color: color-mix(in srgb, #ffffff calc(var(--on, 0) * 100%), var(--ink)); background: color-mix(in srgb, var(--acc) calc(var(--on, 0) * 100%), #ffffff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, calc(0.1 * (1 - var(--on, 0)))), 0 calc(1px * (1 - var(--on, 0))) 0 rgba(0, 0, 0, 0.14); transform: translateY(calc(var(--on, 0) * 1px));
}
.ev-insp { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--sf); background: #ffffff; box-shadow: inset 0 0 0 1px var(--border), 0 2px 8px rgba(20, 30, 60, 0.05); }
.ev-insp small { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink3); }
.ev-insp > b { font-family: var(--rounded); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink); min-height: 36px; }
.ev-insp p { display: flex; justify-content: space-between; padding-top: 9px; font-size: 12px; color: var(--ink2); box-shadow: inset 0 1px 0 var(--border); }
.ev-insp em { color: var(--ink); font-weight: 600; }
.ev-insp em.g { color: var(--learnt); }

/* the Watch's time and page dots */
.ev-wtime { font-family: var(--sf); font-size: 15px; font-weight: 600; color: #ffffff; }
.ev-wdots { display: flex; flex-direction: column; gap: 4px; }
.ev-wdots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.34); }
.ev-wdots i.on { height: 12px; background: #ffffff; }

/* Vision Pro: the rest of the set hanging in the room */
.ev-space {
  border-radius: 18px; overflow: hidden; padding: 18px 20px 0 24px; display: flex; flex-direction: column; gap: 12px; font-family: var(--rounded);
  background: #fefefd; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 36px rgba(20, 40, 90, 0.14);
}
.ev-space .ev-mg { background: linear-gradient(135deg, #2e61d1, #294db8); }
.ev-space small { font-size: 9px; font-weight: 800; letter-spacing: 0.07em; color: #2e61d1; }
.ev-space b { font-size: 16px; font-weight: 600; line-height: 1.24; color: #1f1f24; text-wrap: balance; }
