.nxcf-stage,.nxcf-dialog,.nxcf-toast,.nxcf-pip {
  font-family:inherit;
  color:#eaf5ff;
  --nxcf-muted:#a8bdcd;
  --nxcf-line:#284258;
  --nxcf-surface:#13243a;
  --nxcf-accent:#56e0e9;
}
.nxcf-stage {
  position:fixed;inset:0;z-index:2147482000;box-sizing:border-box;
  height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  gap:clamp(10px,2dvh,20px);overflow:hidden;
  padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right))
    max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  background:radial-gradient(ellipse at 12% 0%,#10374a 0%,transparent 48%),
    radial-gradient(ellipse at 95% 96%,#211932,transparent 47%),#090f1b;
}
.nxcf-stage *,.nxcf-dialog * { box-sizing:border-box; }
.nxcf-stage[hidden],.nxcf-stage [hidden],.nxcf-dialog [hidden] { display:none!important; }
.nxcf-header,.nxcf-controls,.nxcf-grid { width:min(1216px,100%);margin-inline:auto;min-width:0; }
.nxcf-header,.nxcf-brand,.nxcf-head-tools,.nxcf-sheet-header,.nxcf-contact,.nxcf-inviter,.nxcf-actions {
  display:flex;align-items:center;gap:10px;min-width:0;
}
.nxcf-header,.nxcf-sheet-header { justify-content:space-between; }
.nxcf-header { min-height:48px; }
.nxcf-heading,.nxcf-brand { min-width:0; }
.nxcf-heading { display:grid;gap:4px; }
.nxcf-mark {
  display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;
  border:1px solid #3c779174;background:#143c4d;color:var(--nxcf-accent);
}
.nxcf-mark svg,.nxcf-button svg,.nxcf-tile-mic svg {
  width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;flex:none;
}
.nxcf-title,.nxcf-sheet-header h2 { margin:0;font-size:clamp(18px,2vw,22px);line-height:1.2; }
.nxcf-title { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.nxcf-note,.nxcf-error { font-size:13px;line-height:1.45;margin:0;color:var(--nxcf-muted); }
.nxcf-error { color:#ffa4b7; }
.nxcf-error:empty,.nxcf-note:empty { display:none; }
.nxcf-stage-status { display:flex;align-items:center;gap:6px; }
.nxcf-stage-status::before { content:'';flex:none;width:6px;height:6px;border-radius:50%;background:#5dd9bd; }
.nxcf-stage[data-reconnecting="true"] .nxcf-stage-status::before { background:#e7bd6c; }
.nxcf-head-tools { flex:none;gap:8px; }
.nxcf-clock { color:#c0d5e5;font:600 13px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums; }
.nxcf-stage .nxcf-roster-button { padding:0 9px; }
.nxcf-head-count { display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:7px;background:#254d62;color:#d1f7ff; }

.nxcf-grid {
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(7px,1.3vw,13px);
  grid-auto-rows:minmax(114px,1fr);align-self:center;
  height:min(100%,760px);min-height:0;overflow:auto;overscroll-behavior:contain;
  padding:2px;scrollbar-width:thin;
}
.nxcf-grid[data-count="1"] { width:min(790px,100%);height:min(100%,590px); }
.nxcf-grid[data-count="2"] { height:min(100%,535px); }
.nxcf-grid[data-focus="false"][data-count="3"] { width:min(1010px,100%); }
.nxcf-grid[data-focus="false"][data-count="4"] { width:min(1080px,100%); }
.nxcf-grid[data-focus="false"][data-count="1"] .nxcf-tile { grid-column:span 12; }
.nxcf-grid[data-focus="false"]:is([data-count="2"],[data-count="3"],[data-count="4"]) .nxcf-tile { grid-column:span 6; }
.nxcf-grid[data-focus="false"][data-count="3"] .nxcf-tile:last-child { grid-column:4/span 6; }
.nxcf-grid[data-focus="false"]:is([data-count="5"],[data-count="6"]) .nxcf-tile { grid-column:span 4; }
.nxcf-grid[data-focus="false"][data-count="5"] .nxcf-tile:nth-child(4) { grid-column:3/span 4; }
.nxcf-grid[data-focus="true"] {
  grid-template-columns:minmax(0,1fr) clamp(105px,20%,210px);
  grid-template-rows:repeat(var(--nxcf-strip-count),minmax(66px,1fr));
}
.nxcf-grid[data-focus="true"] .nxcf-tile { grid-column:2; }
.nxcf-grid[data-focus="true"] .nxcf-tile.is-focused { grid-column:1;grid-row:1/-1; }

.nxcf-tile {
  position:relative;display:grid;place-items:center;min-width:0;min-height:0;isolation:isolate;
  overflow:hidden;border:1px solid #45627b55;border-radius:clamp(12px,1.6vw,20px);
  background:radial-gradient(ellipse at 32% 0%,#203b54 0%,transparent 78%),#131f30;
}
.nxcf-tile.is-connecting { border-color:#c9ab6866; }
.nxcf-tile.is-focused { border-color:#56e0e980; }
.nxcf-avatar {
  position:relative;display:grid;place-items:center;width:39px;height:39px;flex:none;
  border-radius:50%;overflow:hidden;color:#ecf7ff;font:700 16px/1 system-ui,sans-serif;
  background:linear-gradient(140deg,#205a70,#34457c);
}
.nxcf-avatar[data-tone="1"] { background:linear-gradient(140deg,#26526c,#534372); }
.nxcf-avatar[data-tone="2"] { background:linear-gradient(140deg,#216a60,#2e4e77); }
.nxcf-avatar[data-tone="3"] { background:linear-gradient(140deg,#3d4881,#673c62); }
.nxcf-avatar[data-tone="4"] { background:linear-gradient(140deg,#375c7b,#4c468a); }
.nxcf-avatar img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.nxcf-tile>.nxcf-avatar {
  width:clamp(38px,8vmin,86px);height:clamp(38px,8vmin,86px);
  margin-bottom:16px;font-size:clamp(18px,3vmin,34px);box-shadow:0 0 0 7px #9bbce214;
}
.nxcf-grid:is([data-count="1"],[data-count="2"]) .nxcf-tile>.nxcf-avatar,
.nxcf-tile.is-focused>.nxcf-avatar { width:clamp(60px,13vmin,112px);height:clamp(60px,13vmin,112px);font-size:clamp(25px,5vmin,42px); }
.nxcf-video { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;background:#080f19; }
.nxcf-tile.is-self .nxcf-video { transform:scaleX(-1); }
.nxcf-tile.is-focused .nxcf-video,.nxcf-grid:is([data-count="1"],[data-count="2"]) .nxcf-video { object-fit:contain; }
.nxcf-tile.has-video .nxcf-video { opacity:1; }
.nxcf-tile.has-video>.nxcf-avatar { visibility:hidden; }
.nxcf-tile-meta {
  position:absolute;inset:auto 0 0;display:flex;align-items:flex-end;justify-content:space-between;gap:6px;
  min-width:0;padding:16px 10px 8px;background:linear-gradient(transparent,#070d19eb);
}
.nxcf-person-name,.nxcf-contact-name { display:grid;min-width:0;gap:2px;flex:1; }
.nxcf-tile-meta strong,.nxcf-tile-meta small,.nxcf-contact-name>* { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.nxcf-tile-meta strong,.nxcf-contact-name strong { font-size:14px;line-height:1.23; }
.nxcf-tile-meta small,.nxcf-contact-name small { color:#b9cedd;font-size:11px;line-height:1.25; }
.nxcf-tile-meta small:empty { display:none; }
.nxcf-tile-mic { display:grid;place-items:center;width:25px;height:25px;flex:none;border-radius:8px;color:#bbc8dc;background:#101826c9; }
.nxcf-tile-mic[data-live="true"] { color:#85e6da; }
.nxcf-tile-mic svg { width:14px;height:14px; }
.nxcf-tile .nxcf-tile-focus { position:absolute;inset:6px 6px auto auto;z-index:1; }
.nxcf-tile-focus[aria-pressed="true"] { color:var(--nxcf-accent);border-color:#4ab1be; }

.nxcf-controls {
  width:max-content;max-width:100%;display:flex;align-items:center;justify-content:center;gap:clamp(3px,1.2vw,10px);
  padding:6px;border:1px solid #37546a99;border-radius:22px;background:#0f1a2bf2;box-shadow:0 12px 32px #0004;
}
.nxcf-button {
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;
  padding:8px 12px;border:1px solid var(--nxcf-line,#29445b);border-radius:13px;
  background:#172941;color:#eaf5ff;font:600 13px/1.18 system-ui,sans-serif;cursor:pointer;white-space:nowrap;touch-action:manipulation;
}
.nxcf-button:hover { filter:brightness(1.16); }
.nxcf-button:focus-visible,.nxcf-search:focus-visible { outline:2px solid #74ebf2;outline-offset:2px; }
.nxcf-button:disabled { cursor:default;opacity:.5; }
.nxcf-button[aria-pressed="false"] { color:#bbcada;background:#121d2f; }
.nxcf-primary { background:#185967;border-color:#3e9ba6;color:#e2fcff; }
.nxcf-danger { background:#8d2f4a;border-color:#b9556d;color:#fff0f5; }
.nxcf-small { min-height:40px;padding:7px 10px;font-size:12px; }
.nxcf-icon { min-width:44px;min-height:44px;padding:5px;background:#0d192bde; }
.nxcf-icon span { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden; }
.nxcf-controls .nxcf-button { display:grid;justify-items:center;gap:4px;min-height:58px;min-width:75px;padding:6px 8px;border-color:transparent; }
.nxcf-controls .nxcf-button[aria-pressed="true"] { background:#1a3a4c;color:#adf6f6; }
.nxcf-controls .nxcf-button svg { width:21px;height:21px; }

.nxcf-dialog {
  z-index:2147482500;box-sizing:border-box;width:min(442px,calc(100% - 24px));max-height:min(680px,calc(100dvh - 32px));
  padding:0;border:1px solid #36546a;border-radius:22px;background:#142236;color:#eaf5ff;box-shadow:0 20px 70px #0009;
  overscroll-behavior:contain;
}
.nxcf-dialog::backdrop { background:#030a14b0;backdrop-filter:blur(7px); }
.nxcf-sheet-header { position:sticky;top:0;z-index:2;padding:11px 15px;background:#17293f;border-bottom:1px solid #29445b; }
.nxcf-sheet-content { display:grid;gap:12px;padding:14px 15px 17px; }
.nxcf-actions { justify-content:flex-end;flex-wrap:wrap; }
.nxcf-search {
  box-sizing:border-box;width:100%;border-radius:12px;border:1px solid #38566e;
  background:#0b1728;color:#eefaff;padding:11px 12px;font:inherit;font-size:16px;
}
.nxcf-contact { min-height:55px;border-bottom:1px solid #29445b;padding:7px 0; }
.nxcf-contact:last-child { border-bottom:0; }
.nxcf-roster-list .nxcf-contact .nxcf-button { flex:none; }
.nxcf-roster>.nxcf-primary { margin-top:4px; }
.nxcf-toast,.nxcf-pip {
  position:fixed;z-index:2147482700;bottom:max(22px,env(safe-area-inset-bottom));
  left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);
}
.nxcf-toast { padding:12px 16px;border-radius:14px;background:#182c45;border:1px solid #3e5f79;box-shadow:0 8px 25px #0006;font-size:14px;text-align:center; }
.nxcf-pip { bottom:max(85px,calc(env(safe-area-inset-bottom) + 65px)); }
.nxcf-legacy-invite { color:#65edf2!important; }

@media(max-width:670px) {
  .nxcf-stage {
    gap:9px;padding:max(10px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right))
      max(9px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  }
  .nxcf-mark { width:38px;height:38px;border-radius:12px; }
  .nxcf-heading { gap:2px; }
  .nxcf-brand { gap:7px; }
  .nxcf-title { font-size:17px; }
  .nxcf-stage-status { font-size:11px; }
  .nxcf-clock { font-size:11px; }
  .nxcf-head-tools { gap:5px; }
  .nxcf-roster-button>span:first-of-type { position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden; }
  .nxcf-controls { gap:3px;padding:5px; }
  .nxcf-controls .nxcf-button { min-width:0;min-height:55px;padding:6px clamp(4px,1.3vw,10px);font-size:11px; }
  .nxcf-controls .nxcf-button svg { width:19px;height:19px; }
  .nxcf-tile-meta { padding:14px 6px 6px; }
  .nxcf-tile-meta strong { font-size:12px; }
  .nxcf-tile-meta small { font-size:10px; }
  .nxcf-tile .nxcf-tile-focus { inset:3px 3px auto auto; }
  .nxcf-dialog {
    width:min(100%,442px);margin:auto auto 0;max-height:calc(100dvh - 28px);
    border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom);
  }
}
@media(max-width:670px) and (orientation:portrait) {
  .nxcf-grid { height:100%;grid-auto-rows:minmax(99px,1fr); }
  .nxcf-grid[data-count="2"] { height:100%; }
  .nxcf-grid[data-focus="false"][data-count="2"] .nxcf-tile { grid-column:span 12; }
  .nxcf-grid[data-focus="false"]:is([data-count="5"],[data-count="6"]) .nxcf-tile { grid-column:span 6; }
  .nxcf-grid[data-focus="false"][data-count="5"] .nxcf-tile:nth-child(4) { grid-column:span 6; }
  .nxcf-grid[data-focus="false"][data-count="5"] .nxcf-tile:last-child { grid-column:4/span 6; }
  .nxcf-grid[data-focus="true"] {
    grid-template-columns:repeat(var(--nxcf-strip-columns),minmax(0,1fr));
    grid-template-rows:minmax(110px,1fr) repeat(var(--nxcf-strip-rows),minmax(82px,17%));
  }
  .nxcf-grid[data-focus="true"] .nxcf-tile { grid-column:auto; }
  .nxcf-grid[data-focus="true"] .nxcf-tile.is-focused { grid-column:1/-1;grid-row:1; }
}
@media(max-width:360px) {
  .nxcf-stage .nxcf-mark { display:none; }
}
@media(max-height:460px) {
  .nxcf-stage { gap:5px;padding-block:5px; }
  .nxcf-header { min-height:38px; }
  .nxcf-controls .nxcf-button { min-height:44px;display:flex;justify-content:center; }
  .nxcf-grid { grid-auto-rows:minmax(70px,1fr); }
  .nxcf-grid[data-focus="true"] { grid-template-rows:repeat(var(--nxcf-strip-count),minmax(42px,1fr)); }
  .nxcf-tile>.nxcf-avatar { margin-bottom:7px;box-shadow:none; }
}
@media(prefers-reduced-motion:reduce) {
  .nxcf-stage *,.nxcf-dialog * { scroll-behavior:auto; }
}
