/* Web sign-in (/login) and the signed-in web app (/app). Builds on style.css. */
.panel { max-width: 440px; margin: 7vh auto 48px; padding: 32px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; line-height: 1.6; }
.panel h1 { font-size: 1.9rem; margin: 0 0 6px; }
.panel label { display: block; font-weight: 600; margin: 14px 0 6px; }
.field { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
.field:focus { outline: none; border-color: var(--teal); }
.code { letter-spacing: .4em; font-size: 1.3rem; text-align: center; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.wide { width: 100%; margin-top: 20px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; }
.muted { color: var(--muted); font-size: .92rem; }
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 12px; display: none; }
.msg.err { display: block; background: #FDECEA; color: #8A1C1C; }
.msg.ok { display: block; background: #E7F6EC; color: #14532D; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
[hidden] { display: none !important; }

/* signed-in app */
.me { display: flex; align-items: center; gap: 10px; }
.me .name { font-weight: 600; }
.app { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; padding-bottom: 48px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 8px; min-width: 0; }
.box h2 { font-size: 1.35rem; margin: 0 0 8px; }
.notice { grid-column: 1 / -1; background: color-mix(in srgb, var(--amber) 16%, var(--surface)); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.search { margin: 4px 0 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .who-txt { flex: 1; min-width: 0; }
.list .who-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .who-txt small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .empty { color: var(--muted); justify-content: center; padding: 18px 0; }
.missed { color: #C62828 !important; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover;
  background: linear-gradient(135deg, var(--mint), var(--teal)); color: #fff; display: grid; place-items: center; font-weight: 600; }
.icon-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--teal); cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; }
.icon-btn:hover { border-color: var(--teal); }
.icon-btn svg, .ctl svg { width: 20px; height: 20px; }

.tabs { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.more { font-size: 1.3rem; line-height: 1; color: var(--muted); }

.dlg { border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 18px; width: min(380px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); }
.dlg::backdrop { background: rgba(0,0,0,.45); }
.dlg h3 { margin: 0 0 4px; font-size: 1.3rem; }
.dlg p { margin: 0 0 12px; }
.dlg p:empty { display: none; }
.dlg .linkish { margin-top: 10px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.choices-list { display: grid; gap: 8px; }
.choices-list button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.choices-list button:hover { border-color: var(--teal); }

/* incoming call + call screen */
.overlay { position: fixed; inset: 0; z-index: 50; background: #0B1312; color: #EAF2EF; display: flex; flex-direction: column; }
.ring { align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; }
.ring .avatar, .solo .avatar { width: 110px; height: 110px; font-size: 2.4rem; margin-bottom: 10px; }
.ring h2 { margin: 0; }
.ring p { margin: 0 0 28px; color: #A2B1AD; }
.ring .choices { display: flex; gap: 56px; }
.ring .choices span { display: block; margin-top: 8px; font-size: .9rem; color: #A2B1AD; }
.ctl { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #24322F; color: #fff; }
.ctl.off { background: #EAF2EF; color: #10201E; }
.ctl.red { background: #E53935; }
.ctl.green { background: #22A559; }
.ring .ctl { width: 68px; height: 68px; }
.ring .ctl svg { width: 28px; height: 28px; }
.call-top { padding: 18px 20px 6px; text-align: center; }
.call-top h2 { margin: 0; font-size: 1.5rem; }
.call-top p { margin: 2px 0 0; color: #A2B1AD; font-variant-numeric: tabular-nums; }
.stage { flex: 1; min-height: 0; display: grid; gap: 8px; padding: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile { position: relative; background: #15211F; border-radius: 16px; overflow: hidden; display: grid; place-items: center; min-height: 160px; }
.tile video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile .label { position: absolute; left: 10px; bottom: 8px; font-size: .9rem; background: rgba(0,0,0,.45); padding: 2px 10px; border-radius: 999px; }
.solo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.self { position: absolute; right: 16px; bottom: 104px; width: 160px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: #15211F; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.self video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.controls { display: flex; justify-content: center; gap: 16px; padding: 16px 16px 24px; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .self { width: 104px; bottom: 100px; }
  .me .name { display: none; }
}
