/* Calls and meetings: incoming call, meeting window, conferences, «Трансляции», Android insets. */
/* —— Orbitcast incoming video call: light grain and a wave, then the caller comes clear —— */
.call-incoming {
  position: fixed; top: 84px; right: 16px; z-index: 80; /* above an open meeting */
  width: 280px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 12px;
  border-radius: 16px; border: var(--glass-border); background: var(--glass-panel-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
  animation: call-in 0.28s ease-out;
}
.call-incoming.hidden { display: none !important; }
@keyframes call-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.call-screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #22325a 0%, #0d1424 75%);
  display: flex; align-items: center; justify-content: center;
}
.call-incoming .call-avatar.avatar {
  width: 96px; height: 96px; min-width: 96px; min-height: 96px; max-width: 96px; max-height: 96px;
  flex: none; align-self: center; opacity: 0;
}
/* The caller is there at once, seen through light grain and a gentle wave that settle in 1.2 s */
.call-noise {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  image-rendering: pixelated; transition: opacity 0.3s ease-out;
}
.call-incoming.is-ringing .call-avatar.avatar,
.call-incoming.is-tuned .call-avatar.avatar { opacity: 1; }
.call-incoming.is-tuned .call-noise { opacity: 0; }
.call-incoming.is-tuned .call-avatar.avatar { animation: call-ring 1.8s ease-out infinite; }
@keyframes call-ring {
  0% { box-shadow: 0 0 0 0 rgba(121, 57, 242, 0.6); }
  100% { box-shadow: 0 0 0 20px rgba(121, 57, 242, 0); }
}
.call-info {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 10px 0 12px; text-align: center; min-width: 0;
}
.call-info strong {
  max-width: 100%; font-size: 15px; color: #1b1d21;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.call-info span { font-size: 13px; color: #6b7080; }
.call-actions { display: flex; justify-content: center; gap: 32px; }
.call-btn {
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.15s, transform 0.15s;
}
.call-btn:hover { filter: brightness(1.08); transform: scale(1.05); }
.call-btn-decline { background: #e5484d; }
.call-btn-accept { background: #30a46c; }
@media (max-width: 700px) {
  .call-incoming { top: calc(env(safe-area-inset-top, 0px) + 64px); left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .call-incoming, .call-incoming.is-tuned .call-avatar.avatar { animation: none; opacity: 1; }
  .call-incoming .call-avatar.avatar { opacity: 1; }
}

/* —— Orbitcast meeting over the chat (same-origin iframe) —— */
/* Meeting window over the dimmed app; minimized → small floating window; full screen. */
.cast-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 18, 32, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: cast-overlay-in 0.22s ease-out;
}
.cast-window {
  position: relative; display: flex; flex-direction: column;
  width: min(1180px, 92vw); height: min(920px, 96dvh);
  border-radius: 18px; overflow: hidden; background: #0e1626;
  box-shadow: 0 24px 70px rgba(5, 8, 20, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cast-window-head {
  flex: none; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px 0 16px;
  background: #0b1220; color: #c9d1e4; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}
.cast-window-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #3ecf72; flex: none; margin-right: 4px; box-shadow: 0 0 0 3px rgba(62, 207, 114, 0.22); }
.cast-window-title {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #9aa6c2;
}
.cast-window-time { font-size: 15px; font-weight: 600; color: #c3cbe0; font-variant-numeric: tabular-nums; flex: none; margin-right: 4px; }
.cast-win-btn {
  appearance: none; border: 0; background: transparent; color: #c9d1e4;
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; flex: none;
}
.cast-win-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cast-win-restore, .cast-win-leave, .cast-resize { display: none; }
.cast-frame { display: block; flex: 1; min-height: 0; width: 100%; border: 0; }

/* Full screen (browser full screen, or the CSS fallback). */
.cast-window:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.cast-overlay.is-full .cast-window { width: 100vw; height: 100vh; border-radius: 0; }

/* Minimized: a floating window over the usable app — drag by the head, resize by the corner. */
.cast-overlay.is-mini {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none; animation: none;
}
.cast-overlay.is-mini .cast-window {
  position: fixed; pointer-events: auto; border-radius: 14px;
  min-width: 0; min-height: 0;
  box-shadow: 0 18px 50px rgba(5, 8, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: cast-float-in 0.18s ease-out;
}
.cast-overlay.is-mini .cast-window-head { height: 34px; padding: 0 4px 0 12px; cursor: grab; }
.cast-overlay.is-mini .cast-window.is-moving .cast-window-head { cursor: grabbing; }
.cast-overlay.is-mini .cast-window-dot { display: inline-block; }
.cast-overlay.is-mini .cast-win-btn { width: 28px; height: 28px; }
.cast-overlay.is-mini .cast-win-min, .cast-overlay.is-mini .cast-win-full { display: none; }
.cast-overlay.is-mini .cast-win-restore { display: grid; }
.cast-overlay.is-mini .cast-win-leave { display: grid; background: #e5484d; color: #fff; margin-left: 2px; }
.cast-overlay.is-mini .cast-win-leave:hover { background: #d13a3f; }
.cast-overlay.is-mini .cast-resize {
  display: block; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.35) 58%, transparent 58%, transparent 70%, rgba(255, 255, 255, 0.35) 70%, rgba(255, 255, 255, 0.35) 78%, transparent 78%);
  touch-action: none;
}
.cast-window.is-moving .cast-frame { pointer-events: none; }
@keyframes cast-float-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cast-overlay:not(.is-mini) .cast-window { width: 100vw; height: 100dvh; border-radius: 0; }
}
/* Edge-to-edge phones: the full-screen call window keeps clear of the status bar,
   the notch and the gesture bar (the window's own colour fills those strips). */
@media (max-width: 720px), (pointer: coarse) {
  .cast-overlay:not(.is-mini) .cast-window {
    box-sizing: border-box;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) var(--sab) env(safe-area-inset-left, 0px);
    background: #0b1220;
  }
}
/* «Трансляции»: with large system text the bubbles wrap instead of running off. */
#feature-screen.is-meetings #feature-toolbar { flex-wrap: wrap; row-gap: 8px; }
html.cast-open, html.cast-open body { overflow: hidden; }
@keyframes cast-overlay-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cast-overlay { animation: none; }
}

/* —— Video call record in chat: icon, then the sentence —— */
.call-record { display: flex; align-items: center; gap: 10px; min-width: 0; }
.call-record-icon { flex: none; display: flex; }
.call-record-icon svg { display: block; width: 40px; height: 28px; }
.call-record-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }

/* —— Icon action rows in profile / channel cards —— */
.card-rail-tools.card-actions { justify-content: center; gap: 28px; }
.card-rail-tools.card-actions.hidden { display: none !important; }
.card-rail-tools.card-actions .rail-btn { flex: 0 0 56px; width: 56px; }
.card-rail-tools.card-actions .rail-btn.hidden { display: none !important; }

/* —— Conference record in a channel —— */
.conf-record { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.conf-record-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.conf-record-info strong { overflow-wrap: anywhere; }
.conf-record-sub { font-size: 13px; color: #6b7080; overflow-wrap: anywhere; }
.msg-body .btn.conf-record-join { flex: none; padding: 6px 14px; }
.conf-record-join[hidden] { display: none; }

/* —— Conference dialog —— */
.conf-dialog { width: min(520px, 100%); }
.conf-section {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 16px 0 6px; font-weight: 600; font-size: 14px; color: #1b1d21;
}
.conf-count { font-weight: 400; font-size: 13px; color: #6b7080; }
.dialog-body .conf-search {
  width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; margin-bottom: 6px;
  border: 1px solid #d0d4dc; border-radius: 8px; font: inherit; font-size: 14px;
}
.conf-people {
  max-height: 240px; overflow-y: auto; border: 1px solid #e4e7ec; border-radius: 10px; padding: 4px;
}
/* .dialog-body label / input are block and full-width; a person row is neither. */
.dialog-body label.conf-person {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 8px; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 400;
}
.conf-person:hover { background: #f3f5f8; }
.dialog-body .conf-person input { flex: none; margin: 0; width: 16px; height: 16px; accent-color: var(--accent, #7939f2); }
.conf-person .avatar { width: 28px; height: 28px; min-width: 28px; min-height: 28px; max-width: 28px; max-height: 28px; flex: 0 0 28px; align-self: center; }
.conf-person-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.conf-person-tag { flex: none; font-size: 12px; color: #6b7080; }
.conf-empty { padding: 12px; text-align: center; color: #6b7080; font-size: 14px; }
.conf-segment { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f0f2f6; }
.conf-segment button {
  flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: #5b6070; cursor: pointer;
}
.conf-segment button.is-active { background: #fff; color: #1b1d21; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.conf-schedule { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.conf-schedule[hidden] { display: none; }
.conf-repeat { min-width: 0; margin: 8px 0; padding: 0; border: 0; }
.conf-repeat legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.conf-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 8px; }
.conf-weekday { min-width: 0; padding: 9px 0; border: 1px solid #e4e7ec; border-radius: 999px; background: #fff; color: #5c6270; font: inherit; font-size: 12px; cursor: pointer; }
.conf-weekday.is-active { border-color: var(--accent, #225be4); color: var(--accent, #225be4); background: var(--accent-soft, #edf3ff); }
.meet-cancel-repeat.btn { padding: 6px 10px; font-size: 12px; color: #c32f39; max-width: 100%; white-space: normal; }
.conf-remind {
  height: 38px; padding: 0 10px; border: 1px solid #d0d4dc; border-radius: 8px; font: inherit; font-size: 14px; background: #fff;
}
.conf-note { font-size: 12px; color: #6b7080; line-height: 1.4; }
.conf-dialog .form-error:not(:empty) { margin-top: 10px; }
.conf-dialog .btn.wide { margin-top: 14px; }
.conf-submit-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 14px; }
.conf-submit-actions .btn.conf-submit {
  flex: 1 1 0; min-width: 0; width: auto; min-height: 46px; margin: 0; padding: 12px 16px;
  border: 1.5px solid color-mix(in srgb, var(--accent, #225be4) 35%, transparent);
  border-radius: 12px; color: var(--accent, #225be4); background: #fff; box-shadow: none;
  font-size: 15px; line-height: 1.3; transform: none;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.conf-submit-actions .btn.conf-submit:focus-visible,
.conf-submit-actions .btn.conf-submit:active:not(:disabled) { color: #fff; background: var(--accent, #225be4); border-color: var(--accent, #225be4); }
@media (hover: hover) {
  .conf-submit-actions .btn.conf-submit:hover:not(:disabled) { color: #fff; background: var(--accent, #225be4); border-color: var(--accent, #225be4); box-shadow: 0 5px 14px rgba(34, 91, 228, .22); }
}
.conf-submit-actions .btn[hidden] { display: none; }
@media (max-width: 520px) { .conf-submit-actions { flex-direction: column; } }

/* Channel tools panel: 8 tools incl. "Создать конференцию" — icons keep their size;
   buttons share the width but never go below 36px (scrolls on very narrow cards). */
.channel-rail-tools, #card-rail-tools { overflow-x: auto; scrollbar-width: none; }
.channel-rail-tools::-webkit-scrollbar, #card-rail-tools::-webkit-scrollbar { display: none; }
.channel-rail-tools .rail-btn, #card-rail-tools .rail-btn { flex: 1 0 36px; min-width: 36px; width: auto; }
.channel-rail-tools .rail-btn svg, #card-rail-tools .rail-btn svg { flex: none; width: 22px; height: 22px; }
#card-rail-tools .rail-btn.hidden { display: none !important; }

/* Conference dialog: invite link + approval switch. */
.conf-link { display: flex; gap: 8px; align-items: center; }
.dialog-body .conf-link-input {
  flex: 1; min-width: 0; width: auto; height: 38px; margin: 0; padding: 0 12px; box-sizing: border-box;
  border: 1px solid #d0d4dc; border-radius: 8px; font: inherit; font-size: 14px; color: #1b1d21; background: #f7f8fa;
}
.conf-dialog .btn.conf-link-copy { flex: none; height: 38px; margin: 0; padding: 0 14px; }
.conf-link + .conf-note { margin-top: 6px; }
.dialog-body label.conf-option {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #1b1d21;
}
.dialog-body .conf-option input { flex: none; margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--accent, #7939f2); }
.conf-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conf-option-text .conf-note { font-weight: 400; }

/* Red call icon in previews (calendar, notifications, reply/pinned quotes). */
.call-icon-inline { display: inline-flex; vertical-align: -0.18em; margin-right: 0.35em; }
.call-icon-inline svg { width: auto; height: 1.05em; }

/* Conference dialog: meeting password. */
.dialog-body label.conf-password-label { display: flex; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.dialog-body .conf-password {
  width: 100%; box-sizing: border-box; height: 38px; margin: 0 0 4px; padding: 0 12px;
  border: 1px solid #d0d4dc; border-radius: 8px; font: inherit; font-size: 14px;
}

/* Profile card tool bar: five icons, the rest behind the chevron (second row when open). */
#card-rail-tools.has-more .rail-btn { flex: 0 0 calc((100% - 5 * 4px) / 6); min-width: 0; }
/* Collapsed: hide the overflow. Opened: they keep the normal button display (centred icon). */
#card-rail-tools:not(.is-expanded) .rail-btn.is-overflow { display: none !important; }
#card-rail-tools.is-expanded { flex-wrap: wrap; height: auto; row-gap: 4px; }
#card-rail-tools.has-more { justify-content: flex-start; }
#card-rail-tools .card-tools-more svg { transition: transform 0.15s; }
#card-rail-tools.is-expanded .card-tools-more svg { transform: rotate(180deg); }

/* Settings → Appearance → View: tool order. */
.card-tools-order { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.card-tools-order-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #f6f7fa;
}
.card-tools-order-icon { display: flex; color: #3f4350; }
.card-tools-order-icon svg { width: 20px; height: 20px; }
.card-tools-order-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tools-order-drag {
  appearance: none; border: 0; background: transparent; color: #9aa0ab;
  width: 28px; height: 32px; border-radius: 8px; padding: 0; cursor: grab;
  display: grid; place-items: center; flex: none; touch-action: none; user-select: none;
}
.card-tools-order-drag:active { cursor: grabbing; }
.card-tools-order-drag:focus-visible { outline: 2px solid var(--accent, #1c58d9); }
.card-tools-order-drag svg { width: 16px; height: 16px; display: block; pointer-events: none; }
.card-tools-order-row { transition: box-shadow .15s ease; }
.card-tools-order-row.is-dragging {
  position: fixed; z-index: 80; margin: 0; pointer-events: none; background: #fff;
  box-shadow: 0 10px 28px rgba(26, 29, 38, 0.18);
  outline: 1px solid color-mix(in srgb, var(--accent, #1c58d9) 28%, #e4e7ec);
}
.card-tools-order-spacer {
  border-radius: 10px; box-sizing: border-box;
  border: 1.5px dashed color-mix(in srgb, var(--accent, #1c58d9) 45%, #d0d4dc);
  background: color-mix(in srgb, var(--accent, #1c58d9) 6%, #fff);
}
.card-tools-order-sep {
  margin: 6px 0 2px; font-size: 12px; color: #6b7080; display: flex; align-items: center; gap: 8px;
}
.card-tools-order-sep::before, .card-tools-order-sep::after { content: ""; flex: 1; border-top: 1px dashed #c9cdd6; }

/* Small meeting window: the head overlays the video and fades with the page's panels. */
.cast-overlay.is-mini .cast-window-head {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  background: linear-gradient(rgba(11, 18, 32, 0.92), rgba(11, 18, 32, 0.6));
  border-bottom: 0; transition: opacity 0.25s ease;
}
.cast-overlay.is-mini .cast-window.is-idle .cast-window-head,
.cast-overlay.is-mini .cast-window.is-idle .cast-resize { opacity: 0; }
.cast-overlay.is-mini .cast-window.is-idle .cast-window-head:hover { opacity: 1; }
.cast-overlay.is-mini .cast-window.is-idle:hover .cast-resize { opacity: 1; }

/* Settings → Трансляции → Время трансляции: a card like the notification rows. */
.settings-card .cast-limit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: calc(14px * var(--text-scale, 1));
}
.settings-card .cast-limit-row .cast-limit-select {
  flex: none;
  width: 150px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d0d4dc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: calc(14px * var(--text-scale, 1));
  color: var(--text-strong);
}
@media (max-width: 560px) {
  .settings-card .cast-limit-row { flex-wrap: wrap; }
  .settings-card .cast-limit-row .cast-limit-select { width: 100%; }
}

/* Sign-in card: which Orbit this is, and the way to another one. */
.workspace-switch {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 18px; padding: 6px 6px 6px 12px;
  border-radius: 12px; background: #f3f5f9; font-size: 13px;
}
.workspace-switch.hidden { display: none; }
.workspace-chip { display: flex; align-items: center; gap: 7px; min-width: 0; color: #4a4f5c; font-weight: 600; }
.workspace-chip svg { flex: none; color: var(--accent, #1c58d9); }
.workspace-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switch .other-workspace {
  flex: none; padding: 5px 12px; border-radius: 8px; background: #fff;
  color: var(--accent, #1c58d9); font-weight: 700; text-decoration: none;
  box-shadow: 0 1px 2px rgba(20, 30, 60, .12); transition: box-shadow .2s;
}
.workspace-switch .other-workspace:hover { box-shadow: 0 2px 8px rgba(20, 30, 60, .18); }

/* Rail → Трансляции */
.meet-screen { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.meet-scope { font-size: 13px; color: #6b7080; }
.meet-section { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #6b7080; }
.meet-day { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--text-strong, #1a1d26); }
.meet-empty { padding: 14px 16px; border: 1px dashed #d8dce4; border-radius: 12px; color: #8b8e98; font-size: 14px; }
.meet-card { position: relative; padding: 14px 16px; border: 1px solid #e8eaef; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.meet-card.can-delete .meet-card-head { padding-right: 36px; }
.meet-delete { position: absolute; top: 9px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #868c9a; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.meet-delete:hover { color: #c32f39; background: #fff0f1; }
.meet-delete:focus-visible { outline: 2px solid #1c58d9; outline-offset: 2px; }
.meet-delete:disabled { opacity: .5; cursor: wait; }
.meet-card.is-live { border-color: color-mix(in srgb, #2fb36d 45%, #e8eaef); box-shadow: 0 0 0 3px color-mix(in srgb, #2fb36d 10%, transparent); }
.meet-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.meet-card-title { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.meet-card-title strong { font-size: 15px; color: var(--text-strong, #1a1d26); overflow-wrap: anywhere; }
.meet-card-title span { font-size: 13px; color: #6b7080; overflow-wrap: anywhere; }
.meet-card-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.meet-when { font-size: 13px; color: #6b7080; white-space: nowrap; }
.meet-when.is-live { color: #1f8f53; font-weight: 700; }
.meet-when.is-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2fb36d; vertical-align: 1px; }
.meet-join.btn { padding: 6px 14px; font-size: 13px; }
.meet-people { display: flex; flex-direction: column; gap: 6px; }
details.meet-people { display: block; }
details.meet-people > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent, #1c58d9); list-style: none; }
details.meet-people > summary::-webkit-details-marker { display: none; }
details.meet-people > summary::before { content: "›"; display: inline-block; margin-right: 6px; transition: transform .15s; }
details.meet-people[open] > summary::before { transform: rotate(90deg); }
details.meet-people[open] > summary { margin-bottom: 6px; }
details.meet-people .meet-person + .meet-person { margin-top: 6px; }
.meet-people-cap { font-size: 12px; font-weight: 700; color: #6b7080; }
.meet-person { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.meet-person-avatar.avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; display: grid; place-items: center; background: #e8ebf2; color: #4a4f5c; overflow: hidden; }
.meet-person-avatar.avatar img { width: 100%; height: 100%; object-fit: cover; }
.meet-person-name { min-width: 0; font-size: 14px; color: var(--text-strong, #1a1d26); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-guest { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #f1f2f6; color: #6b7080; font-size: 11px; }
.meet-person-time { font-size: 13px; color: #6b7080; white-space: nowrap; }
@media (max-width: 560px) {
  .meet-card-head { flex-direction: column; }
  .meet-card-side { align-items: flex-start; flex-direction: row; align-items: center; flex-wrap: wrap; max-width: 100%; }
  .meet-person { grid-template-columns: 28px minmax(0, 1fr); }
  .meet-person-time { grid-column: 2; }
}
.meet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meet-create.btn { padding: 9px 18px; }
.meet-group-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.meet-screen .tasks-date-stack { display: flex; flex-direction: column; gap: 10px; }

/* Android app: it pins .feature-screen's top padding to the status bar (with
   !important), which put a section's title and bubbles under the glass header.
   Clear the header itself, as in the browser (--chat-scroll-top already counts
   the status bar there: the header sits below it). */
html.capacitor-android .app.rail-feature-open.feature-chrome-open #feature-screen {
  padding-top: calc(var(--chat-scroll-top, 76px) + 10px) !important;
}
/* Android app: the full-screen call window keeps below the status bar. */
html.capacitor-android .cast-overlay:not(.is-mini) .cast-window {
  padding-top: var(--sat);
}
/* Minimized into the system picture-in-picture window: the page shows nothing,
   the meeting keeps running (and playing sound) in the hidden frame. */
.cast-overlay.is-pip { visibility: hidden; pointer-events: none; }
.cast-overlay.is-pip * { visibility: hidden !important; }
.meet-card.is-scheduled { border-color: color-mix(in srgb, var(--accent, #1c58d9) 30%, #e8eaef); }
.meet-when.is-scheduled { color: var(--accent, #1c58d9); font-weight: 600; }

/* Settings → Appearance → View: the card's tool bar to arrange (no chevron). */
.card-tools-preview {
  margin: 10px 0 6px; padding: 4px; border-radius: 10px; border: var(--glass-border, 1px solid #e4e7ec);
  background: var(--glass-chip-bg, #fff); display: flex; flex-direction: column; gap: 2px; user-select: none;
}
.card-tools-preview-row { display: grid; grid-template-columns: repeat(var(--tool-cols, 5), 1fr); gap: 4px; }
.card-tools-preview .card-tools-order-sep { margin: 4px 6px 2px; }
.card-tools-cell {
  appearance: none; border: 0; height: 44px; border-radius: 12px; background: transparent; color: #3f4350;
  display: grid; place-items: center; cursor: grab; touch-action: none; padding: 0;
  transition: background .15s, color .15s, box-shadow .15s, opacity .15s;
}
.card-tools-cell svg { width: 22px; height: 22px; pointer-events: none; }
.card-tools-cell:hover, .card-tools-cell:focus-visible { color: var(--accent); background: rgba(255, 255, 255, 0.55); outline: none; }
.card-tools-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.card-tools-preview-row.is-below .card-tools-cell { color: #6b7080; }
.card-tools-cell.is-source { opacity: 0.25; }
.card-tools-cell.is-target {
  color: var(--accent); background: var(--accent-soft, #e8efff);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}
.card-tools-preview.is-dragging .card-tools-cell { cursor: grabbing; }
.card-tools-ghost {
  position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -50%) scale(1.08);
  background: #fff; color: var(--accent); box-shadow: 0 10px 26px rgba(26, 29, 38, 0.22);
}
.card-tools-caption { margin: 0 2px 12px; min-height: 18px; font-size: 13px; color: #6b7080; }

/* Settings → Appearance → Profile panel: its cards in the person's order. */
.profile-blocks-order { display: grid; gap: 8px; margin: 10px 0 14px; user-select: none; }
.profile-block-row {
  appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; box-sizing: border-box;
  border: var(--glass-border, 1px solid #e4e7ec); border-radius: 14px; background: var(--glass-chip-bg, #fff);
  font: inherit; font-size: calc(15px * var(--text-scale, 1)); font-weight: 600; color: #1f2430; text-align: left; cursor: grab;
  transition: box-shadow .15s, transform .15s;
}
.profile-block-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.profile-block-ico { color: var(--accent); flex: none; }
.profile-block-name { flex: 1; min-width: 0; }
.profile-block-grip { color: #9aa0ad; display: grid; place-items: center; touch-action: none; padding: 4px; margin: -4px; }
.profile-block-row.is-dragging { cursor: grabbing; transform: scale(1.02); box-shadow: 0 10px 26px rgba(26, 29, 38, .18); position: relative; z-index: 1; }
.profile-blocks-order.is-dragging .profile-block-row { cursor: grabbing; }

/* Left rail: the first four tools, then the chevron; opened, the rest below it. */
.rail-tools .card-tools-more svg { transition: transform 0.15s; }
.rail-tools.is-expanded .card-tools-more svg { transform: rotate(180deg); }
.rail-tools:not(.is-expanded) .rail-btn.is-overflow:not(.is-active) { display: none !important; }
.rail-tools .card-tools-more.hidden { display: none !important; }
.rail-tools .card-tools-more { opacity: 0.75; }
.rail-tools .card-tools-more:hover { opacity: 1; }

/* Left rail: the notification bell with its count */
#rail-notifications { position: relative; }
.rail-badge {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
  border-radius: 9px; background: #f04438; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px;
  text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--rail, #1a2747);
}
.rail-badge[hidden] { display: none; }
