:root{font:14px/1.45 system-ui,sans-serif;color:#e4edf5;background:#0e1720;color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}body.in-chat{overflow:hidden;overscroll-behavior:none}button,a{touch-action:manipulation}button{font:inherit;color:inherit;background:#213345;border:1px solid #354b5e;border-radius:9px;padding:9px 13px;cursor:pointer}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){background:#2a4257}button:focus-visible,a:focus-visible{outline:2px solid #91caff;outline-offset:3px}a{color:#91caff}p{color:#aabccb}h1,h2,p{margin:0}h2{font-size:14px;font-weight:650}.chat-app{position:fixed;top:var(--pwa-view-top,0px);left:var(--pwa-view-left,0px);width:var(--pwa-view-width,100%);height:var(--pwa-view-height,100dvh);overflow:hidden;padding-top:var(--pwa-top-padding,calc(env(safe-area-inset-top,0px) + 1px))}.chat-app-frame{display:block;width:100%;height:100%;border:0;background:#0e1720;color-scheme:dark}.release-error{max-width:420px;margin:15dvh auto;padding:24px}.release-error p{margin:12px 0}.release-error h1{font-size:20px}.wallet-dialog{position:fixed;inset:0;width:min(460px,calc(100% - 32px));height:auto;max-height:calc(var(--pwa-view-height,100dvh) - 32px);margin:auto;padding:0;overflow:hidden;background:#14212e;border:1px solid #314353;border-radius:18px;box-shadow:0 20px 80px #0007;color:inherit}.wallet-dialog::backdrop{background:#050b12a8;backdrop-filter:blur(4px)}.wallet-panel{display:flex;flex-direction:column;max-height:calc(var(--pwa-view-height,100dvh) - 34px)}.wallet-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;height:48px;padding:0 8px 0 14px;background:#16232e;border-bottom:1px solid #283b49}.wallet-heading h1{min-width:0;font-size:16px;font-weight:650;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-wallet{width:44px;height:44px;display:grid;place-items:center;border-radius:9px;flex:none;border:0;background:transparent;font-size:26px;line-height:1;padding:0}.wallet-content{padding:20px;overflow:auto;overscroll-behavior:contain;min-height:0}.wallet-summary{display:flex;justify-content:space-between;gap:10px;margin:10px 0;color:#dce8f1;font-variant-numeric:tabular-nums}.network-state{font-size:12px;color:#b7c8d6}.network-state.ready{color:#88d8b2}.status{font-size:12px;line-height:1.5;overflow-wrap:anywhere;min-height:18px}.primary{margin-top:14px;background:#94caff;color:#10263a;border-color:transparent;font-weight:650;width:100%;min-height:42px}.primary:hover:not(:disabled){background:#aed8ff}.note{font-size:11px;line-height:1.5;margin-top:8px}.return-help{font-size:12px;color:#bfdbef;margin-top:10px}.settings-section{margin-top:20px;padding-top:16px;border-top:1px solid #293d4f}.disclosure{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0;background:transparent;border:0;font-weight:600;text-align:left;min-height:28px}.disclosure:hover:not(:disabled){background:transparent;color:#aed8ff}.disclosure span{font-size:20px;font-weight:400}.connection-check{font-size:12px;margin-top:12px}.connection-check dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px 12px;margin:0}.connection-check dt{color:#91a9bb}.connection-check dd{margin:0;text-align:right;overflow-wrap:anywhere}.connection-check p,.install p{font-size:11px;line-height:1.55;margin-top:12px}.repair-actions{display:grid;gap:8px;margin-top:16px}.repair-actions button{font-size:12px}@media(max-width:760px){.wallet-dialog{top:var(--pwa-view-top,0px);left:var(--pwa-view-left,0px);right:auto;bottom:auto;width:var(--pwa-view-width,100%);max-width:none;height:var(--pwa-view-height,100dvh);max-height:none;margin:0;border:0;border-radius:0;padding-top:var(--pwa-top-padding,calc(env(safe-area-inset-top,0px) + 1px));padding-bottom:var(--pwa-bottom-inset,env(safe-area-inset-bottom))}.wallet-panel{height:100%;max-height:100%}.wallet-content{padding:18px 16px 24px}}



.debug-status-control{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:12px;font-size:12px;cursor:pointer}.debug-status-control input{width:20px;height:20px;flex:none;margin:0;accent-color:#94caff}

:root .close-wallet{
 display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;
 padding:0;border:0;border-radius:9px;background:transparent;color:#e4edf5;
 font:600 23px/1 system-ui;text-align:center;
}
:root .close-wallet:hover:not(:disabled){background:#2a4257}

.mobile-conversation-toolbar{display:none}
@media(max-width:760px){
 .wallet-heading{height:46px}
 .mobile-conversation-toolbar{
  display:flex;position:absolute;z-index:8;
  top:var(--pwa-top-padding,calc(env(safe-area-inset-top,0px) + 1px));
  left:0;right:0;height:46px;align-items:center;gap:7px;
  padding:0 8px;background:#16232e;border-bottom:1px solid #283b49;
 }
 :root:has(.mobile-conversation-toolbar:not([hidden])),
 .chat-app:has(>.mobile-conversation-toolbar:not([hidden])){background:#16232e}
 .mobile-toolbar-heading{position:relative;flex:1;min-width:0}
 .mobile-toolbar-heading h1{font-size:16px;font-weight:650;line-height:21px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-toolbar-status{position:absolute;left:0;right:0;top:calc(100% + 1px);font-size:9px;line-height:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aabccb;pointer-events:none}
 .mobile-conversation-toolbar button{font-size:12px}
 .mobile-conversation-toolbar .mobile-toolbar-icon{
  width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;position:relative;
  isolation:isolate;padding:0;border:0;background:transparent;border-radius:8px;line-height:1;
 }
 .mobile-conversation-toolbar .mobile-toolbar-icon::before{
  content:"";position:absolute;z-index:-1;width:28px;height:28px;border-radius:8px;
  border:1px solid #324a5c;background:#22394b;
 }
 .mobile-conversation-toolbar .mobile-toolbar-list{font-size:17px}
 .mobile-conversation-toolbar .mobile-toolbar-more{font-size:16px}
 .mobile-toolbar-menu{position:absolute;top:100%;right:8px;display:grid;gap:4px;min-width:155px;padding:6px;border:1px solid #3a5367;border-radius:10px;background:#1a2c3b}
 .mobile-toolbar-menu button{text-align:left}
 .waku-shell .mobile-toolbar-menu{
  width:min(296px,calc(100vw - 16px));min-width:0;
  max-height:max(52px,calc(var(--pwa-view-height,100dvh) - var(--pwa-top-padding,0px) - 54px));
  overflow-y:auto;overscroll-behavior:contain;padding:8px;gap:6px;
 }
 .waku-shell .mobile-toolbar-menu button{width:100%;min-height:44px;padding:8px 12px;font-size:14px}
}
:where(.in-chat,.in-chat *){-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.in-chat :is(input,textarea,[contenteditable]:not([contenteditable="false"]),[contenteditable]:not([contenteditable="false"]) *){-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}
.in-chat [autofocus][tabindex="-1"]{outline:none}

@media(max-width:760px){.wallet-dialog,.wallet-content{touch-action:pan-y}}

.chat-app-frame[data-loading]{visibility:hidden}

html{touch-action:pan-x pan-y;-webkit-text-size-adjust:100%;text-size-adjust:100%}

.mobile-toolbar-icon.voice-room-badge{
 width:auto;min-width:42px;flex:none;padding-inline:6px;font-size:13px;white-space:nowrap;
 color:#b3e5c1;background:#1d4037;border-color:#396958;
}
