/* Recreated GetSafeNow app screens (dark theme), built from the app's real theme tokens.
   Each screen is drawn at real iPhone size (390 x 844 pt) and scaled down with --s. */
.dev, .dev * { box-sizing: border-box; }
.dev { --s: .74; position: relative; width: calc(390px * var(--s) + 22px); height: calc(844px * var(--s) + 22px); border-radius: calc(55px * var(--s) + 11px); background: #1b1d21; padding: 11px; box-shadow: 0 30px 60px -22px rgba(15,42,71,.45), 0 0 0 1.5px #3a3d43 inset, 0 0 0 1px rgba(0,0,0,.25); flex-shrink: 0; }
.dev .glass { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(55px * var(--s)); overflow: hidden; background: #101317; }
.dev .di { position: absolute; z-index: 5; top: calc(11px * var(--s)); left: 50%; transform: translateX(-50%); width: calc(124px * var(--s)); height: calc(36px * var(--s)); border-radius: 30px; background: #000; }
@media (max-width: 400px) { .dev { --s: .66; } }
.app { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; background: #101317; color: #EBEEF2; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Roboto, 'Segoe UI', sans-serif; display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; }
.app svg { display: block; }
/* shield app text from the host page's heading/paragraph styles */
.dev .app h1, .dev .app .hd, .dev .app h3, .dev .app p { margin: 0; padding: 0; max-width: none; letter-spacing: 0; color: inherit; font-family: inherit; text-transform: none; }
.dev .app .rl-head h1, .dev .app .rl-head .hd { font-size: 24px; font-weight: 400; line-height: 32px; }
.dev .app .ad-head h1, .dev .app .ad-head .hd { font-size: 28px; font-weight: 700; line-height: 34px; }
.dev .app .dlg h3 { font-size: 24px; font-weight: 400; line-height: 30px; margin-bottom: 16px; }
.dev .app .dlg p { font-size: 16px; line-height: 23px; }
.dev .app .enc p { font-size: 14px; line-height: 20px; }
.dev .app .enc p + p { margin-top: 8px; }
.app .sb { height: 54px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 40px; font: 600 17px -apple-system, 'SF Pro Text', Roboto, sans-serif; color: #fff; }
.app .sb .ic { display: flex; gap: 6px; align-items: center; }
.app .home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #EBEEF2; opacity: .9; }

/* avatars: real hashed color pairs from Avatar.kt */
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.c1 { background: #002600; color: rgba(96,252,44,.66); } .c2 { background: #001B4E; color: #21BACD; } .c3 { background: #37004E; color: #D991DE; }
.c4 { background: #22006A; color: #AD9CFE; } .c5 { background: #450018; color: #FE84A2; } .c6 { background: #470000; color: #F6913D; }

/* room list */
.rl-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px 10px; }
.rl-head .av { width: 40px; height: 40px; font-size: 16px; }
.rl-head h1, .rl-head .hd { font-size: 24px; font-weight: 400; color: #EBEEF2; }
.rl-search { display: flex; gap: 12px; align-items: center; padding: 6px 16px 10px; }
.rl-search .f { flex: 1; height: 48px; background: #1D1F24; border-radius: 8px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #808994; font-size: 16px; }
.row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #3C3F44; }
.row .av { width: 56px; height: 56px; font-size: 18px; }
.row .mid { flex: 1; min-width: 0; }
.row .nm { font-size: 16px; font-weight: 600; color: #EBEEF2; }
.row .pv { font-size: 14px; font-weight: 500; color: #808994; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row .tm { font-size: 12px; color: #808994; }
.row .bd { display: flex; gap: 8px; align-items: center; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: #3A87C8; color: #101317; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.fab { position: absolute; right: 22px; bottom: 44px; width: 56px; height: 56px; border-radius: 16px; background: #EBEEF2; display: grid; place-items: center; }

/* room */
.tb { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.tb .av { width: 40px; height: 40px; font-size: 16px; }
.tb .nm { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex: 1; }
.enc { background: #1D1F24; padding: 12px 16px; color: #808994; font-size: 14px; line-height: 20px; }
.enc .l { display: flex; gap: 12px; }
.enc p + p { margin-top: 8px; }
.tl { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.pill { align-self: center; background: #1D1F24; color: #808994; font-size: 12px; padding: 4px 12px; border-radius: 12px; }
.snd { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #808994; margin-bottom: -8px; }
.snd .av { width: 24px; height: 24px; font-size: 10px; }
.msg { display: flex; flex-direction: column; max-width: 80%; }
.msg.in { align-self: flex-start; } .msg.out { align-self: flex-end; align-items: flex-end; }
.bub { border-radius: 12px; padding: 8px 12px; font-size: 16px; font-weight: 500; line-height: 22px; }
.in .bub { background: #1D1F24; color: #EBEEF2; } .out .bub { background: #3A87C8; color: #101317; }
.msg .t { font-size: 12px; color: #808994; margin-top: 4px; }
.fc { width: 280px; border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: center; }
.in .fc { background: #1D1F24; } .out .fc { background: #3A87C8; }
.fc .ib { width: 52px; height: 52px; border-radius: 14px; background: #101317; display: grid; place-items: center; flex-shrink: 0; }
.fc .fn { font-size: 14px; font-weight: 500; color: #EBEEF2; }
.fc .fs { font-size: 12px; color: #EBEEF2; margin-top: 2px; }
.out .fc .fn, .out .fc .fs { color: #101317; }
.cmp { display: flex; align-items: center; gap: 12px; padding: 10px 16px 40px; }
.cmp .f { flex: 1; height: 48px; background: #1D1F24; border-radius: 20px; display: flex; align-items: center; padding: 0 18px; color: #808994; font-size: 16px; }
.cmp .pl { width: 35px; height: 35px; border-radius: 8px; background: #1D1F24; display: grid; place-items: center; }

/* call */
.call { background: #0D0D0D; }
.call .hd { position: absolute; top: 54px; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 15px; font-weight: 600; z-index: 2; }
.call .timer { position: absolute; right: 16px; background: rgba(0,0,0,.8); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; }
.grid { position: absolute; top: 126px; bottom: 150px; left: 8px; right: 8px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.tile { border-radius: 16px; background: #1F1F22; position: relative; overflow: hidden; display: grid; place-items: center; }
.tile.speak { box-shadow: 0 0 0 2px #40B0D8 inset; }
.tile .np { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.8); border-radius: 8px; padding: 3px 8px; font-size: 12px; color: #fff; }
.tile .mute { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(229,57,53,.8); display: grid; place-items: center; }
.tile .q { position: absolute; right: 10px; top: 10px; display: flex; gap: 2px; align-items: flex-end; }
.tile .q i { width: 3px; background: #4CAF50; border-radius: 1px; display: block; }
.tile .bigav { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 700; }
.vid { position: absolute; inset: 0; }
.pip { position: absolute; right: 16px; bottom: 132px; width: 100px; height: 140px; border-radius: 14px; background: #000; box-shadow: 0 12px 24px rgba(0,0,0,.6); overflow: hidden; z-index: 2; }
.ctl { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 16px; }
.ctl .pill2 { background: rgba(28,28,30,.7); border-radius: 32px; padding: 8px; display: flex; gap: 12px; }
.ctl .b { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.ctl .end { width: 56px; height: 56px; border-radius: 50%; background: #E53935; display: grid; place-items: center; }

/* admin */
.ad-head { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px 6px; }
.ad-head h1, .ad-head .hd { font-size: 28px; font-weight: 700; line-height: 34px; }
.ad-head .dom { font-size: 12px; color: #808994; }
.seats { margin: 8px 16px 12px; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; background: #09313B; color: #7AACF4; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 12px; }
.ad-search { margin: 0 16px 6px; height: 52px; border: 1px solid #4A4F55; border-radius: 6px; display: flex; align-items: center; padding: 0 16px; color: #808994; font-size: 16px; }
.urow { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(237,231,244,.1); }
.urow .av { width: 40px; height: 40px; font-size: 15px; }
.urow .mid { flex: 1; min-width: 0; }
.urow .nm { font-size: 16px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.urow .tag { background: #3A87C8; color: #101317; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; }
.urow .id, .urow .act { font-size: 12px; color: #808994; }
.urow .st { font-size: 13px; font-weight: 500; color: #4187EB; }
.urow .st.off { color: #808994; }
.addbtn { position: absolute; left: 16px; right: 16px; bottom: 40px; height: 56px; border-radius: 28px; background: #4187EB; color: #101317; font-size: 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 3; display: grid; place-items: center; }
.dlg { width: 320px; background: #2B2930; border-radius: 28px; padding: 24px; }
.dlg h3 { font-size: 24px; font-weight: 400; margin-bottom: 16px; }
.dlg p { font-size: 16px; line-height: 23px; color: #EBEEF2; }
.dlg .bt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dlg .bt span { height: 40px; border-radius: 20px; padding: 0 22px; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.dlg .rm { background: #FD3E3C; color: #101317; } .dlg .cn { border: 1px solid #938F99; color: #EBEEF2; }
