.lk-header-call-buttons,
.lk-call-panel,
.lk-incoming-call {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lk-header-call-buttons {
  align-items: center;
  gap: 4px;
  display: none;
}
.lk-header-call-buttons.is-visible { display: inline-flex; }
.lk-call-icon-btn {
  width: 34px;
  height: 34px;
  color: var(--gray, #64748b);
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.lk-call-icon-btn:hover { color: var(--charcoal, #111); background: rgba(0,0,0,.06); }
.lk-call-icon-btn:disabled { cursor: wait; opacity: .55; }
.lk-call-icon {
  width: 18px;
  height: 18px;
  background: currentColor;
  display: block;
  -webkit-mask: var(--lk-call-icon-mask) center / contain no-repeat;
  mask: var(--lk-call-icon-mask) center / contain no-repeat;
}
.lk-call-icon[data-call-icon="phone"] { --lk-call-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.8-.4 1.2-.3 1.3.4 2.6.6 4 .6.7 0 1.2.5 1.2 1.2v3.5c0 .7-.5 1.2-1.2 1.2C10.3 21.9 2.1 13.7 2.1 3.4c0-.7.5-1.2 1.2-1.2h3.5c.7 0 1.2.5 1.2 1.2 0 1.4.2 2.8.6 4 .1.4 0 .9-.3 1.2l-1.7 2.2Z'/%3E%3C/svg%3E"); }
.lk-call-icon[data-call-icon="video"] { --lk-call-icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 6h10a3 3 0 0 1 3 3v1.1l3.4-2.2c.7-.5 1.6 0 1.6.9v6.4c0 .9-.9 1.4-1.6.9L17 13.9V15a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3Z'/%3E%3C/svg%3E"); }
body.dark .lk-call-icon-btn:hover { background: rgba(255,255,255,.1); }

.lk-call-btn { min-height: 40px; border: 1px solid #0f172a; border-radius: 6px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.lk-call-btn.secondary { background: #fff; color: #0f172a; }
.lk-call-btn.danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.lk-call-btn:disabled { cursor: wait; opacity: 0.65; }

.lk-call-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  grid-template-rows: auto 1fr auto;
  background: #05070b;
  color: #fff;
}
.lk-call-panel.is-visible { display: grid; }
.lk-call-panel__header,
.lk-call-panel__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: rgba(5, 7, 11, 0.92); border-color: rgba(255, 255, 255, 0.12); }
.lk-call-panel__header { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.lk-call-panel__controls { justify-content: center; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lk-call-title { margin: 0; font-size: 16px; font-weight: 800; }
.lk-call-status { margin: 3px 0 0; font-size: 12px; color: #cbd5e1; }
.lk-call-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 20%, #1e293b, #05070b 64%); }
.lk-remote-media { display: grid; place-items: center; width: 100%; height: 100%; }
.lk-remote-media video,
.lk-remote-media audio { max-width: 100%; max-height: 100%; }
.lk-remote-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lk-empty-state { max-width: 420px; padding: 24px; text-align: center; color: #cbd5e1; }
.lk-empty-state strong { display: block; margin-bottom: 8px; color: #fff; font-size: 18px; }
.lk-local-preview { position: absolute; right: 18px; bottom: 18px; width: min(220px, 34vw); aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; background: #111827; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36); }
.lk-local-preview:empty { display: none; }
.lk-local-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.lk-control-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lk-control-row .lk-call-btn { min-width: 112px; }

.lk-incoming-call {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, .58);
}
.lk-incoming-call.is-visible { display: grid; }
.lk-incoming-card {
  width: min(360px, 100%);
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.lk-incoming-kicker { color: #5b9aff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.lk-incoming-card strong { display: block; margin-top: 8px; font-size: 20px; }
.lk-incoming-card p { margin: 8px 0 18px; color: #64748b; font-size: 14px; }
.lk-incoming-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-incoming-btn { min-height: 44px; border: 0; border-radius: 8px; color: #fff; font-weight: 900; cursor: pointer; }
.lk-incoming-btn.accept { background: #16a34a; }
.lk-incoming-btn.decline { background: #dc2626; }

@media (max-width: 640px) {
  .lk-call-panel__header, .lk-call-panel__controls { padding: 12px; }
  .lk-control-row .lk-call-btn { min-width: 92px; }
  .lk-header-call-buttons { gap: 2px; }
  .lk-call-icon-btn { width: 32px; height: 32px; }
}
