/* help.css - Help Center, quick "?" panel and welcome tour (studio/help.js).
   Uses the studio colour variables, so it follows light / dark mode. */

/* ---- "?" button ---- */
.hp-qbtn{width:34px;height:34px;border-radius:9px;border:none;background:transparent;color:var(--text2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.hp-qbtn:hover{background:var(--card2);color:var(--text)}
.hp-qbtn svg{width:18px;height:18px}
.hp-qbtn.ap{width:auto;height:auto;padding:7px 10px;border-radius:10px;background:var(--card2)}

/* ---- Quick help panel ---- */
.hp-quick{position:fixed;top:58px;right:14px;z-index:300;width:min(360px,calc(100vw - 28px));background:var(--card);color:var(--text);border:1px solid var(--line,rgba(127,127,127,.2));border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.28);padding:16px 16px 14px;animation:hpIn .16s ease-out}
@keyframes hpIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.hp-qhead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hp-qic{width:34px;height:34px;border-radius:10px;background:rgba(10,132,255,.12);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hp-qic svg{width:18px;height:18px}
.hp-qt{flex:1;min-width:0;display:flex;flex-direction:column}
.hp-qt small{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text3)}
.hp-qt b{font-size:16px}
.hp-x{width:30px;height:30px;border:none;border-radius:8px;background:transparent;color:var(--text3);cursor:pointer;display:flex;align-items:center;justify-content:center}
.hp-x:hover{background:var(--card2);color:var(--text)}
.hp-x svg{width:16px;height:16px}
.hp-tips{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
.hp-tips li{position:relative;padding:9px 10px 9px 30px;border-radius:10px;background:var(--card2);font-size:13.5px;line-height:1.45}
.hp-tips li::before{content:"";position:absolute;left:12px;top:15px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.hp-link{display:inline-flex;align-items:center;gap:6px;border:none;background:none;color:var(--accent);font-weight:600;font-size:13.5px;cursor:pointer;padding:4px 2px}
.hp-link svg{width:15px;height:15px}

/* ---- Help Center ---- */
.hp-center{max-width:1080px;margin:0 auto;padding:6px 4px 60px}
.hp-hero{border-radius:22px;padding:30px 30px 24px;margin-bottom:22px;color:#fff;background:radial-gradient(700px 260px at 90% 0%,rgba(224,53,40,.28),transparent 60%),linear-gradient(150deg,#0b1128,#0e2d42)}
.hp-hero h1{font-size:28px;font-weight:800;letter-spacing:-.6px;margin:0 0 4px}
.hp-hero p{margin:0 0 18px;color:#c8d1e1;font-size:15px}
.hp-sbox{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);border-radius:14px;padding:0 14px;max-width:620px}
.hp-sbox svg{width:18px;height:18px;color:#6b7a95;flex-shrink:0}
.hp-search{flex:1;border:none;background:transparent;font-size:15.5px;padding:14px 0;outline:none;color:#0b1128;min-width:0}
.hp-heroacts{margin-top:14px}
.hp-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:8px 14px;font-weight:600;font-size:13.5px;cursor:pointer}
.hp-pill:hover{background:rgba(255,255,255,.16)}
.hp-pill svg{width:16px;height:16px}
.hp-cols{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.hp-toc{position:sticky;top:8px;display:flex;flex-direction:column;gap:2px}
.hp-toc button{display:flex;align-items:center;gap:10px;border:none;background:none;color:var(--text2);text-align:left;font-size:14px;font-weight:500;padding:9px 11px;border-radius:10px;cursor:pointer}
.hp-toc button svg{width:17px;height:17px;flex-shrink:0}
.hp-toc button:hover{background:var(--card2);color:var(--text)}
.hp-toc button.on{background:var(--card);color:var(--text);font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.hp-toc button.on svg{color:var(--accent)}
.hp-body{min-width:0}
.hp-shead{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px}
.hp-sic{width:46px;height:46px;border-radius:14px;background:rgba(224,53,40,.12);color:#e03528;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hp-sic svg{width:22px;height:22px}
.hp-shead h2{font-size:24px;font-weight:800;letter-spacing:-.4px;margin:2px 0 4px}
.hp-shead p{margin:0;color:var(--text3);font-size:15px}
.hp-topic{background:var(--card);border-radius:16px;padding:18px 20px;margin-bottom:12px;border:1px solid var(--line,rgba(127,127,127,.14))}
.hp-topic h3{font-size:16px;font-weight:700;margin:0 0 8px}
.hp-topic p{margin:0;color:var(--text2);font-size:14.5px;line-height:1.6}
.hp-topic p.hp-after{margin-top:10px}
.hp-topic ol{margin:0;padding:0;list-style:none;counter-reset:hp;display:flex;flex-direction:column;gap:8px}
.hp-topic ol li{counter-increment:hp;position:relative;padding-left:34px;color:var(--text2);font-size:14.5px;line-height:1.55}
.hp-topic ol li::before{content:counter(hp);position:absolute;left:0;top:0;width:23px;height:23px;border-radius:7px;background:var(--card2);color:var(--text);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.hp-from{display:inline-flex;align-items:center;gap:6px;border:none;background:var(--card2);color:var(--text3);border-radius:8px;padding:4px 9px;font-size:12px;font-weight:600;cursor:pointer;margin-bottom:8px}
.hp-from svg{width:13px;height:13px}
.hp-none{padding:30px;text-align:center;color:var(--text3)}
.hp-none b{color:var(--text)}
.hp-next{display:flex;justify-content:flex-end;margin-top:14px}
.hp-next button{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;border:1px solid var(--line,rgba(127,127,127,.2));background:var(--card);color:var(--text);border-radius:14px;padding:10px 14px;cursor:pointer}
.hp-next small{grid-column:1;color:var(--text3);font-size:12px}
.hp-next span{grid-column:1;font-weight:700;font-size:14.5px}
.hp-next svg{grid-column:2;grid-row:1 / 3;width:18px;height:18px;color:var(--accent)}

/* ---- Welcome tour ---- */
.hp-tourwrap{position:fixed;inset:0;z-index:400;background:rgba(3,6,18,.55);display:flex;align-items:center;justify-content:center;padding:16px;animation:hpFade .2s ease-out}
@keyframes hpFade{from{opacity:0}to{opacity:1}}
.hp-tour{position:relative;width:min(470px,100%);background:var(--card);color:var(--text);border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.45);overflow:hidden;padding:0 26px 22px}
.hp-tx{position:absolute;top:12px;right:12px;color:rgba(255,255,255,.8);z-index:1}
.hp-tx:hover{background:rgba(255,255,255,.14);color:#fff}
.hp-tart{margin:0 -26px 20px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;background:radial-gradient(rgba(142,160,189,.18) 1px,transparent 1px) 0 0/18px 18px,radial-gradient(500px 200px at 80% 0%,rgba(224,53,40,.35),transparent 60%),linear-gradient(150deg,#0b1128,#0e2d42)}
.hp-tic{width:64px;height:64px;border-radius:20px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center}
.hp-tic svg{width:30px;height:30px}
.hp-tstep{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#c8d1e1}
.hp-tour h2{font-size:21px;font-weight:800;letter-spacing:-.3px;margin:0 0 8px}
.hp-tour p{margin:0 0 18px;color:var(--text2);font-size:15px;line-height:1.55;min-height:70px}
.hp-dots{display:flex;gap:6px;justify-content:center;margin-bottom:18px}
.hp-dots button{width:8px;height:8px;border-radius:4px;border:none;padding:0;background:var(--card2);cursor:pointer;transition:width .2s,background .2s}
.hp-dots button.on{width:22px;background:#e03528}
.hp-tfoot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hp-dont{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--text2);cursor:pointer;user-select:none}
.hp-dont input{width:16px;height:16px;accent-color:#e03528;margin:0}
.hp-tbtns{display:flex;gap:8px;margin-left:auto}
.hp-tb{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:11px;padding:10px 16px;font-weight:700;font-size:14px;cursor:pointer;background:#e03528;color:#fff}
.hp-tb:hover{background:#f0482e}
.hp-tb.ghost{background:var(--card2);color:var(--text)}
.hp-tb svg{width:15px;height:15px}

@media (max-width:820px){
  .hp-cols{grid-template-columns:1fr}
  .hp-toc{position:static;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px}
  .hp-toc button{white-space:nowrap;background:var(--card2)}
  .hp-hero{padding:22px 18px 18px;border-radius:18px}
  .hp-hero h1{font-size:23px}
}
@media (prefers-reduced-motion:reduce){.hp-quick,.hp-tourwrap{animation:none}}
