/* HX Script Hub - public theme (GitHub-dark, VIP) */
html,body{background:#0d1117;margin:0;padding:0;}
.hx-sh{background:#0d1117;color:#e6edf3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif;min-height:100vh;}
.hx-sh-wrap{max-width:920px;margin:0 auto;padding:34px 18px 60px;}
.hx-sh-head{display:flex;align-items:center;gap:14px;margin:6px 0 26px;flex-wrap:wrap;}
.hx-sh-head .hx-sh-logo{width:36px;height:36px;flex:0 0 36px;filter:drop-shadow(0 0 12px rgba(63,185,80,.35));}
.hx-sh-head h1{color:#f0f6fc;font-size:28px;margin:0;letter-spacing:-0.5px;font-weight:700;}
.hx-sh-verified{display:inline-flex;align-items:center;background:#0d1117;border:1px solid #30363d;border-radius:2em;color:#8b949e;font-size:13px;font-weight:500;padding:6px 16px;box-shadow:0 0 0 1px rgba(63,185,80,.18),0 0 18px rgba(63,185,80,.10);}
.hx-sh-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3fb950;margin-right:8px;box-shadow:0 0 8px #3fb950;}
.hx-sh-card{position:relative;overflow:hidden;background:#161b22;border:1px solid #30363d;border-radius:10px;padding:28px;margin-bottom:24px;box-shadow:0 10px 30px rgba(0,0,0,.35);}
.hx-sh-card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#238636,#3fb950,rgba(63,185,80,0));}
.hx-sh-card h2{color:#f0f6fc;font-size:20px;margin:0 0 10px;letter-spacing:-0.2px;font-weight:700;}
.hx-sh-sub{color:#8b949e;font-size:15px;margin:0 0 20px;}
.hx-sh-codebox{display:flex;gap:12px;align-items:center;background:#0d1117;border:1px solid #30363d;border-radius:8px;padding:8px 8px 8px 20px;margin-bottom:26px;}
.hx-sh-codebox pre{flex:1;min-width:0;margin:0;padding:10px 0;color:#e6edf3;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13px;line-height:1.6;white-space:pre;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;}
.hx-sh-codebox pre::-webkit-scrollbar{display:none;}
.hx-sh-copy{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#2ea043,#238636);color:#fff;border:1px solid rgba(240,246,252,.12);font-size:15px;font-weight:600;padding:11px 24px;border-radius:6px;cursor:pointer;font-family:inherit;box-shadow:0 2px 12px rgba(35,134,54,.45);transition:transform .12s ease,box-shadow .12s ease;}
.hx-sh-copy:hover{background:linear-gradient(180deg,#34b14b,#2a9a3f);box-shadow:0 4px 18px rgba(46,160,67,.55);transform:translateY(-1px);}
.hx-sh-copy svg{width:16px;height:16px;}
.hx-sh-card h3{color:#f0f6fc;font-size:20px;margin:26px 0 14px;letter-spacing:-0.2px;font-weight:700;}
.hx-sh-card ol{margin:0 0 8px;padding-left:26px;color:#8b949e;font-size:15px;line-height:2;}
.hx-sh-card ol b{color:#f0f6fc;font-weight:700;}
.hx-sh-video{margin:0 0 8px;}
.hx-sh-video h3{margin-top:0 !important;}
.hx-sh-video video{width:100%;max-height:520px;background:#000;border:1px solid #30363d;border-radius:8px;display:block;}
.hx-sh-footer{margin-top:44px;padding-top:22px;border-top:1px solid #21262d;text-align:center;color:#6e7681;font-size:12px;}
.hx-sh-footer p{margin:0 0 10px;}
.hx-sh-flinks{line-height:2;}
.hx-sh-flinks span{color:#8b949e;margin:0 9px;font-size:12px;white-space:nowrap;}
@media (max-width:640px){.hx-sh-card{padding:20px 16px;}.hx-sh-codebox{flex-direction:column;align-items:stretch;padding:14px;}.hx-sh-copy{justify-content:center;width:100%;}}

/* ---------- admin ---------- */
.sh-admin{background:#0d1117;color:#e6edf3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;min-height:100vh;}
.sh-admin-wrap{max-width:860px;margin:0 auto;padding:34px 18px 60px;}
.sh-admin h1{color:#f0f6fc;font-size:24px;margin:0 0 6px;}
.sh-admin .muted{color:#8b949e;font-size:14px;margin:0 0 24px;}
.sh-box{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:24px;margin-bottom:20px;}
.sh-box h2{color:#f0f6fc;font-size:18px;margin:0 0 16px;}
.sh-field{margin-bottom:16px;}
.sh-field label{display:block;color:#8b949e;font-size:13px;margin-bottom:6px;}
.sh-field input[type=text],.sh-field input[type=password],.sh-field select,.sh-field textarea{width:100%;box-sizing:border-box;background:#0d1117;border:1px solid #30363d;border-radius:6px;color:#e6edf3;font-size:14px;padding:10px 12px;font-family:inherit;}
.sh-field input[type=file]{color:#8b949e;font-size:13px;}
.sh-field textarea{min-height:130px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;resize:vertical;}
.sh-btn{display:inline-block;background:#238636;color:#fff;border:1px solid rgba(240,246,252,.12);font-size:14px;font-weight:600;padding:10px 24px;border-radius:6px;cursor:pointer;font-family:inherit;text-decoration:none;}
.sh-btn:hover{background:#2ea043;}
.sh-btn.danger{background:#7a1f1f;border-color:rgba(240,246,252,.12);}
.sh-btn.danger:hover{background:#9a2b2b;}
.sh-btn.ghost{background:#21262d;}
.sh-err{background:rgba(248,81,73,.12);border:1px solid rgba(248,81,73,.4);color:#f85149;border-radius:6px;padding:12px 16px;margin-bottom:20px;font-size:14px;}
.sh-ok{background:rgba(63,185,80,.12);border:1px solid rgba(63,185,80,.4);color:#3fb950;border-radius:6px;padding:12px 16px;margin-bottom:20px;font-size:14px;}
.sh-row{display:flex;gap:12px;align-items:flex-start;background:#0d1117;border:1px solid #30363d;border-radius:8px;padding:14px 16px;margin-bottom:12px;}
.sh-row .grow{flex:1;min-width:0;}
.sh-row .kind{display:inline-block;font-size:11px;font-weight:700;padding:2px 10px;border-radius:2em;margin-bottom:8px;}
.sh-row .kind.lua{background:rgba(47,129,247,.12);color:#4493f8;border:1px solid rgba(47,129,247,.35);}
.sh-row .kind.terminal{background:rgba(63,185,80,.12);color:#3fb950;border:1px solid rgba(63,185,80,.35);}
.sh-row pre{margin:0;color:#8b949e;font-size:12px;white-space:pre-wrap;word-break:break-all;font-family:ui-monospace,Menlo,Consolas,monospace;max-height:74px;overflow:hidden;}
.sh-row form{display:inline;}
.sh-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:10px;}
.sh-topbar a{color:#8b949e;font-size:13px;text-decoration:none;margin-left:14px;}
.sh-topbar a:hover{color:#4493f8;}
.sh-login{max-width:400px;margin:80px auto 0;}
