/* Sar-kitab v2 shared UI: tokens, stage (book/letters/wheel), result (medallion, formula, personal reading, sources).
   Used by /tools/sar-kitab (html.sk) and the in-app panel (.sk-ui wrapper). Generated from the v2 prototype sk.css. */
html.sk, .sk-ui, .sk-toast {
  --sk-bg: #07051a; --sk-bg-2: #0e0a26; --sk-ink: #f4efe2; --sk-muted: #c9bfe6; --sk-soft: #9d93bd;
  --sk-gold: #f2c46d; --sk-gold-2: #e0a63e; --sk-gold-3: #fff0c4; --sk-lapis: #3b5bdb; --sk-violet: #8b5cf6; --sk-rose: #f472b6; --sk-teal: #2dd4bf;
  --sk-card: linear-gradient(165deg, rgba(30, 22, 64, .78), rgba(14, 10, 34, .72));
  --sk-card-brd: rgba(242, 196, 109, .22); --sk-card-brd-hi: rgba(242, 196, 109, .55);
  --sk-page: linear-gradient(170deg, #fbf3df 0%, #f3e4c2 100%); --sk-page-ink: #2a1a08; --sk-page-muted: #6b5634;
  --sk-shadow: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset;
  --sk-head: linear-gradient(100deg, #fff0c4 0%, #f2c46d 35%, #e9b8ff 70%, #a5b4fc 100%);
  --sk-glyph: rgba(242, 196, 109, .13);
  --sk-r: 26px; --sk-ease: cubic-bezier(.2, .7, .2, 1);
}
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui), html[data-theme="light"] .sk-ui, html[data-theme="light"] .sk-toast {
  --sk-bg: #f6eedb; --sk-bg-2: #efe2c4; --sk-ink: #24160a; --sk-muted: #5b4528; --sk-soft: #85704f;
  --sk-gold: #a8741a; --sk-gold-2: #8a5a10; --sk-gold-3: #c99a3e; --sk-lapis: #1e3a8a; --sk-violet: #6d28d9; --sk-rose: #be185d; --sk-teal: #0f766e;
  --sk-card: linear-gradient(165deg, rgba(255, 252, 244, .93), rgba(250, 242, 224, .9));
  --sk-card-brd: rgba(150, 104, 30, .22); --sk-card-brd-hi: rgba(150, 104, 30, .5);
  --sk-shadow: 0 30px 70px -42px rgba(110, 70, 20, .55), 0 1px 0 rgba(255, 255, 255, .9) inset;
  --sk-head: linear-gradient(100deg, #1e2a78 0%, #3b1e8a 45%, #8a5a10 100%);
  --sk-glyph: rgba(150, 104, 30, .14);
}

@keyframes skRot { to { transform: rotate(360deg); } }
@keyframes skGlow { from { opacity: .7; } to { opacity: 1; transform: scale(1.08); } }

/* injected: the stage (book / letters / wheel) */
.sk-stage { position: relative; aspect-ratio: 1 / 1.02; border-radius: 30px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 70% at 50% 40%, rgba(59, 41, 140, .55), rgba(14, 10, 34, .9) 70%), #0b0820; border: 1px solid var(--sk-card-brd); box-shadow: var(--sk-shadow); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-stage { background: radial-gradient(80% 70% at 50% 40%, rgba(255, 246, 222, 1), rgba(240, 225, 190, 1) 75%); }
.sk-stage__ring { position: absolute; inset: 4%; opacity: .9; }
.sk-stage__ring svg { width: 100%; height: 100%; }
.sk-stage__ring .sk-wheel { transform-origin: 50% 50%; transition: transform 2.2s cubic-bezier(.15, .8, .2, 1); }
.sk-stage__ring .sk-l28 { animation: skRot 200s linear infinite; transform-origin: 50% 50%; }
.sk-stage__ring text { font: 700 13px Vazirmatn, sans-serif; fill: var(--sk-gold); }
.sk-stage__ring .sk-seg { fill: transparent; stroke: rgba(242, 196, 109, .25); transition: fill .3s; }
.sk-stage__ring .sk-seg.on { fill: rgba(242, 196, 109, .22); }
.sk-stage__ring .sk-seg.hit { fill: rgba(242, 196, 109, .5); }
.sk-stage__ring image { opacity: .85; }
.sk-pointer { position: absolute; top: 2.5%; left: 50%; width: 22px; height: 30px; margin-left: -11px; z-index: 3;
  background: linear-gradient(#fff0c4, #e0a63e); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.sk-stage__core { position: absolute; inset: 24%; border-radius: 50%; display: grid; place-items: center; text-align: center; z-index: 2;
  background: radial-gradient(circle, rgba(20, 14, 48, .95), rgba(20, 14, 48, .78) 70%, transparent 72%); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-stage__core { background: radial-gradient(circle, rgba(255, 251, 240, .97), rgba(255, 251, 240, .85) 70%, transparent 72%); }
.sk-book { width: 78%; }
.sk-book svg { width: 100%; height: auto; overflow: visible; }
.sk-book .pg { transform-origin: 50% 100%; }
.sk-stage[data-phase="idle"] .sk-book .glow { animation: skGlow 2.4s ease-in-out infinite alternate; }
.sk-calc { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 7%; text-align: center; }
.sk-stage[data-phase="letters"] .sk-calc { display: flex; background: radial-gradient(circle at 50% 50%, rgba(20, 14, 48, .97), rgba(7, 5, 26, .95)); }
.sk-stage[data-phase="letters"] .sk-stage__core { opacity: 0; }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-stage[data-phase="letters"] .sk-calc { background: radial-gradient(circle at 50% 50%, rgba(255, 251, 240, .98), rgba(246, 236, 212, .96)); }
.sk-calc__who { font-size: .9rem; color: var(--sk-muted); font-weight: 700; }
.sk-calc__who b { color: var(--sk-gold); }
.sk-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; direction: rtl; }
.sk-tile { width: 54px; height: 66px; border-radius: 12px; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 6px 0; perspective: 400px;
  background: linear-gradient(170deg, rgba(242, 196, 109, .16), rgba(242, 196, 109, .04)); border: 1px solid rgba(242, 196, 109, .35); opacity: .25; transform: translateY(8px); transition: .35s var(--sk-ease); }
.sk-tile b { font-size: 1.6rem; line-height: 1; color: var(--sk-ink); }
.sk-tile small { font-size: .8rem; font-weight: 800; color: var(--sk-gold); }
.sk-tile.on { opacity: 1; transform: none; box-shadow: 0 0 22px -6px var(--sk-gold); }
.sk-sum { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 900; color: var(--sk-gold); font-variant-numeric: tabular-nums; }
.sk-sum small { display: block; font-size: .8rem; font-weight: 600; color: var(--sk-soft); }
.sk-calc__eq { font-size: .95rem; color: var(--sk-muted); min-height: 1.8em; }
.sk-skip { position: absolute; top: 14px; left: 14px; z-index: 6; font: inherit; font-size: .78rem; padding: .35rem .8rem; border-radius: 10px; cursor: pointer; color: var(--sk-muted); background: transparent; border: 1px solid var(--sk-card-brd); display: none; }
.sk-stage[data-phase="letters"] .sk-skip, .sk-stage[data-phase="wheel"] .sk-skip { display: block; }
@media (max-width: 640px) { .sk-skip { top: 8px; left: 8px; font-size: .7rem; padding: .25rem .6rem; background: color-mix(in srgb, var(--sk-card, #120f26) 88%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
.sk-core-num { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; color: var(--sk-gold); line-height: 1.2; }
.sk-core-cap { font-size: .8rem; color: var(--sk-muted); line-height: 1.7; max-width: 15ch; margin-inline: auto; }
.sk-core-glyph { display: grid; place-items: center; width: 46%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; color: #f7d58c; background: radial-gradient(circle at 34% 28%, #3b318f, #140f45 70%); box-shadow: 0 0 0 3px rgba(242, 196, 109, .6), 0 0 40px rgba(242, 196, 109, .4); }
.sk-core-glyph svg { width: 62%; height: 62%; }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-core-glyph { color: #1e3a8a; background: radial-gradient(circle at 34% 28%, #fffdf6, #f1dcaa); box-shadow: 0 0 0 3px #a8741a, 0 10px 30px -10px rgba(110, 70, 20, .5); }
.sk-core-eq { display: grid; gap: 6px; justify-items: center; }
.sk-core-eq .sk-core-num { white-space: nowrap; unicode-bidi: isolate; }
.sk-core-eq .sk-core-num span { opacity: .8; margin-inline: .1em; }
.sk-core-eq .sk-core-res { font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 800; color: var(--sk-ink); white-space: nowrap; line-height: 1.3; }
.sk-core-eq .sk-core-cap { max-width: none; font-size: .9rem; line-height: 1.8; white-space: nowrap; }
.sk-nw { white-space: nowrap; }
.sk-core-eq b { color: var(--sk-gold); font-size: 1.15em; }
.sk-wglyph { color: rgba(242, 196, 109, .85); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-wglyph { color: #8a5a10; }
.sk-stage[data-phase="done"] .sk-stage__core { animation: skPop .8s var(--sk-ease); }
@keyframes skPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.sk-stage__cap { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; text-align: center; padding: 14px 16px 16px; font-size: .82rem; color: var(--sk-muted);
  background: linear-gradient(transparent, rgba(7, 5, 26, .7)); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-stage__cap { background: linear-gradient(transparent, rgba(246, 238, 219, .9)); }

/* ---------- result: the opened page ---------- */
.sk-res { position: relative; border-radius: 22px; overflow: hidden; animation: skOpen 1s var(--sk-ease) both; transform-origin: 50% 0; }
@keyframes skOpen { from { opacity: 0; transform: perspective(1400px) rotateX(-14deg) translateY(30px); } to { opacity: 1; transform: none; } }
.sk-res__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 36px); align-items: center; padding: clamp(22px, 3.4vw, 40px);
  background: var(--sk-card); border: 1px solid var(--sk-card-brd); border-radius: 22px 22px 0 0; }
.sk-medal { position: relative; width: clamp(120px, 15vw, 168px); aspect-ratio: 1; flex: none; }
/* The ring is a larger square around the disc. Sizing it here (not with left/width on the
   svg) keeps the circles concentric on phones, where .panel.active svg { max-width: 100% }
   would otherwise cap a 128% svg and shove it off the disc. */
.sk-medal__ring { position: absolute; inset: -14%; pointer-events: none; }
.sk-medal__ring svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; transform-origin: center; transform-box: fill-box; animation: skRot 90s linear infinite; }
.panel.active .sk-medal__ring svg,
.result-box .sk-medal__ring svg { max-width: none; width: 100%; height: 100%; }
.sk-medal__disc { position: absolute; inset: 8%; border-radius: 50%; display: grid; place-items: center; color: #f7d58c;
  background: radial-gradient(circle at 34% 28%, #3b318f 0%, #1b1456 55%, #0b0826 100%);
  box-shadow: 0 0 0 2px rgba(242, 196, 109, .9), 0 0 0 7px rgba(242, 196, 109, .12), 0 0 44px rgba(242, 196, 109, .32), inset 0 0 28px rgba(0, 0, 0, .55); }
.sk-medal__glyph { width: 64%; height: 64%; overflow: visible; filter: drop-shadow(0 0 8px rgba(247, 213, 140, .55)); }
.sk-medal__disc small { position: absolute; bottom: 7%; font-size: .68rem; font-weight: 800; letter-spacing: .05em; color: rgba(247, 213, 140, .75); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-medal__disc { color: #1e3a8a; background: radial-gradient(circle at 34% 28%, #fffdf6 0%, #f6e7c2 60%, #e8cf96 100%);
  box-shadow: 0 0 0 2px #a8741a, 0 0 0 7px rgba(168, 116, 26, .12), 0 14px 36px -12px rgba(110, 70, 20, .45), inset 0 0 20px rgba(168, 116, 26, .2); }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-medal__glyph { filter: none; }
:is(html.sk[data-theme="light"], html[data-theme="light"] .sk-ui) .sk-medal__disc small { color: #8a5a10; }
.sk-res__eyebrow { color: var(--sk-gold); font-weight: 800; font-size: .86rem; }
.sk-res__sign { margin: .2rem 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1.4; background: var(--sk-head); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sk-res__sign small { font-size: .55em; color: var(--sk-muted); -webkit-text-fill-color: var(--sk-muted); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skv-chip { display: inline-flex; align-items: center; gap: 6px; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--sk-ink); background: color-mix(in srgb, var(--sk-ink) 6%, transparent); border: 1px solid var(--sk-card-brd); }
.skv-chip img { width: 20px; height: 20px; border-radius: 50%; }
.skv-chip--el-fire { border-color: rgba(251, 113, 133, .5); } .skv-chip--el-water { border-color: rgba(56, 189, 248, .5); } .skv-chip--el-air { border-color: rgba(167, 139, 250, .55); } .skv-chip--el-earth { border-color: rgba(52, 211, 153, .5); }
.sk-res__num { text-align: center; padding: 12px 18px; border-radius: 18px; border: 1px solid var(--sk-card-brd); min-width: 120px; }
.sk-res__num b { display: block; font-size: 2rem; color: var(--sk-gold); line-height: 1.2; font-variant-numeric: tabular-nums; }
.sk-res__num span { font-size: .78rem; color: var(--sk-soft); }
.skv-formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 16px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--sk-gold) 9%, var(--sk-bg)); border-inline: 1px solid var(--sk-card-brd); color: var(--sk-ink); }
.skv-formula span { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.5; }
.skv-formula span small { font-size: .7rem; font-weight: 600; color: var(--sk-soft); }
.skv-formula em { font-style: normal; color: var(--sk-gold); font-size: 1.2rem; }
.sk-res__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); padding: clamp(20px, 3.4vw, 40px);
  background: var(--sk-card); border: 1px solid var(--sk-card-brd); border-top: 0; border-radius: 0 0 22px 22px; }
.sk-res__plain { font-size: 1.06rem; line-height: 2.15; margin: 0 0 14px; color: var(--sk-ink); }
.sk-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sk-keys span { padding: .3rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--sk-gold); border: 1px solid var(--sk-card-brd-hi); background: color-mix(in srgb, var(--sk-gold) 8%, transparent); }
.sk-folio { position: relative; padding: clamp(26px, 4vw, 44px) clamp(20px, 3.4vw, 40px); border-radius: 8px; background: var(--sk-page); color: var(--sk-page-ink);
  box-shadow: 0 0 0 1px rgba(168, 116, 26, .4), 0 30px 60px -36px rgba(0, 0, 0, .8); }
.sk-folio::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(168, 116, 26, .5); border-radius: 4px; box-shadow: inset 0 0 0 3px #fbf3df, inset 0 0 0 4px rgba(30, 58, 138, .35); pointer-events: none; }
.sk-folio__bism { text-align: center; font-size: 1.15rem; font-weight: 800; color: #1e3a8a; margin: 0 0 4px; letter-spacing: .02em; }
.sk-folio__title { text-align: center; font-size: 1.05rem; font-weight: 900; margin: 0 0 14px; color: #7a4f0e; }
.sk-folio__title small { display: block; font-size: .78rem; font-weight: 600; color: #8a7350; }
.sk-folio p { position: relative; margin: 0 0 12px; line-height: 2.2; text-align: justify; color: #34240c; font-size: 1rem; }
.sk-folio p:nth-of-type(2)::first-letter { float: right; font-size: 2.6em; line-height: .95; font-weight: 900; color: #1e3a8a; margin: .12em 0 0 .25em; }
.sk-folio__sep { display: block; width: 120px; height: 12px; margin: 6px auto 14px; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6h46M74 6h46' stroke='%23a8741a'/%3E%3Cpath d='M60 1l5 5-5 5-5-5z' fill='%231e3a8a'/%3E%3C/svg%3E"); }
.skv-side { display: grid; gap: 14px; align-content: start; }
.sk-panel { padding: 18px; border-radius: 18px; border: 1px solid var(--sk-card-brd); background: color-mix(in srgb, var(--sk-ink) 3%, transparent); }
.sk-panel h4 { margin: 0 0 10px; font-size: .98rem; color: var(--sk-gold); display: flex; align-items: center; gap: 8px; }
.sk-letters { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sk-letters td { padding: 5px 4px; border-bottom: 1px dashed var(--sk-card-brd); text-align: center; }
.sk-letters td:first-child { text-align: right; font-weight: 800; color: var(--sk-muted); }
.sk-letters b { color: var(--sk-gold); }
.sk-lock { position: relative; overflow: hidden; }
.sk-lock__blur { display: grid; gap: 9px; filter: blur(3px); opacity: .6; margin-bottom: 12px; }
.sk-lock__blur i { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--sk-ink) 22%, transparent); }
.sk-lock__blur i:nth-child(2n) { width: 80%; } .sk-lock__blur i:nth-child(3n) { width: 62%; }
.sk-lock p { margin: 0 0 10px; font-size: .86rem; color: var(--sk-muted); line-height: 1.9; }
.sk-lock .btn { width: 100%; }
.sk-depth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-depth a { display: block; padding: 10px 12px; border-radius: 12px; font-size: .8rem; font-weight: 700; color: var(--sk-ink); text-decoration: none; border: 1px solid var(--sk-card-brd); background: color-mix(in srgb, var(--sk-gold) 6%, transparent); line-height: 1.6; }
.sk-depth a:hover { border-color: var(--sk-card-brd-hi); }
.sk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sk-actions .btn { flex: 1 1 auto; min-height: 46px; font-size: .9rem; }
.sk-how { margin-top: 14px; border-radius: 16px; border: 1px solid var(--sk-card-brd); }
.sk-how summary { cursor: pointer; padding: 12px 16px; font-weight: 800; list-style: none; color: var(--sk-ink); }
.sk-how summary::-webkit-details-marker { display: none; }
.sk-how summary::after { content: "▾"; float: left; color: var(--sk-gold); }
.sk-how p { margin: 0; padding: 0 16px 14px; color: var(--sk-muted); line-height: 2; font-size: .92rem; }
.sk-disc { margin: 14px 0 0; font-size: .8rem; color: var(--sk-soft); line-height: 1.9; }
.sk-toast { position: fixed; z-index: 500; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; padding: .7rem 1.1rem; border-radius: 14px; font-size: .9rem; font-weight: 700;
  background: #1d1540; color: #fff; border: 1px solid rgba(242, 196, 109, .5); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); transition: .3s; pointer-events: none; max-width: 90vw; text-align: center; }
.sk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- v2: personalized reading ---------- */
.sk-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.sk-personal__title { grid-column: 1 / -1; margin: 6px 0 0; font-size: 1.12rem; font-weight: 900; color: var(--sk-ink); }
.sk-personal__title small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 600; color: var(--sk-soft); }
.sk-pr { min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--sk-card); border: 1px solid var(--sk-card-brd); }
.sk-pr--personality, .sk-pr--mansion { grid-column: 1 / -1; }
.sk-pr h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1rem; font-weight: 900; color: var(--sk-gold); }
.sk-pr h5 i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .95rem; color: var(--sk-gold); border: 1px solid var(--sk-card-brd-hi); background: color-mix(in srgb, var(--sk-gold) 8%, transparent); }
.sk-pr p { margin: 0 0 8px; line-height: 2.1; color: var(--sk-ink); font-size: .96rem; }
.sk-pr p:last-child { margin-bottom: 0; }
.sk-pr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sk-pr li { position: relative; padding-inline-start: 20px; line-height: 2; color: var(--sk-ink); font-size: .94rem; }
.sk-pr li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .85em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--sk-gold); opacity: .8; }
.sk-pr--cautions li::before { background: var(--sk-rose); }
.sk-elbar { display: flex; gap: 3px; height: 26px; margin: 2px 0 12px; border-radius: 999px; overflow: hidden; }
.sk-elbar i { display: grid; place-items: center; min-width: 54px; font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; }
.sk-elbar span { white-space: nowrap; }
.sk-el--fire { background: linear-gradient(90deg, #f97316, #e0a63e); } .sk-el--air { background: linear-gradient(90deg, #ec4899, #a855f7); }
.sk-el--water { background: linear-gradient(90deg, #0ea5e9, #3b5bdb); } .sk-el--earth { background: linear-gradient(90deg, #65a30d, #78552b); }
.sk-lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.sk-lucky span { display: grid; gap: 2px; padding: 10px; border-radius: 12px; text-align: center; border: 1px solid var(--sk-card-brd); background: color-mix(in srgb, var(--sk-gold) 6%, transparent); }
.sk-lucky small { font-size: .72rem; color: var(--sk-soft); } .sk-lucky b { font-size: .92rem; color: var(--sk-ink); } .sk-lucky em { font-style: normal; font-size: .7rem; color: var(--sk-muted); }
.sk-src { margin: 0; padding: 0 16px 6px; list-style: none; display: grid; gap: 10px; }
.sk-src li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sk-card-brd); font-size: .86rem; line-height: 1.9; color: var(--sk-muted); }
.sk-src li b { color: var(--sk-ink); } .sk-src__v { color: var(--sk-gold); font-weight: 700; }
.sk-src__r, .sk-src__s { font-size: .8rem; } .sk-src__s { color: var(--sk-soft); }
.sk-how .sk-src__note { font-size: .8rem; }
@media (max-width: 760px) {
  .sk-personal { grid-template-columns: 1fr; }
  .sk-pr { padding: 14px; }
  .sk-lucky { grid-template-columns: 1fr; }
  .sk-elbar i { min-width: 44px; font-size: .66rem; }
}
@media (max-width: 980px) {
  .sk-res__body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sk-res__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sk-res__top .sk-chips { justify-content: center; }
  .sk-tile { width: 44px; height: 56px; } .sk-tile b { font-size: 1.3rem; }
  .sk-stage__cap { font-size: .72rem; padding: 10px 12px 12px; }
  .sk-depth { grid-template-columns: 1fr; }
}

/* production additions (shared page + panel) */
.sk-res__of { margin: 0; color: var(--sk-muted); }
.sk-core-num--sign { font-size: 1.5rem; margin-top: 8px; }
.sk-letters td.sk-letters__who { color: var(--sk-gold); text-align: right; }
.sk-res__main { min-width: 0; }
.sk-how--folio { margin-top: 18px; }
.sk-how--folio > .sk-folio { margin: 0 12px 12px; }
.sk-res .btn { font-family: inherit; }
.sk-ui { color: var(--sk-ink); }
@media (prefers-reduced-motion: reduce) {
  .sk-res, .sk-medal__ring svg, .sk-stage__ring .sk-l28, .sk-stage .sk-book .glow, .sk-stage__core { animation: none !important; }
  .sk-stage__ring .sk-wheel { transition: none !important; }
}
.sk-depth a small { display: block; margin-top: 2px; font-size: .74rem; font-weight: 600; color: var(--sk-soft); }
.sk-depth a.is-on { border-color: var(--sk-card-brd-hi); background: color-mix(in srgb, var(--sk-gold) 16%, transparent); box-shadow: 0 0 0 1px var(--sk-card-brd-hi) inset; }
/* spoke pages (/tools/sar-kitab/shoghl …): the personal topic section that leads the result */
.sk-topic { margin: 0 0 18px; padding: 18px 18px 14px; border-radius: 18px; border: 1px solid var(--sk-card-brd-hi); background: color-mix(in srgb, var(--sk-gold) 7%, transparent); }
.sk-topic__eyebrow { margin: 0 0 4px; font-size: .74rem; font-weight: 700; color: var(--sk-soft); }
.sk-topic__title { margin: 0 0 6px; font-size: 1.08rem; color: var(--sk-gold); }
.sk-topic__desc { margin: 0 0 10px; font-size: .84rem; color: var(--sk-muted); line-height: 1.8; }
.sk-topic > p:not([class]) { margin: 0 0 10px; font-size: .95rem; line-height: 1.95; }
.sk-topic__facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sk-topic__facts li { display: inline-flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sk-card-brd); font-size: .78rem; }
.sk-topic__facts small { color: var(--sk-soft); font-size: .72rem; }
.sk-topic__facts b { color: var(--sk-ink); font-weight: 700; }
.sk-topic__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 6px; }
.sk-topic__cta small { font-weight: 600; opacity: .85; }
.sk-topic__cta span { font-size: .78rem; color: var(--sk-soft); }
.sk-topic__src summary { cursor: pointer; font-size: .78rem; color: var(--sk-soft); }
.sk-topic__src ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: .78rem; color: var(--sk-muted); line-height: 1.8; }
