/* HSK4 One: security UI. Server device checks live in /api and Supabase. */
.hsk-license-curtain[hidden],.hsk-copy-notice[hidden]{display:none!important}
.hsk-license-curtain{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px;background:rgba(5,15,22,.90);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-family:inherit;color:#eafff8}
.hsk-license-dialog{position:relative;max-width:470px;width:100%;border:1px solid rgba(104,219,188,.52);background:#122833;border-radius:25px;padding:30px;box-shadow:0 28px 90px rgba(0,0,0,.5);display:grid;gap:14px}
.hsk-license-eyebrow{color:#8be4d0;text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:800}
.hsk-license-dialog h2{margin:0;font-size:clamp(1.45rem,4vw,2.2rem);color:#fff}
.hsk-license-dialog p{font-size:1rem;line-height:1.6;color:#bbcfda;margin:0}
.hsk-license-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.hsk-license-btn{cursor:pointer;border-radius:12px;border:1px solid #488a7e;background:transparent;color:#e8fff8;padding:12px 17px;font:inherit;font-weight:700;min-height:46px}
.hsk-license-btn.primary{border-color:#85e7cc;color:#072522;background:#8be4cf}
.hsk-license-btn:focus-visible{outline:3px solid #81dbdb;outline-offset:3px}
.hsk-license-btn[disabled]{opacity:.5;cursor:wait}
.hsk-license-small{color:#9cb4bf!important;font-size:.78rem!important}
body.hsk-paid-protection #app .section.active{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.hsk-paid-protection #app .section.active input,
body.hsk-paid-protection #app .section.active textarea,
body.hsk-paid-protection #app .section.active [contenteditable="true"],
body.hsk-paid-protection #app .section.active [role="textbox"]{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
body.hsk-paid-protection #app .section.active img{ -webkit-user-drag:none;user-drag:none }
body.hsk-visibility-obscured #app{filter:blur(20px);pointer-events:none}
.hsk-copy-notice{position:fixed;left:50%;bottom:115px;transform:translateX(-50%);z-index:999999;background:#1a363f;color:#dbfff4;border:1px solid #77cbb5;border-radius:14px;padding:12px 16px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.3);max-width:min(90vw,560px);font-weight:600}
@media(max-width:700px){.hsk-license-dialog{padding:22px}.hsk-license-buttons{flex-direction:column}.hsk-license-btn{width:100%}}
@media (prefers-reduced-motion:reduce){.hsk-license-curtain{backdrop-filter:none}}

/* Non-blocking service error: a temporary licensing outage must not blank free pages. */
.hsk-license-status[hidden]{display:none!important}
.hsk-license-status{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:99990;width:min(860px,calc(100vw - 22px));padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #71d5c0;background:#102932;color:#eafff7;border-radius:14px;box-shadow:0 12px 45px rgba(0,0,0,.27);font-size:13px;line-height:1.5}
.hsk-license-status button{border:1px solid #78d5bf;border-radius:10px;background:#8be4cf;color:#07332c;padding:9px 12px;font:inherit;font-weight:750;cursor:pointer;white-space:nowrap}
@media(max-width:600px){.hsk-license-status{flex-direction:column;align-items:stretch}.hsk-license-status button{width:100%}}
