@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-arabic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC; }
@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Arabic SK'; src: url('fonts/plex-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.sk-body {
  --sk-bg: #05070d; --sk-glass: rgba(12,16,28,.8); --sk-glass2: rgba(20,26,44,.72); --sk-line: rgba(148,163,220,.16); --sk-line2: rgba(148,163,220,.28);
  --sk-text: #eef2fb; --sk-muted: #97a3bd; --sk-dim: #6b7690; --sk-violet: #9d8cff; --sk-violet2: #c3b8ff; --sk-amber: #f59e0b; --sk-panelW: 340px;
  margin: 0; height: 100%; background: var(--sk-bg); color: var(--sk-text); font-family: 'Plex Arabic SK', 'Segoe UI', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden;
}
html:has(.sk-body) { height: 100%; }
.sk-body *, .sk-body *::before, .sk-body *::after { box-sizing: border-box; }
.sk-body button, .sk-body input, .sk-body select { font: inherit; color: inherit; }
.sk-body a { color: var(--sk-violet2); }
.sk-en { font-size: .78em; color: var(--sk-muted); font-weight: 400; direction: ltr; unicode-bidi: isolate; }

#skApp { position: fixed; inset: 0; display: grid; grid-template-columns: var(--sk-panelW) 1fr; grid-template-rows: auto 1fr; grid-template-areas: "top top" "panel stage"; }
.sk-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 18px; background: linear-gradient(180deg, rgba(10,13,24,.96), rgba(8,10,18,.92)); border-bottom: 1px solid var(--sk-line); z-index: 5; }
.sk-title h1 { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.sk-home { display: inline-block; font-size: .72rem; text-decoration: none; color: var(--sk-muted) !important; margin-bottom: 1px; }
.sk-home:hover { color: var(--sk-violet2) !important; }
.sk-brand { font-size: .76rem; color: var(--sk-muted); }
.sk-brand a { text-decoration: none; }
.sk-reads { display: flex; gap: 10px; }
.sk-read { min-width: 160px; padding: 6px 12px; border: 1px solid var(--sk-line); border-radius: 12px; background: var(--sk-glass2); }
.sk-read .rl { font-size: .72rem; color: var(--sk-muted); white-space: nowrap; }
.sk-read .rv { font-size: 1.18rem; line-height: 1.25; white-space: nowrap; }
.sk-read .rv b { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.sk-read .rs { font-size: .68rem; color: var(--sk-dim); white-space: nowrap; }

#skPanel { grid-area: panel; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #070a12; border-inline-start: 1px solid var(--sk-line); z-index: 4; scrollbar-width: thin; scrollbar-color: #2a3350 transparent; }
.sk-ptoggle { display: none; }
.sk-card { background: var(--sk-glass2); border: 1px solid var(--sk-line); border-radius: 14px; padding: 12px; }
.sk-card h2 { margin: 0; font-size: .92rem; }
.sk-ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sk-link { background: none; border: none; color: var(--sk-violet2); cursor: pointer; font-size: .75rem; padding: 2px 4px; }
.sk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sk-steps li { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--sk-dim); padding: 6px; border-radius: 10px; }
.sk-steps li .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; border: 1px solid var(--sk-line2); color: var(--sk-muted); }
.sk-steps li.cur { background: rgba(130,110,255,.10); color: var(--sk-text); }
.sk-steps li.cur .n { border-color: var(--sk-violet); color: var(--sk-violet2); }
.sk-steps li.done { color: var(--sk-muted); }
.sk-steps li.done .n { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.6); color: #6ee7b7; }
.sk-steps li.fin .n { border-color: var(--sk-amber); color: var(--sk-amber); }
.sk-steps .sh { font-size: .72rem; color: var(--sk-muted); margin-top: 2px; }
.sk-steps .sr { font-size: .72rem; color: #a7f3d0; margin-top: 3px; line-height: 1.55; }

.sk-ctrl { margin-bottom: 12px; } .sk-ctrl:last-child { margin-bottom: 0; }
.sk-ctrl > label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 5px; }
.sk-ctrl.dim { opacity: .55; }
.sk-val { float: left; color: var(--sk-violet2); font-weight: 600; direction: ltr; }
.sk-row { display: flex; align-items: center; gap: 8px; }
.sk-row input[type=number] { width: 74px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--sk-line2); background: #0b0f1c; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
.sk-row .u { font-size: .75rem; color: var(--sk-muted); width: 22px; }
.sk-hint { font-size: .68rem; color: var(--sk-dim); margin-top: 4px; line-height: 1.5; }
.sk-body input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; direction: ltr; --p: 50%; cursor: pointer; }
.sk-body input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; background: linear-gradient(90deg, #d2734a var(--p), #232b45 var(--p)); }
.sk-body input[type=range]::-moz-range-track { height: 5px; border-radius: 4px; background: #232b45; }
.sk-body input[type=range]::-moz-range-progress { height: 5px; border-radius: 4px; background: #d2734a; }
.sk-body input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6.5px; border-radius: 50%; background: #fff1e6; border: 3px solid #7a66ff; box-shadow: 0 0 10px rgba(122,102,255,.6); }
.sk-body input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff1e6; border: 3px solid #7a66ff; }
.sk-seg { display: flex; background: #0b0f1c; border: 1px solid var(--sk-line2); border-radius: 10px; padding: 3px; gap: 3px; }
.sk-seg button { flex: 1; padding: 6px 4px; border: none; border-radius: 8px; background: transparent; color: var(--sk-muted); cursor: pointer; font-size: .8rem; }
.sk-seg button.on { background: linear-gradient(135deg, #6c5cf0, #4f46e5); color: #fff; }
.sk-seg button .sk-en { color: inherit; opacity: .7; }
.sk-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sk-presets button { padding: 3px 8px; border-radius: 8px; border: 1px solid var(--sk-line2); background: #0e1324; cursor: pointer; font-size: .72rem; color: var(--sk-muted); }
.sk-presets button:hover { border-color: var(--sk-violet); color: var(--sk-text); }
.sk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sk-tbtn, .sk-wide { padding: 8px 6px; border-radius: 10px; border: 1px solid var(--sk-line2); background: #0e1324; cursor: pointer; font-size: .78rem; }
.sk-tbtn:hover, .sk-wide:hover { border-color: var(--sk-violet); }
.sk-tbtn.on { background: rgba(122,102,255,.22); border-color: var(--sk-violet); color: #fff; }
.sk-wide { width: 100%; margin-top: 8px; }
.sk-snap { margin-top: 8px; font-size: .72rem; color: var(--sk-muted); line-height: 1.6; }
.sk-assT { font-size: .76rem; font-weight: 600; margin-bottom: 4px; }
.sk-ass { font-size: .7rem; color: var(--sk-muted); line-height: 1.7; }
.sk-q { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--sk-muted); }
.sk-q select { background: #0b0f1c; border: 1px solid var(--sk-line2); border-radius: 8px; padding: 4px 6px; font-size: .75rem; }
.sk-foot { text-align: center; font-size: .72rem; color: var(--sk-dim); padding: 4px 0 8px; }

#skStage { grid-area: stage; position: relative; overflow: hidden; background: #070812; }
#skCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sk-secbox { position: absolute; left: 14px; bottom: 58px; width: clamp(230px, 27%, 360px); height: clamp(270px, 46%, 380px); border-radius: 14px; border: 1px solid rgba(180,170,255,.3); background: rgba(8,9,20,.82); backdrop-filter: blur(6px); box-shadow: 0 10px 40px rgba(0,0,0,.5); overflow: hidden; pointer-events: none; }
.sk-sechead { padding: 6px 10px; font-size: .72rem; color: #dcd6ff; border-bottom: 1px solid var(--sk-line); }
#skSec { display: block; width: 100%; height: calc(100% - 28px); }
.sk-legend { position: absolute; right: 14px; bottom: 58px; width: clamp(220px, 26%, 320px); padding: 8px 10px; border-radius: 12px; background: var(--sk-glass); border: 1px solid var(--sk-line); pointer-events: none; }
.sk-legT { font-size: .72rem; margin-bottom: 5px; }
.sk-legBar { height: 10px; border-radius: 5px; }
.sk-legN { display: flex; justify-content: space-between; font-size: .68rem; color: var(--sk-muted); margin-top: 3px; direction: ltr; font-variant-numeric: tabular-nums; flex-direction: row; }
.sk-legNote { font-size: .64rem; color: var(--sk-dim); margin-top: 4px; line-height: 1.5; }
.sk-legNote[hidden], #skLegShared[hidden] { display: none; }
.sk-dim { position: absolute; left: 0; top: 0; font-size: .7rem; color: #e8e2ff; background: rgba(8,9,20,.6); padding: 2px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; translate: -50% 0; }
.sk-cmp { position: absolute; top: 10px; inset-inline: 0; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; flex-direction: row-reverse; gap: 12px; }
.sk-cmp[hidden] { display: none; }
.sk-cmpc { width: calc(50% - 8px); padding: 6px 10px; border-radius: 10px; background: var(--sk-glass); border: 1px solid var(--sk-line); font-size: .72rem; line-height: 1.6; }
.sk-cmpc.c0 b { color: #d9ccff; } .sk-cmpc.c1 b { color: #ffb45a; }
.sk-body.sk-compare #skStage::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(200,190,255,.35); pointer-events: none; }
.sk-warnhint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); max-width: 80%; padding: 6px 12px; border-radius: 10px; background: rgba(40,30,0,.8); border: 1px solid rgba(245,158,11,.6); color: #fde68a; font-size: .74rem; text-align: center; pointer-events: none; }
.sk-body.sk-compare .sk-warnhint { top: 78px; }
.sk-toast { position: absolute; top: 54px; left: 50%; transform: translate(-50%, -8px); opacity: 0; max-width: min(520px, 90%); padding: 9px 14px; border-radius: 12px; background: rgba(14,12,34,.92); border: 1px solid rgba(157,140,255,.6); font-size: .8rem; text-align: center; transition: opacity .4s, transform .4s; pointer-events: none; }
.sk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.sk-toolbar { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--sk-glass); border: 1px solid var(--sk-line); }
.sk-toolbar button { padding: 6px 10px; border: none; border-radius: 8px; background: transparent; cursor: pointer; font-size: .78rem; color: var(--sk-muted); white-space: nowrap; }
.sk-toolbar button:hover { background: rgba(255,255,255,.06); color: var(--sk-text); }
.sk-toolbar button.on { color: var(--sk-amber); }

.sk-dialog { width: min(860px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--sk-line2); border-radius: 16px; background: #0a0d18; color: var(--sk-text); }
.sk-dialog::backdrop { background: rgba(0,0,0,.6); }
.sk-dhead { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #0d1120; border-bottom: 1px solid var(--sk-line); }
.sk-dhead h2 { margin: 0; font-size: 1rem; }
.sk-dhead button { background: none; border: 1px solid var(--sk-line2); border-radius: 8px; padding: 2px 10px; cursor: pointer; }
.sk-dbody { padding: 6px 18px 18px; overflow-y: auto; max-height: calc(88vh - 54px); font-size: .85rem; line-height: 1.8; }
.sk-dbody h3 { font-size: .92rem; color: var(--sk-violet2); margin: 16px 0 6px; }
.sk-dbody code { direction: ltr; unicode-bidi: isolate; display: inline-block; background: #131a30; border: 1px solid var(--sk-line); border-radius: 6px; padding: 0 6px; font-family: Consolas, 'SFMono-Regular', monospace; font-size: .82rem; color: #e6e1ff; }
.sk-dtab { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sk-dtab th, .sk-dtab td { border-bottom: 1px solid var(--sk-line); padding: 5px 8px; text-align: start; }
.sk-dtab th { color: var(--sk-muted); font-weight: 400; }
.sk-fallback { position: fixed; inset: 0; display: grid; place-items: center; background: #05070d; color: #fff; z-index: 50; }
.sk-fallback[hidden] { display: none; }

@media (max-width: 1180px) { .sk-read { min-width: 120px; } .sk-title h1 .sk-en { display: none; } }
@media (max-width: 900px) {
  .sk-body { overflow: visible; height: auto; }
  #skApp { position: static; display: flex; flex-direction: column; }
  .sk-top { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; position: sticky; top: 0; }
  .sk-title h1 { font-size: .95rem; } .sk-brand { display: none; }
  .sk-reads { gap: 6px; } .sk-read { flex: 1; min-width: 0; padding: 5px 8px; }
  .sk-read .rl .sk-en { display: none; } .sk-read .rv { font-size: .95rem; } .sk-read .rs { white-space: normal; font-size: .6rem; }
  #skStage { height: 56vh; min-height: 330px; order: 1; position: sticky; top: var(--skTbH, 120px); z-index: 4; }
  #skPanel { order: 2; border: none; overflow: visible; }
  .sk-secbox { width: 40%; height: 50%; bottom: 52px; left: 8px; }
  .sk-sechead { font-size: .6rem; padding: 4px 6px; } #skSec { height: calc(100% - 22px); }
  .sk-legend { width: 58%; right: 8px; top: 8px; bottom: auto; padding: 5px 8px; } .sk-legT { font-size: .62rem; } .sk-legNote { display: none; }
  .sk-warnhint { top: auto; bottom: 56px; left: auto; right: 8px; transform: none; max-width: 52%; font-size: .62rem; }
  .sk-toolbar button span { display: none; } .sk-toolbar button { font-size: 1rem; padding: 6px 12px; }
  .sk-ptoggle { display: block; padding: 8px; border-radius: 10px; border: 1px solid var(--sk-line2); background: #0e1324; cursor: pointer; font-size: .8rem; }
  .sk-body.sk-collapsed #skPanel > :not(.sk-ptoggle) { display: none; }
  .sk-cmpc { font-size: .6rem; }
}
