*{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;background:#000;color:#fff}
body{font:16px/1.5 system-ui}
#launch-workspace{position:relative;display:flex;flex-direction:column;width:min(100%,430px);height:100dvh;margin:0 auto;overflow-x:hidden;overflow-y:auto;background:#000}
#launch-workspace:has(#frame-menu:not([hidden])){overflow:hidden}
.frame-bar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:8px;height:48px;padding:0 8px;flex:none;background:#000}
.frame-title{font-size:18px;font-weight:700}
#launch-menu-button,#frame-menu-close{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:#1c1c1e;color:#fff;display:grid;place-items:center}
#launch-menu{padding:16px 20px 24px}
#device-state{color:#cbd5e1}
#panel-setup,#panel-recover,#panel-ceremony{display:flex;flex-direction:column}
#root,#app,#recovery{position:relative}
#panel-status:empty{display:none}
#frame-menu{position:absolute;inset:0;z-index:60;background:#020617;padding:12px 16px 24px}
#frame-menu[hidden],#launch-menu[hidden],#panel-setup[hidden],#panel-recover[hidden],#panel-ceremony[hidden]{display:none!important}
.frame-menu-bar{display:flex;align-items:center;justify-content:space-between;height:48px}
#frame-launcher{display:grid;gap:8px;margin:12px 0}
#frame-launcher button{display:flex;align-items:center;width:100%;min-height:44px;padding:10px 14px;border:1px solid #38383a;border-radius:12px;background:#1c1c1e;color:#f8fafc;font:600 16px/1.2 system-ui;text-align:left}
#frame-launcher button[aria-current=page]{border-color:#60a5fa;background:#172554}
#launch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:104px;gap:12px;margin-top:12px}
#launch-grid button{display:flex;flex-direction:row;align-items:center;gap:8px;width:100%;height:104px;min-width:0;min-height:44px;padding:0 10px;border:0;border-radius:16px;box-shadow:inset 0 0 0 1px #38383a;background:#1c1c1e;color:#f8fafc;font:600 16px/1.2 system-ui;text-align:left}
#launch-grid button span{min-width:0;flex:1 1 auto}
#launch-grid button::before{content:"";flex:0 0 auto;height:80%;aspect-ratio:1;background:currentColor;-webkit-mask:var(--launch-icon) center/contain no-repeat;mask:var(--launch-icon) center/contain no-repeat}
#launch-grid button[data-launch=setup]{--launch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 4h2v7h7v2h-7v7h-2v-7H4v-2h7z'/%3E%3C/svg%3E")}
#launch-grid button[data-launch=signin]{--launch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 3h9v18h-9v-2h7V5h-7zm-1.2 4.2 1.4-1.4L16.4 12l-6.2 6.2-1.4-1.4 3.8-3.8H3v-2h9.6z'/%3E%3C/svg%3E")}
#launch-grid button[data-launch=recover]{--launch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5a7 7 0 0 1 6.2 3.7L16 11h6V5l-2.1 2.1A9 9 0 1 0 21 13h-2a7 7 0 1 1-7-8z'/%3E%3C/svg%3E")}
#launch-grid #open-help{--launch-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3a6 6 0 0 0-6 6h2.4a3.6 3.6 0 1 1 5.2 3.2c-.8.5-1.6 1.2-1.6 2.6V16h2.4v-.8c0-.5.3-.8.9-1.2A6 6 0 0 0 12 3zm-1.2 15h2.4v2.4h-2.4z'/%3E%3C/svg%3E")}
#launch-grid button[aria-current=page]{box-shadow:inset 0 0 0 1px #60a5fa;background:#172554}
#frame-launcher button:focus-visible,#launch-grid button:focus-visible,#launch-menu-button:focus-visible,#frame-menu-close:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
#launch-workspace *{overflow:visible}
#launch-workspace dialog,#launch-workspace .connection-confirm{overflow:auto}
#launch-workspace #frame-menu{overflow:hidden}
#panel-recover header{display:none}
#panel-recover form{display:grid;gap:10px}
#panel-recover label{display:block}
#panel-recover input,#panel-recover select,#panel-recover button{font:inherit;min-height:40px}
#panel-recover input,#panel-recover select{width:100%;background:#111;color:#fff;border:1px solid #4a4f56;border-radius:12px;padding:10px 12px}
#recovery-begin{width:100%;min-height:44px;border-radius:12px}
#recovery-saved{display:grid;gap:10px}
#recovery-proof{min-height:120px}
.proof-panel{display:block;width:100%;height:auto;min-height:0;border:0;background:#000}
small{color:#94a3b8}
