.cmep-app-tools{margin:1.5rem auto;padding:.7rem 1rem;max-width:72rem;color:var(--text,#475569);font:inherit;font-size:.9rem}.cmep-app-tools summary{cursor:pointer}.cmep-app-tools button{font:inherit;cursor:pointer;padding:.5rem .8rem;border:1px solid #94a3b8;border-radius:.4rem;background:var(--card-bg,#fff);color:inherit;margin:.3rem}.cmep-app-tools label{display:block;margin:.6rem 0}.cmep-app-tools input{margin-right:.5rem}.cmep-app-tools fieldset{border:1px solid #94a3b8;border-radius:.4rem;max-width:30rem;margin:.6rem 0}.cmep-app-status{white-space:normal;max-width:42rem}.cmep-connection{position:fixed;bottom:0;left:0;right:0;z-index:10000;background:#78350f;color:#fff;padding:.7rem;text-align:center;font:14px system-ui}.cmep-update{position:fixed;right:1rem;bottom:3.5rem;z-index:9999;background:#fff;color:#334155;padding:.7rem;border:1px solid #94a3b8;border-radius:.4rem;box-shadow:0 4px 18px #0002}.cmep-update button{margin-left:.5rem}.cmep-offline{max-width:36rem;margin:10vh auto;padding:1.5rem;font:18px/1.6 system-ui;color:#334155}.cmep-app-tools [hidden],.cmep-connection[hidden],.cmep-update[hidden]{display:none!important}

/* First launch preferences use the top layer, above the installed app menu. */
.cmep-alert-welcome.cmep-app-tools{box-sizing:border-box;width:min(34rem,calc(100vw - 24px));max-width:34rem;max-height:calc(100dvh - 24px);margin:auto;padding:1.25rem;border:1px solid #94a3b8;border-radius:24px;background:#f8fafc;color:#334155;box-shadow:0 20px 70px #0f172a40;overflow-y:auto;overscroll-behavior:contain;font:16px/1.5 system-ui}
.cmep-alert-welcome::backdrop{background:#0f172a70}
.cmep-alert-welcome h2{margin:0 0 .6rem;font-size:1.4rem;line-height:1.25}
.cmep-alert-welcome summary{display:none}
.cmep-alert-welcome fieldset{max-width:none}
.cmep-alert-welcome label{display:flex;align-items:center;gap:.5rem;min-height:44px;margin:.2rem 0;cursor:pointer}
.cmep-alert-welcome input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#2563eb}
.cmep-alert-welcome button{min-height:44px;padding:.65rem .9rem}
.cmep-alert-welcome [data-enable]{background:#1d4ed8;color:white;border-color:#1d4ed8;font-weight:650}
.cmep-alert-welcome button:disabled{opacity:.65;cursor:wait}
.cmep-alert-welcome-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.cmep-alert-welcome :focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(prefers-color-scheme:dark){.cmep-alert-welcome.cmep-app-tools{background:#1e293b;color:#e2e8f0;border-color:#64748b}.cmep-alert-welcome button{background:#334155;border-color:#64748b;color:#e2e8f0}.cmep-alert-welcome [data-enable]{background:#2563eb}}

.cmep-alert-welcome details > p:not(.cmep-app-status){display:none}
.cmep-alert-welcome-actions{position:sticky;bottom:-1.25rem;padding:.6rem 0;background:#f8fafc;border-top:1px solid #cbd5e1}
@media(prefers-color-scheme:dark){.cmep-alert-welcome-actions{background:#1e293b;border-color:#475569}}
@layer cmep-alert-welcome-controls {
  .cmep-alert-welcome button{min-height:44px!important;padding:.65rem .9rem!important;font-size:16px!important}
  .cmep-alert-welcome [data-enable]{background:#1d4ed8!important;color:#fff!important;border-color:#1d4ed8!important}
}
