/* WASecret Tools Pro gate panel (/tools/gate.css, with /tools/gate.js). Light and dark, phone width. */
html[data-wst-gate=locked]{overflow:hidden}
/* Covers the tool from the first paint (before the panel itself is built), so it cannot be used while locked. */
html[data-wst-gate=locked] body::before{content:"";position:fixed;inset:0;z-index:2147483000;background:rgba(237,243,228,.72);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.wst-gate{--g-bg:#fff;--g-ink:#1f2a17;--g-muted:#56634d;--g-line:#d5e0c8;--g-field:#fff;--g-accent:#4e8a1a;--g-accent-ink:#fff;--g-soft:#edf3e4;--g-err:#b3261e;--g-err-bg:#fdecea;
  position:fixed;inset:0;z-index:2147483001;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;
  font:15px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--g-ink);color-scheme:light}
.wst-gate *,.wst-gate *::before,.wst-gate *::after{box-sizing:border-box}
.wst-gate-card{width:min(460px,100%);margin:auto;padding:28px 26px 22px;border:1px solid var(--g-line);border-radius:24px;background:var(--g-bg);box-shadow:0 2px 6px rgba(31,42,23,.08),0 24px 60px rgba(31,42,23,.22)}
.wst-gate-logo{display:block;height:32px;width:auto;margin:0 0 18px}
.wst-gate h2{margin:0 0 8px;font-size:22px;line-height:1.25;letter-spacing:-.3px;color:var(--g-ink)}
.wst-gate p{margin:0}
#wst-gate-desc{color:var(--g-muted)}
.wst-gate-form{display:flex;flex-direction:column;gap:8px;margin:20px 0 0}
.wst-gate-form label{font-size:13.5px;font-weight:650}
.wst-gate-form input{width:100%;height:50px;padding:0 14px;border:1.5px solid var(--g-line);border-radius:14px;background:var(--g-field);color:var(--g-ink);font:600 15px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em}
.wst-gate-form input::placeholder{color:var(--g-muted);opacity:.7;font-weight:500}
.wst-gate-form input:focus{outline:3px solid rgba(78,138,26,.35);outline-offset:1px;border-color:var(--g-accent)}
.wst-gate-msg{min-height:1.55em;font-size:13.5px;color:var(--g-muted)}
.wst-gate-msg.is-error{padding:8px 12px;border-radius:10px;background:var(--g-err-bg);color:var(--g-err);font-weight:600}
.wst-gate-msg:empty{min-height:0}
.wst-gate-unlock{height:50px;margin-top:4px;border:0;border-radius:14px;background:var(--g-accent);color:var(--g-accent-ink);font:inherit;font-size:16px;font-weight:700;line-height:1;cursor:pointer}
.wst-gate-unlock:hover{filter:brightness(.94)}
.wst-gate-unlock:disabled{opacity:.65;cursor:wait}
.wst-gate-unlock:focus-visible,.wst-gate a:focus-visible,.wst-gate summary:focus-visible{outline:3px solid rgba(78,138,26,.45);outline-offset:3px}
.wst-gate-links{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 18px;margin:18px 0 0}
.wst-gate-buy{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1.5px solid var(--g-accent);border-radius:999px;color:var(--g-accent);font-weight:700;text-decoration:none}
.wst-gate-buy:hover{background:var(--g-soft)}
.wst-gate-where{flex:1 1 180px;min-width:0}
.wst-gate-where summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600;color:var(--g-ink);text-decoration:underline;text-underline-offset:3px}
.wst-gate-where p{margin:4px 0 0;font-size:13.5px;color:var(--g-muted)}
.wst-gate-foot{margin:16px 0 0!important;padding-top:14px;border-top:1px solid var(--g-line);font-size:13.5px}
.wst-gate-foot a{color:var(--g-accent);font-weight:600}
.wst-gate-sr{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:480px){.wst-gate{align-items:flex-end;padding:10px}.wst-gate-card{padding:22px 18px 18px;border-radius:22px}.wst-gate h2{font-size:20px}}
@media (prefers-color-scheme:dark){
  html[data-wst-gate=locked] body::before{background:rgba(12,17,9,.74)}
  .wst-gate{--g-bg:#18200f;--g-ink:#eef4e6;--g-muted:#b4c2a6;--g-line:#334227;--g-field:#10160b;--g-accent:#9fd36a;--g-accent-ink:#10160b;--g-soft:#243318;--g-err:#ffb4ab;--g-err-bg:#3b1712;color-scheme:dark}
  .wst-gate-logo{filter:brightness(0) invert(1)}
}
@media (prefers-reduced-motion:no-preference){.wst-gate-card{animation:wst-gate-in .25s ease-out}}
@keyframes wst-gate-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
