/* Óma-Igala web calls: incoming-call dialog, call notices, the call panel (every page) and the Calls page.
   Ported from the CTCP web call UI (WhatsApp-like dark call surface), recoloured to the Óma-Igala UI palette
   (nics-ui.css tokens). Everything is prefixed "nc-"; the Calls page itself is built from Óma-Igala UI components. */

:root {
  --nc-accent: var(--n-accent, #1B84FF);
  --nc-green: #25D366;
  --nc-green-dark: #1DA851;
  --nc-red: #E5484D;
  --nc-red-dark: #C8102E;
  --nc-bg-1: #12233D;
  --nc-bg-2: #0B1628;
  --nc-bg-3: #070F1C;
  --nc-line: rgba(255, 255, 255, .12);
  --nc-soft: rgba(255, 255, 255, .08);
  --nc-mute: #B8C4D6;
  --nc-pill: 999px;
}

/* ---------- Icons (inline SVG sprite in _Ring.cshtml) ---------- */
.nc-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.nc-icon-sm { width: 15px; height: 15px; }
.nc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Avatar tints (initials) */
.nc-tint-0 { background: #FDE7C7; } .nc-tint-1 { background: #F9D5DC; } .nc-tint-2 { background: #D9E4F5; }
.nc-tint-3 { background: #DDF1E4; } .nc-tint-4 { background: #EADCF5; } .nc-tint-5 { background: #F5E3D3; }

/* ---------- Call panel ---------- */
.nc-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 1056; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; border-radius: 26px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, var(--nc-bg-1) 0%, var(--nc-bg-2) 55%, var(--nc-bg-3) 100%);
  box-shadow: 0 24px 60px rgba(3, 10, 24, .5); animation: nc-step-in .16s ease-out;
  font-family: Inter, system-ui, sans-serif;
}
.nc-panel[hidden] { display: none; }
.nc-panel.max { inset: 16px; width: auto; max-height: none; }
.nc-panel button { font: inherit; }
.nc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 8px 16px; }
.nc-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nc-title b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-title small { font-size: 12px; color: var(--nc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-head-meta { display: inline-flex; gap: 6px; font-size: 12px; color: var(--nc-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nc-head-timer:not(:empty)::before { content: "\00B7  "; }
.nc-panel.layout-duo .nc-head-meta { display: none; }
.nc-kind { padding: 3px 9px; border-radius: var(--nc-pill); background: var(--nc-accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nc-head-btn { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: var(--nc-soft); color: #fff; cursor: pointer; }
.nc-head-btn:hover { background: rgba(255,255,255,.18); }
.nc-banners { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px; }
.nc-banners:has(.on) { padding-bottom: 8px; }
.nc-rec, .nc-share-banner { display: none; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--nc-pill); font-weight: 700; font-size: 12px; }
.nc-rec { background: var(--nc-red); }
.nc-share-banner { background: var(--nc-accent); }
.nc-rec.on, .nc-share-banner.on { display: inline-flex; }

.nc-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nc-duo, .nc-group { display: none; }
.nc-panel.layout-duo .nc-duo { display: flex; }
.nc-panel.layout-group .nc-group { display: flex; }

/* Avatars */
.nc-avatar { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; color: #0B1628; font-size: 14px; }
.nc-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
/* Profile pictures over the initials (nicsRing.withPicture) */
.nc-avatar img.nc-avatar-img, .nc-ring-initials img.nc-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nc-ring-initials { overflow: hidden; }
.nc-avatar.lg { width: 76px; height: 76px; font-size: 24px; }
.nc-avatar.xl { width: 72px; height: 72px; font-size: 22px; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.nc-avatar.huge { width: clamp(96px, 22vmin, 168px); height: clamp(96px, 22vmin, 168px); font-size: clamp(30px, 6vmin, 52px); box-shadow: 0 0 0 6px rgba(255,255,255,.06); }
.nc-panel:not(.max) .nc-avatar.huge { width: 96px; height: 96px; font-size: 30px; }
.nc-avatar.speaking { box-shadow: 0 0 0 3px var(--nc-green), 0 0 0 9px rgba(37,211,102,.22); }
.nc-avatar.pulse { animation: nc-ring-pulse 1.8s ease-out infinite; }
.nc-badge { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1A2B45; color: #fff; box-shadow: 0 0 0 2px var(--nc-bg-2); font-size: 12px; line-height: 1; }
.nc-badge.mute { right: -3px; bottom: -3px; }
.nc-badge.hand { left: -3px; top: -3px; background: #F6C344; color: #3A2A00; }
.nc-badge .nc-icon { width: 13px; height: 13px; }

/* One-to-one: me >> them, "In call with", name, timer */
.nc-duo { flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 16px 22px; text-align: center; }
.nc-duo-avatars { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.nc-duo-chev { font-size: 24px; letter-spacing: -2px; color: rgba(255,255,255,.55); animation: nc-blink 1.6s infinite; }
.nc-duo-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--nc-mute); }
.nc-duo-label.live { color: var(--nc-green); }
.nc-duo-name { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.nc-duo-time { margin: 0; min-height: 20px; font-size: 15px; color: var(--nc-mute); font-variant-numeric: tabular-nums; }
.nc-panel.max .nc-duo { gap: 10px; }
.nc-panel.max .nc-duo .nc-avatar.xl { width: 104px; height: 104px; font-size: 32px; }
.nc-panel.max .nc-duo-name { font-size: 32px; }

/* Group: participant strip + active speaker */
.nc-group { flex: 1; min-height: 0; flex-direction: column; gap: 10px; padding: 4px 12px 0; }
.nc-strip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4px 4px; scrollbar-width: none; flex: none; }
.nc-strip::-webkit-scrollbar { display: none; }
.nc-tile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.nc-face { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.14); transition: box-shadow .15s; }
.nc-face video { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nc-face .nc-avatar { width: 52px; height: 52px; }
.nc-tile.invited .nc-face { opacity: .55; }
.nc-tile.speaking .nc-face { box-shadow: 0 0 0 3px var(--nc-green); }
.nc-tile.on-stage .nc-face { box-shadow: 0 0 0 3px var(--nc-accent); }
.nc-tile.on-stage.speaking .nc-face { box-shadow: 0 0 0 3px var(--nc-green); }
.nc-tile.pinned .nc-tile-name::before { content: "\2022 "; color: var(--nc-accent); }
.nc-tile-name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--nc-mute); }
.nc-speaker { position: relative; flex: 1; min-height: 240px; border-radius: 20px; overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, #1B3354 0%, #0D1A2E 100%); transition: box-shadow .15s; }
.nc-speaker.speaking { box-shadow: inset 0 0 0 3px var(--nc-green); }
.nc-speaker-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.nc-speaker-inner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-speaker-inner video.contain { object-fit: contain; background: #050B15; }
.nc-panel video.mirror { transform: scaleX(-1); }
.nc-speaker-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 4px 12px; border-radius: var(--nc-pill); background: rgba(0,0,0,.45); font-size: 12px; font-weight: 600; }
.nc-speaker-share { color: var(--nc-mute); font-weight: 500; }
.nc-ringing { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; text-align: center; }
.nc-ringing-avatars { display: flex; }
.nc-ringing-avatars .nc-avatar + .nc-avatar { margin-left: -14px; }
.nc-ringing-text { margin: 0; font-size: 18px; font-weight: 800; }
.nc-ringing-sub { margin: 0; font-size: 13px; color: var(--nc-mute); max-width: 320px; }
.nc-panel.max .nc-speaker { min-height: 0; }

/* Video upgrade prompt and the "people" sheet */
.nc-prompt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 12px 0; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.1); font-size: 13px; }
.nc-prompt[hidden] { display: none; }
.nc-prompt span { flex: 1; min-width: 140px; }
.nc-chip-btn { padding: 6px 12px; border: 0; border-radius: var(--nc-pill); background: rgba(255,255,255,.16); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.nc-chip-btn:hover { background: rgba(255,255,255,.26); }
.nc-chip-btn.primary { background: var(--nc-green); color: #04260F; }
.nc-chip-btn.danger { background: rgba(229,72,77,.22); color: #FFD5D6; }
.nc-chip-btn.danger:hover { background: rgba(229,72,77,.4); }
.nc-chip-btn:disabled { opacity: .5; cursor: default; }

.nc-sheet { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(7, 15, 28, .96); }
.nc-sheet[hidden] { display: none; }
.nc-sheet-head { display: flex; align-items: center; gap: 8px; }
.nc-sheet-head b { flex: 1; font-size: 14px; }
.nc-sheet-section { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nc-mute); margin: 4px 0 0; }
.nc-sheet-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; }
.nc-person { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.nc-person:hover { background: rgba(255,255,255,.06); }
.nc-person-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nc-person-text b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-person-text span { font-size: 11px; color: var(--nc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-search { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--nc-line); border-radius: var(--nc-pill); background: rgba(255,255,255,.08); color: #fff; outline: none; }
.nc-search::placeholder { color: rgba(255,255,255,.5); }
.nc-search:focus { border-color: var(--nc-accent); }
.nc-sheet-note { font-size: 12px; color: var(--nc-mute); margin: 0; }

/* In-call chat (LiveKit data channel, shared with the mobile app) */
.nc-chat { position: absolute; left: 22px; bottom: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; width: min(360px, calc(100% - 44px)); max-height: 58%; padding: 10px; border-radius: 16px; background: linear-gradient(to top, rgba(4,9,18,.85), rgba(4,9,18,.4)); backdrop-filter: blur(2px); }
.nc-chat[hidden] { display: none; }
.nc-panel:not(.max).layout-group .nc-chat { position: static; width: auto; max-height: 190px; margin: 10px 12px 0; background: rgba(255,255,255,.06); backdrop-filter: none; }
.nc-panel:not(.max).layout-group:has(.nc-chat:not([hidden])) .nc-speaker { min-height: 170px; }
.nc-panel.layout-duo .nc-chat { position: static; width: auto; max-height: 230px; margin: 0 14px 6px; background: rgba(255,255,255,.06); }
.nc-chat-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.nc-chat-empty { font-size: 12px; color: var(--nc-mute); margin: 0; }
.nc-bubble { display: flex; gap: 8px; align-items: flex-start; }
.nc-bubble-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.35; }
.nc-bubble-text b { font-size: 12px; color: var(--nc-mute); font-weight: 600; }
.nc-bubble-text span { overflow-wrap: anywhere; white-space: pre-wrap; }
.nc-chat-form { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: var(--nc-pill); background: rgba(255,255,255,.1); }
.nc-chat-input { flex: 1; min-width: 0; height: 32px; border: 0; background: transparent; color: #fff; outline: none; }
.nc-chat-input::placeholder { color: rgba(255,255,255,.55); }
.nc-chat-send { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--nc-accent); color: #fff; cursor: pointer; }
.nc-flash { position: absolute; top: 10px; left: 50%; translate: -50% 0; z-index: 5; max-width: calc(100% - 24px); margin: 0; padding: 6px 14px; border-radius: var(--nc-pill); background: rgba(255,255,255,.94); color: #0B1628; font-size: 13px; font-weight: 700; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.nc-flash[hidden] { display: none; }

/* Controls: one pill and a separate red hang-up */
.nc-controls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 12px 16px; flex-wrap: wrap; }
.nc-panel.max .nc-controls, .nc-panel.layout-duo .nc-controls { flex-direction: column; gap: 16px; padding-bottom: 20px; }
.nc-ctl-pill { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 28px; background: var(--nc-soft); border: 1px solid var(--nc-line); }
.nc-ctl { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--nc-line); background: transparent; color: #fff; cursor: pointer; transition: background .12s, color .12s; }
.nc-ctl[hidden] { display: none; }
.nc-ctl:hover { background: rgba(255,255,255,.12); }
.nc-ctl.off { background: #fff; color: #0B1628; }
.nc-ctl.active { background: var(--nc-accent); border-color: var(--nc-accent); }
.nc-ctl.pending { animation: nc-blink 1.2s infinite; }
.nc-ctl-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--nc-green); box-shadow: 0 0 0 2px var(--nc-bg-2); }
.nc-ctl-dot[hidden] { display: none; }
.nc-hang-group { display: flex; align-items: center; gap: 8px; }
.nc-hang { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border: 0; border-radius: 50%; background: var(--nc-red); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(229,72,77,.4); transition: transform .08s, background .12s; }
.nc-hang:hover { background: var(--nc-red-dark); }
.nc-hang:active { transform: scale(.96); }
.nc-hang .nc-icon { width: 26px; height: 26px; }
.nc-end-all[hidden] { display: none; }
.nc-output { position: relative; }
.nc-output-menu { position: absolute; bottom: 54px; left: 50%; translate: -50% 0; z-index: 6; display: flex; flex-direction: column; min-width: 220px; padding: 8px; border-radius: 14px; background: var(--n-surface, #fff); color: var(--n-text, #071437); border: 1px solid var(--n-border, transparent); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.nc-output-menu[hidden] { display: none; }
.nc-output-title { margin: 0; padding: 4px 8px 6px; font-size: 12px; color: var(--n-text-3, #78829D); }
.nc-output-item { padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; }
.nc-output-item:hover { background: var(--n-panel, #F9F9F9); }
.nc-output-item.current { font-weight: 700; color: var(--nc-accent); }
.nc-output-item.current::after { content: " \2713"; }
.nc-audio { display: none; }

/* Minimised: a compact pill at the top centre */
.nc-pill { display: none; }
.nc-panel.min { top: 8px; bottom: auto; right: auto; left: 50%; translate: -50% 0; width: auto; max-width: min(520px, calc(100vw - 32px)); border-radius: var(--nc-pill); box-shadow: 0 6px 20px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); }
.nc-panel.min > :not(.nc-pill) { display: none; }
.nc-panel.min .nc-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.nc-pill-text { min-width: 0; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nc-green); box-shadow: 0 0 0 4px rgba(37,211,102,.25); animation: nc-blink 1.6s infinite; }
.nc-pill-time { font-variant-numeric: tabular-nums; color: var(--nc-mute); }
.nc-pill-return { padding: 4px 10px; border-radius: var(--nc-pill); background: var(--nc-accent); font-size: 12px; }

/* Start-call buttons while a call is up */
[data-nics-call].nc-in-call { color: var(--nc-green-dark) !important; }

/* ---------- Incoming call dialog ---------- */
dialog.nc-ring { width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 30px; color: #fff; overflow: auto; background: radial-gradient(120% 80% at 50% 0%, #1B3354 0%, #0D1A2E 55%, #060D19 100%); box-shadow: 0 30px 80px rgba(2, 6, 14, .55); font-family: Inter, system-ui, sans-serif; }
dialog.nc-ring[open] { animation: nc-ring-in .22s ease-out; }
dialog.nc-ring::backdrop { background: rgba(4, 10, 20, .5); backdrop-filter: blur(8px); }
.nc-ring-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 26px 26px; text-align: center; }
.nc-ring-avatar { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 18px; }
.nc-ring-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37, 211, 102, .7); animation: nc-ring-wave 2s ease-out infinite; }
.nc-ring-wave.w2 { animation-delay: 1s; }
.nc-ring-initials { position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; font-size: 38px; font-weight: 800; color: #0B1628; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.nc-ring-name { margin: 0; font-size: 24px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.nc-ring-kind { margin: 0; font-size: 15px; color: #D5DEEB; }
.nc-ring-context { margin: 0; max-width: 300px; font-size: 13px; color: #9FB0C8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-ring-note { margin: 0; font-size: 12px; color: #FFD9A8; }
.nc-ring-note[hidden], .nc-ring-context:empty { display: none; }
.nc-ring-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 22px; }
.nc-ring-btn { display: flex; align-items: center; height: 56px; padding: 6px; border-radius: var(--nc-pill); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.1); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .12s, transform .08s; }
.nc-ring-btn > span:last-child { flex: 1; padding-right: 44px; }
.nc-ring-btn:hover { background: rgba(255,255,255,.16); }
.nc-ring-btn:focus-visible { outline: 3px solid rgba(255,255,255,.75); outline-offset: 3px; }
.nc-ring-btn:active { transform: scale(.99); }
.nc-ring-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0B1628; }
.nc-ring-btn.answer { background: var(--nc-green-dark); border-color: var(--nc-green-dark); box-shadow: 0 10px 24px rgba(29,168,81,.35); }
.nc-ring-btn.answer:hover { background: #178A43; }
.nc-ring-btn.answer .nc-ring-ic { color: var(--nc-green-dark); animation: nc-ring-shake 1.2s ease-in-out infinite; }
.nc-ring-btn.decline { background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.5); }
.nc-ring-btn.decline:hover { background: rgba(229,72,77,.3); }
.nc-ring-btn.decline .nc-ring-ic { color: var(--nc-red); }

/* ---------- Call notices: missed calls, reminders, "call in progress" ---------- */
.nc-notices { position: fixed; top: 76px; right: 16px; z-index: 1070; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 24px)); pointer-events: none; font-family: Inter, system-ui, sans-serif; }
.nc-notice { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 18px; background: #0D1A2E; color: #fff; box-shadow: 0 14px 34px rgba(3,10,24,.35); pointer-events: auto; animation: nc-step-in .16s ease-out; }
.nc-notice .nc-dot { margin: 0 4px; }
.nc-notice-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nc-notice-text b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-notice-text span { font-size: 12px; color: var(--nc-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-notice-action { flex: none; padding: 6px 12px; border: 0; border-radius: var(--nc-pill); background: var(--nc-accent); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.nc-notice.live .nc-notice-action { background: var(--nc-green-dark); }
.nc-notice.error { background: #8E0B21; }
.nc-notice-close { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--nc-mute); cursor: pointer; }
.nc-notice-close:hover { background: rgba(255,255,255,.12); color: #fff; }


@keyframes nc-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes nc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nc-ring-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@keyframes nc-ring-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@keyframes nc-ring-in { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nc-ring-shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

@media (max-width: 575.98px) {
  .nc-panel:not(.min) { right: 8px; bottom: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  .nc-panel.max { inset: 0; border-radius: 0; }
  .nc-notices { top: 64px; right: 8px; }
}
/* Meeting lobby (/meet/{code}) */
.nc-lobby-preview { position: relative; min-height: 260px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 70% at 50% 0%, var(--nc-bg-1) 0%, var(--nc-bg-2) 55%, var(--nc-bg-3) 100%); }
.nc-lobby-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.nc-lobby-preview video[hidden] { display: none; }
.nc-lobby-novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.nc-lobby-novideo[hidden] { display: none; }
.nc-lobby-camtext { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.nc-lobby-toggles { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 14px; }
.nc-lobby-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--nc-line); background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.nc-lobby-btn.off { background: #fff; color: #0B1628; }
.nc-lobby-btn:focus-visible { outline: 2px solid var(--nc-accent); outline-offset: 2px; }


/* Recording (host): Record button and the purpose picker */
.nc-ctl-rec.on { background: var(--nc-red); border-color: var(--nc-red); color: #fff; }
.nc-purpose { cursor: pointer; }
.nc-purpose input { accent-color: var(--nc-red); }
.nc-purpose.checked { background: rgba(229,72,77,.16); }
.nc-record-actions { display: flex; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .nc-panel, .nc-notice, dialog.nc-ring[open], .nc-ring-wave, .nc-avatar.pulse, .nc-dot, .nc-duo-chev, .nc-ring-btn.answer .nc-ring-ic, .nc-ctl.pending { animation: none; }
}

/* Settings › Policies › Calls: roles without video (nics-ring.js sets .nc-no-video on <html>) */
.nc-no-video [data-nics-call="video"],
.nc-no-video .nc-lobby-btn#nc-lobby-cam { display: none !important; }

/* ---------- Light call card (Figma "voiceCallInterface" / "videoCallInterface") ----------
   The panel and the incoming-call dialog on the page's surface instead of the dark call surface: full screen is a
   centred card over a dimmed page; one-to-one calls show the other person large with a soft ring, then their name and
   the status; the controls are one row of round grey buttons (filled with the accent when muted or on) and a red
   hang-up. Colours come from the Óma-Igala UI tokens (nics-ui.css, oma-theme.css), so dark mode follows the theme. */
.nc-panel, dialog.nc-ring {
  --nc-accent: var(--n-accent);
  --nc-mute: var(--n-text-2);
  --nc-line: var(--n-border);
  --nc-soft: var(--n-panel);
  --nc-bg-2: var(--n-surface);
  background: var(--n-surface);
  color: var(--n-text);
  font-family: var(--n-font);
}
.nc-panel {
  border: 1px solid var(--n-border);
  border-radius: 12px;
  box-shadow: var(--n-shadow-lg);
}
.nc-panel.max {
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: min(1080px, calc(100vw - 32px));
  height: min(672px, calc(100dvh - 32px));
  max-height: none;
  border-radius: 12px;
  /* the dimmed page around the card */
  box-shadow: 0 0 0 100vmax rgba(18, 32, 28, .28), var(--n-shadow-lg);
}
.nc-head { padding: 16px 16px 8px 20px; }
.nc-title b { font-size: 16px; font-weight: 600; }
.nc-kind { background: var(--n-accent-soft); color: var(--n-accent-strong); }
.nc-head-btn { background: var(--n-panel); color: var(--n-text-2); }
.nc-head-btn:hover { background: var(--n-accent-soft); color: var(--n-accent-strong); }
.nc-rec { color: #fff; }
.nc-share-banner { color: var(--n-on-accent, #fff); }

/* One-to-one: just the other person, as in the design */
.nc-duo-avatars [data-role="duo-me"], .nc-duo-chev { display: none; }
.nc-duo-avatars { margin-bottom: 8px; }
.nc-duo .nc-avatar.xl { box-shadow: 0 0 0 4px var(--n-surface), 0 0 0 8px var(--n-accent-soft); }
.nc-panel.max .nc-duo .nc-avatar.xl { width: 112px; height: 112px; font-size: 34px; }
.nc-duo-avatars { order: 0; }
.nc-duo-name { order: 1; font-size: 18px; font-weight: 600; color: var(--n-text); }
.nc-panel.max .nc-duo-name { font-size: 22px; }
.nc-duo-label { order: 2; font-size: 12px; font-weight: 500; color: var(--n-danger); }
.nc-duo-label.live { color: var(--n-accent-strong); }
.nc-duo-time { order: 3; font-size: 13px; color: var(--n-text-2); }
.nc-badge { background: var(--n-surface); color: var(--n-text-2); box-shadow: 0 0 0 2px var(--n-border); }

/* Group and video */
.nc-tile { color: var(--n-text); }
.nc-face { box-shadow: 0 0 0 2px var(--n-border); }
.nc-speaker { border-radius: 12px; background: var(--n-panel); }
.nc-speaker-inner video.contain { background: #050b15; }
.nc-speaker-label { color: #fff; }
.nc-ringing-text { color: var(--n-text); font-size: 18px; font-weight: 600; }

/* Prompt, chips, sheets, chat */
.nc-prompt { background: var(--n-panel); }
.nc-chip-btn { background: var(--n-panel); color: var(--n-text); }
.nc-chip-btn:hover { background: var(--n-accent-soft); }
.nc-chip-btn.primary { background: var(--n-accent); color: var(--n-on-accent, #fff); }
.nc-chip-btn.danger { background: var(--n-danger); color: #fff; }
.nc-chip-btn.danger:hover { background: var(--n-danger-strong, var(--n-danger)); }
.nc-sheet { background: var(--n-surface); }
.nc-sheet-head b { color: var(--n-accent-strong); }
.nc-person:hover { background: var(--n-panel); }
.nc-search { border-color: var(--n-border); border-radius: var(--nc-pill); background: var(--n-surface); color: var(--n-text); }
.nc-search::placeholder { color: var(--n-text-3); }
.nc-chat, .nc-panel:not(.max).layout-group .nc-chat, .nc-panel.layout-duo .nc-chat { background: var(--n-panel); backdrop-filter: none; }
.nc-panel.max .nc-chat { border: 1px solid var(--n-border); box-shadow: var(--n-shadow); }
.nc-chat-form { background: var(--n-surface); border: 1px solid var(--n-border); }
.nc-chat-input { color: var(--n-text); }
.nc-chat-input::placeholder { color: var(--n-text-3); }
.nc-chat-send { color: var(--n-on-accent, #fff); }

/* Controls: one row of round buttons and the red hang-up */
.nc-controls, .nc-panel.max .nc-controls, .nc-panel.layout-duo .nc-controls { flex-direction: row; gap: 20px; padding: 16px 16px 24px; }
.nc-panel.max .nc-controls { padding-bottom: 40px; }
.nc-ctl-pill { gap: 20px; padding: 0; border: 0; border-radius: 0; background: none; }
.nc-ctl { width: 44px; height: 44px; border: 0; background: var(--n-panel); color: var(--n-text); }
[data-bs-theme="dark"] .nc-ctl { background: var(--n-border); }
.nc-ctl:hover { background: var(--n-accent-soft); color: var(--n-accent-strong); }
.nc-ctl.off, .nc-ctl.active, .nc-ctl.off:hover, .nc-ctl.active:hover { background: var(--n-accent); color: var(--n-on-accent, #fff); }
.nc-ctl-rec.on { background: var(--n-danger); color: #fff; }
.nc-ctl-dot { box-shadow: 0 0 0 2px var(--n-surface); }
.nc-hang { width: 44px; height: 44px; background: var(--n-danger); box-shadow: none; }
.nc-hang:hover { background: var(--n-danger-strong, var(--n-danger)); }
.nc-hang .nc-icon { width: 20px; height: 20px; }
/* the corner panel: smaller buttons so the whole row fits beside the hang-up */
.nc-panel:not(.max) .nc-controls, .nc-panel:not(.max) .nc-ctl-pill { gap: 8px; }
.nc-panel:not(.max) .nc-ctl, .nc-panel:not(.max) .nc-hang { width: 40px; height: 40px; }
.nc-panel:not(.max) .nc-ctl .nc-icon { width: 18px; height: 18px; }
/* full screen one-to-one: the person in the middle of the card */
.nc-panel.max.layout-duo .nc-duo { flex: 1; }

/* Minimised pill */
.nc-panel.min { border-color: var(--n-border); box-shadow: var(--n-shadow); }
.nc-panel.min .nc-pill { color: var(--n-text); }
.nc-pill-return { color: var(--n-on-accent, #fff); }

/* Incoming call */
dialog.nc-ring { border: 1px solid var(--n-border); border-radius: 16px; box-shadow: var(--n-shadow-lg); }
dialog.nc-ring::backdrop { background: rgba(18, 32, 28, .28); backdrop-filter: blur(4px); }
.nc-ring-initials { box-shadow: 0 0 0 4px var(--n-surface), 0 0 0 8px var(--n-accent-soft); }
.nc-ring-wave { border-color: var(--n-accent); }
.nc-ring-name { font-size: 22px; font-weight: 600; color: var(--n-text); }
.nc-ring-kind { color: var(--n-text-2); }
.nc-ring-context { color: var(--n-text-3); }
.nc-ring-note { color: var(--n-warning, #b7791f); }
.nc-ring-btn { border-color: var(--n-border); background: var(--n-panel); color: var(--n-text); }
.nc-ring-btn:hover { background: var(--n-accent-soft); }
.nc-ring-btn:focus-visible { outline-color: var(--n-accent); }
.nc-ring-ic { background: var(--n-surface); color: var(--n-text); }
.nc-ring-btn.answer { color: #fff; }
.nc-ring-btn.decline { background: var(--n-danger-soft, #fdf0f1); border-color: var(--n-danger); color: var(--n-danger); }
.nc-ring-btn.decline:hover { background: var(--n-danger-soft, #fdf0f1); filter: brightness(.97); }

@media (max-width: 575.98px) {
  .nc-panel.max { inset: 0; translate: none; width: auto; height: auto; border-radius: 0; box-shadow: none; }
  .nc-controls, .nc-ctl-pill { gap: 12px; }
}
