:root { --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --brand: #2563eb; --ui: "Inter", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { font-family: var(--ui); color: var(--ink); background: #eef0f3; min-height: 100vh; }
.sk-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: #111827; color: #fff; }
.sk-back { color: #fff; text-decoration: none; font: 600 20px var(--ui); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #374151; background: #1f2937; }
.sk-brand { font: 700 18px var(--ui); }
.sk-tag { font: 700 11px var(--ui); background: #fef3c7; color: #a16207; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.sk-main { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sk-card[hidden] { display: none; }
.sk-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 12px; }
.sk-lbl { font: 700 16px var(--ui); }
#skTopic { font: 500 16px var(--ui); padding: 12px 14px; border-radius: 10px; border: 1px solid #d1d5db; width: 100%; }
#skTopic:focus { outline: 2px solid var(--brand); border-color: transparent; }
.sk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.sk-chips::-webkit-scrollbar { display: none; }
.sk-chips button { flex: none; font: 500 13px var(--ui); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #f9fafb; color: var(--ink); cursor: pointer; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sk-grid label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sk-grid select { font: 500 15px var(--ui); padding: 9px 10px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }
.sk-more > summary { cursor: pointer; font: 700 14px var(--ui); padding: 6px 0; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.sk-row > span { font: 600 14px var(--ui); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 600 13px var(--ui); padding: 7px 12px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff; color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sk-go { font: 700 16px var(--ui); padding: 13px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
.sk-go:disabled { opacity: .6; cursor: default; }
.sk-msg { font: 500 14px var(--ui); color: #b91c1c; min-height: 0; }
.sk-msg:empty { display: none; }
.sk-stage { position: relative; background: #f7faf9; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; margin: 0 auto; }
.sk-stage.vertical { aspect-ratio: 9 / 16; max-width: 360px; }
.sk-stage.square { aspect-ratio: 1; max-width: 480px; }
.sk-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f7faf9; }
.sk-stage video.back { visibility: hidden; }
.sk-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 15px var(--ui); color: var(--muted); }
.sk-wait[hidden] { display: none; }
.sk-bar { height: 6px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.sk-fill { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s; }
.sk-status { font: 500 14px var(--ui); color: var(--muted); }
.sk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sk-actions button, .sk-dl { font: 600 15px var(--ui); padding: 10px 16px; border-radius: 10px; border: 1px solid #d1d5db; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.sk-dl { background: #16a34a; border-color: #16a34a; color: #fff; }
.sk-actions [hidden] { display: none; }
