/* The team app pages (mobile.py): tiles, chat bubbles, the call screen and the speed test. */
.m-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.m-tile{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 12px;text-align:center;color:var(--fg);font-weight:600;display:flex;flex-direction:column;align-items:center;gap:6px}
.m-tile:hover{text-decoration:none;border-color:var(--accent)}
.m-ico{font-size:32px}
.m-rooms{gap:0;padding:6px 10px}
.m-room-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line)}
.m-room-row:last-child{border-bottom:0}
.m-room-link{flex:1;color:var(--fg);min-width:0}
.m-room-link:hover{text-decoration:none}
.m-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--muted);margin-inline-end:6px;opacity:.5}
.m-dot.on{background:var(--ok);opacity:1}
.m-room-head{justify-content:flex-start}
.m-room-head h1{flex:1}
.m-conv{padding:10px;min-height:50vh}
.m-list{display:flex;flex-direction:column;gap:8px}
.m-msg{align-self:flex-start;max-width:82%;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:6px 10px;word-wrap:break-word;white-space:pre-wrap}
.m-msg.mine{align-self:flex-end;background:var(--accent-soft)}
.m-msg.call{align-self:center;background:transparent;color:var(--muted);font-size:13px}
.m-msg img{max-width:100%;max-height:300px;border-radius:8px;display:block}
.m-msg audio{max-width:240px}
.m-from{display:block;font-size:12px;color:var(--accent)}
.m-at{display:block;font-size:11px;color:var(--muted);text-align:left;direction:ltr}
.m-older{align-self:center}
.m-compose{position:sticky;bottom:0;display:flex;gap:6px;align-items:flex-end;background:var(--bg);padding:8px 0}
.m-compose textarea{flex:1;min-height:40px;max-height:120px;resize:vertical}
.m-pick{cursor:pointer}
.m-callbox{align-items:center;text-align:center;padding:40px 16px;gap:10px}
.m-avatar{width:96px;height:96px;border-radius:50%;background:var(--grad);display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;color:#fff}
.m-state{color:var(--muted);margin:0}
.m-timer{font-size:22px;margin:0;min-height:1.4em}
.m-callbtns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.m-round{min-width:96px;padding:14px 18px;border-radius:40px;font-size:16px}
.m-round.ok{background:var(--ok);color:#04211a}
.m-speed-res h2{margin-bottom:6px}
.m-speed-res p{margin:4px 0}
.m-bar{height:6px;background:var(--soft);border-radius:4px;overflow:hidden}
.m-bar i{display:block;height:100%;width:0;background:var(--grad);transition:width .3s}
html[data-theme="sun"] .m-msg{background:#f1f1f1;border:2px solid #5c5c5c;color:#000}
html[data-theme="sun"] .m-msg.mine{background:#d6e4ff;border-color:#003a9e}
html[data-theme="sun"] .m-from{color:#003a9e;font-weight:800}
html[data-theme="sun"] .m-at{color:#2b2b2b}
html[data-theme="sun"] .m-round.ok{background:#005c33;color:#fff}
html[data-theme="sun"] .m-compose{background:#fff;border-top:2px solid #000}
html[data-theme="sun"] .m-dot{background:#2b2b2b;opacity:1}
html[data-theme="sun"] .m-dot.on{background:#00a050;box-shadow:0 0 0 2px #000}
.m-tile{min-height:110px;justify-content:center;font-size:16px}
/* the speed test's laser dial (Wagih 3/11) */
.m-speed-dial{display:flex;justify-content:center;padding:6px 0;background:radial-gradient(circle at 50% 45%,rgba(34,211,238,.12),transparent 62%);border-radius:16px}
.m-speed-dial .g-svg{max-width:280px}
.m-status .g-grid .card{background:radial-gradient(circle at 50% 45%,rgba(34,211,238,.10),transparent 65%),var(--panel)}
