/* The day screens: Hive. The Hive tab (route Circle: HeartScreen.tsx over CircleStrip, the dua cards in
   circle/ui/card/, the rows in circle/ui/rows/) and the Qibla Finder drawer (qibla/ui/QiblaSheet.tsx) over Home.
   Every size is the app's own, in its 402 x 874 points (Dark palette, palette.ts; type, typography.ts). */

.zks-hive { background: #0B0C0F; color: #F4F5F7; font-family: var(--zk-sans); overflow: hidden; }
.zks-hive.zks-hive-qibla { background: transparent; }
.zks-hive * { box-sizing: border-box; }
.zks-hive svg { display: block; overflow: visible; }

/* ---- the Hive page's frame: header (Add someone in the corner), the header beam, the bar ---------------------- */
.zks-hive-seat { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-top-color: rgba(243, 227, 204, 0.22);
  background: #15171B; color: #F4F5F7; }
.zks-hive-seat svg { width: 20px; height: 20px; }
/* HeaderBeam: a 1 pt line of the beam's light (#FFF7EA), 0.5 at its centre, and a 12 pt halo at 0.28 from 30 % in. */
.zks-hive-beam { position: absolute; left: 0; right: 0; top: 134px; height: 1px; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 247, 234, 0), rgba(255, 247, 234, 0.5) 50%, rgba(255, 247, 234, 0)); }
.zks-hive-beam::before { content: ""; position: absolute; left: 30%; right: 30%; top: -5.5px; height: 12px;
  background: radial-gradient(ellipse closest-side, rgba(255, 247, 234, 0.28), rgba(255, 247, 234, 0)); }

/* ---- the page under the beam: the top place (one dua card in front), its dots, Your people ------------------- */
.zks-hive-body { position: absolute; left: 24px; right: 24px; top: 151px; }
.zks-hive-place { position: relative; height: 180px; }
.zks-hive-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; height: 14px; align-items: center; }
.zks-hive-dot { width: 6px; height: 6px; margin: 4px; border-radius: 3px; background: #8E939C; flex: none; }
.zks-hive-dot.on { width: 16px; background: #F4F5F7; }
.zks-hive-dot.game { background: transparent; border: 1px solid #8E939C; }
.zks-hive-head { margin-top: 24px; min-height: 40px; display: flex; align-items: center;
  font: 400 20px/26px Georgia, "Times New Roman", serif; color: #F4F5F7; }

/* ---- a dua card (DuaCardView.tsx): 180 tall, 24 corners, its light in the top-left, two answers --------------- */
.zks-hive-card { position: absolute; left: 0; right: 0; top: 0; height: 180px; overflow: hidden; border-radius: 24px;
  border: 0.5px solid var(--edge); background: radial-gradient(ellipse 90% 110% at 0% 0%, var(--glow) 0%, rgba(0, 0, 0, 0) 65%), #15171B; }
.zks-hive-card.rose { --shade: #EFB7C9; --ink: #EFB7C9; --edge: rgba(239, 183, 201, 0.42); --glow: rgba(239, 183, 201, 0.13);
  --line: rgba(239, 183, 201, 0.4); --mark: rgba(239, 183, 201, 0.18); }
.zks-hive-card.cream { --shade: #F3E3CC; --ink: #F3E3CC; --edge: rgba(243, 227, 204, 0.35); --glow: rgba(243, 227, 204, 0.13);
  --line: rgba(243, 227, 204, 0.4); --mark: rgba(243, 227, 204, 0.18); }
.zks-hive-in { position: absolute; left: 0; right: 0; top: 0; min-height: 180px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 8px; }
.zks-hive-chead { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.zks-hive-lead { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zks-hive-lead b { font-weight: 600; color: #F4F5F7; }
.zks-hive-when { font-size: 12px; line-height: 16px; color: #8E939C; flex: none; }
.zks-hive-close { width: 28px; height: 28px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: rgba(236, 238, 242, 0.08); color: #C9CDD3; }
.zks-hive-close svg { width: 12px; height: 12px; }
.zks-hive-text { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.zks-hive-ar { font: 22px/40px var(--zk-arabic); direction: rtl; text-align: right; color: #F4F5F7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zks-hive-tr { font: italic 400 16px/22px Georgia, "Times New Roman", serif; color: #C9CDD3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zks-hive-acts { display: flex; justify-content: center; gap: 8px; }
.zks-hive-btn { position: relative; height: 40px; border-radius: 14px; padding: 0 16px; display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; flex: none;
  border: 1px solid var(--line); background: rgba(236, 238, 242, 0.08); color: #F4F5F7; }
.zks-hive-btn.fill { border: 0; background: var(--shade); color: #0B0C0F; }
.zks-hive-btn svg { width: 14px; height: 14px; }
.zks-hive-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #FFFFFF;
  opacity: calc(var(--press, 0) * 0.12); }
/* What happened, for a moment, before the card folds: a ✓ on the card's light and the words. */
.zks-hive-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: #15171B; opacity: 0; }
.zks-hive-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--mark); color: var(--ink); }
.zks-hive-mark svg { width: 16px; height: 16px; }
.zks-hive-said { font-size: 15px; line-height: 20px; font-weight: 600; color: #F4F5F7; }

/* ---- Your people: one 64 pt row each (Row.tsx), a hairline from the words, Add last -------------------------- */
.zks-hive-rows { position: relative; }
.zks-hive-row { position: relative; height: 64px; display: flex; align-items: center; gap: 16px; }
.zks-hive-row + .zks-hive-row::before { content: ""; position: absolute; left: 64px; right: 0; top: 0; height: 1px;
  background: rgba(255, 255, 255, 0.08); transform: scaleY(0.5); transform-origin: 0 0; }
.zks-hive-glyph { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.zks-hive-glyph > svg { position: absolute; inset: 0; width: 48px; height: 48px; }
.zks-hive-face { position: relative; width: 32px; height: 32px; border-radius: 8px; background: #15171B;
  border: 0.5px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center;
  font-size: 15px; line-height: 18px; font-weight: 600; color: #C9CDD3; }
.zks-hive-plus { position: relative; width: 20px; height: 20px; color: #ECEEF2; }
.zks-hive-words { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.zks-hive-name { font-size: 15px; line-height: 20px; font-weight: 600; color: #F4F5F7; white-space: nowrap; }
.zks-hive-line { font-size: 12px; line-height: 16px; font-weight: 500; color: #8E939C; font-variant-numeric: tabular-nums; }
.zks-hive-end { position: relative; flex: none; max-width: 40%; text-align: right; font-size: 12px; line-height: 16px;
  font-weight: 500; color: #8E939C; font-variant-numeric: tabular-nums; }
.zks-hive-end.cue { color: #ECEEF2; }
.zks-hive-end span { display: block; }
/* Remind: an outlined 32 pt button in a 44 pt target, a bell and the prayer that's on. */
.zks-hive-pill { position: relative; flex: none; width: 84px; height: 32px; border-radius: 14px;
  border: 1px solid rgba(236, 238, 242, 0.38); background: rgba(236, 238, 242, 0.08); color: #ECEEF2;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; }
.zks-hive-pill svg { width: 14px; height: 14px; }
.zks-hive-pill::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: #ECEEF2;
  opacity: calc(var(--press, 0) * 0.14); }
.zks-hive-pill .w { display: flex; align-items: center; gap: 6px; }
.zks-hive-spin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: 0; }

/* ---- the page's note (ToastView.tsx): a 24-corner pill just above the bar's blob ------------------------------ */
.zks-hive-toast { position: absolute; left: 50%; bottom: 116px; z-index: 14; min-height: 44px; padding: 12px 16px;
  border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.12); border-top-color: rgba(243, 227, 204, 0.16);
  background: #15171B; font-size: 14px; line-height: 20px; color: #F4F5F7; white-space: nowrap; opacity: 0;
  transform: translate(-50%, 16px); }

/* ---- the Qibla Finder: Home behind, the scrim, the sheet --------------------------------------------------- */
.zks-hive-home { position: absolute; inset: 0; }
.zks-hive-scrim { position: absolute; inset: 0; z-index: 15; background: rgba(0, 0, 0, 0.58); opacity: 0; }
.zks-hive-sheet { position: absolute; left: 0; right: 0; top: 74px; bottom: 0; z-index: 16; background: #15171B;
  border: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 0; border-radius: 24px 24px 0 0; transform: translateY(820px); }
/* A sheet's top edge is its own to light: the bend's warm white, quiet, brightest at the middle. */
.zks-hive-sheet::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(to right, rgba(243, 227, 204, 0), rgba(243, 227, 204, 0.42) 50%, rgba(243, 227, 204, 0)); }
.zks-hive-grab { position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.16); }
.zks-hive-stitle { position: absolute; left: 24px; right: 24px; top: 24px; height: 44px; display: flex; align-items: center;
  justify-content: space-between; }
.zks-hive-stitle b { font: 400 22px/28px Georgia, "Times New Roman", serif; letter-spacing: -0.1px; color: #F4F5F7; }
.zks-hive-donepill { min-width: 64px; height: 36px; padding: 0 16px; border-radius: 14px; background: #1D2025;
  display: grid; place-items: center; font-size: 15px; line-height: 20px; font-weight: 600; color: #F4F5F7; }
.zks-hive-compass { position: absolute; left: -13.5px; top: 116.5px; width: 429px; height: 429px; }
.zks-hive-readout { position: absolute; left: 0; right: 0; top: 493px; min-height: 96px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center; }
.zks-hive-big { font: 400 32px/38px Georgia, "Times New Roman", serif; letter-spacing: -0.4px; color: #F4F5F7;
  font-variant-numeric: tabular-nums; }
.zks-hive-big.facing { color: #ECEEF2; }
.zks-hive-small { font-size: 15px; line-height: 20px; color: #8E939C; }
.zks-hive-kaaba { margin-top: 12px; font-size: 14px; line-height: 20px; color: #8E939C; }
.zks-hive-story { position: absolute; left: 0; right: 0; top: 734px; display: flex; justify-content: center; align-items: center;
  gap: 6px; font-size: 14px; line-height: 20px; color: #8E939C; }
.zks-hive-story svg { width: 12px; height: 12px; }
