:root {
  color-scheme: light dark;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --line: #dce4ec;
  --text: #17212b;
  --ink: #17212b;
  --muted: #647282;
  --brand: #0877a8;
  --brand-strong: #075f86;
  --brand-blue: #0877a8;
  --brand-blue-deep: #064b6a;
  --brand-blue-neon: #11a7df;
  --brand-red: #e1261c;
  --brand-red-neon: #ff3d35;
  --brand-red-deep: #7c0b14;
  --icon-bell: #ffcf4a;
  --icon-chat: #62e6ff;
  --icon-call: #69f0ae;
  --icon-calendar: #d8b4fe;
  --icon-cloud: #7dd3fc;
  --icon-status: #facc15;
  --icon-groups: #f9a8d4;
  --accent: #178767;
  --danger: #b42318;
  --warn: #9a6700;
  --missed: #c2410c;
  --missed-soft: #fff7ed;
  --soft: #f8fbfd;
  --shadow: 0 18px 48px rgba(20, 44, 62, 0.12);
  --naradh-app-bg: #e8f1f6;
  --naradh-bg: #f3f6f9;
  --naradh-bg-alt: #eef4f8;
  --naradh-bg-elevated: #eef4f8;
  --naradh-surface: #ffffff;
  --naradh-surface-2: #f6f9fb;
  --naradh-surface-3: #eef4f8;
  --naradh-surface-contrast: #17212b;
  --naradh-shell-bg: rgba(255, 255, 255, 0.95);
  --naradh-panel-bg: #ffffff;
  --naradh-panel-muted: #f6f9fb;
  --naradh-panel-soft: #fbfdfe;
  --naradh-border: rgba(199, 213, 224, 0.78);
  --naradh-border-strong: rgba(144, 171, 188, 0.72);
  --naradh-text: #17212b;
  --naradh-text-strong: #0f172a;
  --naradh-text-muted: #647282;
  --naradh-text-subtle: #7a8a9a;
  --naradh-text-inverse: #ffffff;
  --naradh-hover: rgba(8, 119, 168, 0.08);
  --naradh-active: rgba(8, 119, 168, 0.14);
  --naradh-accent: #0b6f94;
  --naradh-accent-text: #ffffff;
  --naradh-accent-soft: rgba(11, 111, 148, 0.1);
  --naradh-danger: #b42318;
  --naradh-warning: #9a6700;
  --naradh-success: #178767;
  --naradh-input-bg: #ffffff;
  --naradh-input-text: #17212b;
  --naradh-input-placeholder: #6b7d8c;
  --naradh-modal-bg: #ffffff;
  --naradh-modal-surface: #f8fbfd;
  --naradh-modal-text: #17212b;
  --naradh-modal-muted: #647282;
  --naradh-modal-border: rgba(198, 217, 225, 0.92);
  --naradh-modal-input-bg: #f8fbfd;
  --naradh-modal-input-text: #17212b;
  --naradh-modal-input-placeholder: #6b7d8c;
  --naradh-modal-row-bg: #fbfdfe;
  --naradh-modal-row-hover: rgba(8, 119, 168, 0.08);
  --naradh-modal-row-selected: rgba(8, 119, 168, 0.14);
  --naradh-modal-backdrop: rgba(15, 23, 42, 0.52);
  --naradh-button-bg: #0877a8;
  --naradh-button-text: #ffffff;
  --naradh-button-secondary-bg: #f4f8fb;
  --naradh-button-secondary-text: #334155;
  --naradh-button-disabled-bg: #e7edf3;
  --naradh-button-disabled-text: #68788a;
  --naradh-card-bg: #ffffff;
  --naradh-card-text: #17212b;
  --naradh-table-bg: #ffffff;
  --naradh-table-row-bg: #ffffff;
  --naradh-table-header-bg: #eef4f8;
  --naradh-rail-bg: #4a1118;
  --naradh-rail-active: rgba(255, 255, 255, 0.17);
  --naradh-shadow: 0 18px 48px rgba(20, 44, 62, 0.12);
  --naradh-shadow-soft: 0 10px 28px rgba(21, 37, 52, 0.08);
  --naradh-shadow-panel: 0 18px 46px rgba(21, 37, 52, 0.12);
  --naradh-scrollbar-thumb: rgba(100, 116, 139, 0.36);
  --naradh-scrollbar-track: transparent;
  --naradh-radius-xl: 16px;
  --naradh-radius-lg: 12px;
  --naradh-radius-md: 8px;
  --naradh-font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  overflow-x: hidden;
  font-family: var(--naradh-font-family);
  background:
    radial-gradient(circle at 18% 8%, rgba(11, 111, 148, 0.2), transparent 340px),
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.48), transparent 320px),
    linear-gradient(140deg, #dbe8ef 0, var(--naradh-app-bg) 48%, #f7fafc 100%);
  color: var(--text);
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

body,
body * {
  font-family: var(--naradh-font-family);
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(18, 108, 136, 0.16);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 108, 136, 0.26);
  outline-offset: 2px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--text);
  background: var(--surface);
}

select {
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101820;
    --surface: #162232;
    --line: rgba(148, 163, 184, 0.32);
    --text: #e5edf7;
    --ink: #f3f7fb;
    --muted: #9fb0c6;
    --brand: #38bdf8;
    --brand-strong: #7dd3fc;
    --brand-blue: #38bdf8;
    --brand-blue-deep: #075985;
    --accent: #5eead4;
    --danger: #fb7185;
    --warn: #facc15;
    --missed-soft: rgba(251, 146, 60, 0.12);
    --soft: #1d293d;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --naradh-app-bg: #0b1220;
    --naradh-bg: #0b1220;
    --naradh-bg-alt: #0f172a;
    --naradh-bg-elevated: #111827;
    --naradh-surface: #111827;
    --naradh-surface-2: #1d293d;
    --naradh-surface-3: #243449;
    --naradh-surface-contrast: #f8fbff;
    --naradh-shell-bg: rgba(15, 23, 42, 0.96);
    --naradh-panel-bg: #111827;
    --naradh-panel-muted: #172033;
    --naradh-panel-soft: #1d293d;
    --naradh-border: rgba(148, 163, 184, 0.28);
    --naradh-border-strong: rgba(148, 163, 184, 0.44);
    --naradh-text: #e5edf7;
    --naradh-text-strong: #f8fbff;
    --naradh-text-muted: #9fb0c6;
    --naradh-text-subtle: #8293aa;
    --naradh-text-inverse: #06121f;
    --naradh-hover: rgba(148, 163, 184, 0.12);
    --naradh-active: rgba(56, 189, 248, 0.18);
    --naradh-accent: #38bdf8;
    --naradh-accent-text: #06121f;
    --naradh-accent-soft: rgba(56, 189, 248, 0.14);
    --naradh-danger: #fb7185;
    --naradh-warning: #facc15;
    --naradh-success: #5eead4;
    --naradh-input-bg: #1d293d;
    --naradh-input-text: #e5edf7;
    --naradh-input-placeholder: #9fb0c6;
    --naradh-modal-bg: #111827;
    --naradh-modal-surface: #1d293d;
    --naradh-modal-text: #e5edf7;
    --naradh-modal-muted: #9fb0c6;
    --naradh-modal-border: rgba(148, 163, 184, 0.32);
    --naradh-modal-input-bg: #0f172a;
    --naradh-modal-input-text: #f8fbff;
    --naradh-modal-input-placeholder: #9fb0c6;
    --naradh-modal-row-bg: #172033;
    --naradh-modal-row-hover: rgba(148, 163, 184, 0.14);
    --naradh-modal-row-selected: rgba(56, 189, 248, 0.18);
    --naradh-modal-backdrop: rgba(2, 6, 23, 0.72);
    --naradh-button-bg: #075985;
    --naradh-button-text: #f8fbff;
    --naradh-button-secondary-bg: #1d293d;
    --naradh-button-secondary-text: #e5edf7;
    --naradh-button-disabled-bg: #1b2638;
    --naradh-button-disabled-text: #9fb0c6;
    --naradh-card-bg: #111827;
    --naradh-card-text: #e5edf7;
    --naradh-table-bg: #111827;
    --naradh-table-row-bg: #162033;
    --naradh-table-header-bg: #1d293d;
    --naradh-rail-bg: #21070b;
    --naradh-rail-active: rgba(255, 255, 255, 0.14);
    --naradh-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    --naradh-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
    --naradh-shadow-panel: 0 18px 46px rgba(0, 0, 0, 0.34);
    --naradh-scrollbar-thumb: rgba(148, 163, 184, 0.36);
    --naradh-scrollbar-track: rgba(15, 23, 42, 0.28);
  }

  body {
    background:
      radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.12), transparent 340px),
      radial-gradient(circle at 92% 4%, rgba(148, 163, 184, 0.08), transparent 320px),
      linear-gradient(140deg, #08111f 0, var(--naradh-app-bg) 52%, #111827 100%);
    color: var(--naradh-text);
  }

  .topbar,
  .sidebar-header,
  .chat,
  .sidebar,
  .conversation-list,
  .conversation-row,
  .message-bubble,
  .composer,
  .search-results,
  .search-result,
  .naradh-workspace,
  .naradh-workspace__section,
  .naradh-workspace__toolbar,
  .calls-window,
  .calls-page-panel,
  .call-info-card,
  .notification-panel,
  .notification-row,
  .notification-settings-dialog,
  .message-action-menu,
  .naradh-hover-reaction-picker,
  .modal,
  .dialog,
  .cloud-files-table,
  .cloud-section-grid > div {
    border-color: var(--naradh-border);
    background-color: var(--naradh-panel-bg);
    color: var(--naradh-text);
  }

  .message.mine .message-bubble,
  .conversation-row.active,
  .nav-button.active,
  .naradh-icon-action.active {
    background-color: var(--naradh-accent-soft);
    color: var(--naradh-text);
  }

  input,
  select,
  textarea,
  .message-input,
  .cloud-search-input {
    border-color: var(--naradh-border);
    background: var(--naradh-panel-soft);
    color: var(--naradh-text);
  }

  input::placeholder,
  textarea::placeholder,
  .muted,
  .meta,
  .conversation-preview,
  .naradh-workspace__subtitle {
    color: var(--naradh-text-muted);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light dark;
  }
}

.naradh-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  padding: 12px;
  gap: 12px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  border: 1px solid rgba(220, 228, 236, 0.9);
  border-radius: 14px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(20, 44, 62, 0.08);
}

.sidebar-header {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.company-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brightlink-logo {
  display: block;
  width: min(128px, 42vw);
  max-height: 34px;
  object-fit: contain;
}

.product-lockup {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.product-copy {
  min-width: 0;
  text-align: left;
}

.product-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.product-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #bfe3ec;
  border-radius: 12px;
  color: var(--brand-strong);
  background: #eaf7fa;
  font-size: 22px;
  font-weight: 900;
}

.sidebar-product-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 10px;
}

.app-layout.cloud-active {
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 10px;
}

.app-layout.calendar-active {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0;
}

.sidebar {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--naradh-border);
  border-radius: var(--naradh-radius-xl);
  background: var(--naradh-shell-bg);
  box-shadow: var(--naradh-shadow-panel);
  overflow: hidden;
}

.app-layout.cloud-active .sidebar {
  grid-template-columns: 64px minmax(0, 1fr);
  border-radius: 16px;
}

.app-layout.calendar-active .sidebar {
  grid-template-columns: 64px;
  border-right: 0;
  border-radius: 16px 0 0 16px;
  box-shadow: none;
}

.app-layout.calendar-active .messenger-sidebar-pane {
  display: none;
}

.app-layout.calendar-active .chat {
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: var(--calendar-bg, #111827);
  box-shadow: none;
}

.app-layout.cloud-active .chat {
  border-radius: 16px;
}

.left-rail {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  justify-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 32% 4%, rgba(255, 255, 255, 0.13), transparent 78px),
    linear-gradient(180deg, #5b151d 0, var(--naradh-rail-bg) 52%, #2d0d13 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rail-top {
  display: grid;
  gap: 10px;
}

.rail-button,
.rail-profile-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ghost-icon-button svg,
.voice-call-button svg,
.video-call-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.inbox-header h1 {
  margin-bottom: 0;
}

.inbox-header span {
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
}

.search-row {
  border-radius: 999px;
  background: #eef4f7;
}

.search-row input {
  border-radius: 999px;
}

.naradh-action-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.naradh-icon-action {
  --naradh-icon-color: #27566a;
  --naradh-icon-hover-bg: rgba(39, 86, 106, 0.09);
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--naradh-icon-color);
  box-shadow: none;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.naradh-icon-action svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

.naradh-icon-action:not(:disabled):hover {
  background: var(--naradh-icon-hover-bg);
  color: var(--naradh-icon-color);
}

.naradh-icon-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.naradh-icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.naradh-icon-action--primary {
  --naradh-icon-color: var(--brand-strong);
}

.naradh-icon-action--danger {
  --naradh-icon-color: #a5271f;
  --naradh-icon-hover-bg: rgba(165, 39, 31, 0.11);
}

.naradh-icon-action--muted {
  --naradh-icon-color: #475569;
}

.naradh-icon-action--message {
  --naradh-icon-color: #0b6f94;
  --naradh-icon-hover-bg: rgba(11, 111, 148, 0.11);
}

.naradh-icon-action--voice {
  --naradh-icon-color: #12715a;
  --naradh-icon-hover-bg: rgba(18, 113, 90, 0.11);
}

.naradh-icon-action--video {
  --naradh-icon-color: #3159b8;
  --naradh-icon-hover-bg: rgba(49, 89, 184, 0.1);
}

.naradh-icon-action--favourite {
  --naradh-icon-color: #9b6516;
  --naradh-icon-hover-bg: rgba(155, 101, 22, 0.12);
}

.naradh-icon-action--people {
  --naradh-icon-color: #6650b4;
  --naradh-icon-hover-bg: rgba(102, 80, 180, 0.1);
}

.naradh-icon-action--search {
  --naradh-icon-color: #38536d;
  --naradh-icon-hover-bg: rgba(56, 83, 109, 0.09);
}

.naradh-icon-action--more,
.naradh-icon-action--close {
  --naradh-icon-color: #334155;
  --naradh-icon-hover-bg: rgba(51, 65, 85, 0.1);
}

.naradh-icon-action--attach {
  --naradh-icon-color: #087990;
  --naradh-icon-hover-bg: rgba(8, 121, 144, 0.12);
}

.naradh-icon-action--emoji {
  --naradh-icon-color: #b45309;
  --naradh-icon-hover-bg: rgba(180, 83, 9, 0.13);
}

.naradh-action-overflow svg {
  width: 18px;
  height: 18px;
}

.naradh-action-menu-modal {
  background: rgba(10, 25, 38, 0.14);
}

.naradh-action-menu {
  width: min(310px, calc(100vw - 32px));
}

.naradh-action-menu > button {
  display: grid;
  align-items: center;
  min-height: 38px;
}

.filter-chip .filter-badge {
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  position: absolute;
  top: -5px;
  right: -5px;
  padding: 0 4px;
}

.naradh-chat-filter .filter-badge[hidden],
.naradh-chat-filter .naradh-chat-filter-count[hidden],
.naradh-chat-filter .naradh-chat-filter-count.empty,
.naradh-chat-filter .naradh-chat-filter-count[data-count="0"] {
  display: none !important;
}

.rail-button.active {
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--naradh-rail-active);
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55);
}

.rail-button:not(:disabled):hover,
.rail-profile-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rail-button:disabled {
  opacity: 0.48;
}

.rail-profile-button {
  border-radius: 50%;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #fff, #f8fbfd);
  color: var(--brand-red-deep);
  box-shadow:
    0 10px 24px rgba(82, 0, 10, 0.28),
    0 0 0 2px rgba(255, 255, 255, 0.24);
}

.rail-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
  filter: none;
}

.rail-button-notifications {
  color: var(--icon-bell);
}

.rail-button-chat {
  color: var(--icon-chat);
}

.rail-button-calls {
  color: var(--icon-call);
}

.rail-button-calendar {
  color: var(--icon-calendar);
}

.rail-button-cloud {
  color: var(--icon-cloud);
}

.rail-button-status {
  color: var(--icon-status);
}

.rail-button-groups {
  color: var(--icon-groups);
}

.profile-chip-avatar,
.profile-avatar-large,
.conversation-row-avatar,
.conversation-avatar,
.voice-call-avatar {
  overflow: hidden;
  isolation: isolate;
}

.profile-chip-avatar {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(145deg, #fff, #f1f7fb);
  color: var(--brand-red-deep);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(124, 11, 20, 0.1);
}

.profile-chip-avatar img,
.profile-avatar-large img,
.conversation-row-avatar img,
.conversation-avatar img,
.voice-call-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.rail-profile-button .profile-chip-avatar.has-image {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    inset 0 0 0 2px rgba(8, 119, 168, 0.15);
}

.rail-profile-button .profile-chip-avatar.has-image img {
  transform: scale(1.03);
}

.rail-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #102f3a;
  border-radius: 999px;
  background: var(--missed);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.inbox-column {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #fff;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 12px;
}

.inbox-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.inbox-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inbox-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-header,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-back-button {
  display: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  letter-spacing: 0;
}

.profile-chip,
.connection-state {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-panel label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.inbox-search {
  padding: 0 12px 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.search-row {
  position: relative;
  display: block;
}

.search-inline-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #647c86;
  pointer-events: none;
}

.search-inline-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-row input {
  width: 100%;
  padding-left: 42px;
}

.identity-panel {
  margin-bottom: 0;
}

.active-identity-card {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f7fbfc);
  box-shadow: 0 1px 0 rgba(20, 44, 62, 0.04);
}

.active-identity-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-type {
  width: fit-content;
  border: 1px solid #b9dfd2;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--brand-strong);
  background: #eefaf6;
  font-size: 12px;
  font-weight: 700;
}

.phone-panel {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.compact-title {
  padding: 0 0 10px;
}

.phone-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.phone-verification-dev-row {
  display: none;
}

.profile-identities-panel {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-identities-panel .compact-title {
  align-items: center;
}

.profile-identities-panel .compact-title button,
.profile-identity-form button,
.profile-identity-toggle,
.profile-identity-remove {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-identities-panel .compact-title button:hover,
.profile-identity-form button:hover,
.profile-identity-toggle:hover,
.profile-identity-remove:hover {
  border-color: #a9c6d9;
  background: #f5fbff;
}

.profile-identities-helper,
.profile-identities-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-identities-list {
  display: grid;
  gap: 8px;
}

.profile-identity-empty,
.profile-identity-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.profile-identity-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.profile-identity-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.profile-identity-row--primary {
  border-color: #b9dfd2;
  background: #f7fcfa;
}

.profile-identity-row--pending {
  border-color: #ead18d;
  background: #fffaf0;
}

.profile-identity-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #eaf7ff;
  color: #096d9f;
  font-size: 12px;
  font-weight: 800;
}

.profile-identity-icon--phone {
  background: #eafaf3;
  color: #08754f;
}

.profile-identity-icon--handle {
  background: #f1efff;
  color: #5a4ec7;
}

.profile-identity-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-identity-copy strong,
.profile-identity-copy > span:not(.profile-identity-badges) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-identity-copy strong {
  color: var(--text);
  font-size: 13px;
}

.profile-identity-copy span {
  color: var(--muted);
  font-size: 12px;
}

.profile-identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.profile-identity-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #d6e2e8;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f6f9fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-identity-badge--verified,
.profile-identity-badge--discoverable {
  border-color: #b9dfd2;
  background: #eefaf6;
  color: var(--brand-strong);
}

.profile-identity-badge--pending {
  border-color: #ead18d;
  background: #fff7df;
  color: #8a5a00;
}

.profile-identity-badge--revoked {
  border-color: #f1b8c0;
  background: #fff1f3;
  color: #b42334;
}

.profile-identity-badge--locked {
  border-color: #c6d9e1;
  color: #43606d;
}

.profile-identity-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-identity-toggle.active {
  border-color: #8cc9f1;
  background: #e9f7ff;
  color: #075f8d;
}

.profile-identity-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.profile-identity-remove {
  color: #b42334;
}

.profile-identity-lock {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-identity-form {
  display: grid;
  gap: 8px;
}

.profile-identity-form label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.profile-identity-form-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 8px;
}

.profile-identity-form select,
.profile-identity-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.status-line.error {
  color: #b42334;
}

.status-line,
.helper-text,
.typing-state {
  min-height: 22px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.typing-state {
  grid-row: 4;
  min-height: 20px;
  padding: 0 18px;
  margin: 0;
  background: #f6f9fb;
}

.typing-state.active {
  color: var(--brand-strong);
  font-weight: 700;
}

.typing-state.active::after {
  content: "...";
  display: inline-block;
  width: 18px;
  animation: typingPulse 1.2s steps(3, end) infinite;
  overflow: hidden;
  vertical-align: bottom;
}

@keyframes typingPulse {
  from { width: 0; }
  to { width: 18px; }
}

.helper-text {
  min-height: 0;
  margin: -2px 0 8px;
}

.messenger-search-stack .helper-text {
  margin: -4px 0 6px;
  color: #6a7b88;
  font-size: 11px;
  line-height: 1.35;
}

.search-results,
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-results {
  margin-top: 6px;
  max-height: min(280px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
}

.search-results.open {
  border: 1px solid rgba(198, 217, 225, 0.92);
  background: #fff;
  box-shadow: 0 10px 22px rgba(8, 72, 102, 0.08);
}

.search-suggestion {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  padding: 3px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.search-suggestion-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.search-suggestion:hover,
.search-suggestion.active {
  background: #eef7fa;
}

.search-identity-hint {
  display: block;
  margin-top: 2px;
  color: #5d7480;
  font-size: 11px;
  font-weight: 600;
}

.search-suggestion-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.naradh-person-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(216, 226, 233, 0.94);
  border-radius: 8px;
  padding: 7px 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.naradh-person-card--compact {
  min-height: 56px;
}

.naradh-person-card__avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.naradh-person-card__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.naradh-person-card__name,
.naradh-person-card__meta,
.naradh-person-card__hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-person-card__name {
  color: #17212b;
  font-size: 13px;
  font-weight: 700;
}

.naradh-person-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #516977;
  font-size: 11px;
  font-weight: 600;
}

.naradh-person-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 132px;
}

.contact-message-action,
.contact-save-action,
.contact-favourite-action,
.naradh-person-card__action {
  min-height: 26px;
  border: 1px solid #b9dfd2;
  border-radius: 7px;
  padding: 0 8px;
  background: #f4fbf8;
  color: var(--brand-strong);
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.contact-message-action {
  background: #eaf7ff;
  border-color: #a9cfe6;
  color: #075f8d;
}

.contact-message-action:hover,
.contact-save-action:hover {
  background: #e8f6f2;
}

.contact-save-action.saved {
  border-color: #c6d9e1;
  background: #f6f9fb;
  color: var(--muted);
}

.naradh-search-result-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  overflow: hidden;
}

.naradh-search-result-avatar {
  flex: 0 0 40px;
}

.naradh-search-result-main {
  min-width: 0;
  overflow: hidden;
}

.naradh-search-result-name,
.naradh-search-result-subtitle {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-search-result-subtitle {
  line-height: 1.25;
}

.naradh-search-result-actions {
  justify-self: end;
}

.naradh-search-result-action {
  min-width: 0;
}

.naradh-search-result-action--primary {
  border-color: #9dc9e4;
  background: #eaf7ff;
  color: #075f8d;
}

.naradh-search-result-action--secondary {
  border-color: #cbd9e2;
  background: #f8fbfc;
  color: #425767;
}

.contact-favourite-action {
  border-color: #f0d48a;
  background: #fff9e7;
  color: #7b5b00;
}

.contact-favourite-action.saved {
  border-color: #d4c17a;
  background: #fff4bf;
}

.calls-discovery-voice-action,
.calls-discovery-video-action {
  border-color: #a9cfe6;
  background: #eaf7ff;
  color: #075f8d;
}

.filter-chips {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 8px 0 2px;
}

.naradh-filter-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 18;
  width: min(220px, calc(100% - 6px));
  display: grid;
  gap: 4px;
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 10px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(8, 55, 78, 0.18);
}

.naradh-filter-more-menu > button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.naradh-filter-more-menu > button:hover,
.naradh-filter-more-menu > button:focus-visible {
  background: rgba(8, 119, 168, 0.08);
}

.filter-chip {
  justify-self: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.filter-chip svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  pointer-events: none;
}

.filter-chip.active {
  border-color: transparent;
  background: var(--naradh-icon-hover-bg);
  color: var(--naradh-icon-color);
}

.conversation-section {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  background: var(--naradh-panel-bg);
  border-top: 1px solid var(--naradh-border);
}

.section-title {
  padding: 9px 16px 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-title button {
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--naradh-accent);
  padding: 0 8px;
  box-shadow: none;
  font-size: 12px;
}

.conversation-list {
  overflow: auto;
  padding: 2px 8px 12px;
  scrollbar-color: rgba(100, 114, 130, 0.32) transparent;
  scrollbar-width: thin;
}

.list-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 58px;
  padding: 8px 9px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.list-item:hover,
.list-item.active {
  border-color: rgba(144, 171, 188, 0.52);
  background: var(--naradh-panel-soft);
  box-shadow: var(--naradh-shadow-soft);
}

.list-item.active {
  background: linear-gradient(90deg, rgba(11, 111, 148, 0.08), rgba(255, 255, 255, 0.96));
}

.conversation-row-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0f3f6, #e9f8ee);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.conversation-row-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.conversation-row-top,
.conversation-row-bottom {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.conversation-row-top small {
  min-width: max-content;
  color: var(--muted);
  font-size: 11px;
}

.conversation-row-time {
  justify-self: end;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.conversation-row-bottom {
  display: flex;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.conversation-row-top strong,
.conversation-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence-chip,
.conversation-presence-line,
.contact-info-presence-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-info-safe-identity {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.presence-chip {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  font-size: 11px;
}

.group-conversation-row .conversation-row-avatar {
  background: #e9f6f4;
  color: #075f86;
}

.channel-conversation-row .conversation-row-avatar {
  background: #eaf2ff;
  color: #155f9e;
}

.group-member-chip {
  width: auto;
  min-width: max-content;
  height: auto;
  color: var(--muted);
  white-space: nowrap;
}

.channel-label-chip {
  color: #155f9e;
}

.presence-dot {
  flex: 0 0 auto;
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}

.presence-dot--online {
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}

.presence-dot--away {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
}

.presence-dot--busy,
.presence-dot--busy {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}

.presence-dot--offline {
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.18);
}

.conversation-presence-dot {
  width: 13px;
  height: 13px;
}

.presence-subtle-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.conversation-row-top strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
}

.conversation-empty {
  margin: 12px;
  padding: 16px;
  border: 1px dashed #b9d5de;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fbfd;
  font-size: 13px;
}

.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.favourite-marker {
  color: #d97706;
  font-size: 12px;
}

.compact-empty {
  margin: 8px 0 0;
  padding: 12px;
  font-size: 12px;
}

.list-item strong,
.conversation-row-top small,
.conversation-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .conversation-row-avatar {
  display: grid;
  margin-top: 0;
  color: var(--brand-strong);
}

.list-item .conversation-row-copy > span,
.search-results .conversation-row-copy > span {
  min-width: 0;
}

.search-results .conversation-row-copy > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.chat {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-panel {
  position: absolute;
  left: 74px;
  bottom: 12px;
  z-index: 30;
  width: min(340px, calc(100% - 86px));
  max-height: calc(100% - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 31, 38, 0.22);
}

.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-panel-body {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.profile-summary strong,
.profile-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.call-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 4px;
  background: transparent;
}

.call-history-row:hover {
  border-color: var(--naradh-border);
  background: var(--naradh-panel-soft);
  box-shadow: var(--naradh-shadow-soft);
}

.call-history-row.missed {
  border-color: #fed7aa;
  background: var(--missed-soft);
}

.call-history-row.unread {
  box-shadow: inset 3px 0 0 var(--missed);
}

.call-history-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
  border: 0;
  padding: 7px 5px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.call-type-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(12, 87, 111, 0.12);
  background: #f0fbfc;
  color: #16677a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.call-type-icon.video {
  border-color: rgba(49, 89, 184, 0.14);
  background: #f2f6ff;
  color: #3159b8;
}

.call-type-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: #f0fbfc;
  color: #16677a;
  font-size: 10px;
  font-weight: 700;
}

.call-type-pill.video {
  background: #f2f6ff;
  color: #3159b8;
}

.call-back-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-strong);
  box-shadow: none;
  font-size: 0;
}

.call-back-button.video {
  color: #1d4ed8;
}

.call-back-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.utility-list-item {
  display: grid;
  gap: 3px;
  margin: 0 4px;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.utility-list-item strong,
.utility-list-item span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-list-item span {
  color: var(--muted);
  font-size: 12px;
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #eaf7fa, #fff);
  color: var(--brand-blue-deep);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(8, 72, 102, 0.14);
}

.app-panel {
  grid-row: 2 / 7;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, var(--naradh-panel-bg), var(--naradh-panel-muted));
}

.app-layout.cloud-active .app-panel {
  grid-row: 1 / 7;
  overflow: hidden;
  padding: 0;
  background: #f7fafc;
}

.app-layout.calendar-active .app-panel {
  grid-row: 1 / 7;
  overflow: hidden;
  padding: 0;
  background: var(--calendar-bg, #111827);
}

.app-layout.calendar-active .banner {
  display: none;
}

.app-panel-inner {
  max-width: 880px;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0 auto;
  border: 1px solid rgba(198, 217, 225, 0.82);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(8, 72, 102, 0.12);
}

.app-panel-inner h2 {
  margin: 0;
  font-size: 28px;
}

.app-panel-inner p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-metric-row {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff7ed;
}

.panel-metric-row span {
  color: var(--muted);
}

.panel-metric-row strong {
  color: var(--missed);
  font-size: 24px;
}

.notifications-panel {
  width: min(100%, 820px);
  max-width: 820px;
}

.notifications-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notifications-panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.notifications-panel-actions button,
.notification-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
}

.notifications-panel-actions button:not(:disabled):hover,
.notification-actions button:not(:disabled):hover {
  border-color: #b9dfd2;
  color: var(--brand-strong);
}

.notification-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(198, 217, 225, 0.85);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.notification-item.unread {
  border-color: rgba(26, 125, 102, 0.35);
  background: linear-gradient(180deg, #f7fffb, #fff);
}

.notification-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-align: left;
}

.notification-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-source-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(205, 218, 228, 0.9);
  border-radius: 999px;
  padding: 2px 7px;
  background: #f7fafc;
  color: #516977;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.notification-source-badge--group,
.notification-source-badge--channel,
.notification-source-badge--mention {
  border-color: rgba(7, 95, 141, 0.18);
  background: #eef8fc;
  color: #075f8d;
}

.notification-source-badge--call {
  border-color: rgba(211, 34, 50, 0.18);
  background: #fff6f7;
  color: #9b1424;
}

.notification-unread-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b8f70;
}

.notification-copy span {
  overflow-wrap: anywhere;
}

.notification-target-context {
  color: var(--brand-strong);
  font-weight: 700;
}

.notification-copy span,
.notification-main time,
.notification-empty span {
  color: var(--muted);
  font-size: 12px;
}

.notification-actions {
  display: inline-flex;
  gap: 6px;
}

.notification-empty {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(185, 213, 222, 0.95);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfc;
  color: var(--muted);
  max-width: 560px;
}

.notification-empty strong {
  color: var(--ink);
}

.notification-retry-button {
  justify-self: start;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--brand-strong);
}

.groups-panel,
.groups-layout-guard {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.groups-foundation-grid {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: 14px;
  overflow: hidden;
}

.groups-create-column,
.groups-list-column,
.groups-detail-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.group-create-form,
.group-channel-detail,
.group-channel-placeholder.empty {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.group-create-form h3 {
  font-size: 15px;
}

.group-create-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.group-create-form input,
.group-create-form textarea,
.group-create-form select,
.member-add-form input,
.rename-resource-dialog input,
.rename-resource-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 10px;
  padding: 10px 11px;
  background: #f8fbfd;
  color: var(--ink);
  font: inherit;
}

.group-create-form button,
.member-add-form button,
.member-actions button,
.danger-soft-action {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
}

.group-create-form button:disabled,
.member-add-form button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.danger-soft-action {
  justify-self: start;
  background: #fff1f2;
  color: #b42335;
  border: 1px solid rgba(180, 35, 53, 0.24);
}

.groups-list-heading,
.group-channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.groups-archive-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 10px;
  background: #f8fbfd;
}

.groups-archive-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 11px;
  font-weight: 900;
}

.groups-archive-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.groups-archive-tabs span {
  margin-left: 4px;
  color: var(--muted);
}

.muted-notification-chip {
  background: #f4f4f5;
  color: #52525b;
}

.group-channel-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rename-resource-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.rename-resource-dialog {
  width: min(460px, 100%);
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

.rename-resource-dialog form {
  display: grid;
  gap: 12px;
}

.notification-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.notification-settings-dialog {
  width: min(540px, 100%);
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
  padding: 18px;
}

.notification-settings-dialog form,
.notification-mode-options {
  display: grid;
  gap: 12px;
}

.notification-mode-options {
  border: 0;
  padding: 0;
}

.notification-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 10px;
  padding: 12px;
  background: #f8fbfd;
  color: var(--ink);
  font-size: 13px;
}

.notification-mode-card:has(input:checked) {
  border-color: rgba(30, 95, 122, 0.45);
  background: #eef8fb;
}

.notification-mode-card input {
  margin-top: 3px;
}

.notification-mode-card span {
  display: grid;
  gap: 3px;
}

.notification-mode-card strong {
  font-size: 13px;
}

.notification-mode-card small {
  color: var(--muted);
  line-height: 1.35;
}

.notification-settings-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
}

.notification-settings-state.error {
  background: #fff1f2;
  color: #b42335;
}

.naradh-conversation-info {
  position: fixed;
  inset: 0;
  z-index: 94;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.22);
}

.naradh-conversation-info__panel {
  box-sizing: border-box;
  width: min(420px, 100%);
  height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid rgba(198, 217, 225, 0.9);
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
  color: var(--ink);
}

.naradh-conversation-info__header,
.naradh-conversation-info__identity,
.naradh-conversation-info__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.naradh-conversation-info__header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(198, 217, 225, 0.72);
}

.naradh-conversation-info__header h2,
.naradh-conversation-info__identity h3,
.naradh-conversation-info__section h3,
.naradh-conversation-info__section h4 {
  margin: 0;
  letter-spacing: 0;
}

.naradh-conversation-info__section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 12px;
  background: #fbfdfe;
  padding: 14px;
}

.naradh-conversation-info__actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.naradh-conversation-info__meta {
  border-radius: 10px;
  padding: 10px 12px;
  background: #f3f8fb;
  font-size: 13px;
}

.naradh-conversation-info__meta span,
.naradh-conversation-info__empty span,
.naradh-conversation-info__note {
  color: var(--muted);
}

.naradh-conversation-info__empty {
  display: grid;
  gap: 4px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font-size: 13px;
}

.naradh-message-info {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.22);
}

.naradh-message-info__panel {
  width: min(460px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  overflow: auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  color: var(--ink);
}

.naradh-message-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 0;
}

.naradh-message-info__header h2,
.naradh-message-info__header p,
.naradh-message-info__section h3 {
  margin: 0;
  letter-spacing: 0;
}

.naradh-message-info__header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.naradh-message-info__close {
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
}

.naradh-message-info__body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.naradh-message-info__section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 12px;
  background: #fbfdfe;
  padding: 13px;
}

.naradh-message-info__row,
.naradh-message-info__participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
}

.naradh-message-info__row span,
.naradh-message-info__participant span,
.naradh-message-info__empty {
  color: var(--muted);
}

.naradh-message-info__status {
  text-align: right;
  color: var(--ink);
  font-weight: 600;
}

.naradh-message-info__status--sent {
  color: #b42335;
}

.naradh-message-info__status--delivered {
  color: #b7791f;
}

.naradh-message-info__status--read {
  color: #1570ef;
}

.naradh-message-info__status--pending {
  color: var(--muted);
}

.naradh-message-info__participants {
  display: grid;
  gap: 8px;
}

.naradh-message-info__participant {
  border-radius: 9px;
  background: #fff;
  padding: 9px 10px;
}

.naradh-message-info__participant strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-message-info__empty {
  margin: 0;
  font-size: 13px;
}

.naradh-forward-modal {
  position: fixed;
  inset: 0;
  z-index: 97;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.24);
}

.naradh-forward-panel {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  color: var(--ink);
  padding: 16px;
}

.naradh-forward-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.naradh-forward-panel__header h2,
.naradh-forward-panel__header p {
  margin: 0;
  letter-spacing: 0;
}

.naradh-forward-panel__header p,
.naradh-forward-preview small,
.naradh-forward-target__copy small,
.naradh-forward-status,
.naradh-forward-empty {
  color: var(--muted);
  font-size: 13px;
}

.naradh-forward-close,
.naradh-forward-send {
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
  font: inherit;
  cursor: pointer;
}

.naradh-forward-send {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.naradh-forward-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.naradh-forward-preview {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 12px;
  background: #fbfdfe;
  padding: 12px;
}

.naradh-forward-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-forward-target-search {
  width: 100%;
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.naradh-forward-target-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.naradh-forward-target {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.naradh-forward-target.selected {
  border-color: rgba(0, 131, 143, 0.7);
  background: #effbfc;
}

.naradh-forward-target:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.naradh-forward-target__avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef6f8;
  color: var(--accent-strong);
  font-weight: 700;
}

.naradh-forward-target__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.naradh-forward-target__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-forward-status {
  min-height: 18px;
  margin: 0;
}

.naradh-forward-status.error {
  color: #b42335;
}

.naradh-forward-actions {
  display: flex;
  justify-content: flex-end;
}

.naradh-conversation-member-list,
.naradh-shared-media-grid {
  display: grid;
  gap: 8px;
}

.naradh-conversation-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.naradh-conversation-member strong,
.naradh-conversation-member span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-conversation-member span {
  color: var(--muted);
  font-size: 12px;
}

.naradh-shared-media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.naradh-shared-media-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-align: left;
}

.naradh-shared-media-item img,
.naradh-shared-media-thumb,
.naradh-shared-media-file {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #eaf4f8;
}

.naradh-shared-media-thumb,
.naradh-shared-media-file {
  display: grid;
  place-items: center;
  color: var(--brand-blue-deep);
  font-size: 12px;
  font-weight: 800;
}

.naradh-shared-media-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mute-duration-section {
  display: grid;
  gap: 8px;
}

.mute-duration-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mute-duration-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-radius: 10px;
  padding: 0 10px;
  background: #f8fbfd;
  color: var(--ink);
  border: 1px solid rgba(198, 217, 225, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.rename-resource-dialog label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.group-channel-list,
.member-list {
  min-height: 0;
  max-width: 100%;
  display: grid;
  gap: 8px;
  overflow: auto;
}

.group-channel-list {
  max-height: min(58vh, 620px);
}

.member-list {
  max-height: min(34vh, 360px);
  padding-right: 2px;
}

.group-channel-row,
.member-row {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(198, 217, 225, 0.82);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.group-channel-row.active,
.group-channel-row:hover,
.group-channel-row:focus-visible {
  border-color: rgba(12, 116, 163, 0.35);
  background: #eef9fd;
}

.group-channel-avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.16), rgba(8, 119, 168, 0.08));
  color: var(--brand-blue-deep);
  font-size: 13px;
  font-weight: 900;
}

.group-channel-avatar.channel {
  background: linear-gradient(145deg, rgba(17, 167, 223, 0.18), rgba(14, 165, 132, 0.1));
}

.group-channel-avatar.large {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 18px;
}

.group-channel-avatar.mini {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 11px;
}

.group-channel-copy,
.member-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.member-copy em {
  color: var(--brand-blue);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.member-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.role-badge,
.status-badge {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f5fb;
  color: var(--brand-blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.status-badge.muted {
  background: #f1f5f9;
  color: #64748b;
}

.group-channel-copy strong,
.group-channel-copy small,
.member-copy strong,
.member-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-channel-copy small,
.member-copy small,
.group-channel-row time,
.group-channel-detail-header span,
.group-channel-placeholder span {
  color: var(--muted);
  font-size: 12px;
}

.group-channel-detail-header {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.group-channel-detail-header h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}

.group-channel-placeholder {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #f2f8fb;
  color: var(--muted);
}

.group-channel-placeholder span,
.helper-text,
.people-picker small,
.people-picker-status,
.group-chat-scope {
  overflow-wrap: anywhere;
  white-space: normal;
}

.member-add-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.member-actions button {
  width: auto;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 12px;
}

.member-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.member-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.member-actions button:disabled {
  opacity: 0.45;
}

.form-title-row,
.form-action-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.form-title-row button,
.form-action-row .secondary-button {
  background: #eef5f8;
  color: var(--ink);
}

.people-picker {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 8px;
}

.people-chip-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.people-chip,
.people-result {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.people-chip {
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  background: #f8fbfd;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.people-chip button {
  min-height: 26px;
  padding: 0 8px;
  background: #eef5f8;
  color: var(--muted);
}

.people-picker-empty,
.people-picker-status {
  color: var(--muted);
  font-size: 12px;
}

.people-picker-status.error {
  color: #b42335;
}

.people-picker-results {
  min-width: 0;
  display: none;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  border-radius: 12px;
}

.people-picker-results.open {
  display: grid;
}

.chat-people-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 25, 38, 0.34);
}

.chat-people-dialog {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-people-dialog form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.chat-people-dialog .people-picker-results {
  max-height: 230px;
  overflow: auto;
}

.conversation-more-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: start end;
  padding: 92px 22px 22px;
  background: rgba(10, 25, 38, 0.18);
}

.conversation-more-menu {
  width: min(340px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.conversation-more-menu header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.conversation-more-menu header strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-more-menu > button {
  min-height: 36px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.conversation-more-menu > button:not(:disabled):hover,
.conversation-more-menu > button:not(:disabled):focus-visible {
  border-color: rgba(12, 116, 163, 0.35);
  background: #eef9fd;
}

.people-result {
  width: 100%;
  border: 1px solid rgba(198, 217, 225, 0.86);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.people-result:hover,
.people-result:focus-visible {
  border-color: rgba(12, 116, 163, 0.35);
  background: #eef9fd;
}

.people-result.disabled,
.people-result:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.group-chat-panel {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.group-chat-timeline {
  min-width: 0;
  max-width: 100%;
  min-height: 220px;
  max-height: min(42vh, 460px);
  display: grid;
  align-content: start;
  gap: 9px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(198, 217, 225, 0.82);
  border-radius: 14px;
  background: #f8fbfd;
}

.group-chat-empty {
  display: grid;
  gap: 4px;
  align-self: center;
  justify-self: center;
  max-width: 360px;
  color: var(--muted);
  text-align: center;
}

.group-chat-empty strong {
  color: var(--ink);
}

.group-chat-empty.error strong {
  color: #b42335;
}

.group-chat-message {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.group-chat-message.mine {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.group-chat-bubble {
  min-width: 0;
  max-width: min(78%, 620px);
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(198, 217, 225, 0.78);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.group-chat-message.mine .group-chat-bubble {
  border-color: rgba(12, 116, 163, 0.28);
  background: #eaf8fd;
}

.group-chat-message.system-message {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.group-chat-message.system-message .group-chat-bubble {
  align-items: center;
  max-width: min(92%, 520px);
  background: rgba(231, 237, 242, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: #64748b;
  text-align: center;
}

.group-chat-bubble strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand-blue-deep);
  font-size: 12px;
}

.group-chat-body {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.42;
}

.group-chat-bubble time,
.group-chat-scope {
  color: var(--muted);
  font-size: 11px;
}

.group-chat-composer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.group-chat-composer textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  resize: vertical;
  border: 1px solid rgba(198, 217, 225, 0.95);
  border-radius: 12px;
  padding: 10px 11px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.group-chat-composer button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 900;
}

.group-chat-composer button:disabled,
.group-chat-composer textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.group-date-separator {
  margin: 2px 0;
}

.people-result span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.people-result em {
  margin-left: auto;
  color: var(--brand-blue-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.people-result strong,
.people-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .groups-foundation-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .member-add-form {
    grid-template-columns: 1fr;
  }

  .group-chat-bubble {
    max-width: 92%;
  }

  .group-chat-composer {
    grid-template-columns: 1fr;
  }
}

.cloud-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cloud-section-grid a,
.cloud-section-grid div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  border: 1px solid rgba(185, 213, 222, 0.9);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f4fbfd);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(8, 72, 102, 0.08);
}

.cloud-section-grid a:hover,
.cloud-section-grid a:focus-visible {
  border-color: var(--brand-blue-neon);
  box-shadow: 0 12px 26px rgba(8, 119, 168, 0.16);
}

.cloud-section-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.anamika-cloud-layout {
  display: block;
  height: 100%;
  min-height: 100%;
}

.anamika-cloud-main {
  min-width: 0;
  background: #fff;
}

.cloud-left-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 2px 0 12px;
}

.cloud-file-nav-sidebar {
  gap: 8px;
}

.anamika-cloud-main h2 {
  margin: 0;
}

.cloud-left-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cloud-left-heading strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cloud-refresh-inline {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #edf8fc;
  color: var(--brand-blue-deep);
  box-shadow: none;
  font-size: 12px;
}

.anamika-user-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 10px;
  padding: 8px;
  background: #f6fafc;
}

.cloud-create-button,
.cloud-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 9px;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
}

.cloud-create-button {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 119, 168, 0.15);
}

.cloud-secondary-link {
  justify-content: flex-start;
  color: var(--brand-blue-deep);
  background: transparent;
  font-size: 12px;
}

.anamika-user-card strong,
.anamika-user-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anamika-user-card span {
  color: var(--muted);
  font-size: 12px;
}

.cloud-nav-list {
  display: grid;
  gap: 2px;
}

.cloud-nav-list button,
.cloud-refresh-button {
  width: 100%;
  justify-content: flex-start;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.cloud-nav-list button:hover,
.cloud-nav-list button:focus-visible,
.cloud-refresh-button:hover,
.cloud-refresh-button:focus-visible {
  border-color: rgba(17, 167, 223, 0.22);
  background: #eef9fd;
}

.cloud-nav-list button.active {
  border-color: rgba(17, 167, 223, 0.2);
  background: #e9f6fc;
  color: var(--brand-blue-deep);
}

.cloud-tree-item.active {
  background: #eef9fd !important;
  color: var(--brand-blue-deep) !important;
}

.cloud-folder-tree {
  display: grid;
  gap: 5px;
  margin: -1px 0 2px 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(198, 217, 225, 0.9);
}

.cloud-tree-item {
  min-height: 30px !important;
  padding-left: 10px !important;
  color: var(--muted) !important;
  font-size: 12px;
}

.cloud-empty-small {
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.cloud-refresh-button {
  margin-top: 2px;
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.anamika-cloud-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  padding: 22px 24px;
  overflow: hidden;
  background: #f7fafc;
}

.anamika-cloud-header,
.anamika-cloud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.anamika-cloud-toolbar {
  align-items: stretch;
}

.cloud-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 999px;
  padding: 3px;
  background: #f5fbfd;
}

.cloud-tabs button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.cloud-tabs button.active {
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: 0 5px 15px rgba(8, 72, 102, 0.11);
}

.cloud-search-input {
  width: min(340px, 100%);
  border-radius: 999px;
}

.cloud-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 10px;
  background: #fff;
}

.cloud-table-heading {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 720px;
  padding: 14px 14px 10px;
  background: #fff;
}

.cloud-table-heading span {
  color: var(--muted);
  font-size: 12px;
}

.cloud-files-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.cloud-files-table th,
.cloud-files-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(220, 228, 236, 0.86);
  text-align: left;
  vertical-align: middle;
}

.cloud-files-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6fbfd;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cloud-files-table td {
  color: var(--ink);
}

.cloud-file-name {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 800;
}

.cloud-file-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(17, 167, 223, 0.16), rgba(8, 119, 168, 0.08));
  color: var(--brand-blue-deep);
  font-size: 10px;
  font-weight: 900;
}

.cloud-open-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef9fd;
  color: var(--brand-blue-deep);
  font-weight: 900;
  text-decoration: none;
}

.cloud-open-button:hover,
.cloud-open-button:focus-visible {
  background: var(--brand-blue);
  color: #fff;
}

.naradh-cloud-embedded-workspace {
  gap: 12px;
}

.naradh-cloud-content-surface {
  gap: 12px;
}

.naradh-cloud-content-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, auto);
  align-items: start;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(198, 217, 225, 0.72);
}

.naradh-cloud-title-block {
  min-width: 0;
}

.naradh-cloud-toolbar-primary,
.cloud-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cloud-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cloud-status-grid--compact {
  margin: 0;
}

.cloud-status-grid article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(198, 217, 225, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  background: color-mix(in srgb, #fff 94%, var(--brand-blue-soft) 6%);
  box-shadow: none;
}

.cloud-status-grid span,
.cloud-status-grid small {
  color: var(--muted);
  font-size: 12px;
}

.cloud-status-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 14px;
}

.naradh-cloud-browser-controls {
  display: grid;
  gap: 10px;
}

.naradh-cloud-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cloud-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cloud-sort-control select {
  min-height: 32px;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.cloud-sort-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cloud-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
}

.cloud-breadcrumb button,
.cloud-breadcrumb span[aria-current="page"] {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-breadcrumb button {
  min-height: 28px;
  border: 1px solid rgba(198, 217, 225, 0.8);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: none;
}

.cloud-breadcrumb-separator {
  color: var(--muted);
}

.cloud-view-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(198, 217, 225, 0.92);
  border-radius: 999px;
  padding: 3px;
  background: #f5fbfd;
}

.cloud-view-toggle button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
}

.cloud-view-toggle button.active {
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: 0 5px 14px rgba(8, 72, 102, 0.1);
}

.cloud-file-name small {
  display: block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.cloud-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cloud-open-button--secondary {
  background: transparent;
  border: 1px solid rgba(17, 167, 223, 0.25);
}

.cloud-file-icon--folder {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
  color: #92400e;
}

.cloud-file-icon--photo {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.08));
  color: #075985;
}

.cloud-file-icon--video {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.08));
  color: #5b21b6;
}

.cloud-file-icon--audio {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
  color: #047857;
}

.cloud-file-icon--document,
.cloud-file-icon--file {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.07));
  color: #1d4ed8;
}

.cloud-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 14px;
}

.cloud-file-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(198, 217, 225, 0.88);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.naradh-cloud-file-browser {
  box-shadow: none;
}

.cloud-file-card__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.cloud-file-nav-list {
  gap: 2px;
}

.cloud-file-nav-row,
.cloud-file-nav-child {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 32px;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 8px !important;
  background: transparent;
  color: var(--ink);
  box-shadow: none !important;
  text-align: left;
}

.cloud-file-nav-row:hover,
.cloud-file-nav-row:focus-visible,
.cloud-file-nav-child:hover,
.cloud-file-nav-child:focus-visible {
  background: rgba(17, 167, 223, 0.08) !important;
}

.cloud-file-nav-row.active,
.cloud-file-nav-child.active {
  background: rgba(17, 167, 223, 0.12) !important;
  color: var(--brand-blue-deep) !important;
}

.cloud-file-nav-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(17, 167, 223, 0.08);
  color: var(--brand-blue-deep);
  font-size: 10px;
  font-weight: 900;
}

.cloud-file-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.cloud-file-nav-chevron {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cloud-file-nav-group {
  position: relative;
  display: grid;
}

.cloud-file-nav-toggle {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 24px !important;
  min-height: 24px !important;
  border: 0 !important;
  border-radius: 5px !important;
  padding: 0 !important;
  justify-content: center !important;
  color: var(--muted) !important;
  font-size: 12px;
}

.cloud-file-nav-section-label {
  margin: 10px 8px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cloud-file-tree {
  gap: 1px !important;
  margin: 0 0 4px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}

.cloud-file-nav-child {
  grid-template-columns: calc(var(--cloud-tree-depth, 0) * 14px) 20px minmax(0, 1fr);
  min-height: 28px !important;
  color: var(--muted) !important;
  font-size: 12px;
}

.cloud-file-nav-indent {
  width: calc(var(--cloud-tree-depth, 0) * 14px);
}

.cloud-file-nav-empty {
  margin: 2px 0 6px 36px;
}

.naradh-cloud-embedded-browser {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.naradh-embedded-cloud-tree-panel {
  min-height: 0;
  overflow: auto;
  border-right: 1px solid rgba(198, 217, 225, 0.72);
}

.naradh-embedded-cloud-body-panel {
  min-width: 0;
  min-height: 0;
}

.naradh-embedded-cloud-body-panel .cloud-panel {
  min-height: 100%;
}

.naradh-embedded-cloud-body-panel .cloud-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.cloud-file-row-button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  text-align: left;
}

.cloud-file-row-button:hover,
.cloud-file-row-button:focus-visible {
  color: var(--brand-blue-deep) !important;
}

.cloud-file-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
}

.cloud-file-card__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cloud-file-card__copy strong,
.cloud-file-card__copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-file-card__copy small {
  color: var(--muted);
  font-size: 12px;
}

.cloud-file-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cloud-file-card__actions a {
  color: var(--brand-blue-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.cloud-empty-state {
  display: grid;
  gap: 5px;
  padding: 24px;
  color: var(--muted);
}

.cloud-empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.naradh-independent-cloud-browser {
  display: grid;
  grid-template-columns: minmax(244px, 286px) minmax(0, 1fr);
  height: 100%;
  min-height: calc(100dvh - 2px);
  overflow: hidden;
  padding: 0;
  background: #07101f;
  color: #dce8f5;
}

.naradh-independent-cloud-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid rgba(130, 154, 178, 0.2);
  background: #0b1628;
  overflow: hidden;
}

.naradh-independent-cloud-profile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.naradh-independent-cloud-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1fb6e8, #3ee0c5);
  color: #03111f;
  font-weight: 900;
}

.naradh-independent-cloud-profile strong,
.naradh-independent-cloud-profile span,
.naradh-independent-cloud-storage-card strong,
.naradh-independent-cloud-storage-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-independent-cloud-profile strong {
  display: block;
  color: #f7fbff;
  font-size: 15px;
}

.naradh-independent-cloud-profile span,
.naradh-independent-cloud-storage-card span,
.naradh-independent-cloud-storage-card small {
  color: #8da5bb;
  font-size: 12px;
  font-weight: 700;
}

.naradh-independent-cloud-create {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #21c4e8;
  color: #04131f;
  font-weight: 900;
  opacity: 0.72;
  box-shadow: none;
}

.naradh-independent-cloud-nav {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 3px;
  padding-right: 2px;
}

.naradh-independent-cloud-nav > button,
.naradh-independent-cloud-nav > section > button,
.naradh-independent-cloud-tree .cloud-file-nav-child {
  width: 100%;
  min-height: 32px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent;
  color: #b7c7d7 !important;
  box-shadow: none !important;
  text-align: left;
}

.naradh-independent-cloud-nav > button,
.naradh-independent-cloud-nav > section > button {
  justify-content: flex-start;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.naradh-independent-cloud-nav button.active,
.naradh-independent-cloud-tree .cloud-file-nav-child.active {
  background: rgba(33, 196, 232, 0.16) !important;
  color: #f7fbff !important;
}

.naradh-independent-cloud-tree {
  display: grid;
  gap: 2px;
  margin: 3px 0 9px;
}

.naradh-independent-cloud-tree .cloud-file-nav-child {
  grid-template-columns: calc(var(--cloud-tree-depth, 0) * 12px) 24px minmax(0, 1fr);
  min-height: 29px !important;
  padding: 0 8px !important;
}

.naradh-independent-cloud-tree .cloud-file-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #53d7ee;
}

.naradh-independent-cloud-storage-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(130, 154, 178, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.naradh-independent-cloud-storage-card strong {
  color: #f7fbff;
}

.naradh-independent-cloud-main {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(33, 196, 232, 0.12), transparent 34%),
    #07101f;
}

.naradh-independent-cloud-header,
.naradh-independent-cloud-toolbar,
.naradh-independent-cloud-folder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.naradh-independent-cloud-header h2 {
  margin: 0;
  color: #f8fbff;
  font-size: 28px;
  line-height: 1.1;
}

.naradh-independent-cloud-header p {
  margin: 5px 0 0;
  color: #8da5bb;
  font-size: 13px;
  font-weight: 700;
}

.naradh-independent-cloud-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.naradh-independent-cloud-toolbar {
  padding: 14px 0 10px;
}

.naradh-independent-cloud-toolbar .cloud-breadcrumb {
  color: #91a8ba;
}

.naradh-independent-cloud-toolbar .cloud-breadcrumb button {
  border-color: rgba(130, 154, 178, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #dce8f5;
}

.naradh-independent-cloud-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.naradh-independent-cloud-actions button,
.naradh-independent-cloud-open-link {
  min-height: 32px;
  border: 1px solid rgba(130, 154, 178, 0.26);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce8f5;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.naradh-independent-cloud-actions button.active {
  background: #eaf4fb;
  color: #07101f;
}

.naradh-independent-cloud-folder-title {
  min-height: 38px;
  color: #8da5bb;
  font-size: 13px;
}

.naradh-independent-cloud-folder-title strong {
  color: #f7fbff;
  font-size: 18px;
}

.naradh-independent-cloud-body {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(130, 154, 178, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.naradh-independent-cloud-body .cloud-files-table {
  width: 100%;
  color: #dce8f5;
}

.naradh-independent-cloud-body .cloud-files-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0d1b2e;
  color: #8da5bb;
}

.naradh-independent-cloud-body .cloud-files-table tbody tr {
  border-color: rgba(130, 154, 178, 0.14);
}

.naradh-independent-cloud-body .cloud-file-name strong {
  color: #f7fbff;
}

.naradh-independent-cloud-body .cloud-file-name small,
.naradh-independent-cloud-body td {
  color: #9fb2c5;
}

.naradh-cloud-sharing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(33, 196, 232, 0.12);
  color: #b7ecf8;
  font-size: 12px;
  font-weight: 800;
}

body.naradh-independent-cloud-browser-active .cloud-nav-host {
  display: none;
}

body.naradh-independent-cloud-browser-active #appPanel {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

body.naradh-independent-cloud-browser-active .app-layout.cloud-active {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.naradh-independent-cloud-browser-active .app-layout.cloud-active .sidebar {
  grid-template-columns: 64px;
  width: 64px;
  min-width: 64px;
}

body.naradh-independent-cloud-browser-active .app-layout.cloud-active .messenger-sidebar-pane {
  display: none;
}

body.naradh-independent-cloud-browser-active .app-layout.cloud-active .chat {
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.naradh-cloud-stopgap__surface {
  display: grid;
  min-height: min(620px, calc(100vh - 160px));
  place-items: center;
}

.naradh-cloud-stopgap__hero {
  width: min(680px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.naradh-cloud-stopgap__copy {
  display: grid;
  gap: 14px;
}

.naradh-cloud-stopgap__primary {
  width: fit-content;
  margin-top: 6px;
}

.naradh-cloud-stopgap__note {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.naradh-cloud-webui-embed-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  padding: 0;
}

.naradh-real-anamika-embed-shell {
  height: 100%;
  min-height: 0;
}

.naradh-cloud-webui-embed-surface {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: var(--naradh-bg);
}

.naradh-cloud-webui-embed-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 0 2px 6px;
  background: transparent;
  box-shadow: none;
}

.naradh-cloud-webui-embed-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.naradh-real-anamika-embed-bar {
  min-height: 40px;
}

.naradh-cloud-webui-embed-header .naradh-workspace__title {
  font-size: 18px;
  line-height: 1.1;
}

.naradh-cloud-webui-embed-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(185, 213, 222, 0.9);
  border-radius: 999px;
  color: #586a7b;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.naradh-cloud-webui-embed-frame-wrap {
  position: relative;
  min-width: 0;
  min-height: min(720px, calc(100dvh - 2px));
  height: calc(100dvh - 2px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #07101f;
  box-shadow: none;
}

.naradh-cloud-webui-embed-action-strip {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.naradh-cloud-webui-embed-action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #17324a;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(2, 12, 27, 0.18);
  pointer-events: auto;
}

.naradh-cloud-webui-embed-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.naradh-cloud-webui-embed-loading[hidden] {
  display: none;
}

.naradh-anamika-webui-embed {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(720px, calc(100dvh - 2px));
  border: 0;
  border-radius: 0;
  background: #07101f;
}

body.naradh-real-anamika-embed-active .cloud-nav-host {
  display: none;
}

body.naradh-real-anamika-embed-active #appPanel {
  width: 100%;
  padding: 0;
  overflow: hidden;
}

body.naradh-real-anamika-embed-active .naradh-workspace--cloud {
  padding: 0;
  gap: 0;
  min-height: 100dvh;
}

body.naradh-real-anamika-embed-active .app-layout.cloud-active {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.naradh-real-anamika-embed-active .app-layout.cloud-active .sidebar {
  grid-template-columns: 64px;
  width: 64px;
  min-width: 64px;
}

body.naradh-real-anamika-embed-active .app-layout.cloud-active .messenger-sidebar-pane {
  display: none;
}

body.naradh-real-anamika-embed-active .app-layout.cloud-active .chat {
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .naradh-cloud-webui-embed-surface {
    padding: 0;
  }

  .naradh-cloud-webui-embed-header {
    flex-wrap: wrap;
  }

  .naradh-cloud-webui-embed-frame-wrap,
  .naradh-anamika-webui-embed {
    min-height: 640px;
    height: 100dvh;
  }
}

.panel-primary-action {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(8, 119, 168, 0.18);
}

.banner {
  grid-row: 1;
  display: none;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--brand-strong);
  background: #eaf6f7;
}

.banner.show {
  display: block;
}

.banner.error {
  color: var(--danger);
  background: #fff1f0;
}

.naradh-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.naradh-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(185, 213, 222, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  text-align: left;
}

.naradh-toast-icon,
.notification-type-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #eef8f9;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 900;
}

.naradh-toast-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.naradh-toast-copy strong,
.naradh-toast-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-toast-copy small {
  color: var(--muted);
}

.naradh-toast-close {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.chat-header {
  grid-row: 2;
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdfe);
}

.conversation-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0f3f6, #dff6ec);
  color: var(--brand-strong);
  font-weight: 900;
}

.conversation-heading {
  min-width: 0;
  flex: 1;
}

.conversation-heading h2,
.conversation-heading span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-heading h2 {
  font-size: 20px;
  line-height: 1.15;
}

.conversation-heading span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.chat-header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0;
}

.voice-call-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-strong);
  font-size: 0;
}

.video-call-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-strong);
  font-size: 0;
  font-weight: 900;
}

.video-call-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.video-call-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.connection-state.online {
  color: var(--accent);
}

.connection-state.reconnecting {
  color: var(--warn);
}

.header-presence-status {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-color: rgba(148, 163, 184, 0.32);
  background: #fff;
  overflow: visible;
}

.header-presence-status.hidden {
  display: none;
}

.header-presence-dot {
  width: 14px;
  height: 14px;
  border-width: 3px;
}

.empty-state {
  grid-row: 3;
  align-self: center;
  justify-self: center;
  max-width: 500px;
  margin: 18px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.empty-state h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.messages {
  grid-row: 3;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: #f7f9fb;
}

.message-date-separator {
  align-self: stretch;
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
  pointer-events: none;
}

.message-date-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(260px, 86%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239, 246, 249, 0.92);
  color: #516b76;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.message {
  position: relative;
  max-width: min(560px, 76%);
  display: flex;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine {
  align-self: flex-end;
}

.message:not(.mine) {
  align-self: flex-start;
}

.message-bubble {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(198, 217, 225, 0.72);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 44, 62, 0.08);
}

.message.mine .message-bubble {
  border-color: #b9dfd2;
  border-radius: 18px 18px 6px 18px;
  background: #e8f8ef;
}

.message.system-message {
  align-self: center;
  max-width: min(520px, 86%);
}

.message.system-message .message-bubble {
  border-color: transparent;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--muted);
  box-shadow: none;
  text-align: center;
}

.channel-readonly-helper {
  align-self: center;
  border-style: solid;
  background: #f7fbff;
}

.channel-broadcast-message {
  max-width: min(680px, 88%);
}

.channel-broadcast-card {
  border-left: 4px solid #4f91cf;
}

.group-message-sender {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-strong);
  font-size: 0.78rem;
}

.message .body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message .meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.composer {
  grid-row: 5;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
  padding: 11px 16px 13px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.sending-as {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.attachment-menu {
  position: absolute;
  left: 12px;
  bottom: 58px;
  z-index: 20;
  width: min(350px, calc(100% - 24px));
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  border: 1px solid #c6d9e1;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9, 31, 38, 0.16);
}

.attachment-menu-section {
  display: grid;
  align-content: start;
  gap: 8px;
}

.attachment-menu-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.attachment-menu button {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  font-weight: 800;
  padding: 6px 10px;
}

.attach-option-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eaf7fa;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 900;
}

.attach-option-icon.image {
  background: #e9f8ee;
  color: #136d4b;
}

.attach-option-icon.video {
  background: #e9f0fb;
  color: #24528f;
}

.attach-option-icon.file {
  background: #f3f0ff;
  color: #5a3e9f;
}

.attach-option-icon.cloud {
  background: #eaf7fa;
}

.attach-option-icon.disabled {
  background: #eef2f6;
  color: #8a9aa8;
}

.attachment-menu button:hover:not(:disabled) {
  border-color: #62b6c7;
  background: #f4fbf8;
}

.attachment-menu button:disabled {
  border-style: dashed;
  background: #f8fafc;
  color: #8a9aa8;
  cursor: not-allowed;
}

.attachment-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #b9dfd2;
  border-radius: 12px;
  padding: 9px 11px;
  background: #eefaf6;
}

.attachment-preview strong,
.attachment-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview span {
  color: var(--muted);
  font-size: 12px;
}

.attachment-preview button {
  min-height: 30px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid #b9dfd2;
  color: var(--brand-strong);
  box-shadow: none;
}

.attachment-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  border: 1px solid #c6d9e1;
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.attachment-card:hover,
.attachment-card:focus-visible {
  border-color: #62b6c7;
  box-shadow: 0 8px 18px rgba(24, 91, 104, 0.12);
  outline: none;
}

.compact-media-card {
  max-width: 100%;
}

.attachment-card.image-attachment,
.attachment-card.video-attachment {
  grid-template-columns: minmax(0, 1fr);
  width: min(260px, 100%);
  padding: 8px;
  overflow: hidden;
}

.attachment-thumbnail,
.attachment-video-thumb {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  background: #eaf7fa;
}

.attachment-thumbnail {
  display: block;
  object-fit: contain;
}

.attachment-video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 108, 136, 0.22), rgba(7, 31, 38, 0.92)),
    #082b33;
}

.attachment-video-thumb.preview-unavailable::before {
  content: "Video preview";
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.attachment-video-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #082b33;
}

.attachment-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-strong);
}

.attachment-play-badge::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.attachment-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf7fa;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.attachment-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.attachment-file-compact {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-right: 34px;
}

.attachment-copy strong,
.attachment-copy span,
.attachment-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-copy span,
.attachment-copy small {
  color: var(--muted);
  font-size: 12px;
}

.media-card-footer {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.media-download-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.media-download-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.media-card-meta,
.meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.media-status-dot,
.message-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
}

.status-delivered {
  background: #d97706;
}

.status-read {
  background: #2563eb;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
}

.icon-button svg,
.composer-attachment-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.attachment-icon-button {
  background: #fff;
}

.composer-input {
  position: relative;
  min-width: 0;
}

.group-mention-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 22;
  display: grid;
  gap: 4px;
  max-height: 274px;
  overflow: auto;
  border: 1px solid rgba(198, 217, 225, 0.94);
  border-radius: 12px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(8, 55, 78, 0.18);
}

.group-mention-option {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  padding: 6px 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.group-mention-option:hover,
.group-mention-option.active,
.group-mention-option:focus-visible {
  background: rgba(8, 119, 168, 0.08);
}

.group-mention-option span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.group-mention-option strong,
.group-mention-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-mention-option small,
.group-mention-empty {
  color: var(--muted);
  font-size: 12px;
}

.group-mention-empty {
  padding: 10px;
}

.naradh-mention-token {
  color: var(--brand-strong);
  font-weight: 800;
}

.composer-input input,
.composer-input textarea {
  min-height: 46px;
  border-radius: 999px;
  padding-right: 74px;
  background: #f7fbfc;
}

.composer-input textarea {
  width: 100%;
  min-height: 44px;
  max-height: 156px;
  resize: none;
  border: 0;
  padding: 12px 74px 10px 16px;
  color: var(--text);
  font: inherit;
  line-height: 1.35;
  background: transparent;
  box-shadow: none;
  outline: 0;
  overflow-y: hidden;
}

.composer-input textarea::placeholder {
  color: #8593a2;
}

.messenger-composer.composer--sending {
  opacity: 0.92;
}

.messenger-composer.composer--send-error .composer-input {
  border-color: rgba(197, 74, 74, 0.52);
}

.messenger-composer.composer--drag-active {
  background: #f0f9fc;
  box-shadow: inset 0 0 0 2px rgba(8, 119, 168, 0.22);
}

.naradh-composer-attachment-tray {
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
}

.naradh-composer-attachment-preview {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf7fa;
  color: #0b6f94;
  font-size: 10px;
  font-weight: 800;
}

.naradh-composer-attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.naradh-composer-attachment-preview--image {
  background: #f3f8fa;
}

.naradh-composer-attachment-preview--video {
  background: #e9f0fb;
  color: #24528f;
}

.naradh-composer-attachment-preview--file {
  background: #f4f7f9;
  color: #405367;
}

.naradh-composer-attachment-remove {
  white-space: nowrap;
}

.composer-send-busy {
  cursor: wait;
}

#sendButton {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
}

#sendButton svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

#sendButton.composer-mic-mode {
  background: #f3f8fa;
  color: var(--muted);
  box-shadow: none;
}

.message-counter {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.message-counter.warn {
  color: var(--warn);
}

.conversation-safety-actions {
  display: none;
}

.hidden {
  display: none !important;
}

.attachment-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 20, 26, 0.76);
}

.voice-call-modal {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 20, 26, 0.56);
}

.voice-call-modal.drag-positioned {
  display: block;
}

.voice-call-modal.call-window-floating {
  pointer-events: none;
  background: rgba(5, 20, 26, 0.28);
}

.voice-call-modal.call-window-floating .voice-call-panel,
.voice-call-modal.call-window-fullscreen .voice-call-panel {
  pointer-events: auto;
}

.voice-call-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 16px);
  display: grid;
  gap: 15px;
  border: 1px solid rgba(220, 228, 236, 0.9);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 31, 38, 0.28);
}

.voice-call-modal.drag-positioned .voice-call-panel {
  position: fixed;
  margin: 0;
}

.voice-call-modal.video-mode .voice-call-panel {
  width: min(640px, 100%);
  gap: 12px;
  padding: 18px;
}

.voice-call-modal.video-mode.call-window-floating .voice-call-panel,
.voice-call-modal.video-mode.call-window-fullscreen .voice-call-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
}

.voice-call-modal.call-window-fullscreen {
  display: block;
  padding: 0;
  background: rgba(5, 20, 26, 0.82);
}

.voice-call-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.voice-call-header.draggable-call-handle {
  cursor: grab;
  user-select: none;
}

.voice-call-modal.dragging-modal .voice-call-header.draggable-call-handle {
  cursor: grabbing;
}

.call-position-reset-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(36, 143, 232, 0.22);
  border-radius: 999px;
  padding: 0;
  background: #f4fbff;
  color: #18558c;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}

.call-window-icon-button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(36, 143, 232, 0.22);
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  color: #18558c;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}

.call-icon-control {
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

.call-icon-control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.call-window-icon-button:hover,
.call-window-icon-button:focus-visible {
  border-color: rgba(36, 143, 232, 0.46);
  background: #eaf7ff;
}

.call-position-reset-button:hover,
.call-position-reset-button:focus-visible {
  border-color: rgba(36, 143, 232, 0.46);
  background: #eaf7ff;
}

.voice-call-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e0f3f6, #dff6ec);
  color: var(--brand-strong);
  font-weight: 900;
}

.voice-call-header h2,
.voice-call-header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-call-header h2 {
  margin: 0 0 3px;
  font-size: 20px;
}

.voice-call-header span,
.voice-call-detail {
  color: var(--muted);
  font-size: 13px;
}

.voice-call-detail {
  margin: 0;
}

.video-call-stage {
  position: relative;
  min-height: clamp(300px, 52vh, 520px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 25% 20%, rgba(36, 143, 232, 0.24), transparent 34%),
    linear-gradient(135deg, #0f2845, #071827);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 48px rgba(7, 24, 39, 0.18);
}

.voice-call-modal.video-mode.call-window-floating .video-call-stage,
.voice-call-modal.video-mode.call-window-fullscreen .video-call-stage {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.video-call-stage.remote-waiting .remote-video {
  opacity: 0.28;
}

.video-call-stage.remote-camera-off .remote-video,
.video-call-stage.remote-video-unavailable .remote-video {
  opacity: 0.2;
  filter: grayscale(0.6);
}

.remote-video {
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 52vh, 520px);
  display: block;
  object-fit: cover;
  background: #071827;
}

.voice-call-modal.video-mode.call-window-floating .remote-video,
.voice-call-modal.video-mode.call-window-fullscreen .remote-video {
  min-height: 0;
  height: 100%;
}

.local-video {
  position: absolute;
  right: 14px;
  top: 14px;
  bottom: auto;
  width: clamp(118px, 22%, 176px);
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  object-fit: cover;
  background: #10263d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  cursor: grab;
  touch-action: none;
}

.video-call-stage.preview-dragging .local-video {
  cursor: grabbing;
}

.local-video.camera-off {
  opacity: 0.58;
  filter: grayscale(1);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #10263d, #071827);
}

.local-video-badge {
  position: absolute;
  right: 22px;
  top: 22px;
  bottom: auto;
  z-index: 2;
  max-width: min(140px, 30%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(7, 24, 39, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.local-preview-controls {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 4px;
  background: rgba(7, 24, 39, 0.56);
  backdrop-filter: blur(8px);
}

.local-preview-controls button {
  min-width: 26px;
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: none;
}

.local-preview-controls button:hover,
.local-preview-controls button:focus-visible,
.local-preview-controls button.active-preview-size {
  background: rgba(255, 255, 255, 0.3);
}

.call-window-resize-handle {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 18px;
  height: 18px;
  border-right: 3px solid rgba(36, 143, 232, 0.45);
  border-bottom: 3px solid rgba(36, 143, 232, 0.45);
  border-radius: 0 0 8px;
  cursor: nwse-resize;
}

.voice-call-modal.resizing-call-window .voice-call-panel {
  user-select: none;
}

.voice-call-modal.call-window-fullscreen .call-window-resize-handle {
  display: none;
}

.video-waiting-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.voice-quality-hint {
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(36, 143, 232, 0.24);
  border-radius: 12px;
  padding: 7px 11px;
  background:
    linear-gradient(135deg, rgba(36, 143, 232, 0.12), rgba(255, 255, 255, 0.94)),
    #f8fbff;
  color: #18558c;
  font-size: 13px;
  font-weight: 800;
}

.voice-quality-hint.good {
  border-color: rgba(16, 185, 129, 0.32);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.96));
  color: #047857;
}

.voice-quality-hint.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.96));
  color: #9a5b05;
}

.voice-quality-hint.error {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.96));
  color: #b4232c;
}

.voice-diagnostics-panel {
  border: 1px solid rgba(220, 228, 236, 0.9);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
}

.voice-diagnostics-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  color: #42616d;
}

.voice-diagnostics-panel summary::-webkit-details-marker {
  display: none;
}

.voice-diagnostics-panel summary::after {
  content: "+";
  float: right;
  color: var(--brand-blue);
  font-weight: 900;
}

.voice-diagnostics-panel[open] summary::after {
  content: "-";
}

.voice-diagnostics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 11px 11px;
  color: var(--muted);
  font-size: 11px;
}

.voice-diagnostics strong {
  color: var(--ink);
  font-weight: 800;
}

.voice-audio-enable {
  width: 100%;
  border: 1px solid rgba(14, 165, 167, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  background: #e7fbf7;
  color: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
}

.voice-call-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-call-controls {
  align-items: center;
  gap: 7px;
  padding-top: 2px;
}

.compact-call-controls button {
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0;
  font-size: 13px;
  font-weight: 850;
}

.compact-call-controls .compact-control {
  min-width: 42px;
}

.compact-call-controls .end-call-control {
  min-width: 48px;
}

.compact-call-controls .incoming-call-action {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  display: inline-grid;
  place-items: center;
  border: 0;
  color: #fff;
  box-shadow: 0 14px 30px rgba(3, 19, 23, 0.18);
}

.incoming-call-accept {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.incoming-call-reply {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #0f5562;
}

.incoming-call-reject {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.compact-call-controls .incoming-call-action:hover,
.compact-call-controls .incoming-call-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(3, 19, 23, 0.24);
}

.voice-quick-reply-menu {
  position: absolute;
  right: 54px;
  bottom: calc(100% + 10px);
  width: min(260px, calc(100vw - 44px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(3, 19, 23, 0.26);
  z-index: 8;
}

.voice-quick-reply-menu button {
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.voice-quick-reply-menu button:hover,
.voice-quick-reply-menu button:focus-visible {
  background: rgba(14, 165, 167, 0.1);
  color: var(--brand-strong);
  outline: none;
}

.compact-call-controls .active-off {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), #fff);
  color: #8a5207;
}

#voiceAcceptButton {
  background: var(--accent);
}

.primary-button {
  background: linear-gradient(135deg, var(--brand-blue), #0f7fd0);
  color: #fff;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

.danger-button {
  background: var(--danger);
  box-shadow: none;
}

.voice-call-panel audio {
  width: 100%;
}

.naradh-call-window {
  font-family: Arial, Helvetica, sans-serif;
}

.naradh-call-window .voice-call-panel {
  border-color: rgba(132, 161, 178, 0.24);
  background:
    radial-gradient(circle at 18% 8%, rgba(62, 191, 199, 0.2), transparent 34%),
    linear-gradient(150deg, #102233, #07141f 58%, #050d15);
  color: #f8fbff;
  box-shadow: 0 26px 82px rgba(3, 12, 20, 0.48);
}

.naradh-call-window .voice-call-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
}

.naradh-call-window .call-window-brand,
.naradh-call-window .voice-call-avatar {
  background: linear-gradient(145deg, rgba(81, 212, 187, 0.24), rgba(67, 147, 219, 0.2));
  color: #dffbf6;
  box-shadow: inset 0 0 0 1px rgba(223, 251, 246, 0.16);
}

.naradh-call-window .voice-call-header h2,
.naradh-call-window .call-ended-screen h3 {
  color: #ffffff;
}

.naradh-call-window .voice-call-header span,
.naradh-call-window .voice-call-detail,
.naradh-call-window .call-ended-screen p {
  color: rgba(226, 238, 247, 0.78);
}

.naradh-call-window .call-window-protection,
.naradh-call-duration {
  width: fit-content;
  border: 1px solid rgba(145, 210, 220, 0.2);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 250, 252, 0.82);
  font-size: 11px;
  font-weight: 850;
}

.naradh-call-duration {
  display: inline-flex !important;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.naradh-call-duration.hidden {
  display: none !important;
}

.naradh-call-window .call-window-icon-button,
.naradh-call-window .call-position-reset-button,
.naradh-call-window .secondary-button {
  border-color: rgba(210, 231, 242, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf8ff;
}

.naradh-call-window .call-window-icon-button:hover,
.naradh-call-window .call-window-icon-button:focus-visible,
.naradh-call-window .call-position-reset-button:hover,
.naradh-call-window .call-position-reset-button:focus-visible,
.naradh-call-window .secondary-button:hover,
.naradh-call-window .secondary-button:focus-visible {
  border-color: rgba(113, 210, 221, 0.48);
  background: rgba(113, 210, 221, 0.16);
  color: #ffffff;
}

.naradh-call-window .voice-quality-hint {
  border-color: rgba(145, 210, 220, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 250, 252, 0.88);
}

.naradh-call-window .voice-quality-hint.good {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(21, 128, 61, 0.2);
  color: #bbf7d0;
}

.naradh-call-window .voice-quality-hint.warn {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(146, 64, 14, 0.2);
  color: #fde68a;
}

.naradh-call-window .voice-quality-hint.error {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
}

.naradh-call-window .voice-diagnostics-panel {
  border-color: rgba(210, 231, 242, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 238, 247, 0.76);
}

.naradh-call-window .voice-diagnostics-panel summary,
.naradh-call-window .voice-diagnostics strong {
  color: #eaf8ff;
}

.naradh-call-window .video-call-stage {
  border-color: rgba(210, 231, 242, 0.16);
  background:
    radial-gradient(circle at 25% 20%, rgba(40, 173, 194, 0.26), transparent 34%),
    linear-gradient(135deg, #0b2237, #030b12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 48px rgba(0, 0, 0, 0.28);
}

.naradh-call-window .remote-video {
  object-fit: contain;
}

.naradh-call-window .video-call-stage.remote-landscape .remote-video {
  object-fit: cover;
}

.naradh-call-window .local-video {
  border-color: rgba(255, 255, 255, 0.86);
}

.naradh-call-window--incoming .voice-call-panel {
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.16), 0 26px 82px rgba(3, 12, 20, 0.48);
}

.naradh-call-window--voice .voice-call-panel {
  min-width: min(430px, calc(100vw - 32px));
}

.naradh-call-window--video .voice-call-panel {
  min-width: min(640px, calc(100vw - 32px));
}

.naradh-call-window--active .voice-call-panel {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 26px 82px rgba(3, 12, 20, 0.48);
}

.naradh-call-controls {
  align-items: center;
}

.naradh-call-control {
  touch-action: manipulation;
}

.naradh-call-window--ended .voice-call-panel {
  background:
    radial-gradient(circle at 22% 12%, rgba(148, 163, 184, 0.16), transparent 34%),
    linear-gradient(150deg, #13202d, #08121d 58%, #050b12);
}

.mini-call-overlay.naradh-call-mini {
  border: 1px solid rgba(210, 231, 242, 0.22);
  background:
    radial-gradient(circle at 18% 10%, rgba(62, 191, 199, 0.18), transparent 34%),
    linear-gradient(150deg, rgba(16, 34, 51, 0.98), rgba(5, 13, 21, 0.98));
  color: #f8fbff;
  box-shadow: 0 20px 60px rgba(3, 12, 20, 0.42);
}

.mini-call-overlay.naradh-call-mini .mini-call-copy span {
  color: rgba(226, 238, 247, 0.74);
}

.naradh-call-window--polished .voice-call-panel {
  font-family: Arial, sans-serif;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(150deg, #111827, #07111d 58%, #05070c);
  color: #f8fafc;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.52);
}

.naradh-call-window--polished .naradh-call-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto auto;
  gap: 9px;
  min-height: 40px;
}

.naradh-call-window--polished .call-window-brand,
.naradh-call-window--polished .voice-call-avatar {
  background: #0f766e;
  color: #ecfeff;
  box-shadow: none;
}

.naradh-call-window--polished .call-window-brand {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 15px;
}

.naradh-call-window--polished .naradh-call-identity h2 {
  margin: 0 0 2px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.15;
}

.naradh-call-window--polished .naradh-call-status,
.naradh-call-window--polished .naradh-call-duration,
.naradh-call-window--polished .call-window-protection {
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

.naradh-call-window--polished .call-window-protection {
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 118, 110, 0.16);
  white-space: nowrap;
}

.naradh-call-window--polished .voice-call-detail {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.76);
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
}

.naradh-call-window--polished .voice-quality-hint {
  min-height: 28px;
  border-color: transparent;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.7);
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.naradh-call-window--polished .naradh-call-network-hint {
  max-width: 100%;
}

.naradh-call-window--polished .voice-quality-hint.warn {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(120, 53, 15, 0.26);
  color: #fde68a;
}

.naradh-call-window--polished .voice-quality-hint.error {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
}

.naradh-call-window--polished .voice-quality-hint.good {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(20, 83, 45, 0.24);
  color: #bbf7d0;
}

.naradh-call-window--polished .naradh-call-video-stage {
  min-height: clamp(260px, 50vh, 500px);
  border-color: rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, #020617, #0f172a);
  box-shadow: none;
}

.naradh-call-window--polished .remote-video {
  background: #020617;
}

.naradh-call-window--polished .naradh-call-self-preview {
  right: 12px;
  top: 12px;
  width: clamp(112px, 22%, 168px);
  border: 1px solid rgba(248, 250, 252, 0.7);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.naradh-call-window--polished .local-video-badge {
  right: 18px;
  top: 18px;
  border-color: rgba(248, 250, 252, 0.42);
  background: rgba(2, 6, 23, 0.72);
  font-size: 10px;
}

.naradh-call-window--polished .local-preview-controls {
  left: 10px;
  top: 10px;
  opacity: 0.72;
  transform: scale(0.88);
  transform-origin: top left;
}

.naradh-call-window--polished .naradh-call-diagnostics-panel {
  border-color: rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.48);
}

.naradh-call-window--polished .naradh-call-diagnostics-toggle {
  padding: 7px 10px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

.naradh-call-window--polished .voice-diagnostics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
  font-size: 10px;
}

.naradh-call-window--polished .voice-diagnostics strong {
  color: rgba(248, 250, 252, 0.86);
}

.naradh-call-window--polished .naradh-call-controls {
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

.naradh-call-window--polished .naradh-call-control {
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
}

.naradh-call-window--polished .end-call-control {
  min-width: 46px;
  color: #fff;
  background: #dc2626;
}

.naradh-call-settings-button {
  color: #eaf8ff;
}

.active-call-settings-control {
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(15, 118, 110, 0.18);
  color: #ccfbf1;
}

.active-call-settings-control:hover,
.active-call-settings-control:focus-visible {
  border-color: rgba(94, 234, 212, 0.44);
  background: rgba(20, 184, 166, 0.24);
  color: #f0fdfa;
}

.naradh-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--naradh-modal-backdrop);
}

.naradh-settings-modal.hidden {
  display: none;
}

.naradh-settings-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 780px);
  overflow: hidden;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 18px;
  background: var(--naradh-modal-bg);
  color: var(--naradh-modal-text);
  box-shadow: 0 28px 86px rgba(2, 6, 23, 0.32);
}

.naradh-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--naradh-modal-border);
}

.naradh-settings-header h2 {
  margin: 0;
  color: var(--naradh-modal-text);
  font-size: 20px;
  line-height: 1.2;
}

.naradh-settings-header span,
.naradh-call-settings-helper {
  color: var(--naradh-modal-muted);
  font-size: 12px;
  line-height: 1.45;
}

.naradh-call-settings-helper {
  margin: 4px 0 0;
}

.naradh-settings-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: var(--naradh-modal-surface);
}

.naradh-call-device-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 14px;
  padding: 12px;
  background: var(--naradh-modal-bg);
  color: var(--naradh-modal-text);
}

.naradh-call-device-panel.hidden {
  display: none;
}

.naradh-call-device-panel__header,
.naradh-call-preview-header,
.naradh-call-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.naradh-call-device-panel__header,
.naradh-call-preview-header {
  justify-content: space-between;
}

.naradh-call-device-panel__header strong,
.naradh-call-preview-header h2 {
  margin: 0;
  color: var(--naradh-modal-text);
  font-size: 16px;
  line-height: 1.2;
}

.naradh-call-preview-header span {
  display: block;
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
}

.naradh-call-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.naradh-call-device-grid label {
  display: grid;
  gap: 5px;
  color: var(--naradh-modal-muted);
  font-size: 12px;
  font-weight: 800;
}

.naradh-call-device-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 9px;
  padding: 0 10px;
  background: var(--naradh-modal-input-bg);
  color: var(--naradh-modal-input-text);
  font: 13px Arial, sans-serif;
}

.naradh-call-device-select:disabled {
  opacity: 0.62;
}

.naradh-call-audio-preferences {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--naradh-modal-surface);
}

.naradh-call-device-range {
  width: 100%;
  accent-color: var(--naradh-accent);
}

.naradh-call-device-button {
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 9px;
  padding: 0 10px;
  background: rgba(20, 184, 166, 0.18);
  color: #ccfbf1;
  font: 700 12px Arial, sans-serif;
}

.naradh-call-device-button:disabled {
  background: var(--naradh-button-disabled-bg);
  color: var(--naradh-button-disabled-text);
  cursor: not-allowed;
}

.naradh-call-push-status {
  min-height: 16px;
  color: var(--naradh-modal-muted);
  font-size: 11px;
}

.naradh-call-settings-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.naradh-call-mic-meter {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.naradh-call-mic-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #67e8f9);
  transition: width 0.16s ease;
}

.naradh-call-device-error {
  margin: 0;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(127, 29, 29, 0.24);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.35;
}

.naradh-call-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.68);
}

.naradh-call-preview-modal.hidden {
  display: none;
}

.naradh-call-preview-panel {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(150deg, #111827, #07111d 58%, #05070c);
  color: #f8fafc;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.52);
  font-family: Arial, sans-serif;
}

.naradh-call-preview-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  background: #020617;
}

.naradh-call-preview-video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #020617;
  object-fit: contain;
}

.naradh-call-device-panel .naradh-call-preview-video {
  max-height: 160px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.naradh-call-preview-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #0f766e;
  color: #ecfeff;
  font-size: 32px;
  font-weight: 900;
}

.naradh-call-preview-actions {
  justify-content: flex-end;
}

.naradh-call-preview-actions .compact-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
}

.naradh-call-preview-spacer {
  flex: 1 1 auto;
}

@media (max-width: 560px) {
  .naradh-call-device-grid {
    grid-template-columns: 1fr;
  }

  .naradh-call-preview-actions {
    flex-wrap: wrap;
  }

  .naradh-call-preview-actions .primary-button,
  .naradh-call-preview-actions .secondary-button:not(.compact-control) {
    flex: 1 1 130px;
  }
}

.storage-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 31, 38, 0.5);
}

.storage-picker-panel {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 31, 38, 0.24);
}

.storage-picker-header,
.storage-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.storage-picker-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.storage-picker-header h2 {
  margin: 0;
  font-size: 18px;
}

.storage-picker-header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.storage-picker-body {
  overflow: auto;
  padding: 16px;
  background: #f7fbfc;
}

.storage-picker-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #b9d5de;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  color: var(--muted);
}

.storage-picker-empty strong {
  color: var(--ink);
}

.storage-picker-list {
  display: grid;
  gap: 10px;
}

.storage-file-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.storage-file-row:hover,
.storage-file-row:focus-visible {
  border-color: #62b6c7;
  box-shadow: 0 8px 18px rgba(24, 91, 104, 0.12);
  outline: none;
}

.storage-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #eaf7fa;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
}

.storage-file-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.storage-file-copy strong,
.storage-file-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-file-copy small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-viewer-panel {
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(9, 31, 38, 0.28);
}

.attachment-viewer-header,
.attachment-viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.attachment-viewer-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.attachment-viewer-header h2 {
  margin: 0;
  max-width: min(680px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.attachment-viewer-header span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.viewer-close-button,
.viewer-download-button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  text-decoration: none;
}

.viewer-close-button {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

.viewer-download-button {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.attachment-viewer-body {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 18px;
  background: #071f26;
}

.viewer-image,
.viewer-video {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 34px rgba(9, 31, 38, 0.14);
}

.viewer-video {
  width: min(860px, 100%);
  background: #071f26;
}

.viewer-frame {
  width: 100%;
  height: min(620px, calc(100vh - 190px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.viewer-fallback-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

/* N5.7 lively messenger polish: core Naradh chat only; Anamika cloud wiring is intentionally untouched. */
.app-layout:not(.cloud-active) .chat {
  border-color: var(--naradh-border);
  background: linear-gradient(180deg, var(--naradh-panel-bg), var(--naradh-panel-soft));
  box-shadow:
    var(--naradh-shadow-panel),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.app-layout:not(.cloud-active) .chat::before {
  content: "";
  position: absolute;
  inset: 78px 0 76px;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(180deg, rgba(246, 249, 251, 0.78), rgba(255, 255, 255, 0));
}

.list-item,
.call-history-row,
.attachment-menu button,
.attachment-card,
.storage-file-row,
.voice-call-button,
.ghost-icon-button,
.naradh-icon-action,
.icon-button {
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.list-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 58px;
  padding: 8px 9px;
}

.list-item::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.list-item:hover,
.list-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(144, 171, 188, 0.5);
  background: var(--naradh-panel-soft);
  box-shadow: var(--naradh-shadow-soft);
}

.list-item.active {
  border-color: rgba(11, 111, 148, 0.28);
  background:
    linear-gradient(90deg, rgba(11, 111, 148, 0.08), transparent 62%),
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.list-item.active::before {
  background: var(--naradh-accent);
  box-shadow: none;
}

.list-item.unread .conversation-row-top strong {
  color: #0b506e;
}

.list-item.unread .conversation-row-bottom {
  color: #335f72;
  font-weight: 650;
}

.conversation-row-avatar,
.conversation-avatar,
.voice-call-avatar,
.profile-chip-avatar,
.profile-avatar-large {
  border: 2px solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(145deg, #dff7ff, #e8fff4 58%, #ffffff);
  box-shadow:
    0 5px 12px rgba(8, 72, 102, 0.1),
    0 0 0 1px rgba(17, 167, 223, 0.12);
}

.conversation-row-avatar.has-image,
.conversation-avatar.has-image,
.voice-call-avatar.has-image,
.profile-chip-avatar.has-image,
.profile-avatar-large.has-image {
  background: #fff;
}

.conversation-row-top strong {
  font-weight: 650;
}

.conversation-preview {
  line-height: 1.3;
}

.unread-badge,
.rail-badge {
  background: linear-gradient(135deg, #ff7a1a, #e1261c);
  box-shadow: 0 8px 18px rgba(225, 38, 28, 0.24);
}

.messages {
  position: relative;
  gap: 8px;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, #f8fbfd 0%, #f2f7fa 100%);
}

.message {
  animation: naradh-message-enter 0.2s ease both;
}

.message-bubble {
  border-color: rgba(189, 207, 219, 0.72);
  border-radius: 19px 19px 19px 7px;
  padding: 11px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.98));
  box-shadow:
    0 5px 14px rgba(20, 44, 62, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.message.mine .message-bubble {
  border-color: rgba(108, 184, 152, 0.52);
  border-radius: 19px 19px 7px 19px;
  background:
    linear-gradient(180deg, #eefaf4, #e2f4ea);
  box-shadow:
    0 5px 14px rgba(23, 135, 103, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.message .body {
  line-height: 1.48;
}

.message .meta {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.composer {
  border-top-color: var(--naradh-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 20px rgba(8, 72, 102, 0.05);
}

.composer-input input,
.composer-input textarea {
  border-color: rgba(181, 202, 216, 0.9);
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(8, 72, 102, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.composer-input input:focus-visible,
.composer-input textarea:focus-visible {
  border-color: var(--brand-blue-neon);
  box-shadow:
    0 0 0 4px rgba(17, 167, 223, 0.13),
    0 9px 18px rgba(8, 72, 102, 0.1);
}

.icon-button:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-neon));
  box-shadow: 0 10px 22px rgba(8, 119, 168, 0.2);
}

.icon-button.naradh-icon-action:not(:disabled) {
  background: transparent;
  box-shadow: none;
}

.icon-button:not(:disabled):hover,
.voice-call-button:not(:disabled):hover,
.ghost-icon-button:not(:disabled):hover,
.attachment-menu button:hover:not(:disabled),
.attachment-card:hover {
  transform: translateY(-1px);
}

.attachment-menu {
  transform-origin: left bottom;
  animation: naradh-popover-in 0.18s ease both;
  border-color: rgba(180, 213, 224, 0.9);
  background:
    radial-gradient(circle at 92% 5%, rgba(17, 167, 223, 0.11), transparent 140px),
    #ffffff;
}

.attachment-menu-title {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.attachment-menu button {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.attachment-card {
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.attachment-preview {
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(23, 135, 103, 0.11), rgba(255, 255, 255, 0.96));
  box-shadow: 0 8px 18px rgba(23, 135, 103, 0.08);
}

.chat-header {
  border-bottom-color: var(--naradh-border);
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.voice-call-button {
  border-color: transparent;
  background: transparent;
  color: #12664b;
}

.call-history-row:hover,
.call-history-row:focus-within {
  transform: translateY(-1px);
}

.voice-call-modal:not(.hidden),
.attachment-viewer:not(.hidden),
.storage-picker-modal:not(.hidden) {
  animation: naradh-modal-fade 0.18s ease both;
}

.voice-call-panel,
.attachment-viewer-panel,
.storage-picker-panel {
  animation: naradh-panel-rise 0.2s ease both;
}

.empty-state,
.conversation-empty,
.storage-picker-empty,
.cloud-empty-state {
  background: #ffffff;
}

@keyframes naradh-message-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes naradh-popover-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes naradh-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes naradh-panel-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1024px) {
  .app-layout,
  .app-layout.cloud-active {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  }

  .chat-header-actions {
    gap: 6px;
  }

  .ghost-icon-button {
    padding-inline: 10px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow: hidden;
    overflow-x: hidden;
  }

  .naradh-shell {
    width: 100vw;
    max-width: 100vw;
    padding: 8px;
    gap: 8px;
  }

  .topbar {
    align-items: flex-start;
    border-radius: 12px;
  }

  .product-mark {
    display: none;
  }

  .product-copy h1 {
    font-size: 25px;
  }

  .app-layout,
  .app-layout.cloud-active {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
  }

  .sidebar {
    grid-column: 1 / -1;
    grid-row: 1;
    max-height: none;
    min-width: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 12px;
  }

  .app-layout.mobile-conversation-active .sidebar,
  .app-layout.mobile-panel-active .sidebar {
    grid-column: 1;
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .app-layout.mobile-conversation-active .inbox-column,
  .app-layout.mobile-panel-active .inbox-column {
    display: none;
  }

  .app-layout.mobile-conversation-active .sidebar,
  .app-layout.mobile-panel-active .sidebar {
    grid-template-columns: 54px;
  }

  .chat {
    display: none;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
  }

  .app-layout.mobile-conversation-active .chat,
  .app-layout.mobile-panel-active .chat {
    display: grid;
  }

  .notifications-panel,
  .notification-list {
    width: 100%;
    max-width: 100%;
  }

  .notifications-panel-header,
  .notification-item,
  .notification-main {
    grid-template-columns: 1fr;
  }

  .notifications-panel-header {
    display: grid;
  }

  .notification-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .inbox-column,
  .conversation-section,
  .conversation-list,
  .messages,
  .chat,
  .composer,
  .app-panel {
    min-width: 0;
    max-width: 100%;
  }

  .left-rail {
    padding: 8px 6px;
  }

  .rail-button,
  .rail-profile-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .profile-panel {
    left: 62px;
    width: min(320px, calc(100% - 70px));
  }

  .app-panel {
    padding: 10px;
    overflow: auto;
  }

  .anamika-cloud-layout {
    display: block;
  }

  .anamika-cloud-nav {
    max-height: none;
    overflow: auto;
    padding: 12px 10px;
  }

  .anamika-cloud-main {
    min-height: 0;
    padding: 14px 12px;
  }

  .anamika-cloud-header,
  .anamika-cloud-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cloud-search-input {
    width: 100%;
  }

  .message {
    max-width: 94%;
  }

  .composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 9px;
  }

  .attachment-menu {
    left: 8px;
    bottom: 58px;
    grid-template-columns: 1fr;
  }

  .chat-header-actions .ghost-icon-button {
    display: none;
  }

  .mobile-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(36, 143, 232, 0.28);
    background: #eef8fd;
    color: var(--brand-strong);
    box-shadow: none;
  }

  .conversation-avatar {
    width: 36px;
    height: 36px;
  }

  .chat-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 11px;
    gap: 9px;
  }

  .chat-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 122px;
  }

  .voice-call-button,
  .video-call-button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .conversation-heading h2 {
    font-size: 17px;
  }

  .voice-call-modal,
  .attachment-viewer,
  .storage-picker-modal {
    padding: 8px;
    overflow: hidden;
  }

  .voice-call-modal.drag-positioned {
    display: grid;
    place-items: center;
  }

  .voice-call-modal.call-window-floating,
  .voice-call-modal.call-window-fullscreen {
    pointer-events: auto;
    background: rgba(5, 20, 26, 0.56);
  }

  .voice-call-modal.drag-positioned .voice-call-panel {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: min(100%, calc(100vw - 16px)) !important;
    height: auto !important;
    margin: 0;
  }

  .voice-call-header.draggable-call-handle {
    cursor: default;
  }

  .call-position-reset-button {
    display: none;
  }

  .call-window-icon-button,
  .call-window-resize-handle,
  .local-preview-controls {
    display: none;
  }

  .voice-call-panel {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    overflow: auto;
    padding: 12px;
    gap: 10px;
    border-radius: 16px;
  }

  .voice-call-modal.video-mode .voice-call-panel {
    width: min(100%, calc(100vw - 16px));
    padding: 12px;
  }

  .video-call-stage,
  .remote-video {
    min-height: 0;
    height: min(46dvh, 330px);
    max-height: 330px;
  }

  .local-video {
    left: auto !important;
    right: 10px;
    top: 10px;
    bottom: auto;
    width: min(104px, 34%);
    height: auto !important;
    cursor: default;
  }

  .local-video-badge {
    left: auto !important;
    right: 17px;
    top: 17px;
    max-width: 38%;
  }

  .compact-call-controls {
    justify-content: center;
    gap: 6px;
  }

  .compact-call-controls button {
    flex: 1 1 104px;
    min-width: 0;
    padding-inline: 10px;
  }

  .voice-diagnostics {
    grid-template-columns: 1fr;
  }

  .attachment-card.image-attachment,
  .attachment-card.video-attachment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .naradh-shell {
    padding: 6px;
  }

  .app-layout,
  .app-layout.cloud-active {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 6px;
  }

  .sidebar,
  .app-layout.mobile-conversation-active .sidebar,
  .app-layout.mobile-panel-active .sidebar {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .app-layout.mobile-conversation-active .sidebar,
  .app-layout.mobile-panel-active .sidebar {
    grid-template-columns: 50px;
  }

  .rail-button,
  .rail-profile-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .chat-header {
    padding: 9px;
    gap: 7px;
  }

  .conversation-heading h2 {
    font-size: 15px;
  }

  .chat-header-actions {
    max-width: 94px;
  }

  .voice-call-button,
  .video-call-button {
    padding-inline: 8px;
  }

  .video-call-stage,
  .remote-video {
    height: min(40dvh, 270px);
    max-height: 270px;
  }

  .local-video {
    width: min(88px, 32%);
  }

  .local-video-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .compact-call-controls button {
    flex-basis: 92px;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* N6.5 messenger and call UX refinement */
.app-layout.calls-active .chat {
  background: #f7fafc;
}

.conversation-list {
  scroll-behavior: smooth;
}

.list-item {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-radius: 8px;
}

.list-item.active::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--brand-red);
}

.conversation-preview,
.conversation-row-top strong,
.conversation-row-bottom {
  min-width: 0;
}

.chat {
  background: linear-gradient(180deg, var(--naradh-panel-bg), var(--naradh-panel-soft));
}

.empty-state {
  align-self: center;
  justify-self: center;
  width: min(560px, calc(100% - 32px));
  border: 1px solid rgba(220, 228, 236, 0.95);
  background: rgba(255, 255, 255, 0.9);
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #e9f7fb;
  color: var(--brand-strong);
  font-size: 28px;
  font-weight: 900;
}

.empty-actions,
.call-ended-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.call-info-actions {
  flex: 0 0 auto;
}

.call-ended-actions {
  gap: 12px;
}

.call-ended-icon-action {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
}

.call-ended-icon-action svg {
  width: 20px;
  height: 20px;
}

.composer {
  align-items: center;
}

.emoji-button {
  background: #eef4f7;
  color: var(--brand-strong);
}

.calls-left-search,
.calls-left-section,
.recent-heading {
  padding: 10px 14px;
}

.calls-left-search input {
  border-radius: 999px;
  background: #f4f8fb;
}

.calls-left-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.calls-left-heading button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4f7;
  color: var(--brand-strong);
  box-shadow: none;
}

.call-favourite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.call-favourite-row span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.call-favourite-row small {
  color: var(--muted);
}

.calls-dashboard {
  width: min(980px, 100%);
  margin: 0 auto;
}

.naradh-detail-view,
.naradh-call-info-view,
.naradh-contact-info-view {
  width: 100%;
  max-width: none;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 2px;
  background: transparent;
  box-shadow: none;
}

.calls-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.calls-action-grid button {
  min-height: 86px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(20, 44, 62, 0.08);
}

.calls-action-grid button:not(:disabled):hover {
  border-color: #b5dbe7;
  color: var(--brand-strong);
}

.calls-privacy-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.call-info-header,
.call-info-contact-card,
.call-info-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-info-header {
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--naradh-border);
}

.calls-back-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(7, 92, 143, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-strong);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(7, 92, 143, 0.08);
}

.calls-back-button:hover,
.calls-back-button:focus-visible {
  border-color: rgba(7, 92, 143, 0.42);
  background: #eef8fc;
}

.call-info-contact-card {
  padding: 10px 2px 12px;
  border: 0;
  border-bottom: 1px solid var(--naradh-border);
  border-radius: 0;
  background: transparent;
}

.call-info-contact-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.call-info-contact-card span {
  color: var(--muted);
}

.call-info-timeline {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.call-info-timeline h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.call-info-timeline-row {
  min-height: 48px;
  padding: 7px 0;
  border-top: 1px solid rgba(221, 231, 238, 0.86);
}

.call-info-timeline-row > div {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.call-info-timeline-row span,
.call-info-timeline-row small {
  color: var(--muted);
}

.call-info-timeline-row button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.voice-call-modal {
  background: rgba(7, 13, 19, 0.22);
}

.voice-call-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(25, 34, 43, 0.98), rgba(10, 15, 22, 0.98));
  color: #f8fbfd;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.voice-call-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.call-window-brand,
.voice-call-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand));
  color: #fff;
  font-weight: 900;
}

.call-window-protection {
  margin-left: auto;
  color: #b7c5d2;
  font-size: 12px;
}

.call-window-icon-button,
.call-position-reset-button {
  min-width: 42px;
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f0f6;
  box-shadow: none;
}

.voice-call-detail,
.voice-quality-hint,
.voice-diagnostics-panel {
  color: #d4dee8;
}

.call-ended-screen {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center;
}

.call-ended-screen h3,
.call-ended-screen p {
  margin: 0;
}

.call-ended-screen p {
  color: #c7d3de;
}

.video-call-stage {
  background: #05080d;
}

.video-call-stage.ended-screen-hidden {
  display: none;
}

.remote-video {
  object-fit: contain;
  background: #05080d;
}

.video-call-stage.remote-portrait .remote-video {
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

.video-call-stage.remote-landscape .remote-video {
  width: 100%;
  height: 100%;
}

.local-video {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.compact-call-controls {
  gap: 10px;
}

.compact-call-controls button {
  min-height: 42px;
  border-radius: 999px;
}

.video-upgrade-control {
  background: #eef8ff;
  color: var(--brand-strong);
}

.mini-call-overlay {
  position: fixed;
  z-index: 90;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  width: 268px;
  min-height: 148px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(12, 18, 26, 0.96);
  color: #f8fbfd;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
  touch-action: none;
}

.mini-call-overlay.hidden {
  display: none;
}

.mini-call-media {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-radius: 12px;
  background: #060a10;
}

.mini-remote-video,
.mini-call-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-call-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1e293b, #0f766e);
  font-size: 28px;
  font-weight: 900;
}

.mini-local-video {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 42px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  object-fit: cover;
  background: #111827;
}

.mini-call-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.mini-call-copy strong,
.mini-call-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-call-copy span {
  color: #b7c5d2;
  font-size: 12px;
}

.mini-call-controls {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mini-call-overlay:hover .mini-call-controls,
.mini-call-overlay:focus-within .mini-call-controls {
  opacity: 1;
  transform: translateY(0);
}

.mini-call-controls button {
  flex: 1;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
  font-size: 12px;
}

.mini-call-controls .mini-settings-control {
  flex: 0 0 34px;
  padding: 0;
}

.mini-call-controls .mini-settings-control svg {
  width: 16px;
  height: 16px;
}

@media (hover: none) {
  .mini-call-controls {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .app-layout.calls-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .calls-action-grid {
    grid-template-columns: 1fr;
  }

  .call-info-contact-card,
  .call-info-header {
    align-items: flex-start;
  }

  .call-info-contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .call-info-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .mini-call-overlay {
    width: min(248px, calc(100vw - 16px));
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .voice-call-panel {
    border-radius: 14px;
  }

  .call-window-protection,
  .call-position-reset-button {
    display: none;
  }
}

/* N6.5A messenger layout regression repair */
.inbox-header {
  min-height: 76px;
  align-items: center;
}

.inbox-brand {
  display: inline-grid;
  gap: 3px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  justify-items: stretch;
  text-align: right;
}

.inbox-brand h1 {
  margin: 0;
  color: #13202b;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.inbox-brand span {
  margin: 0;
  color: #667789;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.inbox-actions {
  flex: 0 0 auto;
  align-self: center;
}

.chat {
  isolation: isolate;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.chat-header {
  position: relative;
  z-index: 3;
  min-height: 72px;
}

.chat-header-actions {
  min-width: max-content;
}

.messages {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.messages.hidden {
  display: none;
}

.empty-state {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100% - 40px));
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 28px;
  pointer-events: auto;
}

.empty-state.hidden {
  display: none;
}

.empty-actions {
  margin-top: 18px;
  align-items: center;
}

.empty-actions button {
  min-width: 128px;
}

.composer {
  z-index: 3;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
}

.composer .sending-as,
.composer .attachment-preview {
  grid-column: 1 / -1;
}

.composer-input {
  min-width: 0;
}

.composer-input input,
.composer-input textarea {
  min-width: 0;
  border-radius: 999px;
  padding-right: 72px;
}

.message-counter {
  right: 14px;
  white-space: nowrap;
}

#sendButton {
  min-width: 46px;
  min-height: 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
}

.message {
  max-width: min(620px, 78%);
}

.message-bubble,
.attachment-card {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.attachment-card img,
.attachment-card video {
  max-width: 100%;
}

@media (max-width: 760px) {
  .inbox-header {
    min-height: 70px;
    padding: 14px 12px 10px;
  }

  .inbox-brand h1 {
    font-size: 24px;
  }

  .chat-header {
    min-height: 68px;
    gap: 8px;
  }

  .chat-header-actions {
    gap: 5px;
  }

  .conversation-heading h2 {
    font-size: 17px;
  }

  .empty-state {
    width: min(420px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    padding: 22px 16px;
  }

  .empty-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .composer {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
  }

  .composer-input input,
  .composer-input textarea {
    min-height: 40px;
    padding-inline: 12px 58px;
  }

  #sendButton {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .message {
    max-width: min(92%, 520px);
  }
}

@media (max-width: 480px) {
  .chat-header-actions .connection-state {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }

  .composer {
    grid-template-columns: 38px 38px minmax(0, 1fr) 54px;
  }

  .filter-chips {
    gap: 3px;
  }

  .filter-chip {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .filter-chip svg {
    width: 15px;
    height: 15px;
  }
}

.message-bubble {
  position: relative;
}

.message-menu-button {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 21px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
}

.message:hover .message-menu-button,
.message:focus-within .message-menu-button {
  opacity: 1;
}

.message-action-menu {
  position: fixed;
  z-index: 70;
  width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.message-action-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.message-action-menu button:hover,
.message-action-menu button:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.reaction-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.reaction-picker button {
  text-align: center;
  font-size: 17px;
  padding: 7px 0;
}

.message-action-menu button.unavailable {
  color: #64748b;
  cursor: help;
}

.naradh-selection-toolbar {
  position: fixed;
  z-index: 68;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(76px, 9vh, 118px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(720px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  font-family: var(--naradh-font-family);
}

.naradh-selection-count {
  padding: 0 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.naradh-selection-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 0 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.naradh-selection-toolbar button:hover:not(:disabled),
.naradh-selection-toolbar button:focus-visible:not(:disabled) {
  border-color: rgba(8, 119, 168, 0.34);
  background: #eef8fb;
  color: #075f86;
  outline: none;
}

.naradh-selection-toolbar button.danger {
  border-color: rgba(220, 38, 38, 0.24);
  color: #991b1b;
}

.naradh-selection-toolbar button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.naradh-selection-error {
  flex-basis: 100%;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.naradh-message-select-check {
  position: absolute;
  top: 8px;
  left: -36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  border: 1px solid rgba(8, 119, 168, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #075f86;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.message.mine .naradh-message-select-check {
  right: -36px;
  left: auto;
}

.naradh-message--selected > .message-bubble {
  outline: 2px solid rgba(8, 119, 168, 0.28);
  background-clip: padding-box;
}

.naradh-message--selected .naradh-hover-reaction-picker {
  display: none;
}

@media (max-width: 720px) {
  .naradh-selection-toolbar {
    right: 10px;
    left: 10px;
    bottom: 72px;
  }

  .naradh-message-select-check,
  .message.mine .naradh-message-select-check {
    right: 4px;
    left: auto;
    top: -10px;
  }
}

.naradh-hover-reaction-picker {
  position: absolute;
  z-index: 24;
  top: -18px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(144, 171, 188, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.message.mine .naradh-hover-reaction-picker {
  right: 8px;
  left: auto;
}

.message:hover .naradh-hover-reaction-picker,
.message:focus-within .naradh-hover-reaction-picker,
.message:focus .naradh-hover-reaction-picker,
.naradh-hover-reaction-picker:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.naradh-hover-reaction-picker__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #17212b;
  box-shadow: none;
  font-size: 17px;
  line-height: 1;
}

.naradh-hover-reaction-picker__button:hover,
.naradh-hover-reaction-picker__button:focus-visible {
  background: rgba(8, 119, 168, 0.1);
  box-shadow: none;
  outline: none;
}

@media (hover: none) and (pointer: coarse) {
  .naradh-hover-reaction-picker {
    display: none;
  }
}

.reply-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--brand-strong);
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.96);
}

.reply-preview span,
.message-reply-quote span {
  display: block;
  font-size: 11px;
  color: #2563eb;
  font-weight: 800;
}

.reply-preview strong,
.message-reply-quote strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #334155;
}

.reply-preview button {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}

.message-reply-quote {
  width: 100%;
  border: 0;
  border-left: 3px solid rgba(37, 99, 235, 0.55);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.88);
  padding: 7px 9px;
  margin-bottom: 7px;
  text-align: left;
  cursor: pointer;
}

.message.deleted-message .message-bubble {
  background: #f8fafc;
  color: #64748b;
  font-style: italic;
}

.message-reactions {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  max-width: min(72%, 620px);
}

.message.mine .message-reactions {
  justify-content: flex-end;
}

.reaction-chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 3px 7px;
  font-size: 12px;
  cursor: pointer;
}

.reaction-chip.mine {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.message-highlight .message-bubble {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28), 0 8px 20px rgba(15, 23, 42, 0.08);
}

.message-search-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
}

.message-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.message-search-result:hover,
.message-search-result:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f8fbff;
  outline: none;
}

.message-search-result span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
}

.message-search-result small {
  color: #64748b;
  font-size: 11px;
}

.conversation-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.96);
}

.naradh-conversation-search__bar {
  display: contents;
}

.conversation-search-panel input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
}

.conversation-search-panel button {
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  padding: 7px 10px;
  cursor: pointer;
}

.conversation-search-count {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.naradh-conversation-search__results,
.conversation-search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-height: min(34vh, 320px);
  overflow: auto;
}

.naradh-conversation-search__notice,
.naradh-conversation-search__empty {
  margin: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #eef6fa;
  color: #475569;
  font-size: 12px;
}

.naradh-conversation-search__empty {
  background: #fff;
  border: 1px dashed rgba(148, 163, 184, 0.5);
}

.naradh-conversation-search__result {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(198, 217, 225, 0.9);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.naradh-conversation-search__result:hover,
.naradh-conversation-search__result:focus-visible,
.naradh-conversation-search__result.active {
  border-color: rgba(12, 116, 163, 0.35);
  background: #f4fbfd;
  outline: none;
}

.naradh-conversation-search__result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.naradh-conversation-search__result-top strong,
.naradh-conversation-search__snippet,
.naradh-conversation-search__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-conversation-search__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 7px;
  background: #e6f4f8;
  color: var(--brand-blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.naradh-conversation-search__snippet,
.naradh-conversation-search__meta {
  color: var(--muted);
  font-size: 12px;
}

.message-search-hit .message-bubble {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .conversation-search-panel {
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  }

  .conversation-search-count {
    grid-column: 1 / -1;
  }
}

/* N7.5B messenger UX layout redesign */
.messenger-sidebar-pane {
  border-right: 1px solid rgba(215, 226, 234, 0.9);
  background: #ffffff;
}

.messenger-sidebar-header {
  min-height: 68px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(220, 228, 236, 0.86);
}

.inbox-brand h1 {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}

.messenger-search-stack {
  display: grid;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(220, 228, 236, 0.72);
  background: #ffffff;
}

.messenger-search-stack .search-row input {
  min-height: 40px;
  border-color: rgba(202, 214, 224, 0.94);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.messenger-search-stack .search-row input:focus-visible {
  border-color: rgba(8, 119, 168, 0.52);
  background: #ffffff;
  outline: 3px solid rgba(8, 119, 168, 0.12);
}

.messenger-search-stack .helper-text {
  min-height: 0;
  margin: 0 2px;
  color: #7a8896;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.messenger-search-stack .status-line:empty,
.messenger-search-stack .helper-text:empty {
  display: none;
}

.filter-chips {
  grid-template-columns: repeat(7, minmax(30px, 1fr));
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(217, 227, 235, 0.96);
  border-radius: 14px;
  background: #f5f8fb;
}

.filter-chip {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  color: #566879;
}

.filter-chip.active {
  background: #ffffff;
  color: #075f86;
  box-shadow: 0 1px 4px rgba(20, 44, 62, 0.1);
}

.naradh-chat-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.naradh-chat-filter {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: #566879;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  scroll-snap-align: start;
}

.naradh-chat-filter--icon-only {
  position: relative;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  gap: 0;
  border-radius: 10px;
  padding: 0;
}

.naradh-chat-filter--icon-only svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.naradh-chat-filter:hover,
.naradh-chat-filter:focus-visible,
.naradh-chat-filter--active,
.naradh-chat-filter.active {
  border-color: rgba(8, 119, 168, 0.18);
  background: #ffffff;
  color: #075f86;
  box-shadow: 0 1px 4px rgba(20, 44, 62, 0.1);
  outline: none;
}

.naradh-chat-filter .filter-badge,
.naradh-chat-filter-count {
  position: static;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #dcebf3;
  color: #075f86;
  font-size: 10px;
}

.naradh-chat-filter--icon-only .filter-badge,
.naradh-chat-filter--icon-only .naradh-chat-filter-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border: 1px solid #ffffff;
  font-size: 9px;
  line-height: 13px;
}

.naradh-chat-filter-count.empty {
  background: #edf2f7;
  color: #8a97a5;
}

.mentions-only-chip {
  border-color: rgba(8, 119, 168, 0.18);
  background: #eef8fb;
  color: #075f86;
}

.muted-conversation-row .conversation-row-avatar {
  opacity: 0.82;
}

.naradh-filter-more-menu {
  width: min(210px, calc(100% - 8px));
  border-color: rgba(202, 214, 224, 0.96);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.16);
}

.messenger-list-section {
  border-top: 0;
  background: #ffffff;
}

.section-title {
  min-height: 38px;
  padding: 8px 14px 6px;
  color: #566879;
  font-size: 12px;
  font-weight: 800;
}

.section-title button,
#refreshButton {
  min-height: 28px;
  border: 1px solid rgba(202, 214, 224, 0.78);
  border-radius: 999px;
  padding: 0 9px;
  background: #ffffff;
  color: #0b6f94;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

#refreshButton:hover,
#refreshButton:focus-visible {
  background: #eef7fb;
  border-color: rgba(8, 119, 168, 0.22);
}

.conversation-list {
  padding: 4px 8px 12px;
}

.list-item,
.call-history-row,
.call-favourite-row {
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.list-item {
  min-height: 62px;
  padding: 8px 9px;
  gap: 10px;
}

.list-item::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.list-item:hover,
.call-history-row:hover,
.call-history-row:focus-within,
.call-favourite-row:hover {
  border-color: rgba(202, 214, 224, 0.72);
  background: #f7fbfd;
  box-shadow: none;
}

.list-item.active {
  border-color: rgba(8, 119, 168, 0.18);
  background: #eef7fb;
  box-shadow: none;
}

.list-item.active::before {
  background: #0b7fab;
}

.conversation-row-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(202, 214, 224, 0.86);
  background: linear-gradient(145deg, #eef9fb, #edf8f1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.conversation-row-copy {
  gap: 4px;
}

.conversation-row-top {
  gap: 10px;
}

.conversation-row-top strong {
  color: #17212b;
  font-size: 13.5px;
  font-weight: 800;
}

.conversation-row-time,
.conversation-row-top small {
  color: #7a8896;
  font-size: 10.5px;
  font-weight: 750;
}

.conversation-row-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  color: #667789;
  font-size: 12px;
}

.presence-chip,
.group-member-chip,
.channel-label-chip,
.muted-notification-chip,
.call-type-pill,
.unread-badge {
  min-width: auto;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.group-member-chip,
.channel-label-chip,
.muted-notification-chip,
.call-type-pill {
  padding: 4px 6px;
  background: #f1f6f9;
  color: #617386;
}

.channel-label-chip {
  background: #edf5ff;
  color: #1f669f;
}

.muted-notification-chip {
  background: #f6f1e7;
  color: #8a6317;
}

.unread-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
}

.call-history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 7px 8px;
}

.call-history-main {
  min-width: 0;
  padding: 0;
  gap: 10px;
}

.call-type-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 10px;
}

.call-type-pill {
  border: 0;
  box-shadow: none;
}

.call-back-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  align-self: center;
  border-radius: 999px;
}

.messenger-main-pane {
  background: #f8fafc;
}

.messenger-conversation-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(220, 228, 236, 0.9);
  background: #ffffff;
}

.messenger-conversation-header .conversation-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(202, 214, 224, 0.86);
  background: linear-gradient(145deg, #edf8fb, #edf8f1);
}

.messenger-conversation-header .conversation-heading h2 {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.18;
}

.messenger-conversation-header .conversation-heading span {
  color: #68788a;
  font-size: 12px;
}

.chat-header-actions {
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: #f7fafc;
}

.chat-header-actions .naradh-icon-action {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.header-presence-status {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.header-presence-dot,
.presence-dot {
  background: #6b7b8c;
  box-shadow: 0 0 0 2px rgba(107, 123, 140, 0.12);
}

.presence-dot--online,
.connection-state.online .header-presence-dot {
  background: #0f8f64;
  box-shadow: 0 0 0 2px rgba(15, 143, 100, 0.14);
}

.presence-dot--away {
  background: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.16);
}

.presence-dot--busy {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.presence-dot--offline {
  background: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.16);
}

.connection-state.reconnecting .header-presence-dot {
  background: #b7791f;
  box-shadow: 0 0 0 2px rgba(183, 121, 31, 0.14);
}

.empty-state {
  width: min(520px, calc(100% - 48px));
  padding: 16px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #e9f7fb;
  color: #0b6f94;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 850;
}

.empty-state p {
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.45;
}

.empty-actions button {
  min-height: 38px;
  border-radius: 10px;
  box-shadow: none;
}

.messenger-timeline {
  gap: 8px;
  padding: 18px 22px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f8fb 100%);
}

.message {
  max-width: min(640px, 68%);
}

.message-bubble {
  border-color: rgba(207, 219, 228, 0.9);
  border-radius: 17px 17px 17px 7px;
  padding: 9px 11px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 44, 62, 0.08);
}

.message.mine .message-bubble {
  border-color: rgba(163, 213, 197, 0.88);
  border-radius: 17px 17px 7px 17px;
  background: #e7f7f0;
}

.message.system-message .message-bubble {
  padding: 7px 12px;
  background: #edf3f6;
  color: #667789;
}

.message .meta {
  margin-top: 5px;
  color: #738293;
  font-size: 11px;
}

.message-date-chip {
  border: 1px solid rgba(220, 228, 236, 0.86);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.message-reply-quote {
  border-left-color: rgba(8, 119, 168, 0.45);
  background: rgba(239, 247, 251, 0.9);
}

.message.deleted-message .message-bubble {
  border-color: rgba(202, 214, 224, 0.76);
  background: #f6f8fa;
  color: #6f7f90;
  box-shadow: none;
}

.message-reactions {
  margin-top: 3px;
  gap: 4px;
}

.reaction-chip {
  border-color: rgba(202, 214, 224, 0.92);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 44, 62, 0.08);
}

.reaction-chip.mine {
  border-color: rgba(8, 119, 168, 0.3);
  background: #eef8fb;
}

.message-bubble .attachment-card--flat {
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  gap: 6px;
  overflow: visible;
}

.message-bubble .attachment-card--flat:hover,
.message-bubble .attachment-card--flat:focus-visible {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.message-bubble .attachment-card--flat.image-attachment,
.message-bubble .attachment-card--flat.video-attachment {
  width: min(360px, 100%);
  padding: 0;
}

.message-bubble .attachment-card--flat .attachment-thumbnail,
.message-bubble .attachment-card--flat .attachment-video-thumb {
  display: block;
  width: 100%;
  max-height: 320px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.message-bubble .attachment-card--flat .attachment-thumbnail {
  object-fit: contain;
}

.message-bubble .attachment-card--flat .attachment-video-thumb {
  background:
    linear-gradient(135deg, rgba(18, 108, 136, 0.18), rgba(7, 31, 38, 0.9)),
    #082b33;
}

.message-bubble .attachment-card--flat.file-attachment {
  width: min(340px, 100%);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.message.mine .message-bubble .attachment-card--flat.file-attachment {
  background: rgba(255, 255, 255, 0.2);
}

.message-bubble .attachment-card--flat .attachment-file-compact {
  padding-right: 30px;
}

.message-bubble .attachment-card--flat .attachment-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(234, 247, 250, 0.82);
}

.message-bubble .attachment-card--flat .media-card-footer {
  min-height: 18px;
  margin-top: 2px;
  padding: 0 2px;
}

.message-bubble .attachment-card--flat .media-download-icon {
  width: 33px;
  height: 33px;
  background: rgba(255, 255, 255, 0.7);
}

.message-reactions {
  align-self: flex-start;
  width: fit-content;
  max-width: min(100%, 620px);
  margin: 4px 0 0 8px;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.message.mine .message-reactions {
  align-self: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 8px;
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 1px 6px;
  border-color: rgba(202, 214, 224, 0.78);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  line-height: 1;
}

.reaction-chip.mine {
  background: rgba(238, 248, 251, 0.92);
}

.message {
  flex-direction: column;
  align-items: flex-start;
}

.message.mine {
  align-items: flex-end;
}

.message--attachment-message {
  width: fit-content;
  max-width: min(72vw, 420px);
}

.message.mine.message--attachment-message {
  align-self: flex-end;
}

.message.channel-broadcast-message.message--attachment-message {
  max-width: min(72vw, 420px);
}

.message-bubble--attachment-message {
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine .message-bubble--attachment-message,
.channel-broadcast-card.message-bubble--attachment-message {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.message--media-only,
.message--file-only {
  width: fit-content;
  max-width: min(72vw, 420px);
}

.message-bubble--attachment-only {
  position: relative;
  display: inline-grid;
  grid-template-columns: max-content;
  justify-items: start;
  width: fit-content;
  max-width: min(72vw, 420px);
}

.message.mine .message-bubble--attachment-only {
  justify-items: end;
}

.message-bubble--media {
  border: 0;
  border-left: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine .message-bubble--media {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.channel-broadcast-card.message-bubble--media {
  border-left: 0;
}

.message-bubble--media .attachment-card--flat,
.message-bubble--media .attachment-card--flat.image-attachment,
.message-bubble--media .attachment-card--flat.video-attachment {
  justify-self: start;
  width: fit-content;
  max-width: min(72vw, 420px);
  margin-top: 0;
}

.message.mine .message-bubble--media .attachment-card--flat {
  justify-self: end;
}

.message-bubble--media .attachment-thumbnail {
  width: auto;
  max-width: min(72vw, 420px);
  height: auto;
  max-height: 340px;
}

.message-bubble--media .attachment-video-thumb {
  width: min(72vw, 360px);
  max-width: min(72vw, 420px);
}

.message-bubble--media .group-message-sender {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  max-width: calc(100% - 48px);
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-bubble--file {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine .message-bubble--file {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-bubble--file .attachment-card--flat.file-attachment {
  width: min(72vw, 340px);
  margin-top: 0;
  padding-bottom: 34px;
}

.message-bubble--attachment-only .meta {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  backdrop-filter: blur(8px);
}

.message-bubble--media .meta {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.message-bubble--media .message-status-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.message--media-only .message-reactions,
.message--file-only .message-reactions {
  max-width: min(72vw, 420px);
  margin-top: 2px;
  margin-left: 0;
  margin-right: 0;
}

.message.mine.message--media-only .message-reactions,
.message.mine.message--file-only .message-reactions {
  margin-left: auto;
  margin-right: 0;
}

.message-bubble--attachment-only .message-menu-button {
  top: 5px;
  inset-inline-end: 5px;
  z-index: 5;
  width: 33px;
  height: 33px;
  font-size: 21px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
}

.message-bubble--attachment-only .media-card-actions {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 4;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.message-bubble--attachment-only .media-download-icon {
  background: rgba(255, 255, 255, 0.82);
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

.message-bubble--media .media-download-icon {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
}

.message-bubble--file .meta {
  bottom: 7px;
  right: 8px;
}

.message-bubble--file .media-card-actions {
  left: 8px;
  bottom: 8px;
}

.naradh-media-message {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, max-content);
  width: fit-content;
  max-width: min(72vw, 420px);
  overflow: hidden;
  border: 1px solid rgba(202, 214, 224, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.1);
}

.naradh-media-message--outgoing {
  justify-self: end;
  border-color: rgba(146, 207, 211, 0.72);
  background: rgba(232, 249, 249, 0.92);
}

.naradh-media-message__header,
.naradh-media-message__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.naradh-media-message__header {
  justify-content: flex-end;
  min-height: 28px;
  padding: 4px 5px 2px 8px;
}

.naradh-media-message--group-incoming .naradh-media-message__header {
  justify-content: space-between;
}

.naradh-media-message__sender {
  min-width: 0;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 800;
}

.message-bubble--attachment-only .naradh-media-message__menu.message-menu-button {
  position: static;
  inset: auto;
  width: 33px;
  height: 33px;
  font-size: 21px;
  flex: 0 0 auto;
  opacity: 1;
  background: rgba(255, 255, 255, 0.78);
}

.naradh-media-message__content {
  display: grid;
  min-width: 0;
  width: fit-content;
  max-width: min(72vw, 420px);
}

.naradh-media-message__content .body {
  margin: 0;
  padding: 0 8px 6px;
}

.naradh-media-message__content .message-reply-quote {
  width: auto;
  margin: 0 6px 6px;
}

.naradh-media-message .attachment-card--flat,
.naradh-media-message .attachment-card--flat.image-attachment,
.naradh-media-message .attachment-card--flat.video-attachment {
  margin: 0;
  justify-self: stretch;
}

.naradh-media-message .attachment-card--flat.file-attachment {
  width: min(72vw, 340px);
  margin: 0 6px;
  padding-bottom: 10px;
}

.naradh-media-message__footer {
  justify-content: space-between;
  min-height: 28px;
  padding: 3px 6px 5px;
}

.naradh-media-message__footer-left,
.naradh-media-message__footer-right {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.naradh-media-message__footer-right {
  justify-content: flex-end;
  margin-left: auto;
}

.message-bubble--attachment-only .naradh-media-message .meta {
  position: static;
  right: auto;
  bottom: auto;
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475569;
  box-shadow: none;
  backdrop-filter: none;
}

.naradh-media-message--media .message-status-dot {
  box-shadow: none;
}

.naradh-media-message__download.media-download-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f766e;
  box-shadow: none;
}

.naradh-media-message .message-reactions {
  align-self: auto;
  justify-self: start;
  width: fit-content;
  max-width: calc(100% - 12px);
  margin: 0 6px 6px;
}

.naradh-media-message--outgoing .message-reactions {
  justify-self: end;
  justify-content: flex-end;
}

.message-bubble--attachment-only .naradh-media-message {
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.message-bubble--attachment-only .naradh-media-message__content {
  position: relative;
  display: inline-grid;
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.message-bubble--attachment-only .naradh-media-message__sender {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  max-width: calc(100% - 40px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
}

.message-bubble--attachment-only .naradh-media-message__menu.message-menu-button {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 6;
}

.message-bubble--attachment-only .naradh-media-message .attachment-card--flat {
  margin: 0;
}

.message-bubble--attachment-only .naradh-media-message .attachment-card--flat.image-attachment,
.message-bubble--attachment-only .naradh-media-message .attachment-card--flat.video-attachment {
  width: fit-content;
  max-width: min(72vw, 420px);
  border: 0;
  background: transparent;
}

.message-bubble--attachment-only .naradh-media-message .attachment-thumbnail,
.message-bubble--attachment-only .naradh-media-message .attachment-video-thumb {
  display: block;
  width: auto;
  max-width: min(72vw, 420px);
  max-height: 340px;
}

.message-bubble--attachment-only .naradh-media-message .attachment-card--flat.file-attachment {
  width: min(72vw, 340px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(202, 214, 224, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.message-bubble--attachment-only .naradh-media-message__download.media-download-icon {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 5;
}

.message-bubble--attachment-only .naradh-media-message .naradh-media-message__meta {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 5;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

.message-bubble--attachment-only .naradh-media-message--file .naradh-media-message__meta {
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
}

.message-bubble--attachment-only .naradh-media-message__reactions.message-reactions {
  justify-self: start;
  max-width: min(72vw, 420px);
  margin: 3px 0 0;
}

.message-bubble--attachment-only .naradh-media-message--outgoing .naradh-media-message__reactions.message-reactions {
  justify-self: end;
}

.message.message--attachment-message,
.message.message--media-only,
.message.message--file-only,
.message.mine.message--attachment-message,
.message.mine.message--media-only,
.message.mine.message--file-only,
.group-thread-message.message--attachment-message,
.group-thread-message.message--media-only,
.group-thread-message.message--file-only,
.channel-broadcast-message.message--attachment-message,
.channel-broadcast-message.message--media-only,
.channel-broadcast-message.message--file-only {
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine.message--attachment-message,
.message.mine.message--media-only,
.message.mine.message--file-only {
  align-self: flex-end;
}

.message:not(.mine).message--attachment-message,
.message:not(.mine).message--media-only,
.message:not(.mine).message--file-only {
  align-self: flex-start;
}

.message.message--attachment-message > .message-bubble,
.message.message--media-only > .message-bubble,
.message.message--file-only > .message-bubble,
.group-thread-message.message--attachment-message > .message-bubble,
.group-thread-message.message--media-only > .message-bubble,
.group-thread-message.message--file-only > .message-bubble,
.channel-broadcast-message.message--attachment-message > .message-bubble,
.channel-broadcast-message.message--media-only > .message-bubble,
.channel-broadcast-message.message--file-only > .message-bubble {
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.message.message--attachment-message > .message-reactions,
.message.message--media-only > .message-reactions,
.message.message--file-only > .message-reactions {
  display: none;
}

.naradh-attachment-owned-frame {
  display: inline-grid;
  grid-template-columns: minmax(0, max-content);
  width: fit-content;
  max-width: min(72vw, 420px);
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.naradh-attachment-owned-frame__surface {
  position: relative;
  display: inline-grid;
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.naradh-visible-media-surface {
  position: relative;
  display: inline-grid;
  width: fit-content;
  max-width: min(72vw, 420px);
}

.naradh-media-object__media-box {
  position: relative;
  display: inline-grid;
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.naradh-media-object__media-box .attachment-card--flat {
  grid-area: 1 / 1;
}

.naradh-attachment-owned-frame__context {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: min(72vw, 420px);
  margin: 0 0 5px;
}

.naradh-attachment-owned-frame__context .body,
.naradh-attachment-owned-frame__context .message-reply-quote {
  position: relative;
  z-index: 4;
}

.naradh-attachment-owned-frame__context .body {
  margin: 0;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: #21313f;
}

.naradh-attachment-owned-frame__context .message-reply-quote {
  width: auto;
  margin: 0;
}

.naradh-attachment-owned-frame__surface .naradh-media-message__sender,
.naradh-attachment-owned-frame__surface .naradh-media-message__menu,
.naradh-attachment-owned-frame__surface .naradh-media-message__download,
.naradh-attachment-owned-frame__surface .naradh-media-message__meta {
  pointer-events: auto;
}

.naradh-attachment-owned-frame__reactions.message-reactions {
  justify-self: start;
  width: fit-content;
  max-width: min(72vw, 420px);
  margin: 3px 0 0;
  padding: 0;
}

.naradh-media-message--outgoing .naradh-attachment-owned-frame__reactions.message-reactions {
  justify-self: end;
  justify-content: flex-end;
}

.message-menu-button {
  background: rgba(255, 255, 255, 0.86);
  color: #566879;
  box-shadow: 0 1px 4px rgba(20, 44, 62, 0.12);
}

.message-bubble--attachment-only .naradh-media-object__media-box .naradh-media-message__sender {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  max-width: calc(100% - 34px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f4f59;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

.message-bubble--attachment-only .naradh-media-object__media-box .naradh-media-message__menu.message-menu-button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
  width: 27px;
  height: 27px;
  font-size: 21px;
  border: 0;
  background: transparent;
  color: #0f4f59;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

.message-bubble--attachment-only .naradh-media-object__media-box .naradh-media-message__download.media-download-icon {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 5;
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  color: #0f4f59;
  filter: none;
  box-shadow: none;
  backdrop-filter: none;
}

.message-bubble--attachment-only .naradh-media-object__media-box .naradh-media-message__meta {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 5;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e3a46;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

.message-bubble--attachment-only .naradh-media-message--file .naradh-media-object__media-box .naradh-media-message__sender,
.message-bubble--attachment-only .naradh-media-message--file .naradh-media-object__media-box .naradh-media-message__menu.message-menu-button,
.message-bubble--attachment-only .naradh-media-message--file .naradh-media-object__media-box .naradh-media-message__download.media-download-icon,
.message-bubble--attachment-only .naradh-media-message--file .naradh-media-object__media-box .naradh-media-message__meta {
  color: #334155;
  text-shadow: none;
  filter: none;
}

.message.message--clean-media,
.message.mine.message--clean-media,
.group-thread-message.message--clean-media,
.channel-broadcast-message.message--clean-media {
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message.mine.message--clean-media {
  align-self: flex-end;
}

.message--clean-media > .message-bubble {
  display: block;
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.clean-media-message {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: min(72vw, 420px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.clean-media-message--outgoing {
  align-items: flex-end;
}

.clean-media-context {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: min(72vw, 420px);
  margin: 0 0 5px;
}

.clean-media-context .body,
.clean-media-context .message-reply-quote {
  margin: 0;
}

.clean-media-box {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  box-shadow: none;
  cursor: pointer;
}

.clean-media-image,
.clean-media-video,
.clean-media-video video {
  display: block;
  max-width: min(70vw, 420px);
  height: auto;
  margin: 0;
}

.clean-media-image {
  max-height: 340px;
  border-radius: 10px;
  object-fit: contain;
}

.clean-media-video {
  position: relative;
  max-height: 340px;
  border-radius: 10px;
  overflow: hidden;
  background: #082b33;
}

.clean-media-file-card {
  display: block;
  width: min(70vw, 340px);
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(202, 214, 224, 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  line-height: normal;
}

.clean-media-sender,
.clean-media-menu.message-menu-button,
.clean-media-download.media-download-icon,
.clean-media-meta {
  position: absolute;
  z-index: 5;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  backdrop-filter: none;
}

.clean-media-sender {
  top: 6px;
  left: 6px;
  max-width: calc(100% - 36px);
  overflow: hidden;
  color: #0f4f59;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clean-media-menu.message-menu-button {
  top: 6px;
  right: 6px;
  width: 27px;
  height: 27px;
  color: #0f4f59;
  font-size: 21px;
  line-height: 1;
}

.clean-media-download.media-download-icon {
  bottom: 6px;
  left: 6px;
  width: 27px;
  height: 27px;
  color: #0f4f59;
}

.clean-media-download.media-download-icon svg {
  width: 22px;
  height: 22px;
}

.clean-media-meta {
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1e3a46;
  box-shadow: none;
  font-family: var(--naradh-font-family);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.clean-media-meta.meta,
.clean-media-box .clean-media-meta.meta,
.message--clean-media .clean-media-meta.meta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.clean-media-reactions.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: min(70vw, 420px);
  margin: 3px 0 0;
  padding: 0;
}

.clean-media-message--outgoing .clean-media-reactions.message-reactions {
  align-self: flex-end;
  justify-content: flex-end;
}

.messenger-composer {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(220, 228, 236, 0.9);
  background: #ffffff;
}

.messenger-composer .icon-button,
.messenger-composer #sendButton {
  box-shadow: none;
}

.messenger-composer .composer-input {
  min-height: 44px;
  border: 1px solid rgba(202, 214, 224, 0.94);
  border-radius: 999px;
  background: #f8fafc;
}

.messenger-composer .composer-input:focus-within {
  border-color: rgba(8, 119, 168, 0.42);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 119, 168, 0.1);
}

.messenger-composer .composer-input input,
.messenger-composer .composer-input textarea {
  min-height: 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.message-counter {
  color: #8a97a5;
  font-size: 10.5px;
  font-weight: 750;
}

.reply-preview {
  border-left-color: #0b7fab;
  border-radius: 12px;
  background: #eef8fb;
}

.group-mention-menu {
  border-color: rgba(202, 214, 224, 0.96);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.14);
}

.naradh-mention-token {
  color: #0b6f94;
  font-weight: 850;
}

.naradh-detail-view,
.naradh-call-info-view,
.naradh-contact-info-view {
  padding: 14px 18px;
  gap: 12px;
}

.call-info-header {
  min-height: 46px;
  margin-bottom: 0;
  padding: 0 0 10px;
}

.call-info-contact-card {
  padding: 12px 0;
}

.call-info-timeline-row {
  min-height: 46px;
}

@media (max-width: 760px) {
  .naradh-conversation-info {
    align-items: stretch;
  }

  .naradh-conversation-info__panel {
    width: 100%;
    border-left: 0;
  }

  .naradh-shared-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .naradh-person-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .naradh-person-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .messenger-conversation-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .messenger-conversation-header .chat-header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-end;
    border-radius: 14px;
  }

  .message {
    max-width: min(92%, 520px);
  }
}

/* N7.5C stable full-page layout and Brightlink brand rail */
:root {
  --brightlink-brand-red: #d32232;
  --brightlink-brand-blue: #075c8f;
  --brightlink-brand-cyan: #00a9d6;
  --naradh-stable-page-bg: #ffffff;
  --naradh-stable-divider: rgba(205, 218, 228, 0.92);
  --naradh-rail-gradient: linear-gradient(180deg, #7f1020 0%, #a9152c 28%, #2d336f 64%, #075c8f 100%);
}

html,
body {
  background: var(--naradh-stable-page-bg);
}

.naradh-shell {
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  gap: 0;
  background: var(--naradh-stable-page-bg);
}

.app-layout,
.app-layout.cloud-active,
.app-layout.calls-active {
  height: 100vh;
  min-height: 0;
  gap: 0;
  grid-template-columns: minmax(342px, 408px) minmax(0, 1fr);
  background: var(--naradh-stable-page-bg);
}

.sidebar,
.app-layout.cloud-active .sidebar,
.app-layout.mobile-conversation-active .sidebar,
.app-layout.mobile-panel-active .sidebar {
  border: 0;
  border-right: 1px solid var(--naradh-stable-divider);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.left-rail {
  background:
    radial-gradient(circle at 30% 3%, rgba(255, 255, 255, 0.18), transparent 76px),
    radial-gradient(circle at 80% 92%, rgba(0, 169, 214, 0.16), transparent 96px),
    var(--naradh-rail-gradient);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.14);
}

.left-rail .rail-button,
.left-rail .rail-profile-button {
  color: rgba(255, 255, 255, 0.82);
}

.left-rail .rail-button.active {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, 0.72),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

.left-rail .rail-button:not(:disabled):hover,
.left-rail .rail-profile-button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.rail-profile-button {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, #ffffff, #edf7fb);
  color: #075c8f;
  box-shadow: 0 8px 18px rgba(4, 31, 54, 0.2);
}

.profile-chip-avatar {
  color: #075c8f;
}

.rail-badge {
  border-color: #ffffff;
  background: #d32232;
  color: #ffffff;
}

.inbox-column,
.messenger-sidebar-pane {
  height: 100vh;
  border-right: 0;
  background: #ffffff;
}

.messenger-sidebar-header,
.messenger-search-stack,
.messenger-list-section {
  background: #ffffff;
}

.messenger-sidebar-header {
  min-height: 64px;
  padding: 12px 14px 9px;
}

.messenger-search-stack {
  padding: 9px 12px 7px;
}

.conversation-section,
.messenger-list-section {
  min-height: 0;
}

.conversation-list {
  padding: 4px 7px 10px;
}

.chat,
.messenger-main-pane,
.app-layout.cloud-active .chat,
.app-layout.calls-active .chat,
.app-layout:not(.cloud-active) .chat,
.app-layout.mobile-conversation-active .chat,
.app-layout.mobile-panel-active .chat {
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  box-shadow: none;
}

.app-layout:not(.cloud-active) .chat::before {
  display: none;
}

.messenger-conversation-header,
.chat-header {
  border-radius: 0;
  box-shadow: none;
}

.app-panel {
  padding: 16px 18px;
  background: #f8fafc;
}

.naradh-detail-view,
.naradh-call-info-view,
.naradh-contact-info-view {
  min-height: 100%;
  padding: 12px 16px;
}

.empty-state {
  max-width: 520px;
  border-radius: 0;
}

.messenger-timeline,
.messages {
  background: #f8fafc;
}

.messenger-composer,
.composer {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .app-layout,
  .app-layout.cloud-active,
  .app-layout.calls-active {
    grid-template-columns: minmax(318px, 380px) minmax(0, 1fr);
  }
}

/* N7.5D stable workspace UX across non-chat windows */
.naradh-workspace {
  width: 100%;
  max-width: none;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 14px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  background: transparent;
  box-shadow: none;
}

.naradh-workspace__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--naradh-stable-divider);
}

.naradh-workspace__header > div:first-child {
  min-width: 0;
}

.naradh-workspace__eyebrow {
  margin: 0 0 5px;
  color: #617386;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.naradh-workspace__title {
  margin: 0;
  color: #17212b;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
}

.naradh-workspace__subtitle {
  max-width: 760px;
  margin: 6px 0 0;
  color: #667789;
  font-size: 13px;
  line-height: 1.45;
}

.naradh-workspace__actions,
.naradh-workspace__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.naradh-workspace__body {
  min-height: 0;
}

.naradh-workspace__section {
  border: 1px solid rgba(215, 226, 234, 0.86);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.naradh-workspace-list {
  min-height: 0;
  overflow: auto;
}

.naradh-workspace-row {
  border-radius: 10px;
  background: #ffffff;
}

.naradh-workspace-card {
  border: 1px solid rgba(215, 226, 234, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.notifications-panel,
.groups-panel,
.calendar-panel,
.calls-dashboard {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.notifications-panel-header,
.groups-panel-header {
  margin: 0;
}

.notifications-panel-actions button,
.notification-actions button,
.groups-panel-header button {
  min-height: 34px;
  border-radius: 10px;
  box-shadow: none;
}

.panel-metric-row {
  width: min(300px, 100%);
  min-height: 56px;
  margin: 0;
  padding: 11px 13px;
  border-color: rgba(215, 226, 234, 0.88);
  background: #ffffff;
}

.notification-list {
  gap: 8px;
  padding: 0;
}

.notification-item {
  border-color: rgba(215, 226, 234, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.notification-empty,
.cloud-empty-state {
  border: 1px dashed rgba(190, 207, 219, 0.9);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  box-shadow: none;
}

.naradh-workspace--calls {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.calls-page-stabilized {
  min-height: 0;
}

.calls-workspace-header {
  grid-row: auto;
}

.calls-action-grid,
.naradh-workspace--calls .calls-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
}

.calls-page-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.calls-page-search {
  min-width: 0;
}

.calls-page-search input,
.calls-left-search input {
  width: 100%;
  min-width: 0;
}

.calls-page-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calls-page-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.calls-page-filters button.active {
  border-color: #a9cfe6;
  background: #eaf7ff;
  color: #075f8d;
}

.calls-page-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.calls-page-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.calls-page-section-heading {
  color: #516977;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.calls-discovery-section,
.calls-discovery-results {
  display: grid;
  gap: 8px;
}

.calls-discovery-section {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(205, 218, 228, 0.74);
}

.calls-discovery-status {
  border: 1px solid rgba(205, 218, 228, 0.92);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.calls-discovery-status.error {
  border-color: rgba(211, 34, 50, 0.24);
  background: #fff6f7;
  color: #9b1424;
}

.calls-left-discovery-section .naradh-person-card {
  grid-template-columns: 32px minmax(0, 1fr);
}

.calls-left-discovery-section .naradh-person-card__avatar {
  width: 32px;
  height: 32px;
}

.calls-left-discovery-section .naradh-person-card__actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.calls-page-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
}

.calls-page-empty--combined {
  min-height: 72px;
}

.call-history-row--workspace {
  border-color: var(--line);
  background: #fff;
  padding: 8px;
}

.calls-action-grid button {
  min-height: 52px;
  justify-content: flex-start;
  border: 1px solid rgba(205, 218, 228, 0.92);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: #17212b;
  box-shadow: none;
  text-align: left;
}

.calls-action-grid button:not(:disabled):hover,
.calls-action-grid button:not(:disabled):focus-visible {
  border-color: rgba(8, 119, 168, 0.28);
  background: #eef8fb;
  color: #075f86;
}

.calls-action-grid button:disabled {
  background: #f4f7fa;
  color: #8a97a5;
}

.calls-privacy-note {
  margin: 0;
  padding: 12px 14px;
  color: #667789;
  font-size: 13px;
}

.groups-foundation-grid {
  min-height: 0;
}

.groups-list-column,
.groups-detail-column,
.groups-create-column {
  border-color: rgba(215, 226, 234, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.groups-archive-tabs {
  margin: 0;
}

.calendar-panel .cloud-section-grid {
  align-content: start;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin: 0;
}

.calendar-panel .cloud-section-grid > div {
  min-height: 88px;
  border-color: rgba(215, 226, 234, 0.86);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.anamika-cloud-layout,
.naradh-workspace--cloud {
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: 18px 20px;
  background: transparent;
}

.anamika-cloud-main {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.anamika-cloud-header,
.anamika-cloud-toolbar {
  padding-inline: 0;
}

.anamika-cloud-toolbar {
  border-bottom: 0;
}

.cloud-table-wrap {
  min-height: 0;
  overflow: auto;
}

.cloud-files-table {
  background: #ffffff;
}

.cloud-section-grid {
  margin: 0;
}

@media (max-width: 980px) {
  .calls-page-toolbar {
    grid-template-columns: 1fr;
  }

  .calls-page-count {
    white-space: normal;
  }

  .calls-action-grid,
  .naradh-workspace--calls .calls-action-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .naradh-workspace {
    padding: 14px;
  }

  .naradh-workspace__header {
    display: grid;
    gap: 10px;
  }

  .naradh-workspace__actions,
  .naradh-workspace__toolbar {
    justify-content: flex-start;
  }

  .calls-action-grid,
  .naradh-workspace--calls .calls-action-grid,
  .cloud-status-grid,
  .calendar-panel .cloud-section-grid {
    grid-template-columns: 1fr;
  }

  .naradh-cloud-content-header {
    grid-template-columns: 1fr;
  }

  .naradh-cloud-toolbar-primary,
  .cloud-header-actions,
  .anamika-cloud-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-view-toggle,
  .naradh-cloud-control-row,
  .cloud-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .cloud-file-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .naradh-shell,
  .app-layout,
  .app-layout.cloud-active,
  .app-layout.calls-active,
  .sidebar,
  .messenger-sidebar-pane,
  .messenger-main-pane,
  .chat,
  .app-panel,
  .naradh-workspace,
  .naradh-workspace__body,
  .naradh-workspace__section,
  .naradh-workspace__toolbar,
  .notifications-panel,
  .groups-panel,
  .groups-create-column,
  .groups-list-column,
  .groups-detail-column,
  .calls-dashboard,
  .calls-page-stabilized,
  .calls-discovery-section,
  .calls-discovery-results,
  .calls-page-empty,
  .anamika-cloud-main,
  .cloud-table-wrap,
  .cloud-table-heading,
  .cloud-files-table,
  .cloud-status-grid article,
  .cloud-file-card,
  .cloud-section-grid a,
  .cloud-section-grid div,
  .storage-picker-panel,
  .message-action-menu,
  .conversation-more-menu,
  .naradh-forward-dialog,
  .chat-people-dialog,
  .notification-settings-dialog,
  .rename-resource-dialog,
  .naradh-calendar-dialog {
    border-color: var(--naradh-border);
    background: var(--naradh-panel-bg);
    color: var(--naradh-text);
  }

  .conversation-row,
  .notification-item,
  .notification-empty,
  .cloud-empty-state,
  .calls-action-grid button,
  .calls-page-filters button,
  .groups-archive-tabs,
  .groups-archive-tabs button,
  .member-card,
  .people-chip,
  .message-bubble,
  .attachment-menu button,
  .attachment-preview,
  .messenger-composer,
  .composer,
  .composer-input,
  .search-results,
  .naradh-search-result-row,
  .naradh-person-card,
  .notification-mode-card,
  .notification-settings-state,
  .cloud-tabs,
  .cloud-tabs button,
  .cloud-view-toggle,
  .cloud-view-toggle button,
  .cloud-sort-control select,
  .cloud-breadcrumb button,
  .cloud-nav-list button,
  .cloud-refresh-button,
  .cloud-open-button,
  .cloud-file-icon,
  .cloud-file-card,
  .cloud-file-card__main,
  .voice-call-panel,
  .call-window-icon-button,
  .secondary-button {
    border-color: var(--naradh-border);
    background: var(--naradh-panel-soft);
    color: var(--naradh-text);
  }

  .conversation-row.active,
  .message.mine .message-bubble,
  .calls-page-filters button.active,
  .cloud-tabs button.active,
  .cloud-view-toggle button.active,
  .cloud-nav-list button.active,
  .groups-archive-tabs button.active,
  .notification-item.unread,
  .naradh-forward-target.selected {
    border-color: var(--naradh-border-strong);
    background: var(--naradh-accent-soft);
    color: var(--naradh-text);
  }

  .conversation-preview,
  .notification-copy span,
  .notification-main time,
  .notification-empty span,
  .calls-page-section-heading,
  .calls-page-count,
  .calls-privacy-note,
  .cloud-table-heading span,
  .cloud-status-grid span,
  .cloud-status-grid small,
  .cloud-file-card__copy small,
  .cloud-file-name small,
  .cloud-empty-state span,
  .naradh-workspace__subtitle,
  .message-bubble .meta,
  .meta,
  .muted,
  .profile-identity-meta,
  .naradh-search-result-subtitle {
    color: var(--naradh-text-muted);
  }

  input,
  select,
  textarea,
  .search-row input,
  .calls-page-search input,
  .calls-left-search input,
  .cloud-search-input,
  .composer-input input,
  .composer-input textarea,
  .group-create-form input,
  .group-create-form select,
  .member-add-form input,
  .rename-resource-dialog input,
  .rename-resource-dialog textarea {
    border-color: var(--naradh-border);
    background: var(--naradh-input-bg);
    color: var(--naradh-text);
  }

  button,
  .primary-button,
  .cloud-create-button,
  .group-create-form button,
  .member-add-form button,
  .member-actions button {
    color: #f8fbff;
  }

  button:disabled,
  .calls-action-grid button:disabled,
  .attachment-menu button:disabled {
    border-color: var(--naradh-border);
    background: rgba(148, 163, 184, 0.12);
    color: var(--naradh-text-muted);
  }

  .cloud-files-table th,
  .cloud-files-table td,
  .cloud-files-table thead,
  .cloud-files-table tbody {
    border-color: var(--naradh-border);
    background: var(--naradh-panel-bg);
    color: var(--naradh-text);
  }
}

/* N8.18I app-wide system theme compatibility layer */
.naradh-shell,
.app-layout,
.chat,
.app-panel,
.naradh-workspace,
.messenger-main-pane {
  background: var(--naradh-bg);
  color: var(--naradh-text);
}

.sidebar,
.messenger-sidebar-pane,
.conversation-list,
.conversation-section,
.messenger-search-stack,
.chat-header,
.messenger-conversation-header,
.app-panel-inner,
.naradh-workspace-card,
.naradh-workspace__section,
.naradh-workspace__toolbar,
.notifications-panel,
.groups-panel,
.groups-create-column,
.groups-list-column,
.groups-detail-column,
.group-create-form,
.group-channel-detail,
.group-channel-placeholder.empty,
.calls-dashboard,
.calls-page-stabilized,
.calls-discovery-section,
.calls-discovery-results,
.calls-page-empty,
.call-info-card,
.naradh-call-info-view,
.anamika-cloud-main,
.cloud-table-wrap,
.cloud-status-grid article,
.cloud-file-card,
.cloud-section-grid > *,
.storage-picker-panel,
.notification-settings-dialog,
.rename-resource-dialog,
.naradh-conversation-info__panel,
.naradh-message-info__panel,
.naradh-forward-panel,
.chat-people-dialog,
.message-action-menu,
.conversation-more-menu,
.attachment-menu,
.group-mention-menu {
  border-color: var(--naradh-border);
  background: var(--naradh-card-bg);
  color: var(--naradh-card-text);
  box-shadow: var(--naradh-shadow-soft);
}

.conversation-row,
.conversation-empty,
.notification-item,
.notification-empty,
.notification-mode-card,
.notification-settings-state,
.panel-metric-row,
.calls-action-grid button,
.calls-page-filters button,
.call-history-row,
.call-history-row--workspace,
.calls-discovery-status,
.groups-archive-tabs,
.groups-archive-tabs button,
.member-card,
.member-card.compact,
.muted-notification-chip,
.naradh-person-card,
.naradh-search-result-row,
.search-results,
.search-suggestion,
.messenger-composer,
.composer,
.composer-input,
.attachment-preview,
.cloud-tabs,
.cloud-tabs button,
.cloud-view-toggle,
.cloud-view-toggle button,
.cloud-sort-control select,
.cloud-breadcrumb button,
.cloud-nav-list button,
.cloud-refresh-button,
.cloud-open-button,
.cloud-file-icon,
.cloud-file-card__main,
.cloud-empty-state,
.voice-call-panel,
.call-window-icon-button,
.secondary-button,
.naradh-icon-action,
.message-bubble,
.notification-source-badge {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
}

.conversation-row:hover,
.search-suggestion:hover,
.search-suggestion.active,
.notifications-panel-actions button:not(:disabled):hover,
.notification-actions button:not(:disabled):hover,
.calls-action-grid button:not(:disabled):hover,
.calls-page-filters button:not(:disabled):hover,
.cloud-tabs button:not(:disabled):hover,
.cloud-view-toggle button:not(:disabled):hover,
.cloud-breadcrumb button:not(:disabled):hover,
.cloud-nav-list button:not(:disabled):hover,
.cloud-open-button:not(:disabled):hover,
.groups-archive-tabs button:not(:disabled):hover,
.group-create-form button:not(:disabled):hover,
.member-actions button:not(:disabled):hover,
.naradh-icon-action:not(:disabled):hover {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-hover);
  color: var(--naradh-text-strong);
}

.conversation-row.active,
.notification-item.unread,
.calls-page-filters button.active,
.cloud-tabs button.active,
.cloud-view-toggle button.active,
.cloud-nav-list button.active,
.groups-archive-tabs button.active,
.naradh-forward-target.selected,
.message.mine .message-bubble {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
  color: var(--naradh-text-strong);
}

.app-layout.cloud-active .sidebar,
.app-layout.calls-active .sidebar,
.app-layout.mobile-conversation-active .sidebar,
.app-layout.mobile-panel-active .sidebar,
.messenger-sidebar-pane,
.sidebar {
  background: var(--naradh-surface);
  color: var(--naradh-text);
}

.app-panel-inner h2,
.naradh-workspace__title,
.notifications-panel-header h2,
.groups-panel-header h2,
.calls-workspace-header h2,
.anamika-cloud-header h2,
.conversation-row-top strong,
.notification-copy strong,
.notification-empty strong,
.group-create-form h3,
.naradh-person-card__name,
.naradh-search-result-name,
.cloud-table-heading strong,
.call-history-main strong,
.call-info-header h2,
.naradh-conversation-info__header h2,
.naradh-conversation-info__identity h3,
.naradh-message-info__panel h2,
.naradh-forward-panel__header h2 {
  color: var(--naradh-text-strong);
}

.app-panel-inner p,
.naradh-workspace__subtitle,
.conversation-preview,
.conversation-row-time,
.conversation-row-top small,
.conversation-row-bottom,
.conversation-presence-line,
.notification-copy span,
.notification-main time,
.notification-empty span,
.notification-target-context,
.notification-mode-card small,
.calls-page-section-heading,
.calls-page-count,
.calls-privacy-note,
.cloud-table-heading span,
.cloud-empty-state span,
.groups-list-heading,
.group-channel-meta,
.group-create-form label,
.naradh-person-card__meta,
.naradh-person-card__hint,
.naradh-search-result-subtitle,
.search-identity-hint,
.profile-identity-meta,
.muted,
.meta {
  color: var(--naradh-text-muted);
}

input,
select,
textarea,
.search-row,
.search-row input,
.calls-page-search,
.calls-page-search input,
.calls-left-search input,
.cloud-search-input,
.composer-input input,
.composer-input textarea,
.group-create-form input,
.group-create-form textarea,
.group-create-form select,
.member-add-form input,
.rename-resource-dialog input,
.rename-resource-dialog textarea,
.notification-settings-dialog input,
.notification-settings-dialog select {
  border-color: var(--naradh-border);
  background: var(--naradh-input-bg);
  color: var(--naradh-input-text);
}

input::placeholder,
textarea::placeholder,
.search-row input::placeholder,
.cloud-search-input::placeholder,
.composer-input input::placeholder,
.composer-input textarea::placeholder {
  color: var(--naradh-input-placeholder);
}

.search-inline-icon,
.search-row svg,
.calls-page-search svg,
.cloud-search-input svg,
.naradh-icon-action svg,
.ghost-icon-button svg {
  color: currentColor;
  stroke: currentColor;
}

button,
.primary-button,
.cloud-create-button,
.group-create-form button,
.member-add-form button,
.member-actions button,
.notification-retry-button {
  background: var(--naradh-button-bg);
  color: var(--naradh-button-text);
}

.notifications-panel-actions button,
.notification-actions button,
.calls-page-filters button,
.cloud-refresh-button,
.cloud-open-button,
.cloud-tabs button,
.cloud-nav-list button,
.groups-panel-header button,
.groups-archive-tabs button,
.secondary-button,
.call-back-button,
.naradh-person-card__action,
.naradh-search-result-action,
.naradh-filter-more-menu > button {
  border-color: var(--naradh-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
}

button:disabled,
.calls-action-grid button:disabled,
.attachment-menu button:disabled,
.cloud-open-button:disabled,
.member-actions button:disabled,
.notification-actions button:disabled {
  border-color: var(--naradh-border);
  background: var(--naradh-button-disabled-bg);
  color: var(--naradh-button-disabled-text);
  opacity: 1;
}

.cloud-files-table,
.cloud-files-table thead,
.cloud-files-table tbody,
.cloud-files-table th,
.cloud-files-table td {
  border-color: var(--naradh-border);
  background: var(--naradh-table-bg);
  color: var(--naradh-text);
}

.cloud-files-table th,
.cloud-files-table thead {
  background: var(--naradh-table-header-bg);
  color: var(--naradh-text-strong);
}

.cloud-files-table td,
.cloud-files-table tbody {
  background: var(--naradh-table-row-bg);
}

.cloud-files-table tr:hover td,
.cloud-files-table tr:focus-within td {
  background: var(--naradh-hover);
}

.cloud-tabs,
.cloud-nav-list,
.anamika-cloud-header,
.anamika-cloud-toolbar,
.groups-panel-header,
.notifications-panel-header,
.calls-workspace-header,
.calls-page-toolbar {
  background: var(--naradh-bg-alt);
  color: var(--naradh-text);
}

.notification-copy,
.group-channel-copy,
.call-history-main,
.conversation-row-copy,
.cloud-table-heading,
.cloud-file-name {
  color: var(--naradh-text);
}

.notification-source-badge--group,
.notification-source-badge--channel,
.notification-source-badge--mention,
.notification-source-badge--call,
.call-type-pill,
.channel-label-chip,
.group-member-chip {
  border-color: var(--naradh-border);
  background: var(--naradh-accent-soft);
  color: var(--naradh-text-strong);
}

.call-history-row.missed,
.calls-discovery-status.error,
.notification-settings-state.error {
  border-color: color-mix(in srgb, var(--naradh-danger) 44%, var(--naradh-border));
  background: color-mix(in srgb, var(--naradh-danger) 12%, var(--naradh-surface));
  color: var(--naradh-text);
}

* {
  scrollbar-color: var(--naradh-scrollbar-thumb) var(--naradh-scrollbar-track);
}

@media (prefers-color-scheme: dark) {
  .app-layout.cloud-active .sidebar,
  .app-layout.mobile-conversation-active .sidebar,
  .app-layout.mobile-panel-active .sidebar,
  .app-layout:not(.cloud-active) .chat::before,
  .app-panel,
  .chat,
  .messenger-composer,
  .composer {
    background: var(--naradh-bg);
  }

  .rail-profile-button,
  .conversation-row-avatar,
  .conversation-avatar,
  .voice-call-avatar,
  .call-type-icon,
  .cloud-file-icon {
    border-color: var(--naradh-border);
    background: var(--naradh-surface-3);
    color: var(--naradh-text-strong);
  }

  .message-menu-button,
  .clean-media-menu.message-menu-button,
  .naradh-media-message__menu.message-menu-button {
    background: color-mix(in srgb, var(--naradh-surface-3) 82%, transparent);
    color: var(--naradh-text-strong);
  }
}

/* N8.16 Naradh Calendar foundation */
.naradh-calendar-workspace {
  --calendar-bg: var(--naradh-bg);
  --calendar-panel: var(--naradh-surface);
  --calendar-panel-soft: var(--naradh-surface-2);
  --calendar-surface: var(--naradh-surface-3);
  --calendar-line: var(--naradh-border);
  --calendar-text: var(--naradh-text);
  --calendar-muted: var(--naradh-text-muted);
  --calendar-accent: var(--naradh-accent);
  --calendar-accent-soft: var(--naradh-accent-soft);
  --calendar-danger: var(--naradh-danger);
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--calendar-bg);
  color: var(--calendar-text);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  overflow: hidden;
}

.naradh-calendar-workspace--sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.naradh-calendar-theme-light {
  --calendar-bg: var(--naradh-bg);
  --calendar-panel: var(--naradh-surface);
  --calendar-panel-soft: var(--naradh-surface-2);
  --calendar-surface: var(--naradh-surface-3);
  --calendar-line: var(--naradh-border);
  --calendar-text: var(--naradh-text);
  --calendar-muted: var(--naradh-text-muted);
  --calendar-accent: var(--naradh-accent);
  --calendar-accent-soft: var(--naradh-accent-soft);
  --calendar-danger: var(--naradh-danger);
}

@media (prefers-color-scheme: light) {
  .naradh-calendar-theme-system {
    --calendar-bg: var(--naradh-bg);
    --calendar-panel: var(--naradh-surface);
    --calendar-panel-soft: var(--naradh-surface-2);
    --calendar-surface: var(--naradh-surface-3);
    --calendar-line: var(--naradh-border);
    --calendar-text: var(--naradh-text);
    --calendar-muted: var(--naradh-text-muted);
    --calendar-accent: var(--naradh-accent);
    --calendar-accent-soft: var(--naradh-accent-soft);
    --calendar-danger: var(--naradh-danger);
  }
}

.naradh-calendar-sidebar {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--calendar-line);
  background: var(--calendar-panel);
  overflow: auto;
}

.naradh-calendar-workspace--sidebar-collapsed .naradh-calendar-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
  border-right: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.naradh-calendar-brand,
.naradh-planner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.naradh-calendar-brand strong,
.naradh-planner-brand-main,
.naradh-calendar-section-title,
.naradh-calendar-nav h2,
.naradh-calendar-agenda h3 {
  color: var(--calendar-text);
}

.naradh-calendar-brand span,
.naradh-planner-brand-separator,
.naradh-planner-brand-module,
.naradh-calendar-nav span,
.naradh-calendar-list-empty,
.naradh-calendar-agenda p {
  color: var(--calendar-muted);
}

.naradh-planner-brand-main {
  font-size: 18px;
  letter-spacing: 0;
}

.naradh-planner-brand-separator {
  font-weight: 800;
}

.naradh-planner-brand-module {
  font-size: 13px;
  font-weight: 800;
}

.naradh-calendar-theme-select,
.naradh-calendar-workspace input,
.naradh-calendar-workspace select,
.naradh-calendar-workspace textarea {
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-surface);
  color: var(--calendar-text);
}

.naradh-calendar-theme-select {
  min-height: 34px;
  padding: 6px 8px;
}

.naradh-mini-month {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--calendar-line) 72%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--calendar-panel) 88%, var(--calendar-panel-soft));
}

.naradh-mini-month header,
.naradh-mini-month-header,
.naradh-calendar-section-head,
.naradh-calendar-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.naradh-mini-month-header button,
.naradh-calendar-workspace button {
  min-height: 34px;
  border: 1px solid var(--calendar-line);
  border-radius: 6px;
  background: var(--calendar-surface);
  color: var(--calendar-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.naradh-mini-month-header button {
  width: 34px;
}

.naradh-mini-month-weekdays,
.naradh-mini-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.naradh-mini-month-weekdays {
  margin: 12px 0 6px;
  color: var(--calendar-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.naradh-mini-month-grid button {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  font-size: 12px;
}

.naradh-mini-month-grid button.muted {
  opacity: 0.45;
}

.naradh-mini-month-grid button.today,
.naradh-calendar-month-cell.today .naradh-calendar-month-date span,
.naradh-calendar-day-head.today span {
  background: var(--calendar-accent);
  color: #06121f;
}

.naradh-mini-month-grid button.selected {
  border-color: var(--calendar-accent);
  box-shadow: 0 0 0 2px var(--calendar-accent-soft);
}

.naradh-calendar-section {
  margin-top: 18px;
}

.naradh-calendar-section-title {
  margin: 0;
  font-size: 13px;
}

.naradh-calendar-link {
  border: 0;
  background: transparent;
  color: var(--calendar-accent);
}

.naradh-calendar-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.naradh-calendar-list-row {
  min-height: 36px;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.naradh-calendar-list-row:hover {
  border-color: var(--calendar-line);
  background: var(--calendar-panel-soft);
}

.naradh-calendar-list-row label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.naradh-calendar-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--calendar-color, var(--calendar-accent));
}

.naradh-calendar-main {
  min-width: 0;
  width: 100%;
  background: var(--calendar-bg);
  overflow: hidden;
}

.naradh-calendar-toolbar,
.naradh-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--calendar-line);
  background: var(--calendar-panel);
}

.naradh-calendar-toolbar {
  justify-content: flex-start;
  min-height: 50px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.naradh-calendar-toolbar button,
.naradh-calendar-nav button,
.naradh-calendar-toolbar select {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.naradh-planner-sidebar-toggle {
  width: 32px;
  min-width: 32px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
}

.naradh-calendar-view-tabs,
.naradh-calendar-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.naradh-calendar-view-tabs {
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--calendar-line) 78%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--calendar-panel-soft) 56%, transparent);
}

.naradh-calendar-view-tabs button {
  border-color: transparent;
  background: transparent;
}

.naradh-calendar-primary {
  border-color: var(--calendar-accent);
  background: var(--calendar-accent);
  color: #06121f;
}

.naradh-calendar-view-tabs button.active,
.naradh-calendar-workspace button.active {
  border-color: var(--calendar-accent);
  background: var(--calendar-accent-soft);
  color: var(--calendar-text);
}

.naradh-calendar-nav h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(240px, 100%);
  font-size: 17px;
}

.naradh-calendar-status {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.naradh-calendar-status.error {
  color: var(--calendar-danger);
}

.naradh-calendar-retry {
  color: var(--calendar-accent);
}

.naradh-calendar-grid-wrap {
  min-height: 0;
  height: calc(100vh - 142px);
  overflow: auto;
}

.naradh-planner-timeline-scroll {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.naradh-calendar-grid--timeline {
  position: relative;
  display: grid;
  grid-template-columns: 62px repeat(var(--calendar-day-count, 7), minmax(118px, 1fr));
  min-width: min(100%, 760px);
  min-height: 1440px;
  background: var(--calendar-surface);
}

.naradh-calendar-time-head,
.naradh-calendar-day-head,
.naradh-calendar-time-label,
.naradh-calendar-slot {
  border-right: 1px solid var(--calendar-line);
  border-bottom: 1px solid var(--calendar-line);
}

.naradh-calendar-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  background: var(--calendar-panel);
}

.naradh-calendar-day-head span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.naradh-calendar-time-label {
  min-height: 60px;
  padding: 8px 6px;
  color: var(--calendar-muted);
  font-size: 12px;
  background: var(--calendar-panel);
}

.naradh-calendar-slot {
  position: relative;
  display: block;
  min-height: 60px;
  padding: 3px 4px;
  text-align: left;
  background: transparent;
  border-radius: 0;
}

.naradh-calendar-slot:hover,
.naradh-calendar-month-cell:hover {
  background: color-mix(in srgb, var(--calendar-accent-soft) 42%, transparent);
}

.naradh-calendar-event {
  display: grid;
  width: 100%;
  gap: 2px;
  margin-bottom: 3px;
  padding: 6px 7px;
  border: 0;
  border-left: 3px solid var(--calendar-color, var(--calendar-accent));
  border-radius: 6px;
  background: color-mix(in srgb, var(--calendar-event-bg, rgba(56, 189, 248, 0.18)) 82%, var(--calendar-surface));
  color: var(--calendar-text);
  text-align: left;
}

.naradh-calendar-event strong {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-calendar-meeting-indicator {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--calendar-accent-soft);
  color: var(--calendar-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.naradh-calendar-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--calendar-accent) 70%, transparent);
  border-radius: 999px;
  background: var(--calendar-accent-soft);
  color: var(--calendar-accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.naradh-calendar-join-button:focus-visible {
  outline: 2px solid var(--calendar-accent);
  outline-offset: 2px;
}

.naradh-calendar-invitation-indicator {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #f59e0b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.naradh-calendar-event--invitation {
  background: rgba(251, 191, 36, 0.14);
}

.naradh-calendar-event span {
  color: var(--calendar-muted);
  font-size: 11px;
}

.naradh-calendar-now-line {
  position: absolute;
  left: calc(62px + ((100% - 62px) / var(--calendar-day-count, 1)) * var(--calendar-today-index, 0));
  width: calc((100% - 62px) / var(--calendar-day-count, 1));
  z-index: 3;
  height: 2px;
  background: color-mix(in srgb, var(--calendar-danger) 88%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--calendar-danger) 22%, transparent);
  pointer-events: none;
}

.naradh-calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
  min-height: 100%;
  background: var(--calendar-surface);
}

.naradh-calendar-month-grid > strong {
  padding: 10px;
  border-right: 1px solid var(--calendar-line);
  border-bottom: 1px solid var(--calendar-line);
  background: var(--calendar-panel);
}

.naradh-calendar-month-cell {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 112px;
  padding: 7px;
  border: 0;
  border-right: 1px solid var(--calendar-line);
  border-bottom: 1px solid var(--calendar-line);
  border-radius: 0;
  text-align: left;
  overflow: hidden;
}

.naradh-calendar-month-date {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--calendar-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.naradh-calendar-month-date span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.naradh-calendar-month-cell.today .naradh-calendar-month-date span {
  background: var(--calendar-accent);
  color: #06121f;
}

.naradh-calendar-month-cell.muted {
  opacity: 0.55;
}

.naradh-planner-month-events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.naradh-planner-month-event-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 18px;
  padding: 2px 5px;
  border: 0;
  border-left: 2px solid var(--calendar-color, var(--calendar-accent));
  border-radius: 4px;
  background: color-mix(in srgb, var(--calendar-color, var(--calendar-accent)) 14%, var(--calendar-panel));
  color: var(--calendar-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.naradh-planner-month-event-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.naradh-planner-month-event-time {
  color: var(--calendar-muted);
  font-size: 10px;
}

.naradh-planner-month-event-title {
  color: var(--calendar-text);
}

.naradh-planner-month-event-mark {
  color: var(--calendar-accent);
  font-size: 9px;
  text-transform: uppercase;
}

.naradh-planner-month-more {
  justify-self: start;
  min-height: 20px;
  padding: 1px 5px;
  border: 0;
  background: transparent;
  color: var(--calendar-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.naradh-calendar-split-view {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  min-width: 960px;
  min-height: 0;
}

.naradh-calendar-agenda {
  padding: 16px;
  border-right: 1px solid var(--calendar-line);
  background: var(--calendar-panel);
}

.naradh-calendar-agenda-item {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid var(--calendar-line);
  border-left: 4px solid var(--event-color, var(--calendar-accent));
  border-radius: 8px;
  background: var(--calendar-surface);
  color: var(--calendar-text);
  text-align: left;
}

.naradh-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.naradh-calendar-event-modal {
  align-items: center;
}

.naradh-calendar-dialog {
  width: min(760px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  border: 1px solid var(--calendar-line, rgba(148, 163, 184, 0.26));
  border-radius: 8px;
  background: var(--calendar-panel, #162031);
  color: var(--calendar-text, #e5edf7);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.38);
}

.naradh-calendar-event-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, calc(100vw - 40px));
  max-height: min(780px, calc(100vh - 40px));
  overflow: hidden;
}

.naradh-calendar-dialog header,
.naradh-calendar-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--calendar-line, rgba(148, 163, 184, 0.26));
}

.naradh-calendar-event-header {
  align-items: flex-start;
  background: var(--calendar-panel);
}

.naradh-calendar-event-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.naradh-calendar-event-header span {
  color: var(--calendar-muted);
  font-size: 12px;
  font-weight: 800;
}

.naradh-calendar-close {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.naradh-calendar-dialog footer {
  border-top: 1px solid var(--calendar-line, rgba(148, 163, 184, 0.26));
  border-bottom: 0;
}

.naradh-calendar-event-footer {
  background: var(--calendar-panel);
}

.naradh-calendar-event-footer,
.naradh-calendar-event-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.naradh-calendar-event-footer > div:last-child {
  justify-content: flex-end;
}

.naradh-calendar-event-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 16px;
  background: var(--calendar-surface);
}

.naradh-calendar-event-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--calendar-panel) 70%, transparent);
}

.naradh-calendar-event-section--title {
  padding: 0;
  border: 0;
  background: transparent;
}

.naradh-calendar-event-section h4 {
  margin: 0;
  color: var(--calendar-text);
  font-size: 13px;
}

.naradh-calendar-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.naradh-calendar-datetime-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.8fr) minmax(0, 1.2fr) minmax(92px, 0.8fr);
  align-items: end;
}

.naradh-calendar-event-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--calendar-muted);
  font-size: 12px;
  font-weight: 800;
}

.naradh-calendar-event-field.wide,
.naradh-calendar-description-field {
  grid-column: 1 / -1;
}

.naradh-calendar-event-field input,
.naradh-calendar-event-field select,
.naradh-calendar-event-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-surface);
  color: var(--calendar-text);
  font: inherit;
  font-size: 13px;
}

.naradh-calendar-event-field input.readonly {
  opacity: 0.72;
}

.naradh-calendar-event-section--title input {
  min-height: 48px;
  font-size: 18px;
}

.naradh-calendar-description-field textarea {
  min-height: 112px;
  resize: vertical;
}

.naradh-calendar-colour-picker {
  max-width: 180px;
}

.naradh-calendar-colour-picker input[type="color"] {
  width: 58px;
  min-height: 38px;
  padding: 4px;
}

.naradh-calendar-attendee-picker,
.naradh-calendar-online-meeting-section,
.naradh-calendar-meeting-link-box {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.naradh-calendar-attendee-results,
.naradh-calendar-attendee-chips {
  display: grid;
  gap: 8px;
}

.naradh-calendar-attendee-search {
  grid-column: 1 / -1;
}

.naradh-calendar-attendee-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-panel);
  color: var(--calendar-text);
  text-align: left;
}

.naradh-calendar-attendee-result small,
.naradh-calendar-attendee-chip small {
  display: block;
  color: var(--calendar-muted);
  font-size: 11px;
}

.naradh-calendar-attendee-result em {
  color: var(--calendar-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.naradh-calendar-attendee-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--calendar-accent-soft);
  color: var(--calendar-accent);
  font-weight: 900;
}

.naradh-calendar-attendee-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-panel);
}

.naradh-calendar-attendee-chip--external {
  border-style: dashed;
}

.naradh-calendar-attendee-chip button {
  min-height: 30px;
  padding: 5px 8px;
}

.naradh-calendar-attendee-empty {
  margin: 0;
  color: var(--calendar-muted);
  font-size: 12px;
}

.naradh-calendar-meeting-toggle {
  width: fit-content;
}

.naradh-calendar-meeting-actions,
.naradh-calendar-meeting-lobby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.naradh-calendar-meeting-link-box.disabled {
  opacity: 0.62;
}

.naradh-calendar-meeting-lobby {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 24px;
  background: var(--calendar-surface, #0f172a);
  color: var(--calendar-text, #e5edf7);
}

.naradh-calendar-meeting-lobby-header,
.naradh-calendar-meeting-lobby-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.naradh-calendar-meeting-lobby-header {
  display: grid;
  gap: 14px;
}

.naradh-calendar-meeting-lobby-header button {
  width: fit-content;
}

.naradh-calendar-meeting-lobby-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-panel);
}

.naradh-calendar-meeting-lobby-summary {
  display: grid;
  gap: 4px;
}

.naradh-calendar-meeting-lobby-summary strong {
  font-size: 22px;
}

.naradh-calendar-all-day-toggle {
  align-self: end;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--calendar-line);
  border-radius: 8px;
  background: var(--calendar-surface);
}

.naradh-calendar-event-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.1);
}

.naradh-calendar-invitation-banner {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--calendar-text);
  font-size: 12px;
  font-weight: 800;
}

.naradh-calendar-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.naradh-calendar-response-actions button.active {
  border-color: var(--calendar-accent);
  background: var(--calendar-accent-soft);
  color: var(--calendar-accent);
}

.naradh-calendar-dialog form,
.naradh-calendar-filter-body {
  padding: 16px;
}

.naradh-calendar-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.naradh-calendar-form-grid label,
.naradh-calendar-check {
  display: grid;
  gap: 6px;
  color: var(--calendar-muted, #9fb0c6);
  font-size: 12px;
  font-weight: 800;
}

.naradh-calendar-form-grid input,
.naradh-calendar-form-grid select,
.naradh-calendar-form-grid textarea {
  min-height: 38px;
  padding: 8px 10px;
}

.naradh-calendar-form-grid .wide {
  grid-column: 1 / -1;
}

.naradh-calendar-check {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.naradh-calendar-form-error {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--calendar-danger, #fb7185);
}

.naradh-calendar-share-list,
.naradh-calendar-filter-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.naradh-calendar-share-row,
.naradh-calendar-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--calendar-line, rgba(148, 163, 184, 0.26));
  border-radius: 8px;
}

.naradh-calendar-share-row span,
.naradh-calendar-filter-row span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.naradh-calendar-share-row select {
  max-width: 120px;
}

.naradh-calendar-field-note {
  margin: 0;
  color: var(--calendar-muted);
  font-size: 12px;
  font-weight: 600;
}

.naradh-calendar-danger {
  border-color: rgba(251, 113, 133, 0.45);
  color: var(--calendar-danger);
}

@media (max-width: 1120px) {
  .naradh-calendar-workspace {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  }

  .naradh-calendar-workspace--sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .naradh-calendar-datetime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-layout.calendar-active {
    grid-template-columns: 1fr;
  }

  .app-layout.calendar-active .sidebar {
    display: none;
  }

  .naradh-calendar-workspace {
    grid-template-columns: 1fr;
  }

  .naradh-calendar-workspace--sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .naradh-calendar-sidebar {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--calendar-line);
  }

  .naradh-calendar-workspace--sidebar-collapsed .naradh-calendar-sidebar {
    display: none;
  }

  .naradh-calendar-toolbar,
  .naradh-calendar-nav {
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .naradh-calendar-form-grid {
    grid-template-columns: 1fr;
  }

  .naradh-calendar-event-dialog {
    width: calc(100vw - 22px);
    max-height: calc(100vh - 22px);
  }

  .naradh-calendar-event-grid,
  .naradh-calendar-datetime-grid {
    grid-template-columns: 1fr;
  }

  .naradh-calendar-colour-picker {
    max-width: none;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .naradh-rail,
  .naradh-calendar-sidebar,
  .naradh-calendar-toolbar,
  .naradh-calendar-nav button,
  .naradh-calendar-modal {
    display: none !important;
  }

  .naradh-calendar-workspace {
    display: block;
    min-height: auto;
    border: 0;
    background: #ffffff;
    color: #111827;
  }

  .naradh-calendar-main,
  .naradh-calendar-grid-wrap,
  .naradh-calendar-grid--timeline,
  .naradh-calendar-month-grid {
    height: auto;
    overflow: visible;
    background: #ffffff;
    color: #111827;
  }
}

/* N8.20A final cascade guard for Notifications theme/readability */
.sidebar-header,
.messenger-sidebar-header {
  background: var(--naradh-surface);
  color: var(--naradh-text);
  border-color: var(--naradh-border);
}

.product-copy h1,
.product-copy span,
.product-mark,
.notification-sidebar-tab,
.notification-sidebar-tab span,
.notification-sidebar-tab small,
.notifications-panel-header h2,
.notifications-panel-header .naradh-workspace__title,
.notifications-panel-header .eyebrow,
.notification-copy strong,
.notification-target-context,
.notification-empty strong,
.notification-boundary-panel strong,
.notification-source-badge,
.naradh-notification-stat-value,
.naradh-notification-stat-label,
.notification-retry-button {
  font-weight: 400;
}

.product-copy h1,
.notification-copy strong,
.notification-target-context,
.notification-empty strong,
.notification-boundary-panel strong,
.naradh-notification-stat-value {
  color: var(--naradh-text-strong);
}

.product-copy span,
.notification-copy span,
.notification-main time,
.notification-empty span,
.notification-boundary-panel span,
.naradh-notification-stat-label {
  color: var(--naradh-text-muted);
}

.notification-sidebar-tabs {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.notification-sidebar-tab,
.naradh-notification-stat,
.notification-item,
.notification-empty,
.notification-boundary-panel {
  border-color: var(--naradh-border);
  background: var(--naradh-card-bg);
  color: var(--naradh-card-text);
  border-radius: 8px;
}

.notification-sidebar-tab {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 10px 12px;
  box-shadow: none;
  text-align: left;
}

.notification-sidebar-tab.active,
.notification-sidebar-tab[aria-selected="true"],
.notification-item.unread,
.naradh-notification-stat.current {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
}

.notification-sidebar-tab:not(.active):hover {
  background: var(--naradh-hover);
}

.notifications-panel {
  width: min(100%, 900px);
  max-width: 900px;
  color: var(--naradh-text);
}

.notifications-panel-header {
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
}

.notifications-panel-actions .naradh-icon-action,
.notification-actions .naradh-icon-action {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  box-shadow: none;
}

.notifications-panel-actions .naradh-icon-action:not(:disabled):hover,
.notification-actions .naradh-icon-action:not(:disabled):hover {
  background: var(--naradh-hover);
  color: var(--naradh-text-strong);
}

.notifications-panel-actions .naradh-icon-action:disabled,
.notification-actions .naradh-icon-action:disabled {
  background: var(--naradh-button-disabled-bg);
  color: var(--naradh-button-disabled-text);
  opacity: 1;
}

.naradh-notification-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}

.naradh-notification-stat {
  min-width: 92px;
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
}

.naradh-notification-stat-value {
  font-size: 16px;
  line-height: 1.1;
}

.naradh-notification-stat-label {
  font-size: 11px;
}

.notification-source-badge {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
}

.notification-source-badge--group,
.notification-source-badge--channel,
.notification-source-badge--mention {
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
}

.notification-source-badge--call {
  background: color-mix(in srgb, var(--naradh-danger) 12%, var(--naradh-card-bg));
  color: var(--naradh-danger);
}

.notification-empty,
.notification-boundary-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  max-width: 620px;
}

/* N8.20B Notifications brand visibility and tab-state polish */
.messenger-sidebar-header,
.inbox-header.messenger-sidebar-header {
  background: var(--naradh-surface);
  color: var(--naradh-text);
  border-color: var(--naradh-border);
}

.inbox-brand h1,
.messenger-sidebar-header .inbox-brand h1,
.product-copy h1 {
  color: var(--naradh-text-strong);
  font-family: var(--naradh-font-family);
  font-weight: 400;
}

.inbox-brand span,
.messenger-sidebar-header .inbox-brand span,
.product-copy span {
  color: var(--naradh-text-muted);
  font-family: var(--naradh-font-family);
  font-weight: 400;
}

.messenger-sidebar-header .ghost-icon-button,
.messenger-sidebar-header .naradh-icon-action {
  border-color: var(--naradh-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
}

.messenger-sidebar-header .ghost-icon-button:disabled,
.messenger-sidebar-header .naradh-icon-action:disabled {
  color: var(--naradh-button-disabled-text);
  background: var(--naradh-button-disabled-bg);
  opacity: 1;
}

.app-layout.notifications-active #refreshButton {
  display: none;
}

.app-layout.chats-active #refreshButton {
  display: none;
}

.app-layout.chats-active .conversation-section .section-title {
  grid-template-columns: 1fr;
}

.app-layout.notifications-active .section-title {
  grid-template-columns: 1fr;
}

.naradh-notification-compact-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 0 8px;
}

.naradh-notification-count-chip,
.naradh-notification-view-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--naradh-border);
  border-radius: 999px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
  box-shadow: none;
}

.naradh-notification-view-chip {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
}

.naradh-notification-count-chip .naradh-notification-stat-value,
.naradh-notification-view-chip .naradh-notification-stat-value {
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
}

.naradh-notification-count-chip .naradh-notification-stat-label,
.naradh-notification-view-chip .naradh-notification-stat-label {
  font-size: 11px;
  line-height: 1;
  color: currentColor;
  font-weight: 400;
}

.notification-sidebar-tab.active,
.notification-sidebar-tab[aria-selected="true"] {
  outline: 0;
  box-shadow: inset 3px 0 0 var(--naradh-accent);
}

/* N8.20C Chat home and conversation theme repair */
.app-layout.chats-active .chat,
.app-layout.chats-active .messenger-main-pane {
  background: var(--naradh-bg);
  color: var(--naradh-text);
}

.app-layout.chats-active .chat::before {
  background: linear-gradient(180deg, var(--naradh-bg-alt), transparent);
  opacity: 0.28;
}

.app-layout.chats-active .messenger-sidebar-pane,
.app-layout.chats-active .inbox-column,
.app-layout.chats-active .messenger-list-section {
  background: var(--naradh-surface);
  color: var(--naradh-text);
  border-color: var(--naradh-border);
}

.app-layout.chats-active .messenger-search-stack {
  background: var(--naradh-surface);
  color: var(--naradh-text);
  border-color: var(--naradh-border);
}

.app-layout.chats-active .messenger-search-stack .search-row,
.app-layout.chats-active .messenger-search-stack .search-row input,
.app-layout.chats-active #contactSearch {
  background: var(--naradh-input-bg);
  color: var(--naradh-input-text);
  border-color: var(--naradh-border);
  box-shadow: none;
}

.app-layout.chats-active .messenger-search-stack .search-row input::placeholder,
.app-layout.chats-active #contactSearch::placeholder {
  color: var(--naradh-input-placeholder);
}

.app-layout.chats-active .messenger-search-stack .helper-text,
.app-layout.chats-active .messenger-search-stack .status-line,
.app-layout.chats-active .section-title,
.app-layout.chats-active .conversation-row-time,
.app-layout.chats-active .conversation-row-top small {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .filter-chips,
.app-layout.chats-active .naradh-chat-filter-bar {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
}

.app-layout.chats-active .naradh-chat-filter,
.app-layout.chats-active .filter-chip {
  color: var(--naradh-text);
  background: transparent;
  border-color: transparent;
  font-weight: 400;
}

.app-layout.chats-active .naradh-chat-filter:hover,
.app-layout.chats-active .naradh-chat-filter:focus-visible,
.app-layout.chats-active .naradh-chat-filter--active,
.app-layout.chats-active .naradh-chat-filter.active,
.app-layout.chats-active .filter-chip.active {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
  color: var(--naradh-text-strong);
  box-shadow: none;
}

.app-layout.chats-active .naradh-chat-filter .filter-badge,
.app-layout.chats-active .naradh-chat-filter-count {
  border-color: var(--naradh-border);
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
}

.app-layout.chats-active .naradh-chat-filter-count.empty {
  background: var(--naradh-surface-3);
  color: var(--naradh-text-muted);
}

.app-layout.chats-active .list-item {
  border-color: transparent;
  background: transparent;
  color: var(--naradh-text);
  box-shadow: none;
}

.app-layout.chats-active .list-item:hover,
.app-layout.chats-active .list-item:focus-visible {
  border-color: var(--naradh-border);
  background: var(--naradh-hover);
  color: var(--naradh-text-strong);
  box-shadow: none;
}

.app-layout.chats-active .list-item.active {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
  color: var(--naradh-text-strong);
  box-shadow: inset 3px 0 0 var(--naradh-accent);
}

.app-layout.chats-active .list-item.active::before {
  background: var(--naradh-accent);
}

.app-layout.chats-active .conversation-row-top strong,
.app-layout.chats-active .list-item.active .conversation-row-top strong {
  color: var(--naradh-text-strong);
  font-weight: 500;
}

.app-layout.chats-active .conversation-row-bottom,
.app-layout.chats-active .conversation-preview,
.app-layout.chats-active .list-item.active .conversation-row-bottom {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .conversation-row-avatar,
.app-layout.chats-active .conversation-avatar {
  border-color: var(--naradh-border);
  background: linear-gradient(145deg, var(--naradh-surface-3), var(--naradh-surface-2));
  color: var(--naradh-text-strong);
  box-shadow: none;
}

.app-layout.chats-active .group-member-chip,
.app-layout.chats-active .channel-label-chip,
.app-layout.chats-active .muted-notification-chip,
.app-layout.chats-active .mentions-only-chip,
.app-layout.chats-active .call-type-pill {
  border: 1px solid var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .messenger-conversation-header,
.app-layout.chats-active .chat-header {
  background: var(--naradh-surface);
  color: var(--naradh-text);
  border-color: var(--naradh-border);
}

.app-layout.chats-active .conversation-heading h2,
.app-layout.chats-active #chatTitle {
  color: var(--naradh-text-strong);
  font-weight: 500;
}

.app-layout.chats-active .conversation-heading span,
.app-layout.chats-active #chatSubtitle {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .chat-header-actions {
  border: 1px solid var(--naradh-border);
  background: var(--naradh-surface-2);
  box-shadow: none;
}

.app-layout.chats-active .chat-header-actions .naradh-icon-action,
.app-layout.chats-active .voice-call-button,
.app-layout.chats-active .video-call-button,
.app-layout.chats-active .ghost-icon-button {
  border-color: transparent;
  background: transparent;
  color: var(--naradh-text);
  box-shadow: none;
}

.app-layout.chats-active .chat-header-actions .naradh-icon-action:not(:disabled):hover,
.app-layout.chats-active .voice-call-button:not(:disabled):hover,
.app-layout.chats-active .video-call-button:not(:disabled):hover,
.app-layout.chats-active .ghost-icon-button:not(:disabled):hover {
  background: var(--naradh-hover);
  color: var(--naradh-text-strong);
}

.app-layout.chats-active .chat-header-actions .naradh-icon-action:disabled,
.app-layout.chats-active .voice-call-button:disabled,
.app-layout.chats-active .video-call-button:disabled,
.app-layout.chats-active .ghost-icon-button:disabled {
  color: var(--naradh-button-disabled-text);
  background: transparent;
  opacity: 1;
}

.app-layout.chats-active .empty-state {
  border: 1px solid var(--naradh-border);
  background: var(--naradh-surface);
  color: var(--naradh-text-muted);
  box-shadow: none;
}

.app-layout.chats-active .empty-state-icon {
  border: 1px solid var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-accent);
}

.app-layout.chats-active .empty-state h3 {
  color: var(--naradh-text-strong);
  font-weight: 500;
}

.app-layout.chats-active .empty-state p {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .empty-actions button,
.app-layout.chats-active .panel-primary-action,
.app-layout.chats-active .secondary-button {
  border-color: var(--naradh-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  box-shadow: none;
  font-weight: 400;
}

.app-layout.chats-active .empty-actions .panel-primary-action {
  background: var(--naradh-button-bg);
  color: var(--naradh-button-text);
}

.app-layout.chats-active .messages,
.app-layout.chats-active .messenger-timeline {
  background: var(--naradh-bg-alt);
  color: var(--naradh-text);
}

.app-layout.chats-active .message-bubble {
  border-color: var(--naradh-border);
  background: var(--naradh-card-bg);
  color: var(--naradh-card-text);
  box-shadow: none;
}

.app-layout.chats-active .message.mine .message-bubble {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-accent-soft);
  color: var(--naradh-text-strong);
}

.app-layout.chats-active .message.system-message .message-bubble,
.app-layout.chats-active .message-date-chip {
  border: 1px solid var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
  box-shadow: none;
  font-weight: 400;
}

.app-layout.chats-active .message.deleted-message .message-bubble {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
}

.app-layout.chats-active .message .meta,
.app-layout.chats-active .message-reply-quote,
.app-layout.chats-active .group-message-sender {
  color: var(--naradh-text-muted);
}

.app-layout.chats-active .message-reply-quote {
  border-left-color: var(--naradh-accent);
  background: var(--naradh-surface-2);
}

.app-layout.chats-active .reaction-chip,
.app-layout.chats-active .message-menu-button,
.app-layout.chats-active .clean-media-menu.message-menu-button {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
  box-shadow: none;
}

.app-layout.chats-active .reaction-chip.mine {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
}

.app-layout.chats-active .composer,
.app-layout.chats-active .messenger-composer {
  border-color: var(--naradh-border);
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: none;
}

.app-layout.chats-active .composer-input,
.app-layout.chats-active .composer-input input,
.app-layout.chats-active .composer-input textarea {
  border-color: var(--naradh-border);
  background: var(--naradh-input-bg);
  color: var(--naradh-input-text);
  box-shadow: none;
}

.app-layout.chats-active .composer-input textarea::placeholder,
.app-layout.chats-active .composer-input input::placeholder {
  color: var(--naradh-input-placeholder);
}

.app-layout.chats-active .composer .naradh-icon-action,
.app-layout.chats-active .composer .icon-button {
  border-color: var(--naradh-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  box-shadow: none;
}

.app-layout.chats-active .composer .icon-button:not(:disabled) {
  background: var(--naradh-button-bg);
  color: var(--naradh-button-text);
}

.app-layout.chats-active .sending-as,
.app-layout.chats-active .composer-char-counter,
.app-layout.chats-active #messageCounter {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.app-layout.chats-active .attachment-menu,
.app-layout.chats-active .message-action-menu,
.app-layout.chats-active .reaction-picker,
.app-layout.chats-active .naradh-hover-reaction-picker,
.app-layout.chats-active .conversation-more-menu,
.app-layout.chats-active .naradh-action-menu {
  border-color: var(--naradh-border);
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: var(--naradh-shadow);
}

.app-layout.chats-active .attachment-menu button,
.app-layout.chats-active .message-action-menu button,
.app-layout.chats-active .reaction-picker button,
.app-layout.chats-active .naradh-hover-reaction-picker__button,
.app-layout.chats-active .conversation-more-menu button {
  border-color: var(--naradh-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  font-weight: 400;
}

.app-layout.chats-active .attachment-card,
.app-layout.chats-active .attachment-preview,
.app-layout.chats-active .naradh-composer-attachment-tray {
  border-color: var(--naradh-border);
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
  box-shadow: none;
}

.app-layout.chats-active .attachment-menu-title,
.app-layout.chats-active .attachmentMeta,
.app-layout.chats-active .attachment-meta,
.app-layout.chats-active .media-card-footer {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

/* N8.20D Chat initial route hydration and bottom seam repair */
.app-layout.chats-active,
.app-layout.chats-active .chat,
.app-layout.chats-active .messenger-main-pane {
  background: var(--naradh-bg);
  color: var(--naradh-text);
}

.app-layout.chats-active .messenger-main-pane {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.app-layout.chats-active .chat-header-actions {
  background: var(--naradh-surface-2);
  border-color: var(--naradh-border);
  color: var(--naradh-text);
}

.app-layout.chats-active .empty-state,
.app-layout.chats-active .conversation-empty {
  background: var(--naradh-surface);
  color: var(--naradh-text-muted);
  border-color: var(--naradh-border);
}

.app-layout.chats-active .messages,
.app-layout.chats-active .messenger-timeline,
.app-layout.chats-active .typing-state {
  background: var(--naradh-bg-alt);
}

.app-layout.chats-active .typing-state {
  min-height: 0;
  margin: 0;
  padding: 0 20px;
  color: var(--naradh-text-muted);
}

.app-layout.chats-active .typing-state.active {
  min-height: 24px;
  padding-block: 2px;
}

.app-layout.chats-active .messenger-composer,
.app-layout.chats-active .composer,
.app-layout.chats-active .naradh-composer {
  border-top: 1px solid var(--naradh-border);
  background: var(--naradh-surface);
  color: var(--naradh-text);
}

.app-layout.chats-active .messenger-composer::before,
.app-layout.chats-active .composer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--naradh-border);
}

.app-layout.chats-active .messenger-composer .composer-input,
.app-layout.chats-active .composer-input {
  background: var(--naradh-input-bg);
  border-color: var(--naradh-border);
}

.app-layout.chats-active .messenger-composer.composer--sending,
.app-layout.chats-active .messenger-composer.composer--drag-active,
.app-layout.chats-active .messenger-composer.composer--send-error .composer-input {
  background: var(--naradh-surface);
}

.app-layout.chats-active #searchStatus:empty {
  display: none;
}

/* N8.20E Chat right-pane width and workspace containment repair */
.app-layout.chats-active {
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-template-columns: minmax(342px, 408px) minmax(0, 1fr);
  justify-content: stretch;
}

.app-layout.chats-active .chat,
.app-layout.chats-active .messenger-main-pane {
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  justify-self: stretch;
  align-self: stretch;
  overflow: hidden;
}

.app-layout.chats-active .messenger-conversation-header,
.app-layout.chats-active .chat-header,
.app-layout.chats-active .messages,
.app-layout.chats-active .messenger-timeline,
.app-layout.chats-active .typing-state,
.app-layout.chats-active .messenger-composer,
.app-layout.chats-active .composer {
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  justify-self: stretch;
  box-sizing: border-box;
}

.app-layout.chats-active .messenger-conversation-header,
.app-layout.chats-active .chat-header {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.app-layout.chats-active .conversation-heading {
  min-width: 0;
}

.app-layout.chats-active .chat-header-actions {
  width: auto;
  max-width: min(44vw, 260px);
  min-width: max-content;
  justify-self: end;
  flex: 0 0 auto;
}

.app-layout.chats-active .empty-state {
  width: min(520px, calc(100% - 48px));
  max-width: min(520px, calc(100% - 48px));
  justify-self: center;
  align-self: center;
  margin-inline: auto;
}

.app-layout.chats-active .message,
.app-layout.chats-active .message-bubble,
.app-layout.chats-active .clean-media-message {
  min-width: 0;
}

/* N8.20F Chat width-chain right patch repair */
.app-layout.chats-active {
  grid-template-columns: minmax(342px, 408px) minmax(0, 1fr);
}

.app-layout.chats-active .chat,
.app-layout.chats-active .messenger-main-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
}

.app-layout.chats-active #appPanel.hidden,
.app-layout.chats-active .conversation-search-panel.hidden {
  display: none !important;
  width: 0;
  max-width: 0;
  inline-size: 0;
}

.app-layout.chats-active .empty-state {
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  justify-self: stretch;
  align-self: stretch;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: clamp(24px, 5vh, 48px) 24px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.app-layout.chats-active .empty-state > h3,
.app-layout.chats-active .empty-state > p,
.app-layout.chats-active .empty-state > .empty-actions {
  width: min(520px, 100%);
  max-width: min(520px, 100%);
  justify-self: center;
}

.app-layout.chats-active .empty-state > .empty-state-icon {
  width: 56px;
  max-width: 56px;
  justify-self: center;
}

.app-layout.chats-active .empty-actions {
  justify-content: center;
}

/* N8.20G Chat reserved right-column/gutter root repair */
.naradh-shell,
.naradh-shell .app-layout.chats-active {
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  margin-right: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.naradh-shell .app-layout.chats-active {
  grid-template-columns: minmax(342px, 408px) minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  overflow: hidden;
  background: var(--naradh-bg);
}

.naradh-shell .app-layout.chats-active > .sidebar {
  grid-column: 1 / 2;
}

.naradh-shell .app-layout.chats-active > .chat.messenger-main-pane {
  grid-column: 2 / 3;
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  justify-self: stretch;
  align-self: stretch;
  background: var(--naradh-bg);
}

.naradh-shell .app-layout.chats-active > .chat.messenger-main-pane > #appPanel.hidden,
.naradh-shell .app-layout.chats-active > .chat.messenger-main-pane > .conversation-search-panel.hidden,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .right-panel,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .right-pane,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .details-panel,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .info-panel,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .utility-pane,
.naradh-shell .app-layout.chats-active:not(.conversation-info-open) .conversation-info-panel {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  inline-size: 0 !important;
  flex-basis: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
}

.naradh-shell .app-layout.chats-active .messenger-conversation-header,
.naradh-shell .app-layout.chats-active .chat-header,
.naradh-shell .app-layout.chats-active .empty-state,
.naradh-shell .app-layout.chats-active .messages,
.naradh-shell .app-layout.chats-active .messenger-timeline,
.naradh-shell .app-layout.chats-active .typing-state,
.naradh-shell .app-layout.chats-active .messenger-composer,
.naradh-shell .app-layout.chats-active .composer {
  width: 100%;
  max-width: none;
  min-width: 0;
  inline-size: 100%;
  justify-self: stretch;
  box-sizing: border-box;
}

/* N8.20H no-floating-cards module chrome */
.app-layout.notifications-active .app-panel,
.app-layout.calls-active .app-panel,
.app-layout.groups-active .app-panel,
.app-layout.cloud-active .app-panel,
.app-layout.calendar-active .app-panel {
  background: var(--naradh-bg);
}

.app-layout.notifications-active .app-panel,
.app-layout.calls-active .app-panel,
.app-layout.groups-active .app-panel {
  padding: 18px 20px;
}

.app-layout.cloud-active .chat,
.app-layout.calendar-active .chat,
.app-layout.notifications-active .chat,
.app-layout.calls-active .chat,
.app-layout.groups-active .chat {
  border-radius: 0;
  box-shadow: none;
}

.notifications-panel,
.calls-dashboard,
.calls-page-stabilized,
.naradh-call-info-view,
.groups-panel,
.groups-layout-guard,
.anamika-cloud-main,
.naradh-calendar-workspace {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--naradh-text);
}

.notifications-panel-header,
.calls-page-header,
.calls-action-grid,
.calls-privacy-note,
.calls-discovery-section,
.call-info-contact-card,
.call-info-timeline,
.group-create-form,
.group-channel-detail,
.group-channel-placeholder.empty,
.naradh-calendar-sidebar,
.naradh-calendar-main,
.naradh-calendar-grid-wrap,
.cloud-left-panel,
.cloud-section-grid a,
.cloud-section-grid div,
.cloud-table-wrap {
  box-shadow: none;
  border-radius: 8px;
}

.notifications-panel-header,
.calls-page-header,
.groups-panel-header,
.cloud-toolbar,
.naradh-calendar-toolbar {
  border-color: var(--naradh-border);
  background: transparent;
}

.notification-list,
.calls-page-list,
.groups-foundation-grid,
.anamika-cloud-main,
.naradh-calendar-workspace {
  max-width: none;
}

.notification-item,
.call-history-row,
.group-channel-row,
.cloud-table-wrap {
  box-shadow: none;
}

.cloud-refresh-inline,
.app-layout.cloud-active #refreshButton,
.app-layout.groups-active #refreshButton {
  display: none !important;
}

.cloud-left-panel {
  border: 0;
  background: transparent;
}

.cloud-left-heading {
  padding: 6px 2px 10px;
  border-bottom: 1px solid var(--naradh-border);
}

.cloud-section-grid a,
.cloud-section-grid div {
  min-height: 88px;
  background: var(--naradh-surface);
  border-color: var(--naradh-border);
}

.groups-sidebar-tabs {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.groups-sidebar-tabs--status {
  padding-top: 0;
}

.groups-sidebar-tab {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 10px 12px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-card-bg);
  color: var(--naradh-card-text);
  box-shadow: none;
  text-align: left;
  font: inherit;
  font-weight: 400;
}

.groups-sidebar-tab span {
  color: var(--naradh-text-strong);
  font-weight: 400;
}

.groups-sidebar-tab small {
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.groups-sidebar-tab.active,
.groups-sidebar-tab[aria-selected="true"] {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
}

.groups-sidebar-tab:not(.active):hover,
.groups-sidebar-tab:focus-visible {
  background: var(--naradh-hover);
}

.groups-archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.groups-archive-tabs button {
  width: auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--naradh-border);
  border-radius: 999px;
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  box-shadow: none;
  font-weight: 400;
}

.groups-archive-tabs button.active {
  border-color: var(--naradh-border-strong);
  background: var(--naradh-active);
  color: var(--naradh-text-strong);
  box-shadow: none;
}

.groups-archive-tabs span {
  min-width: 1.6em;
  min-height: 1.6em;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
  font-weight: 400;
}

.groups-panel .notifications-panel-actions {
  display: flex;
  gap: 8px;
}

.groups-panel .notifications-panel-actions .naradh-icon-action {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
}

.groups-foundation-grid {
  gap: 14px;
}

.group-create-form,
.group-channel-detail,
.group-channel-placeholder.empty {
  background: var(--naradh-surface);
  border-color: var(--naradh-border);
}

.naradh-calendar-sidebar,
.naradh-calendar-main,
.naradh-calendar-grid-wrap {
  background: transparent;
}

/* N8.21 Planner active reminders and recurrence markers */
.naradh-planner-reminder-surface {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.naradh-planner-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
}

.naradh-planner-reminder strong,
.naradh-calendar-recurrence-note {
  color: var(--naradh-text-strong);
  font-weight: 400;
}

.naradh-planner-reminder span {
  display: block;
  color: var(--naradh-text-muted);
}

.naradh-planner-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.naradh-planner-reminder-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
  font: inherit;
  font-weight: 400;
}

.naradh-calendar-repeat-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
}

.naradh-calendar-recurrence-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface-2);
}

/* N8.23 Planner timeline scroll and recurrence pattern controls */
.naradh-calendar-weekday-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.naradh-calendar-weekday-picker.hidden,
.naradh-calendar-recurrence-note.hidden {
  display: none;
}

.naradh-calendar-weekday-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--naradh-border);
  border-radius: 999px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
}

.naradh-calendar-weekday-toggle input {
  width: auto;
}

/* N8.23D Planner time, favourites, and Naradh logo branding */
.naradh-brand-lockup,
.naradh-brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
  text-align: right;
}

.naradh-brand-logo-img {
  display: block;
  width: auto;
  max-width: min(190px, 100%);
  height: 38px;
  max-height: 42px;
  object-fit: contain;
}

.inbox-brand .naradh-brand-logo-img {
  height: 46px;
  max-width: 220px;
}

.naradh-workspace__brand {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.naradh-workspace__brand .naradh-brand-logo-img,
.naradh-planner-brand .naradh-brand-logo-img {
  height: 30px;
  max-width: 180px;
}

.naradh-brand-tagline {
  display: block;
  align-self: stretch;
  margin: 3px 0 0;
  color: var(--naradh-text-muted);
  font: 400 12px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
  white-space: nowrap;
}

.naradh-planner-brand,
.naradh-planner-brand-lockup {
  align-items: center;
  gap: 10px;
}

.naradh-planner-brand-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.naradh-planner-brand .naradh-brand-tagline,
.naradh-workspace__brand .naradh-brand-tagline {
  font-size: 10px;
  line-height: 1.05;
}

.naradh-planner-brand-separator {
  color: var(--calendar-muted);
  font-weight: 400;
}

.naradh-planner-brand-module {
  color: var(--calendar-muted);
  font: 400 15px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-brand-text-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.naradh-favourite-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 22, 0.48);
}

.naradh-favourite-picker {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  padding: 16px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.naradh-favourite-picker header,
.naradh-favourite-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.naradh-favourite-picker h3 {
  margin: 0;
  font: 400 18px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-favourite-picker-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--naradh-border);
  border-radius: 7px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
  font: 400 14px/1.3 Arial, Helvetica, sans-serif;
}

.naradh-favourite-picker-list {
  display: grid;
  gap: 6px;
  overflow: auto;
}

.naradh-favourite-picker-row {
  width: 100%;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid var(--naradh-border);
  border-radius: 7px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text);
  text-align: left;
  font: 400 13px/1.25 Arial, Helvetica, sans-serif;
}

.naradh-favourite-picker-row > span:nth-child(2) {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.naradh-favourite-picker-row strong,
.naradh-favourite-picker-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-favourite-picker-row:disabled {
  opacity: 0.58;
  cursor: default;
}

.naradh-favourite-picker-status,
.naradh-favourite-picker-note {
  margin: 0;
  color: var(--naradh-text-muted);
  font: 400 12px/1.35 Arial, Helvetica, sans-serif;
}

.naradh-favourite-picker-status.error {
  color: var(--naradh-danger);
}

.naradh-conference-lobby-modal {
  position: fixed;
  inset: 0;
  z-index: 3700;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 22, 0.5);
}

.naradh-conference-lobby-modal--maximized {
  inset: 0;
  padding: 0;
  place-items: stretch;
}

.naradh-conference-invite-modal {
  position: fixed;
  inset: 0;
  z-index: 3720;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 13, 22, 0.34);
}

.naradh-conference-invite-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.naradh-conference-invite-card header,
.naradh-conference-invite-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.naradh-conference-invite-card h3 {
  margin: 0;
  font: 400 18px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-conference-invite-card span {
  color: var(--naradh-text-muted);
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
}

.naradh-conference-lobby {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.26);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

.naradh-conference-lobby--video {
  width: min(920px, 100%);
}

.naradh-conference-lobby-modal--maximized .naradh-conference-lobby {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
}

.naradh-conference-lobby-modal--maximized .naradh-conference-lobby--roster-open {
  width: 100vw;
}

.naradh-conference-lobby header,
.naradh-conference-lobby footer,
.naradh-conference-participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.naradh-conference-lobby header .naradh-icon-action,
.naradh-conference-invite-card header .naradh-icon-action {
  flex: 0 0 auto;
}

.naradh-conference-window-chrome {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
}

.naradh-conference-window-chrome .naradh-icon-action {
  width: 30px;
  height: 30px;
}

.naradh-conference-lobby h3 {
  margin: 0;
  font: 400 20px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-conference-media-disabled {
  padding: 10px 12px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface-2);
  color: var(--naradh-text-muted);
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
}

.naradh-conference-voice-ready {
  padding: 10px 12px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--naradh-text);
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
}

.naradh-conference-compact-status {
  padding: 7px 10px;
  font-size: 12px;
}

.naradh-conference-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.naradh-conference-lobby--roster-open .naradh-conference-main {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.naradh-conference-stage {
  min-width: 0;
  min-height: 230px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.naradh-conference-lobby--video .naradh-conference-stage {
  min-height: 360px;
}

.naradh-conference-lobby-modal--maximized .naradh-conference-lobby--video .naradh-conference-stage {
  min-height: 0;
  height: 100%;
}

.naradh-conference-lobby-modal--maximized .naradh-conference-lobby--roster-open .naradh-conference-stage {
  min-height: 0;
  height: 100%;
}

.naradh-conference-voice-stage {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--naradh-border);
  border-radius: 10px;
  background: radial-gradient(circle at top, rgba(8, 119, 168, 0.13), transparent 45%), var(--naradh-surface-2);
  text-align: center;
}

.naradh-conference-voice-stage span {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
}

.naradh-conference-voice-stage svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.naradh-conference-voice-stage strong {
  font: 400 18px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-conference-voice-stage small {
  max-width: 360px;
  color: var(--naradh-text-muted);
  font: 400 12px/1.35 Arial, Helvetica, sans-serif;
}

.naradh-conference-audio-stage {
  display: none;
}

.naradh-conference-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

.naradh-conference-video-grid--count-2,
.naradh-conference-video-grid--count-3,
.naradh-conference-video-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.naradh-conference-video-grid--count-3,
.naradh-conference-video-grid--count-4 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.naradh-conference-video-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: #07111e;
  color: #fff;
}

.naradh-conference-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #07111e;
}

.naradh-video-self,
.naradh-conference-video-tile--local > .naradh-conference-video,
.local-video {
  transform: scaleX(-1);
}

.naradh-video-remote,
.naradh-conference-video-tile:not(.naradh-conference-video-tile--local) > .naradh-conference-video,
.remote-video {
  transform: none;
}

.naradh-conference-video-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(8, 119, 168, 0.35), rgba(22, 163, 74, 0.22));
  color: #fff;
  font: 400 34px/1 Arial, Helvetica, sans-serif;
}

.naradh-conference-video-label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(7, 17, 30, 0.72);
  color: #fff;
  font: 400 11px/1.2 Arial, Helvetica, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.naradh-conference-roster {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.naradh-conference-roster-panel {
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--naradh-border);
  border-radius: 10px;
  background: var(--naradh-surface-2);
  padding: 10px;
}

.naradh-conference-lobby-modal--maximized .naradh-conference-roster-panel {
  height: 100%;
}

.naradh-conference-roster-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 400 12px/1.2 Arial, Helvetica, sans-serif;
}

.naradh-conference-roster-panel__head span {
  color: var(--naradh-text-muted);
}

.naradh-conference-participant {
  justify-content: flex-start;
  padding: 8px;
  border: 1px solid var(--naradh-border);
  border-radius: 8px;
  background: var(--naradh-surface-2);
}

.naradh-conference-participant > span:last-child {
  min-width: 0;
}

.naradh-conference-participant-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--naradh-accent-soft);
  color: var(--naradh-accent);
  font: 400 13px/1 Arial, Helvetica, sans-serif;
}

.naradh-conference-participant strong,
.naradh-conference-participant small,
.naradh-conference-empty {
  display: block;
  font: 400 13px/1.25 Arial, Helvetica, sans-serif;
}

.naradh-conference-participant small,
.naradh-conference-empty {
  color: var(--naradh-text-muted);
}

.naradh-conference-role-badge {
  display: inline-flex;
  align-items: center;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(8, 119, 168, 0.1);
  color: var(--naradh-accent);
  font: 400 10px/1.3 Arial, Helvetica, sans-serif;
  text-transform: capitalize;
}

.naradh-conference-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.naradh-conference-add-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 3730;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--naradh-modal-backdrop);
}

.naradh-conference-mini-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3710;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--naradh-border);
  border-radius: 999px;
  background: var(--naradh-surface);
  color: var(--naradh-text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  padding: 8px 9px 8px 12px;
}

.naradh-conference-mini-bar span {
  color: var(--naradh-accent);
}

.naradh-conference-mini-bar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.naradh-conference-mini-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 13px/1.2 Arial, Helvetica, sans-serif;
}

@media (max-width: 760px) {
  .naradh-conference-lobby {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }

  .naradh-conference-lobby header {
    align-items: flex-start;
  }

  .naradh-conference-window-chrome {
    flex-wrap: wrap;
    max-width: 168px;
  }

  .naradh-conference-lobby--roster-open .naradh-conference-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .naradh-conference-roster-panel {
    max-height: 220px;
  }

  .naradh-conference-lobby--video .naradh-conference-stage {
    min-height: 270px;
  }

  .naradh-conference-video-grid--count-2,
  .naradh-conference-video-grid--count-3,
  .naradh-conference-video-grid--count-4 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .naradh-conference-video-grid {
    overflow: auto;
  }

  .naradh-conference-video-tile {
    min-height: 180px;
  }

  .naradh-conference-add-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.naradh-conference-add-picker {
  box-sizing: border-box;
  width: min(460px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 14px;
  background: var(--naradh-modal-bg);
  color: var(--naradh-modal-text);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.naradh-conference-add-picker header,
.naradh-conference-add-picker footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.naradh-conference-add-picker h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.naradh-conference-add-picker header span,
.naradh-conference-add-search span {
  color: var(--naradh-modal-muted);
  font-size: 12px;
}

.naradh-conference-add-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.naradh-conference-add-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 10px;
  background: var(--naradh-modal-surface);
  color: var(--naradh-modal-muted);
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.25;
}

.naradh-conference-add-stats strong {
  color: var(--naradh-modal-text);
  font-size: 15px;
  font-weight: 600;
}

.naradh-conference-add-search {
  display: grid;
  gap: 6px;
}

.naradh-conference-add-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: var(--naradh-modal-input-text);
  background: var(--naradh-modal-input-bg);
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
  writing-mode: horizontal-tb;
  caret-color: currentColor;
  pointer-events: auto;
}

.naradh-conference-add-search input:disabled {
  cursor: not-allowed;
  color: var(--naradh-modal-muted);
  background: var(--naradh-modal-surface);
}

.naradh-conference-add-search input::placeholder {
  color: var(--naradh-modal-input-placeholder);
}

.naradh-conference-add-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.naradh-conference-add-section {
  display: grid;
  gap: 8px;
}

.naradh-conference-add-section > strong,
.naradh-conference-roster-section {
  color: var(--naradh-modal-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.naradh-conference-add-note {
  margin: 0;
  border: 1px solid rgba(8, 119, 168, 0.18);
  border-radius: 10px;
  background: rgba(8, 119, 168, 0.08);
  color: var(--naradh-accent);
  padding: 9px 10px;
  font-size: 12px;
}

.naradh-conference-add-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--naradh-modal-row-bg);
  color: var(--naradh-modal-text);
  cursor: pointer;
}

.naradh-conference-add-row:hover,
.naradh-conference-add-row:focus-visible {
  background: var(--naradh-modal-row-hover);
}

.naradh-conference-add-row.is-selected {
  border-color: var(--naradh-accent);
  background: var(--naradh-modal-row-selected);
}

.naradh-conference-add-row.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.naradh-conference-add-row input {
  width: auto;
  min-height: auto;
  accent-color: var(--naradh-accent);
  pointer-events: auto;
}

.naradh-conference-add-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.naradh-conference-add-row strong,
.naradh-conference-add-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.naradh-conference-add-row strong {
  font-size: 13px;
  font-weight: 600;
}

.naradh-conference-add-row small,
.naradh-conference-add-error {
  color: var(--naradh-modal-muted);
  font-size: 12px;
}

.naradh-conference-add-error {
  color: #b42335;
}

.naradh-conference-add-selected {
  margin-right: auto;
  color: var(--naradh-modal-muted);
  font-size: 12px;
  align-self: center;
}

.naradh-conference-remind-action {
  justify-self: end;
  align-self: center;
  min-height: 28px;
  border: 1px solid var(--naradh-modal-border);
  border-radius: 999px;
  background: var(--naradh-modal-surface);
  color: var(--naradh-accent);
  box-shadow: none;
  padding: 0 10px;
  font-size: 11px;
}

.naradh-conference-remind-action:not(:disabled):hover,
.naradh-conference-remind-action:not(:disabled):focus-visible {
  background: var(--naradh-modal-row-hover);
}

.naradh-forward-dialog,
.chat-people-dialog,
.notification-settings-dialog,
.rename-resource-dialog,
.storage-picker-panel,
.naradh-calendar-dialog,
.naradh-calendar-event-dialog,
.naradh-favourite-picker,
.naradh-call-preview-modal,
.naradh-conference-add-picker {
  background: var(--naradh-modal-bg);
  color: var(--naradh-modal-text);
  border-color: var(--naradh-modal-border);
}

.naradh-forward-dialog input,
.chat-people-dialog input,
.notification-settings-dialog input,
.notification-settings-dialog select,
.rename-resource-dialog input,
.rename-resource-dialog textarea,
.storage-picker-panel input,
.naradh-calendar-dialog input,
.naradh-calendar-dialog textarea,
.naradh-calendar-dialog select,
.naradh-calendar-event-dialog input,
.naradh-calendar-event-dialog textarea,
.naradh-calendar-event-dialog select,
.naradh-favourite-picker input,
.naradh-call-preview-modal input {
  background: var(--naradh-modal-input-bg);
  color: var(--naradh-modal-input-text);
  border-color: var(--naradh-modal-border);
}

.naradh-forward-dialog input::placeholder,
.chat-people-dialog input::placeholder,
.rename-resource-dialog input::placeholder,
.rename-resource-dialog textarea::placeholder,
.storage-picker-panel input::placeholder,
.naradh-calendar-dialog input::placeholder,
.naradh-calendar-dialog textarea::placeholder,
.naradh-calendar-event-dialog input::placeholder,
.naradh-calendar-event-dialog textarea::placeholder,
.naradh-favourite-picker input::placeholder,
.naradh-call-preview-modal input::placeholder {
  color: var(--naradh-modal-input-placeholder);
}

.naradh-conference-join-action,
.naradh-conference-joined-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 14px;
  font: 400 13px/1 Arial, Helvetica, sans-serif;
}

.naradh-conference-join-action svg,
.naradh-conference-joined-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.naradh-conference-joined-pill {
  border: 1px solid rgba(22, 163, 74, 0.36);
  background: rgba(22, 163, 74, 0.1);
  color: var(--naradh-text);
}

/* N9.9G global popup theme parity for dark/light/system modes */
.conversation-more-menu,
.message-action-menu,
.attachment-menu,
.group-mention-menu,
.naradh-filter-more-menu,
.naradh-conference-add-picker,
.naradh-forward-dialog,
.chat-people-dialog,
.notification-settings-dialog,
.rename-resource-dialog,
.storage-picker-panel,
.naradh-calendar-dialog,
.naradh-calendar-event-dialog,
.naradh-favourite-picker,
.naradh-call-preview-modal {
  background: var(--naradh-modal-bg);
  color: var(--naradh-modal-text);
  border-color: var(--naradh-modal-border);
}

.conversation-more-menu button,
.message-action-menu button,
.attachment-menu button,
.group-mention-menu button,
.naradh-filter-more-menu button,
.naradh-forward-dialog button,
.chat-people-dialog button,
.notification-settings-dialog button,
.rename-resource-dialog button,
.storage-picker-panel button,
.naradh-calendar-dialog button,
.naradh-calendar-event-dialog button,
.naradh-favourite-picker button,
.naradh-call-preview-modal button {
  border-color: var(--naradh-modal-border);
  background: var(--naradh-button-secondary-bg);
  color: var(--naradh-button-secondary-text);
}

.conversation-more-menu button:disabled,
.message-action-menu button:disabled,
.attachment-menu button:disabled,
.group-mention-menu button:disabled,
.naradh-filter-more-menu button:disabled,
.naradh-forward-dialog button:disabled,
.chat-people-dialog button:disabled,
.notification-settings-dialog button:disabled,
.rename-resource-dialog button:disabled,
.storage-picker-panel button:disabled,
.naradh-calendar-dialog button:disabled,
.naradh-calendar-event-dialog button:disabled,
.naradh-favourite-picker button:disabled,
.naradh-call-preview-modal button:disabled {
  background: var(--naradh-button-disabled-bg);
  color: var(--naradh-button-disabled-text);
  border-color: var(--naradh-modal-border);
  opacity: 1;
}
