.license-shade[hidden]{display:none!important}
.license-shade{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:#122a5b75;backdrop-filter:blur(7px)}
.license-dialog{width:min(100%,440px);max-height:min(92vh,800px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #fff;border-radius:23px;background:linear-gradient(145deg,#f6fbff,#e2f2ff);color:#10235a;box-shadow:0 28px 80px #0b2d7450,inset 0 1px #fff;font-size:12px}
.license-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.license-heading h2{margin:0;font-size:20px;line-height:1.2;letter-spacing:-.4px}
.license-dialog button{min-height:34px;margin:0;padding:8px 11px;border:1px solid #fff;border-radius:11px;background:linear-gradient(145deg,#fff,#e7f4ff);color:#173567;box-shadow:inset 0 1px #fff,0 3px 9px #1457ff12;font-size:11px;line-height:1.2}
.license-dialog button:hover{background:#fff;box-shadow:0 4px 12px #1457ff25}
.license-dialog .license-close{width:32px;height:32px;min-height:32px;padding:0;font-size:22px;font-weight:300;line-height:1}
.license-state-card,.license-key-box,.license-device-box{margin-top:10px;padding:14px;border:1px solid #fff;border-radius:15px;background:#ffffffad;box-shadow:inset 0 1px #fff}
.license-kicker{display:block;margin-bottom:6px;color:#406aa7;font-size:9px;font-weight:700;letter-spacing:.09em}
.license-state-title{display:block;color:#0b317f;font-size:15px}
.license-dialog p{margin:7px 0 0;color:#4c609e;line-height:1.45;overflow-wrap:anywhere}
.license-key-box label{display:block;margin:0;color:#264577;font-size:11px;font-weight:650}
.license-key-box input,.license-dialog select{display:block;box-sizing:border-box;width:100%;height:38px;margin-top:7px;padding:8px 10px;border:1px solid #b8d4f1;border-radius:10px;background:#fff;color:#10235a;font:inherit}
.license-key-actions{display:flex;gap:7px;margin:9px 0 12px}
.license-key-actions button{flex:1}
.license-dialog .license-primary{width:100%;min-height:40px;background:linear-gradient(135deg,#2fc5fa,#1564ff 46%,#0648e7);border-color:#72b9ff;color:#fff;font-size:12px;font-weight:650;box-shadow:inset 0 1px #d3f5ff,0 8px 17px #1457ff2b}
.license-dialog .license-primary:hover{background:linear-gradient(135deg,#52d3ff,#287aff 46%,#1258ef);color:#fff}
.license-dialog output,.license-dialog pre{display:block;margin:9px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.license-device-box h3{margin:0;color:#10235a;font-size:13px}
.license-device-box>button{margin-top:10px}
.license-device-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #d5e8fa;font-weight:650}
.license-dialog details{margin-top:16px}
.license-dialog details summary{cursor:pointer}
.license-dialog :focus-visible{outline:2px solid #1457ff;outline-offset:2px}
@media(max-width:480px){.license-shade{padding:8px}.license-dialog{padding:15px;border-radius:18px}}
/* Compact account view: status, then two actions; key entry folds away once activated. */
.license-state-card.is-active .license-state-title::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#1fc46d;box-shadow:0 0 0 3px #1fc46d33;vertical-align:1px}
.license-device-box{padding:10px}
.license-device-actions{display:flex;gap:8px}
.license-device-actions button{flex:1}
.license-dialog details.license-change{margin-top:10px}
.license-dialog details.license-change>summary{font-size:11px;color:#406aa7;padding:4px 2px}
.license-dialog details.license-change .license-key-box{margin-top:6px}
html.dark-mode .license-dialog{background:linear-gradient(145deg,#2a2a2a,#232323)!important;border-color:#3a3a3a!important;color:#e6e6e6!important}
html.dark-mode .license-dialog h2,html.dark-mode .license-state-title,html.dark-mode .license-key-box label{color:#ededed!important}
html.dark-mode .license-state-card,html.dark-mode .license-key-box,html.dark-mode .license-device-box{background:#1d1d1d!important;border-color:#353535!important;box-shadow:none!important}
html.dark-mode .license-dialog p,html.dark-mode .license-kicker,html.dark-mode .license-dialog details summary{color:#9a9a9a!important}
html.dark-mode .license-dialog button:not(.license-primary){background:linear-gradient(180deg,#3a3a3a,#303030)!important;border-color:#474747!important;color:#e6e6e6!important;box-shadow:none!important}
html.dark-mode .license-key-box input{background:#151515!important;border-color:#444!important;color:#eee!important}
/* The account dialog is a compact card, never the full panel width. */
.license-dialog{width:min(calc(100% - 40px),360px)!important;padding:18px!important}
.license-heading h2{font-size:18px}
.license-device-box{padding:8px!important}
.license-device-actions button{flex:1}
