/* The day screens: Home (home-cards, saved-session, theme). Drawn from the app's tokens: palette.ts, glass.ts,
   contentType.ts, typography.ts, pagerLayout.ts, layout.ts. Points are the app's, on the kit's 402 x 874 screen. */

/* ---------------------------------------------------------------- shared ----------------------------------------- */
.zks-home-cards, .zks-home-saved, .zks-home-theme { overflow: hidden; }
.zks-home-ground { position: absolute; inset: 0; background: #030405; }
.zks-home-wall { left: 0; top: 0; width: 402px; height: 874px; }
.zks-home-stars { position: absolute; inset: 0; pointer-events: none; }
.zks-home-bar { left: 0; top: 760px; width: 402px; height: 114px; z-index: 12; }

/* ---------------------------------------------------------------- home-cards: the pager ----------------------- */
/* The frame between the header's foot and the bar's top; each page one block tall. */
.zks-home-frame { position: absolute; left: 0; top: 135px; width: 402px; height: 651px; overflow: hidden; }
.zks-home-pg { position: absolute; left: 0; top: 0; width: 402px; height: 651px; }
.zks-home-pgb { position: absolute; inset: 0; }
/* The landing's page carries the kit's parts at their screen places. */
.zks-home-up { position: absolute; left: 0; top: -135px; width: 402px; height: 874px; }

/* The "Tall, Lit" card: the reader's resting field and the lit one over it (HomeVerseCard's field, Dark). */
.zks-home-card { position: absolute; left: 16px; top: 51px; width: 370px; height: 546px; border-radius: 24px;
  background: rgba(255, 247, 234, 0.03); border: 1px solid rgba(255, 247, 234, 0.05); border-top-color: rgba(255, 247, 234, 0.16); }
.zks-home-lit { position: absolute; inset: -1px; border-radius: 24px; pointer-events: none;
  background: rgba(255, 247, 234, 0.0204); border: 1px solid rgba(255, 247, 234, 0.05); border-top-color: rgba(255, 247, 234, 0.12); }
/* The text is cut at the card's edge as its foot lifts; at rest it is centred in the card's resting height. */
.zks-home-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 23px; }
.zks-home-rest { position: absolute; left: 0; right: 0; top: 0; height: 544px; padding: 43px 17px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.zks-home-ar { font: 30px/60px var(--zk-arabic); text-align: center; direction: rtl; color: #F4F5F7; }
.zks-home-tr { font: 19px/29px Georgia, "Times New Roman", serif; text-align: center; color: #C9CDD3; text-wrap: balance; }
.zks-home-link { align-self: center; margin-top: -2px; padding: 10px 8px; display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 20px; color: #ECEEF2; white-space: nowrap; }
.zks-home-link svg { width: 12px; height: 12px; flex: none; }
.zks-home-ref { position: absolute; left: 17px; right: 17px; top: 17px; padding-left: 2.5px; text-align: center; white-space: nowrap;
  font-size: 11px; line-height: 14px; letter-spacing: 2.5px; color: #8E939C; font-variant-numeric: tabular-nums; }

/* The wall light under the cards lights each card's lower-left corner (CardGlow): a faint wash inside the glass and
   the rim brightest where the foot is nearest the strike (32, 867), falling off with distance. */
.zks-home-glow { position: absolute; inset: -1px; border-radius: 24px; pointer-events: none;
  background: radial-gradient(circle 325px at 16px calc(100% + 135px),
    rgba(243, 227, 204, 0.11) 0%, rgba(243, 227, 204, 0.11) 41.5%, rgba(243, 227, 204, 0.035) 63%, rgba(243, 227, 204, 0) 100%); }
.zks-home-glow::before { content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: radial-gradient(circle 305px at 16px calc(100% + 135px),
    rgb(251, 244, 234) 0%, rgb(251, 244, 234) 44.3%, rgb(243, 227, 204) 49.5%, rgba(243, 227, 204, 0.4) 63.9%, rgba(243, 227, 204, 0) 100%);
  -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); }

/* The light bend on a top edge, settling once as its surface arrives (--x where it lies, --b how bright). */
.zks-home-ctop, .zks-home-scard .edge, .zks-home-sheet .edge {
  position: absolute; inset: -1px; border-radius: 24px; pointer-events: none; padding: 1px;
  background: radial-gradient(170px 46px at var(--x, 50%) 0,
    rgb(251, 244, 234) 0%, rgba(243, 227, 204, 0.85) 22%, rgba(243, 227, 204, 0.3) 55%, rgba(243, 227, 204, 0) 100%);
  -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);
  opacity: calc(0.42 * var(--b, 1)); }

/* The reader's pill under a tapped card (BandActions): Tafseer, Play, Share on the shelf. */
.zks-home-pill { position: absolute; left: 128px; top: 547px; width: 146px; height: 50px; padding: 2px; display: flex; gap: 4px;
  border-radius: 14px; background: #141519; border: 1px solid rgba(255, 255, 255, 0.12); border-top-color: rgba(255, 247, 234, 0.22); opacity: 0; }
.zks-home-pill span { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: #F4F5F7; }
.zks-home-pill span svg { width: 15px; height: 15px; }
.zks-home-pill .play svg { width: 14px; height: 14px; }
.zks-home-pill .share svg { width: 17px; height: 17px; }

/* The landing's hairline riding up into the header's beam (HomeBeams). */
.zks-home-hair { position: absolute; left: 84px; top: 0; width: 234px; height: 1px; transform-origin: 50% 50%; pointer-events: none;
  background: linear-gradient(to right, rgba(243, 227, 204, 0), rgba(243, 227, 204, 0.65) 50%, rgba(243, 227, 204, 0)); }
.zks-home-head { position: absolute; left: 0; top: 0; width: 402px; height: 1px; transform-origin: 50% 50%; opacity: 0; 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-home-head i { position: absolute; left: 30%; right: 30%; top: -6px; height: 12px;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.28), rgba(255, 247, 234, 0)); }

/* ---------------------------------------------------------------- saved-session -------------------------------- */
.zks-home-veil { position: absolute; inset: 0; }
/* Home's bottom slot: 24 in, 28 above the box's foot. */
.zks-home-scard { position: absolute; left: 24px; right: 24px; bottom: 132px; border-radius: 24px; opacity: 0;
  background: #15171B; border: 1px solid rgba(255, 255, 255, 0.12); }
.zks-home-sface { padding: 14px 42px 14px 16px; }
.zks-home-sface .h { display: flex; align-items: center; gap: 6px; min-height: 20px; font-weight: 600; font-size: 14px; line-height: 20px; color: #ECEEF2; }
.zks-home-sface .ck { width: 12px; height: 12px; display: grid; place-items: center; }
.zks-home-sface .ck svg { width: 12px; height: 12px; }
.zks-home-sface .pl { margin-top: 2px; font-weight: 500; font-size: 17px; line-height: 22px; color: #F4F5F7; }
.zks-home-sface .ft { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.zks-home-sface .pillr { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 14px;
  background: rgba(236, 238, 242, 0.08); border: 1px solid rgba(236, 238, 242, 0.38); color: #ECEEF2; }
.zks-home-sface .pillr svg:first-child { width: 14px; height: 14px; }
.zks-home-sface .pillr svg:last-child { width: 6px; height: 10px; }
.zks-home-sface .pillr b { font-weight: 600; font-size: 14px; line-height: 20px; }
.zks-home-sface .ct { font-size: 14px; line-height: 20px; color: #8E939C; }
.zks-home-scard .x { position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; color: #8E939C; }
.zks-home-scard .x svg { width: 14px; height: 14px; display: block; }

/* Home's Tafseer drawer on the session (Sheet: drawer ceiling, flush). */
.zks-home-scrim { position: absolute; inset: 0; z-index: 14; background: rgba(0, 0, 0, 0.58); opacity: 0; }
.zks-home-sheet { position: absolute; left: 0; right: 0; top: 87px; height: 787px; z-index: 15; visibility: hidden; overflow: hidden;
  border-radius: 24px 24px 0 0; background: #15171B; }
.zks-home-sheet .edge { border-radius: 24px 24px 0 0; }
.zks-home-sheet .grab { position: absolute; left: 183px; top: 8px; width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.zks-home-sheet .hd { position: absolute; left: 0; right: 0; top: 24px; text-align: center; }
.zks-home-sheet .hd b { display: block; font: 18px/24px Georgia, "Times New Roman", serif; font-weight: 400; color: #F4F5F7; }
.zks-home-sheet .hd i { display: block; margin-top: 2px; font-style: normal; font-size: 14px; line-height: 20px; color: #8E939C; }
.zks-home-sheet .hd .x { position: absolute; right: 12px; top: -8px; width: 44px; height: 44px; display: grid; place-items: center; color: #8E939C; }
.zks-home-sheet .hd .x svg { width: 20px; height: 20px; }
.zks-home-sheet .beam { position: absolute; left: 0; right: 0; top: 82px; height: 1px;
  background: linear-gradient(to right, rgba(255, 247, 234, 0), rgba(255, 247, 234, 0.5) 50%, rgba(255, 247, 234, 0)); }
.zks-home-sheet .rd { position: absolute; left: 0; right: 0; top: 83px; padding: 16px 28px 0; }
.zks-home-sheet .rd p { margin: 0 0 20px; font: 19px/33px Georgia, "Times New Roman", serif; color: #F4F5F7; }
.zks-home-sheet .fadet { position: absolute; left: 0; right: 0; top: 83px; height: 40px; background: linear-gradient(#15171B, rgba(21, 23, 27, 0)); opacity: 0; }
.zks-home-sheet .fadeb { position: absolute; left: 0; right: 0; bottom: 0; height: 154px; background: linear-gradient(rgba(21, 23, 27, 0), #15171B 70%); }
.zks-home-sheet .rt { position: absolute; left: 109px; bottom: 42px; width: 184px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: #1D2025; border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 500; font-size: 14px; line-height: 20px; color: #F4F5F7; }

/* ---------------------------------------------------------------- theme: Settings in Dark and Light ------------ */
.zks-home-set { position: absolute; inset: 0; color: var(--h-ink); }
.zks-home-dk { --h-bg: #0B0C0F; --h-surface: #15171B; --h-line: rgba(255, 255, 255, 0.12); --h-hair: rgba(255, 255, 255, 0.12);
  --h-ink: #F4F5F7; --h-body: #C9CDD3; --h-muted: #8E939C; --h-accent: #ECEEF2; --h-knob: #0B0C0F; }
.zks-home-lt { --h-bg: #FAFAF9; --h-surface: rgba(255, 255, 255, 0.8); --h-line: rgba(20, 22, 26, 0.12); --h-hair: rgba(20, 22, 26, 0.08);
  --h-ink: #14161A; --h-body: #3B3F46; --h-muted: #686D76; --h-accent: #14161A; --h-knob: #FFFFFF;
  /* the kit's landing parts, re-inked for Light */
  --zk-ink: #14161A; --zk-body: #3B3F46; --zk-muted: #686D76; --zk-border: rgba(20, 22, 26, 0.12); --zk-surface: #FFFFFF;
  color: var(--zk-ink); }
.zks-home-onl { opacity: 0; }
.zks-home-sbg { position: absolute; inset: 0; background: var(--h-bg); }

.zks-home-shdr { position: absolute; left: 24px; right: 24px; top: 74px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.zks-home-shdr .tt { font: 32px/38px Georgia, "Times New Roman", serif; color: var(--h-ink); letter-spacing: -0.2px; }
.zks-home-seat { position: relative; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: var(--h-ink);
  border: 1px solid var(--h-line); border-top-color: rgba(255, 247, 234, 0.24); }
.zks-home-seat svg { width: 20px; height: 20px; }
.zks-home-hbeam { position: absolute; left: 0; right: 0; top: 131px; height: 1px;
  background: linear-gradient(to right, rgba(255, 247, 234, 0), rgba(255, 247, 234, 0.5) 50%, rgba(255, 247, 234, 0)); }
.zks-home-hbeam::after { content: ""; position: absolute; left: 30%; right: 30%; top: -6px; height: 12px;
  background: radial-gradient(closest-side, rgba(255, 247, 234, 0.28), rgba(255, 247, 234, 0)); }

.zks-home-scol { position: absolute; left: 24px; right: 24px; top: 148px; display: flex; flex-direction: column; gap: 16px; }
.zks-home-list { position: relative; border-radius: 24px; background: var(--h-surface); border: 1px solid var(--h-line); padding: 0 16px; }
/* The quiet light lying on a Dark card's top edge. */
.zks-home-dk .zks-home-list::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; pointer-events: none;
  background: radial-gradient(190px 40px at 50% 0, rgba(243, 227, 204, 0.5), rgba(243, 227, 204, 0.12) 60%, rgba(243, 227, 204, 0) 100%);
  -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); }
.zks-home-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 15px 0; min-height: 52px; }
.zks-home-row + .zks-home-row::before { content: ""; position: absolute; left: 36px; right: -16px; top: 0; height: 0.5px; background: var(--h-hair); }
.zks-home-row .g { width: 24px; height: 24px; flex: none; color: var(--h-body); }
.zks-home-row .g svg { width: 24px; height: 24px; display: block; }
.zks-home-row .lb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 17px; line-height: 22px; color: var(--h-ink); white-space: nowrap; }
.zks-home-row .inf { width: 18px; height: 18px; flex: none; color: var(--h-muted); }
.zks-home-row .inf svg { width: 18px; height: 18px; display: block; }
.zks-home-row .v { font-size: 15px; line-height: 22px; color: var(--h-muted); white-space: nowrap; }
.zks-home-chev { width: 8px; height: 14px; flex: none; color: var(--h-muted); }
.zks-home-ext { width: 12px; height: 12px; flex: none; color: var(--h-muted); }
.zks-home-sw { position: relative; width: 51px; height: 31px; flex: none; border-radius: 8px; background: var(--h-accent); }
.zks-home-sw i { position: absolute; right: 2px; top: 2px; width: 27px; height: 27px; border-radius: 6px; background: var(--h-knob);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
/* The you card's first row: the 40 pt ring with the initial, the account's label over its backup line. */
.zks-home-row.you { padding: 14px 0; }
.zks-home-row .ring { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--h-line); display: grid; place-items: center;
  font: 18px/24px Georgia, "Times New Roman", serif; color: var(--h-ink); }
.zks-home-row .who { flex: 1; min-width: 0; }
.zks-home-row .who b { display: block; font-weight: 600; font-size: 17px; line-height: 22px; color: var(--h-ink); white-space: nowrap; }
.zks-home-row .who i { display: block; font-style: normal; font-size: 14px; line-height: 20px; color: var(--h-muted); }
.zks-home-row.you + .zks-home-row::before { left: 0; }
.zks-home-report { height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; font-size: 17px; line-height: 22px;
  color: var(--h-ink); background: var(--h-surface); border: 1px solid var(--h-line); border-top-color: rgba(255, 247, 234, 0.3); }

/* Light's glass (glass.ts, "A · Mist"): frosted white cards and controls, a hair of shade for the beam. */
.zks-home-lt .zks-home-list { border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), inset 0 1.5px 0 #fff, 0 0.5px 1.5px 0.5px rgba(38, 54, 82, 0.07), 0 16px 36px -12px rgba(38, 54, 82, 0.16); }
.zks-home-lt .zks-home-seat, .zks-home-lt .zks-home-report { background: rgba(255, 255, 255, 0.8); border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), inset 0 1.5px 0 #fff, 0 0.5px 1px 0.5px rgba(38, 54, 82, 0.09), 0 6px 16px -3px rgba(38, 54, 82, 0.12); }
.zks-home-lt .zks-home-hbeam { background: linear-gradient(to right, rgba(38, 54, 82, 0), rgba(38, 54, 82, 0.13) 50%, rgba(38, 54, 82, 0)); }
.zks-home-lt .zks-home-hbeam::after { left: 0; right: 0; top: 1px; height: 1px; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0));
  box-shadow: 0 2px 6px rgba(38, 54, 82, 0.06); }
.zks-home-lt .zks-home-row .ring { background: rgba(255, 255, 255, 0.8); border-color: rgba(20, 22, 26, 0.08); }

/* The halves blur what passes under them. */
.zks-home-blur { position: absolute; top: 786px; height: 64px; width: 152px; z-index: 11; pointer-events: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.zks-home-blur.l { left: 16px; border-radius: 24px 6px 6px 24px; }
.zks-home-blur.r { right: 16px; border-radius: 6px 24px 24px 6px; }

/* ---------------------------------------------------------------- theme: Home in Light ------------------------ */
.zks-home-lhome { position: absolute; inset: 0; opacity: 0; }
.zks-home-lbg { position: absolute; inset: 0; background: #FAFAF9; }
/* MistLight: the foot's mist rising on the paper, and the glow over it. */
.zks-home-foot { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(207, 220, 235, 0) 0%, rgba(207, 220, 235, 0) 77%, rgba(207, 220, 235, 0.16) 83%,
    rgba(207, 220, 235, 0.44) 89%, rgba(207, 220, 235, 0.74) 95%, rgba(207, 220, 235, 1) 100%); }
.zks-home-mist { position: absolute; left: -20%; right: -20%; bottom: 0; height: 52%; opacity: 0.62; transform: scaleY(0.8); transform-origin: 50% 100%;
  background: radial-gradient(52% 64% at 50% 100%, rgba(191, 210, 234, 0.92) 0%, rgba(214, 226, 241, 0.5) 48%, rgba(214, 226, 241, 0) 100%); }
/* The landing's beam in Light: a groove of shade over a white line. */
.zks-home-seam { position: absolute; left: 84px; top: 726px; width: 234px; height: 2px;
  background: linear-gradient(to right, rgba(38, 54, 82, 0), rgba(38, 54, 82, 0.12) 50%, rgba(38, 54, 82, 0)) 0 0 / 100% 1px no-repeat,
    linear-gradient(to right, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)) 0 1px / 100% 1px no-repeat; }
.zks-home-lhome .zk-door { background: rgba(255, 255, 255, 0.8); border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), inset 0 1.5px 0 #fff, 0 0.5px 1px 0.5px rgba(38, 54, 82, 0.09), 0 6px 16px -3px rgba(38, 54, 82, 0.12); }
.zks-home-lhome .zk-door .edge, .zks-home-lhome .zk-door .tip { display: none; }
/* Continue's place: a line of pearl lit as far as your place, 6 above the door's foot. */
.zks-home-place { position: absolute; left: 16px; bottom: 6px; width: 66px; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(120, 146, 186, 0.18) 0%, rgba(120, 146, 186, 0.85) 100%); }
.zks-home-lhome .zk-followbtn { background: rgba(255, 255, 255, 0.8); border-color: transparent; color: #14161A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), inset 0 1.5px 0 #fff, 0 0.5px 1px 0.5px rgba(38, 54, 82, 0.09), 0 6px 16px -3px rgba(38, 54, 82, 0.12); }
.zks-home-lhome .zk-followbtn svg { color: #14161A; }

/* The status bar's glyphs follow its ink while this moment is up (the kit draws them in the Dark ink). */
.zk-screen:has(> .zks-home-theme:not(.off)) .zk-status svg { color: inherit; }
