/* Sketches of the apps on their pages: drawn windows that move instead of screenshots (the window itself: .sketch in style.css). */
.sketch svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sketch small { color: var(--dim); }
.sketch .sk-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sk-label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 8px; }
.sk-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.sk-bar small { font-size: 12px; margin-right: auto; }
.sk-set { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 6px; font-size: 13px; }
.sk-name { margin-right: auto; min-width: 0; }
.sk-name b { display: block; font-size: 13px; font-weight: 600; }
.sk-name small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-drop { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); white-space: nowrap; }
.sk-drop::after { content: "⌄"; margin-left: 12px; color: var(--dim); }
.sk-slider { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.sk-slider > i { position: absolute; inset: 0; border-radius: 2px; background: var(--accent); transform: scaleX(var(--v, .5)); transform-origin: 0 50%; }
.sk-slider > b { position: absolute; inset: 0; transform: translateX(calc(var(--v, .5) * 100%)); }
.sk-slider > b::after { content: ""; position: absolute; left: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface-2); }
.sk-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.sk-foot > :first-child { margin-right: auto; }
.sk-toggle { position: relative; width: 36px; height: 18px; border-radius: 9px; border: 1.5px solid var(--dim); flex: none; }
.sk-toggle::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.sk-toggle.on { background: var(--accent); border-color: var(--accent); }
.sk-toggle.on::after { transform: translateX(17px); background: var(--surface); }
.sk-toggle.flip { animation: sk-flip 6s infinite 1s; }
.sk-toggle.flip::after { animation: sk-flipk 6s infinite 1s; }
.sk-onoff { font-size: 12px; width: 24px; }
@keyframes sk-flip { 0%, 45% { background: transparent; border-color: var(--dim); } 50%, 95% { background: var(--accent); border-color: var(--accent); } 100% { background: transparent; border-color: var(--dim); } }
@keyframes sk-flipk { 0%, 45% { transform: none; background: var(--dim); } 50%, 95% { transform: translateX(17px); background: var(--surface); } 100% { transform: none; background: var(--dim); } }
@keyframes sk-rot { to { transform: rotate(360deg); } }
@keyframes sk-scene { from { transform: translate(-6%, -3%) scale(1); } to { transform: translate(6%, 4%) scale(1.15); } }
@keyframes sk-blink { 50% { opacity: 0; } }

/* HeMiPix: the photos are converted one after another */
.sk-pix-body { display: grid; grid-template-columns: 1.75fr 1fr; gap: 16px; }
.sk-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; }
.sk-photo { display: flex; align-items: center; gap: 12px; padding: 6px 12px; font-size: 13px; }
.sk-photo .sk-name b { font-weight: 500; }
.sk-state { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); }
.sk-spin { position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--accent); opacity: 0;
  animation: sk-spinshow 9s infinite, sk-rot .8s linear infinite; animation-delay: calc(var(--i) * .45s), 0s; }
.sketch .sk-state svg { position: absolute; inset: -1.5px; width: 18px; height: 18px; color: #3fb950; opacity: 0; animation: sk-ok 9s infinite; animation-delay: calc(var(--i) * .45s); }
.sk-size { font-size: 12px; color: var(--dim); white-space: nowrap; opacity: 0; animation: sk-ok 9s infinite; animation-delay: calc(var(--i) * .45s); }
.sk-size em, .sk-sum em { font-style: normal; color: #3fb950; font-weight: 600; }
.sk-sum { opacity: 0; animation: sk-sum 9s infinite; }
@keyframes sk-spinshow { 0%, 6% { opacity: 0; } 8%, 26% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes sk-ok { 0%, 27% { opacity: 0; transform: scale(.7); } 31%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; } }
@keyframes sk-sum { 0%, 52% { opacity: 0; } 56%, 88% { opacity: 1; } 93%, 100% { opacity: 0; } }
@media (max-width: 760px) { .sk-pix-body { grid-template-columns: 1fr; } .sk-pix-side { display: none; } }
@media (max-width: 480px) { .sk-bar .sk-btn, .sk-photo .sk-name small { display: none; } }

/* HeMiUnlocker: Close ends the program that holds the file */
.sketch .sk-fileic { width: 26px; height: 26px; color: var(--accent); }
.sk-icbtn { display: inline-flex; color: var(--dim); padding: 0 4px; }
.sk-bar .sk-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sk-stage { position: relative; min-height: 150px; }
.sk-proc { animation: sk-proc 8s infinite; }
.sk-term { display: grid; place-items: center; width: 30px; height: 24px; flex: none; border-radius: 4px; background: linear-gradient(135deg, #3b7be0, #1f54b0); color: #fff; font: 700 11px/1 Consolas, ui-monospace, monospace; }
.sk-quit svg { color: #e5534b; }
.sk-close { animation: sk-press 8s infinite; }
.sk-free { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 12px; font-size: 13px; font-weight: 600; color: #3fb950; opacity: 0; animation: sk-free 8s infinite; }
@keyframes sk-press { 0%, 36% { transform: none; filter: none; } 39% { transform: scale(.92); filter: brightness(1.25); } 43%, 100% { transform: none; filter: none; } }
@keyframes sk-proc { 0%, 44% { opacity: 1; transform: none; } 50%, 88% { opacity: 0; transform: translateX(16px); } 94%, 100% { opacity: 1; transform: none; } }
@keyframes sk-free { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 86% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; } }
@media (max-width: 600px) { .sk-file .sk-btn, .sk-file .sk-icbtn, .sk-quit, .sk-proc .sk-icbtn { display: none; } }

/* HeMiPad: a JSON file is typed (site.js), with its colours */
.sk-pad { --k: #9cdcfe; --s: #ce9178; --n: #b5cea8; --w: #569cd6; padding-bottom: 0; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sk-pad { --k: #0451a5; --s: #a31515; --n: #098658; --w: #0000ff; } }
:root[data-theme="light"] .sk-pad { --k: #0451a5; --s: #a31515; --n: #098658; --w: #0000ff; }
.sk-menu { display: flex; align-items: center; gap: 24px; font-size: 13px; margin: 2px 0 10px; }
.sk-menu .sk-tools { margin-left: auto; }
.sk-code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; height: 300px; overflow: hidden; font: 13px/1.55 "Cascadia Mono", Consolas, ui-monospace, monospace; }
.sk-code > span { display: block; width: max-content; max-width: 100%; white-space: pre; overflow: hidden; box-sizing: content-box; border-right: 2px solid transparent; }
.sk-code > span.caret { border-right-color: var(--text); }
.sk-code i { font-style: normal; }
.sk-code .k { color: var(--k); } .sk-code .s { color: var(--s); } .sk-code .n { color: var(--n); } .sk-code .w { color: var(--w); }
.sk-status { display: flex; align-items: center; font-size: 12px; color: var(--dim); padding: 9px 2px 12px; white-space: nowrap; overflow: hidden; }
.sk-status span + span { border-left: 1px solid var(--line); margin-left: 12px; padding-left: 12px; }
.sk-status .sk-push { margin-left: auto; border-left: 0; }
@media (max-width: 600px) { .sk-code { font-size: 11px; height: 250px; } .sk-status .sk-hide { display: none; } }

/* HeMi Dark: VLC with the skin, a video playing (the skin is dark in both themes) */
.sk-vlc { --surface-2: #2a2a31; --line: #3a3a42; --dim: #a3a3ad; --accent: #4cc2ff; padding: 0; overflow: hidden; background: #1c1c20; color: #ececf1; }
.sk-vlc .sk-title { padding: 0 14px; height: 36px; color: #c8c8d0; }
.sk-vlc .sk-win { align-items: center; }
.sk-video { position: relative; height: 330px; overflow: hidden; background: #0c0c11; }
.sk-video i { position: absolute; inset: -40%; background: radial-gradient(28% 32% at 35% 42%, rgba(255,140,60,.55), transparent 70%), radial-gradient(34% 40% at 66% 58%, rgba(120,90,255,.5), transparent 70%), radial-gradient(24% 28% at 52% 30%, rgba(76,194,255,.45), transparent 70%); animation: sk-scene 14s ease-in-out infinite alternate; }
.sk-video::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.sk-vbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 4px; font-size: 11px; }
.sk-track { flex: 1; height: 4px; border-radius: 2px; background: #4a4a52; overflow: hidden; }
.sk-track i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; animation: sk-play 40s linear infinite; }
@keyframes sk-play { from { transform: scaleX(.18); } to { transform: scaleX(1); } }
.sk-vctl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 14px 14px; }
.sk-vol { display: flex; align-items: center; gap: 12px; }
.sk-vol .sk-slider { width: 90px; --v: .5; }
.sk-vlc .sk-slider > b::after { box-shadow: none; }
.sk-mid { display: flex; align-items: center; gap: 22px; }
.sk-play { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; }
.sk-right { display: flex; justify-content: flex-end; gap: 20px; }
@media (max-width: 600px) { .sk-right, .sk-vol .sk-slider { display: none; } .sk-video { height: 200px; } }

/* HeMiDock: the dock on a desktop; "volume" typed in the quick search gives its slider (site.js) */
.sk-desk { position: relative; padding: 0; height: 430px; overflow: hidden; }
.sk-wall { position: absolute; inset: 0; overflow: hidden; background: #191830; }
.sk-wall i { position: absolute; inset: -30%; background: radial-gradient(35% 40% at 30% 35%, rgba(76,194,255,.42), transparent 70%), radial-gradient(40% 45% at 70% 45%, rgba(138,125,255,.5), transparent 70%), radial-gradient(30% 35% at 50% 85%, rgba(230,107,208,.35), transparent 70%); animation: sk-scene 16s ease-in-out infinite alternate; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sk-wall { background: #dfe5f3; } }
:root[data-theme="light"] .sk-wall { background: #dfe5f3; }
.sk-dockbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: 14px; white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sk-startic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; height: 34px; padding: 5px; }
.sk-startic i { border-radius: 4px; background: linear-gradient(135deg, #4cc2ff, #2f8ce0); }
.sk-app { position: relative; display: block; }
.sk-app img { display: block; width: 34px; height: 34px; }
.sk-app.run::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 3px; border-radius: 2px; background: var(--dim); transform: translateX(-50%); }
.sk-app.active::after { width: 14px; background: var(--accent); }
.sk-tray { display: flex; gap: 12px; margin-left: 12px; }
.sk-clock { display: flex; flex-direction: column; align-items: center; line-height: 1.25; font-size: 12px; }
.sk-clock b { font-weight: 600; }
.sk-clock small { font-size: 11px; }
.sk-qs { position: absolute; left: 50%; bottom: 84px; width: min(540px, 90%); padding: 10px; border-radius: 12px; opacity: 0; transform: translate(-50%, 12px) scale(.97);
  background: color-mix(in srgb, var(--surface) 95%, transparent); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.sk-desk.open .sk-qs { opacity: 1; transform: translate(-50%, 0); }
.sk-qs-box { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 8px; font-size: 15px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 2px solid var(--accent); }
.sk-caret { width: 1.5px; height: 18px; margin-left: -9px; background: var(--text); animation: sk-blink 1s steps(1) infinite; }
.sk-qs-res { opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s ease; }
.sk-desk.found .sk-qs-res { opacity: 1; transform: none; }
.sketch .sk-group { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin: 10px 8px 4px; }
.sk-qrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.sk-qrow.sk-hl { background: var(--surface-2); }
.sk-vslider { width: 150px; }
.sk-vslider > i, .sk-vslider > b { transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.sk-vslider > i { transform: scaleX(.3); }
.sk-vslider > b { transform: translateX(30%); }
.sk-desk.set .sk-vslider > i { transform: scaleX(.75); }
.sk-desk.set .sk-vslider > b { transform: translateX(75%); }
.sk-qval { font-style: normal; width: 24px; text-align: right; color: var(--dim); font-size: 12px; }
@media (max-width: 600px) { .sk-desk { height: 380px; } .sk-tray, .sk-app:nth-of-type(n+4) { display: none; } .sk-vslider { width: 80px; } }

/* HeMiDock settings */
.sk-sbody { display: grid; grid-template-columns: 210px 1fr; gap: 18px; }
.sk-nav { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sk-nav .sk-search { padding: 7px 10px; margin-bottom: 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); }
.sk-nav > span:not(.sk-search) { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; }
.sk-nav > span.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.sk-page .sk-h { display: block; font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.sk-page .sk-set { padding: 12px 14px; }
@media (max-width: 700px) { .sk-sbody { grid-template-columns: 1fr; } .sk-nav { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .sketch .sk-state svg, .sk-size, .sk-sum { opacity: 1; }
  .sk-free { display: none; }
}

/* HeMiMizer: the wizard as it is now – the steps, a search, sections that fold with how many are on, cards that light up
   when they are chosen (site.js picks them one after another) */
.sk-mz .sk-head { margin-bottom: 4px; }
.sk-steps { display: flex; list-style: none; margin: 0 0 10px; padding: 0; }
.sk-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); }
.sk-steps li::before { content: ""; position: absolute; top: 10px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--line); }
.sk-steps li:first-child::before { display: none; }
.sk-steps li.done::before, .sk-steps li.now::before { background: var(--accent); }
.sk-steps i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font: 600 11px/1 inherit; font-style: normal; color: var(--dim); }
.sk-steps li.done i { background: var(--accent); border-color: var(--accent); }
.sk-steps li.done i::after { content: ""; width: 7px; height: 4px; margin-top: -2px; border: solid var(--surface); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.sk-steps li.now i { background: var(--accent); border-color: var(--accent); color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.sk-steps li.now span { color: var(--text); font-weight: 600; }
.sk-mz-intro { display: flex; align-items: baseline; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.sk-mz-intro small { margin-right: auto; }
.sk-chosen { font-size: 12px; color: var(--accent); }
.sk-search { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin-bottom: 6px; }
.sketch .sk-search svg, .sketch .sk-fold svg, .sketch .sk-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sk-fold { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 10px 0 6px; }
.sk-fold .sk-chev { width: 6px; height: 6px; margin: -4px 3px 0 2px; border: solid var(--dim); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sk-fold.folded .sk-chev { margin-top: 0; transform: rotate(-45deg); }
.sk-fold svg { color: var(--accent); }
.sk-fold em { font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 9px; background: var(--accent); color: var(--surface); transition: background .3s, color .3s; }
.sk-fold em.off { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--dim); }
.sk-fold.folded { margin: 6px 0; }
.sk-mz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sk-choice { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px 7px 9px; font-size: 13px; transition: background .35s, border-color .35s; }
.sk-choice .sk-ic { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.sk-choice.on { background: color-mix(in srgb, var(--surface-2) 93%, var(--accent)); border-color: color-mix(in srgb, var(--line) 60%, var(--accent)); }
.sk-choice .sk-toggle { transition: background .3s, border-color .3s; }
.sk-choice .sk-toggle::after { transition: transform .3s, background .3s; }
.sk-choice.on .sk-toggle { background: var(--accent); border-color: var(--accent); }
.sk-choice.on .sk-toggle::after { transform: translateX(17px); background: var(--surface); }
.sk-mz .sk-foot .sk-btn { padding: 5px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }
.sk-mz .sk-foot .sk-btn:first-child { margin-right: auto; }
.sk-mz .sk-foot .sk-accent { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (max-width: 600px) { .sk-mz-grid { grid-template-columns: 1fr; } .sk-mz .sk-name small, .sk-steps span, .sk-mz-intro small { display: none; } }
