/* Calls: one video workspace, persistent conversation, compact controls. */
.call-workspace{inset:20px 24px;max-width:1920px;margin:auto;border-radius:var(--r-lg);box-shadow:0 24px 90px #07112470;isolation:isolate}
.call-workspace>header{min-height:70px;flex:0 0 auto;padding:12px 20px;border-bottom:1px solid var(--line);gap:12px}
.call-heading{display:flex;align-items:center;gap:11px;min-width:0}.call-heading>div{min-width:0}.call-heading strong{font-size:var(--fs-lg);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-heading small{color:var(--muted);font-size:var(--fs-xs)!important;display:flex!important;align-items:center;gap:4px;flex-wrap:wrap}.call-live-dot{height:9px;width:9px;background:#37c998;border-radius:50%;box-shadow:0 0 0 5px #37c99818;flex-shrink:0}.call-window-actions{display:flex;gap:7px}.call-icon{width:22px;height:22px;flex-shrink:0;display:block}.call-control{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:46px;height:44px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);color:var(--ink);cursor:pointer;position:relative;flex-shrink:0}.call-control>span{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.call-control:hover{background:var(--blue-soft);border-color:var(--accent)}.call-control:focus-visible,.call-tile-tools button:focus-visible{outline:2px solid #7c91ff;outline-offset:3px}.call-control.is-off{background:var(--surface-3);color:var(--secondary)}.call-control[aria-pressed=true][data-call=screen],.call-control[aria-pressed=true][data-call=chat]{background:var(--blue-soft);border-color:var(--blue-line);color:var(--blue-text)}
.call-workspace-body{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;overflow:hidden}.call-chat-open .call-workspace-body{grid-template-columns:minmax(0,1fr) 340px}.call-stage{display:flex;flex-direction:column;min-width:0;min-height:0;background:#0b1325;padding:14px 14px 0}.call-workspace .call-videos{padding:0;gap:12px;min-height:0;overflow:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));flex:1}.call-workspace .call-videos[data-count="1"]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.call-workspace .call-videos[data-count="2"]{grid-template-rows:minmax(0,1fr)}.call-workspace .call-videos[data-count="3"]>.call-tile:last-child{grid-column:1/-1}.call-workspace .call-videos.has-focus{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr) minmax(90px,24%)}.call-workspace .call-videos.has-focus>.call-tile{grid-column:auto;grid-row:2}.call-workspace .call-videos.has-focus>.call-featured{grid-column:1/-1;grid-row:1}.call-workspace .call-videos.has-focus[data-count="2"]{grid-template-columns:minmax(0,1fr)}.call-workspace .call-videos.has-focus[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.call-workspace .call-tile{min-width:0;min-height:0;background:#141f35;border:1px solid #ffffff16;border-radius:var(--r-md);isolation:isolate}.call-workspace .call-tile video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;display:block}.call-workspace .call-tile.is-self video{transform:scaleX(-1)}.call-workspace .call-tile.video-fill video{object-fit:cover}.call-avatar-placeholder{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(ellipse at top,#28365a,#141f35);color:#fff}.call-avatar-placeholder>div{width:clamp(48px,8vw,94px);height:clamp(48px,8vw,94px);display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#536ef1,#8b5ddd);font-size:clamp(18px,3vw,34px);font-weight:700}.call-avatar-placeholder p{font-size:var(--fs-md);margin:0}.call-avatar-placeholder small{font-size:var(--fs-xs);opacity:.65}.video-off .call-avatar-placeholder{display:flex}.video-off video{opacity:0}.call-workspace .call-name{left:10px;bottom:10px;right:10px;max-width:max-content;display:flex;align-items:center;gap:8px;padding:5px 9px;background:#07101ec9;backdrop-filter:blur(6px);font-size:var(--fs-xs);line-height:1.4}.call-name b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.call-name .call-media-state{display:flex;gap:5px}.call-media-state .call-icon{height:14px;width:14px}.call-name .peer-state:empty{display:none}.call-tile-tools{position:absolute;right:8px;top:8px;display:flex;gap:5px;opacity:.7}.call-tile:hover .call-tile-tools,.call-tile:focus-within .call-tile-tools{opacity:1}.call-tile-tools button{width:30px;height:30px;display:grid;place-items:center;background:#07101ec9;border:1px solid #ffffff30;color:#fff;border-radius:var(--r-sm)}.call-tile-tools button[aria-pressed=true]{background:#536ef1}.call-tile-tools .call-icon{width:16px;height:16px}.call-stage-hint{font-size:var(--fs-xs);color:#c0cbe3!important;text-align:center;padding:10px;min-height:32px;flex-shrink:0}.call-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#536ef1;color:#fff;border:0;border-radius:var(--r-sm);padding:10px}.call-play[hidden],.call-tile-tools button[hidden]{display:none}.call-workspace .call-controls{flex:0 0 auto;min-height:72px;padding:12px 18px;gap:12px;background:var(--surface)}.call-workspace .call-controls .call-end{background:var(--danger-red);border-color:var(--danger-red);color:#fff!important;width:auto;min-width:108px;padding:0 16px;margin-left:10px}.call-controls .call-end>span{position:static;clip:auto;width:auto;height:auto;font-size:var(--fs-sm);overflow:visible}.call-controls .call-end:hover{background:var(--danger-red)}.call-workspace #call-error{background:var(--surface);margin:0;text-align:center}
.call-chat{display:none;min-height:0;min-width:0;flex-direction:column;background:var(--surface);border-left:1px solid var(--line);position:relative}.call-chat-open .call-chat{display:flex}.call-chat-header{padding:14px;display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid var(--line);flex-shrink:0}.call-chat-header strong{font-size:var(--fs-md)}.call-chat-header small{display:block;font-size:var(--fs-2xs);color:var(--muted);margin-top:4px}.call-chat-header .call-control{width:30px;height:30px;border:0;background:none}.call-chat-header .call-icon{width:18px;height:18px}#call-chat-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;scrollbar-width:thin;background:var(--surface-2)}.call-chat-message{padding:10px 12px;border:1px solid var(--line);background:var(--surface);border-radius:var(--r-md);margin-bottom:10px;overflow-wrap:anywhere;max-width:96%}.call-chat-message.own{margin-left:auto;background:var(--blue-soft);border-color:var(--blue-line)}.call-chat-message>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:5px}.call-chat-message b{font-size:var(--fs-2xs);font-weight:600}.call-chat-message>div>.btn{font-size:var(--fs-md);padding:0 5px;height:22px;min-height:0;border:0;background:none;box-shadow:none}.call-chat-message .message-text{font-size:var(--fs-xs);white-space:pre-wrap;line-height:1.6;margin:6px 0}.call-chat-message .message-sticker{width:92px;max-width:100%;height:auto}.call-chat-message footer{display:flex;justify-content:flex-end;align-items:center;gap:6px;font-size:var(--fs-2xs);color:var(--muted);margin-top:7px}.call-chat-message>small{font-size:var(--fs-2xs);color:var(--muted)}.call-chat-message .receipt .icon{width:13px;height:13px}.call-chat-file{font-size:var(--fs-xs);margin:5px 0}.call-chat-file button{white-space:normal;text-align:left}.call-chat-empty{font-size:var(--fs-xs);text-align:center;color:var(--muted);line-height:1.7;padding:28px 12px}#call-chat-compose{padding:10px 12px;flex-shrink:0;border-top:1px solid var(--line);position:relative;max-height:50%;display:flex;flex-direction:column}#call-chat-text{font-size:var(--fs-xs);line-height:1.5;min-height:58px;max-height:120px;padding:10px;resize:vertical;width:100%;border-radius:var(--r-md)}.call-chat-tools{display:flex;align-items:center;gap:6px;margin-top:7px}.call-chat-tools .call-control,.call-attach{width:28px;height:28px;padding:4px;border:0;border-radius:var(--r-sm);background:none;display:grid;place-items:center;cursor:pointer}.call-chat-tools .call-icon{width:19px;height:19px}.call-attach input{position:absolute;width:1px;height:1px;opacity:0}.call-attach:focus-within{outline:2px solid var(--accent)}.call-chat-tools>.btn{padding:3px;border:0;box-shadow:none;background:none;font-size:var(--fs-xl);min-width:24px}.call-chat-tools>small{font-size:var(--fs-2xs);margin-left:auto;color:var(--muted)}.call-chat-send{height:32px;width:32px;display:grid;place-items:center;border:0;border-radius:var(--r-sm);background:var(--accent);color:#fff}.call-chat-send:disabled{opacity:.5}.call-chat-tools .call-chat-send .call-icon{width:18px;height:18px}#call-chat-status{font-size:var(--fs-2xs);margin-top:5px}#call-chat-status:empty{display:none}#call-chat-files{max-height:76px;overflow:auto;font-size:var(--fs-2xs)}#call-chat-files>span{display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}#call-chat-reply{display:flex;gap:5px;align-items:center;font-size:var(--fs-2xs);border-radius:var(--r-sm);background:var(--blue-soft)}#call-chat-reply:not(:empty){padding:4px 6px;margin-bottom:6px}#call-chat-reply>span{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#call-chat-reply button,#call-chat-files button{padding:2px 5px;min-height:22px}#call-chat-picker{position:absolute;bottom:100%;left:10px;right:10px;background:var(--surface);border:1px solid var(--line);padding:10px;border-radius:var(--r-md);box-shadow:0 4px 20px #0002;display:flex;gap:6px;flex-wrap:wrap;max-height:180px;overflow:auto;z-index:2}#call-chat-picker[hidden]{display:none}#call-chat-latest{position:absolute;bottom:150px;left:50%;transform:translateX(-50%);padding:7px 12px;border:1px solid var(--blue-line);border-radius:var(--r-xl);white-space:nowrap;background:var(--surface);color:var(--blue-text);box-shadow:0 3px 10px #0002;font-size:var(--fs-xs)}#call-chat-latest[hidden]{display:none}
.call-workspace.call-minimized{inset:auto 16px 16px auto;width:350px;height:auto;max-width:calc(100vw - 32px);margin:0;border-radius:var(--r-lg)}.call-minimized .call-workspace-body{display:none}.call-workspace.call-minimized>header{padding:12px;min-height:60px}.call-minimized .call-heading strong{font-size:var(--fs-sm)}.call-minimized .call-header-dot{display:none}.call-minimized .call-window-actions>[data-call=fullscreen]{display:none}.call-workspace.call-minimized .call-controls{padding:10px;gap:7px;min-height:0}.call-minimized .call-controls .call-control{width:38px;height:38px}.call-workspace.call-minimized .call-controls .call-end{width:auto;min-width:0;margin-left:0;padding:0 9px}.call-minimized .call-controls .call-end>span{font-size:var(--fs-xs)}.call-minimized [data-call=chat]{display:none}#call-root:fullscreen{background:var(--surface)}#call-root:fullscreen .call-workspace{inset:0;max-width:none;border-radius:0;margin:0}
@media(min-width:1500px){.call-chat-open .call-workspace-body{grid-template-columns:minmax(0,1fr) 370px}}
@media(max-width:900px){.call-workspace{inset:8px;border-radius:var(--r-md)}.call-workspace>header{padding:10px 12px;min-height:64px}.call-heading strong{font-size:var(--fs-md)}.call-heading .call-header-dot{display:none}.call-heading small{gap:8px}.call-window-actions .call-control{height:34px;width:34px}.call-chat-open .call-workspace-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(110px,35%) minmax(0,1fr)}.call-chat{border-left:0;border-top:1px solid var(--line)}.call-chat-header{padding:8px 12px}.call-stage{padding:8px 8px 0}.call-stage-hint{font-size:var(--fs-2xs);padding:6px;min-height:26px}.call-chat-open .call-stage-hint{display:none}.call-chat-open .call-stage{padding-bottom:8px}.call-workspace .call-videos{gap:6px}.call-workspace .call-controls{gap:6px;padding:9px 8px;min-height:62px}.call-controls .call-control{width:42px;height:42px}.call-workspace .call-controls .call-end{min-width:76px;padding:0 9px;margin-left:3px}.call-controls .call-end>span{font-size:var(--fs-xs)}.call-chat-open .call-avatar-placeholder>div{width:42px;height:42px;font-size:var(--fs-lg)}.call-chat-open .call-avatar-placeholder p,.call-chat-open .call-avatar-placeholder small{display:none}.call-workspace .call-name{font-size:var(--fs-2xs);bottom:5px;left:5px;padding:3px 5px;gap:4px}.call-name .peer-state{font-size:var(--fs-2xs)}.call-tile-tools{top:4px;right:4px}.call-tile-tools button{width:24px;height:24px}.call-workspace .call-videos.has-focus{grid-template-rows:minmax(0,1fr) minmax(48px,25%)}.call-tile .peer-state{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.call-chat-tools>small{font-size:var(--fs-2xs)}#call-chat-text{min-height:48px;max-height:80px}.call-chat-header small{font-size:var(--fs-2xs)}.call-chat-message{max-width:92%}}
@media(max-height:500px) and (min-width:700px){.call-chat-open .call-workspace-body{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr)}.call-workspace>header{min-height:48px;padding:6px 12px}.call-workspace .call-controls{min-height:52px;padding:5px}.call-stage-hint{display:none}}

:root:fullscreen .call-workspace:not(.call-minimized){inset:0;max-width:none;border-radius:0;margin:0}

.call-workspace .call-videos.has-focus[data-count="2"]{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.call-workspace .call-videos.has-focus[data-count="2"]>.call-featured{grid-column:1;grid-row:1}
.call-workspace .call-videos.has-focus[data-count="2"]>.call-tile:not(.call-featured){position:absolute;bottom:12px;right:12px;width:27%;height:28%;min-width:130px;z-index:2;box-shadow:0 8px 25px #0006;border:1px solid #ffffff50}
.call-videos.has-focus[data-count="2"]>.call-tile:not(.call-featured) [data-call=fit]{display:none}
@media(max-width:900px){.call-workspace .call-videos.has-focus[data-count="2"]>.call-tile:not(.call-featured){min-width:95px;bottom:6px;right:6px;width:30%;height:30%}.call-videos.has-focus[data-count="2"]>.call-tile:not(.call-featured) .peer-state{display:none}}
.call-workspace .call-videos.has-focus[data-count="2"]>.call-tile:not(.call-featured){grid-column:1;grid-row:1}

.call-workspace.call-maximized:not(.call-minimized){inset:0;max-width:none;border-radius:0;margin:0}

.call-workspace .call-controls [data-call=background][aria-pressed=true] {
  color: var(--blue-text);
  border-color: var(--accent);
  background: var(--blue-soft);
}
.call-background-picker {
  position: absolute;
  z-index: 7;
  inset: auto 14px 68px auto;
  width: min(440px,calc(100% - 28px));
  max-height: calc(100% - 130px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 32px #0a142b50;
}
.call-background-picker[hidden],.call-minimized .call-background-picker { display: none; }
.call-background-picker header {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}
.call-background-picker header>div { flex: 1; min-width: 0; }
.call-background-picker header strong,.call-background-picker header small { display: block; }
.call-background-picker header strong { font-size: var(--fs-md); }
.call-background-picker header small { color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.call-background-close {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
}
.call-background-close .call-icon { width: 17px; height: 17px; }
.call-background-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.call-background-grid button {
  display: grid;
  gap: 3px;
  min-width: 0;
  align-content: start;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.call-background-grid button>span:last-child { padding: 1px 2px 3px; overflow-wrap: anywhere; }
.call-background-grid button:is(:hover,:focus-visible,[aria-pressed=true]):enabled {
  border-color: var(--accent);
  color: var(--blue-text);
  background: var(--blue-soft);
}
.call-background-grid button[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--accent); font-weight: 700; }
.call-background-grid button:disabled { opacity: .52; cursor: default; }
.call-background-grid img,.call-background-none { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-xs); }
.call-background-none { display: grid; place-items: center; background: var(--surface-3); }
.call-background-none .call-icon { width: 21px; height: 21px; }
.call-background-picker p { margin: 9px 2px 0; color: var(--secondary); font-size: var(--fs-xs); }
.call-background-picker p:empty { display: none; }
@media (max-width: 540px) {
  .call-background-picker { inset-inline: 8px; width: auto; bottom: 66px; }
  .call-background-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .call-background-picker header .btn { min-height: 34px; padding: 4px 7px; font-size: var(--fs-xs); }
  .call-workspace .call-controls { gap: 5px; }
  .call-workspace .call-controls .call-control { min-width: 37px; padding-inline: 6px; }
}

.call-level-meter {
  display: block;
  width: 10px;
  height: 10px;
  color: var(--call-voice-color,var(--success-text,#16834e));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
}
.call-controls [data-call=mute] .call-level-meter {
  position: absolute;
  inset-inline-end: 3px;
  bottom: 4px;
}
.call-controls [data-call=mute][data-audio-level]:not(.is-off) {
  background: var(--success-soft);
  border-color: var(--success-line);
  color: var(--success-text);
}
.call-media-state .call-mic-state {
  --call-voice-color: #86efad;
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 9px;
  align-items: center;
}
.call-mic-state .call-icon { display: block; }
.call-mic-state .call-mic-off,.call-mic-state.is-off>.call-icon { display: none; }
.call-mic-state.is-off .call-mic-off { display: block; }
.call-mic-state.is-off { opacity: .75; }
.call-mic-state[data-audio-level]:not(.is-off) { color: var(--call-voice-color); }
[data-audio-level]:not(.is-off)>.call-level-meter { opacity: 1; }
.call-level-meter path { transform-box: fill-box; transform-origin: bottom; }
[data-audio-level="1"]>.call-level-meter path:nth-child(2) { transform: scaleY(.38); }
[data-audio-level="1"]>.call-level-meter path:nth-child(3) { transform: scaleY(.23); }
[data-audio-level="2"]>.call-level-meter path:nth-child(3) { transform: scaleY(.52); }

.chat-header-actions .call-start-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--call-trigger-bg);
  border-radius: var(--r-sm);
  background: var(--call-trigger-bg);
  color: #fff;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  white-space: nowrap;
}
.call-start-trigger { --call-trigger-bg: #354dcc; --call-trigger-active: #263ba8; }
[data-theme=dark] .call-start-trigger { --call-trigger-bg: #485bd5; --call-trigger-active: #3b4ebb; }
.chat-header-actions .call-start-trigger:is(:hover,[aria-expanded=true]):enabled {
  border-color: var(--call-trigger-active);
  background: var(--call-trigger-active);
  color: #fff;
}
.chat-header-actions .call-start-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-header-actions .call-start-trigger:disabled { opacity: .7; cursor: wait; }
.call-trigger-icon,.call-trigger-arrow { display: inline-flex; align-items: center; color: inherit; }
.call-trigger-icon .icon { width: 17px; height: 17px; }
.call-trigger-arrow { border-inline-start: 1px solid #ffffff59; padding-inline-start: 7px; }
.call-trigger-arrow .call-icon { width: 13px; height: 13px; }
.call-start-trigger[aria-expanded=true] .call-trigger-arrow .call-icon { transform: rotate(180deg); }
.call-start-menu {
  position: fixed;
  z-index: 96;
  display: grid;
  overflow: auto;
  overscroll-behavior: contain;
  width: min(232px,calc(100vw - 16px));
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 32px var(--shadow-strong);
}
.call-start-option {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-sm);
  text-align: start;
}
.call-option-icon {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue-text);
}
.call-option-icon .call-icon { width: 17px; height: 17px; }
.call-start-option strong,.call-start-option small { display: block; }
.call-start-option strong { font-weight: 650; }
.call-start-option small { margin-top: 2px; color: var(--secondary); font-size: var(--fs-xs); }
.call-start-option:hover,.call-start-option:focus-visible {
  background: var(--blue-soft);
  border-color: var(--accent);
  outline: none;
}
@media (max-width: 900px) {
  .chat-header-actions .call-start-trigger {
    min-height: 40px;
    min-width: 52px;
    gap: 5px;
    padding-inline: 7px;
  }
  .call-trigger-label { display: none; }
  .call-trigger-arrow { padding-inline-start: 4px; }
  .call-trigger-arrow .call-icon { width: 11px; height: 11px; }
}

#app .topbar #incoming-call {
  position: absolute;
  z-index: 16;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: var(--workspace-gutter,16px);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: 6px;
  width: min(432px,calc(100vw - 20px));
  padding: 8px;
  border: 1px solid var(--control-line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 8px 28px var(--shadow-strong);
  color: var(--ink);
}
#app .topbar #incoming-call[hidden] { display: none; }
.incoming-call-info { display: flex; align-items: center; gap: 8px; padding-inline-start: 3px; min-width: 0; }
.incoming-call-info>div { min-width: 0; }
.incoming-call-info .icon { width: 21px; height: 21px; flex: none; color: var(--blue-text); }
.incoming-call-info span,.incoming-call-info strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.incoming-call-info span { font-size: var(--fs-xs); color: var(--secondary); }
.incoming-call-info strong { margin-top: 2px; font-size: var(--fs-sm); }
.incoming-answer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 650;
  white-space: nowrap;
}
.incoming-accept { border-color: #087946; background: #087946; color: #fff; }
.incoming-accept:not(:disabled):hover { border-color: #065c36; background: #065c36; }
.incoming-decline { border-color: var(--control-line); background: var(--surface-2); color: var(--ink); }
.incoming-decline:not(:disabled):hover { border-color: var(--danger-red); background: var(--danger-soft); color: var(--danger-text); }
.incoming-answer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.incoming-answer:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
  :root[data-keyboard-open] #app .main-shell:has(.messenger-shell.conversation-open) > .topbar.has-incoming-call { display: flex; }
}
@media (max-width: 560px) {
  #app .topbar #incoming-call { inset-inline: 10px; width: auto; }
  .incoming-answer { min-height: 44px; padding-inline: 7px; }
}
@media (max-width: 350px) {
  .incoming-call-info .icon { display: none; }
}
