/* CITADEL glass. Light, dark, and gray follow the ribbon mark. */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #e7f6f8;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-hover: rgba(18, 184, 216, 0.12);
  --border: rgba(16, 42, 58, 0.12);
  --text: #10242e;
  --text-muted: #4d6470;
  --accent: #2ad4f2;
  --accent-dim: #0e8ea8;
  --glow: rgba(18, 184, 216, 0.35);
  --success: #0f8f62;
  --danger: #c2412d;
  --sidebar-w: 248px;
  --shadow: 0 18px 40px rgba(16, 42, 58, 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071422;
  --bg-card: rgba(14, 28, 48, 0.92);
  --bg-hover: rgba(62, 224, 255, 0.12);
  --border: rgba(140, 220, 255, 0.18);
  --text: #e7f6ff;
  --text-muted: #8eafc4;
  --accent: #3adfff;
  --accent-dim: #1498c4;
  --glow: rgba(58, 223, 255, 0.45);
  --success: #5ee0a0;
  --danger: #ff8d7a;
  --sidebar-w: 248px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
html[data-theme="gray"] {
  color-scheme: dark;
  --bg: #2a3138;
  --bg-card: rgba(48, 56, 64, 0.78);
  --bg-hover: rgba(62, 200, 224, 0.14);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8eef2;
  --text-muted: #a7b3bc;
  --accent: #3ec8e0;
  --accent-dim: #2a8ea4;
  --glow: rgba(62, 200, 224, 0.28);
  --success: #8ddec0;
  --danger: #ffb0a4;
  --sidebar-w: 248px;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

:root {
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

.header { padding: 14px 44px; }
.content { padding: 12px 14px 16px; }
.card {
  padding: 12px 14px;
  margin-bottom: 10px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { margin: 0 0 10px; }
.sidebar-footer { position: relative; padding: 8px 12px 14px; }
.sidebar-footer .mini-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  padding: 0;
}
.sidebar-footer .mini-btn {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
}
.sidebar-footer #citadelUpdateBtn { grid-column: 1 / span 2; grid-row: 1; }
.sidebar-footer #themeToggle { grid-column: 3; grid-row: 1; font-size: 16px; }
.sidebar-footer #profileCardBtn { grid-column: 1; grid-row: 2; }
.sidebar-footer #changePasswordBtn { grid-column: 2; grid-row: 2; }
.sidebar-footer #logoutBtn { grid-column: 3; grid-row: 2; }
@media (max-width: 760px) {
  .header { padding: 12px; }
  .content { padding: 12px; }
  .card { padding: 14px; }
}

html, body, * {
  scrollbar-width: thin;
  scrollbar-color: var(--accent, #12b8d8) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--accent, #12b8d8);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--accent-dim, #0e8ea8); }
*::-webkit-scrollbar-corner { background: transparent; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.012em;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 420px at 12% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(18, 80, 120, 0.25), transparent 55%),
    var(--bg);
  transition: background 0.35s ease, color 0.35s ease;
}

button, input, select, textarea {
  font-family: inherit;
  letter-spacing: 0.01em;
}
h1, h2, h3 {
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 650;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
form.stack {
  display: grid;
  justify-items: stretch;
  gap: 14px;
  max-width: 720px;
}
form.stack > label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  line-height: 1.45;
}
form.stack > label input,
form.stack > label select {
  width: auto;
  min-width: 180px;
  flex: 1 1 180px;
}

.sidebar,
.card,
.login-card,
.modal-box,
.chat-inbox,
.chat-thread-card,
.chat-message,
.header,
.bar,
.summary .chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar {
  width: var(--sidebar-w);
  border-right: 1px solid var(--border);
  border-radius: 0 22px 22px 0;
  overflow: hidden;
  transition: width 0.2s ease;
}
.sidebar-brand {
  position: relative;
  height: auto;
  aspect-ratio: 1;
  margin: 10px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.brand-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
}
.brand-sweep.is-on { animation: brand-sweep 1.8s ease-in-out; }
@keyframes brand-sweep {
  0% { transform: translateX(-120%); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
.brand-glow-menu {
  position: fixed;
  z-index: 400;
  width: 280px;
  max-height: calc(100vh - 16px);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #0c1c30;
  color: #f4fbff;
  border: 1px solid rgba(18, 184, 216, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.brand-glow-menu h2 { margin: 0; font-size: 16px; color: #f4fbff; }
.brand-glow-note { margin: 0; font-size: 12px; line-height: 1.35; color: #9ec3d4; }
.brand-glow-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-glow-chips .brand-glow-btn { min-height: 30px; }
.brand-glow-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f4fbff;
  font-size: 14px;
}
.brand-glow-menu .brand-glow-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #163044;
  color: #f4fbff;
  font: inherit;
  font-size: 13px;
}
.brand-glow-menu .brand-glow-btn.is-on {
  background: #0e7f96;
  border-color: #12b8d8;
  color: #f4fbff;
}
.brand-glow-wide { width: 100%; }
.brand-glow-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-glow-row { display: flex; gap: 8px; }
.brand-glow-row .brand-glow-btn { flex: 1; }
.brand-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
}
.brand-swatch.is-on { border-color: #f4fbff; }
.brand-glow-events { display: grid; font-size: 14px; color: #f4fbff; }
.brand-glow-events label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(18, 184, 216, 0.18);
  color: #f4fbff;
}
.brand-glow-events input,
.brand-glow-switch input {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 99px;
  background: #2a3a48;
  position: relative;
}
.brand-glow-events input::after,
.brand-glow-switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d7e3ea;
}
.brand-glow-events input:checked,
.brand-glow-switch input:checked { background: #12b8d8; }
.brand-glow-events input:checked::after,
.brand-glow-switch input:checked::after { left: 18px; background: #fff; }
.brand-video,
.brand-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  image-rendering: auto;
}
.citadel-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #02060c;
}
.citadel-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adele-day {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: min(280px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #101826;
  color: #f4f7fb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.adele-day strong { display: block; font-size: 11px; letter-spacing: 0.12em; }
.adele-day p { margin: 6px 0 10px; font-size: 15px; line-height: 1.35; }
.adele-day button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f4f7fb;
  color: #101826;
  cursor: pointer;
}
html[data-theme="light"] .brand-dark { display: none; }
html[data-theme="dark"] .brand-light,
html[data-theme="gray"] .brand-light { display: none; }

.sidebar { height: 100vh; height: 100dvh; position: sticky; top: 0; min-height: 0; }
.sidebar-nav { flex: 1 1 auto; min-height: 0; padding: 4px 8px 12px; overflow: auto; }
.nav-group { margin: 20px 0 0; border-radius: 14px; }
.nav-group:first-child { margin-top: 0; }
.nav-group summary {
  cursor: pointer;
  list-style: none;
  padding: 0 8px 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-group summary::-webkit-details-marker { display: none; }
.sidebar .nav-item {
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 14px;
  gap: 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.sidebar .nav-item:hover {
  background: var(--bg-hover);
  transform: none;
}
.nav-accent,
button.primary,
.mini-btn.nav-accent {
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  color: #04202a;
  box-shadow: 0 8px 18px var(--glow);
}
button, .mini-btn, .btn {
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
button:hover, .mini-btn:hover, .btn:hover { transform: translateY(-1px); }
button:active, .mini-btn:active { transform: translateY(0) scale(0.98); }

input, select, textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform 0.18s ease;
}
input[type="checkbox"]:checked {
  background: var(--accent);
}
input[type="checkbox"]:checked::after { transform: translateX(16px); }

.chat-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 0;
  height: calc(100dvh - 148px);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 18, 24, 0.28);
}
.chat-inbox-pane,
.chat-detail-pane {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.chat-messages { flex: 1 1 auto; min-height: 0; overflow: auto; }
.chat-dock { flex: 0 0 auto; }
.chat-tools { margin: 0 8px; }
.chat-tools summary { cursor: pointer; font-size: 13px; color: var(--text-muted); }
.chat-tools-row { display: flex; gap: 6px; padding: 6px 0; }
.chat-tools .sound-link,
.chat-tools .avatar-controls { margin-top: 8px; }
.chat-head-face,
.chat-thread-header > .chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-thread-header { display: flex; align-items: flex-start; gap: 10px; }
.mention-search[hidden] { display: none !important; }
.chat-inbox-pane { border-right: 1px solid var(--border); background: var(--bg-card); }
.chat-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}
.chat-stage strong { color: var(--text); font-size: 1.15rem; }
.chat-thread-card { margin: 0; border-radius: 0; width: 100%; }
.chat-message { margin: 6px 12px; max-width: none; }
.chat-reply-pane:not([hidden]) {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100%);
  z-index: 4;
  border-radius: 0;
  background: var(--bg-card);
}
.chat-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chat-react {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 28px;
  min-height: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}
.chat-react svg { width: 18px; height: 18px; display: block; }
.chat-react.is-mine { border-color: #12b8d8; background: rgba(18, 184, 216, 0.16); }
.chat-react span { font-size: 11px; }
.nav-item.nav-accent {
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.sidebar .nav-item.nav-accent { font-weight: 500; background: transparent; color: var(--text); box-shadow: none; }
.sidebar .nav-item[aria-current="page"] {
  background: linear-gradient(180deg, var(--accent) 0, var(--accent) 2px, #08798f 2px, #086b81 100%);
  color: #fff;
  box-shadow: 0 3px 8px #0b6e801f;
}
html[data-theme="dark"] .sidebar .nav-item[aria-current="page"] {
  background: linear-gradient(180deg, var(--accent) 0, var(--accent) 2px, #087b91 2px, #076277 100%);
}
html[data-theme="gray"] .sidebar .nav-item[aria-current="page"] {
  background: linear-gradient(180deg, var(--accent) 0, var(--accent) 2px, #08778b 2px, #075b6d 100%);
}
.sidebar .nav-item[aria-current="page"] .nav-icon { color: #fff; }
#crmHelper.crm-helper-mini,
#adeleFloat.crm-helper-mini {
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: max-content;
  max-width: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  --adele-scale: 1;
}
.adele-bubble { display: none !important; }
.adele-live {
  display: none;
  position: relative;
  align-items: flex-end;
  background: transparent;
}
#crmHelper.is-open .adele-live,
#adeleFloat.is-open .adele-live { display: flex; }
#crmHelper.is-out .adele-live,
#adeleFloat.is-marked .adele-live { display: none; }
#crmHelper.is-placed {
  right: auto !important;
  bottom: auto !important;
}
.adele-glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  width: calc(108px * var(--adele-scale));
  height: calc(190px * var(--adele-scale));
  transform: translateX(-50%) scale(-1.12, 1.12);
  transform-origin: center bottom;
  transition: transform .8s ease, opacity .8s ease;
  filter: blur(16px);
  opacity: 0.42;
  pointer-events: none;
  background: transparent;
}
.adele-guide {
  position: relative;
  z-index: 1;
  width: calc(108px * var(--adele-scale));
  height: calc(190px * var(--adele-scale));
  background: transparent !important;
  border: 0;
  filter: none;
  cursor: grab;
  touch-action: none;
  transform: scaleX(-1);
  transition: transform .8s ease, opacity .8s ease;
}
#crmHelper.is-figure-off .adele-guide,
#adeleFloat.is-figure-off .adele-guide {
  transform: translateX(140%) scaleX(-1);
  opacity: 0;
  pointer-events: none;
}
#crmHelper.is-figure-off .adele-glow,
#adeleFloat.is-figure-off .adele-glow {
  transform: translateX(calc(-50% + 180px)) scale(-1.12, 1.12);
  opacity: 0;
}
#crmHelper.is-figure-off .adele-mark,
#adeleFloat.is-figure-off .adele-mark { visibility: hidden; }
.is-moving .adele-guide { cursor: grabbing; }
#crmHelper.crm-helper-mini { overflow: visible; }
#crmHelper:not(.is-open) .adele-live,
#crmHelper:not(.is-open) .adele-say { display: none !important; }
#crmHelper .adele-mark.is-parked { position: fixed; z-index: 142; }
.adele-say {
  position: fixed;
  z-index: 141;
  width: min(calc(220px * var(--adele-chat, var(--adele-scale))), 70vw);
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.adele-say p {
  margin: 0;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: calc(12px * var(--adele-chat, var(--adele-scale)));
  line-height: 1.3;
  color: #f4fbff;
  background: rgba(7, 20, 34, 0.82);
}
.adele-ask { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
.adele-field { position: relative; flex: 1; min-width: 0; }
.adele-tray {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transform-origin: 100% 0;
  pointer-events: none;
  transition: max-height .22s ease, opacity .16s ease, transform .22s ease;
}
.adele-say.is-ask .adele-tray,
.adele-say:focus-within .adele-tray,
.adele-say:hover .adele-tray {
  max-height: 34px;
  margin-top: 4px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.adele-mic, .adele-voice, .adele-send {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #128eab;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.adele-mic { position: static; }
.adele-send { background: #12b8d8; color: #042430; }
.adele-mic svg, .adele-voice svg, .adele-send svg { width: 15px; height: 15px; display: block; }
.adele-mic.is-on { color: #04202a; background: #12b8d8; }
.adele-voice { background: rgba(18, 184, 216, 0.16); }
.adele-voice.is-off { opacity: 0.4; }
html[data-theme="light"] .adele-say p {
  color: #102033;
  background: rgba(255, 255, 255, 0.92);
}
.adele-back {
  align-self: flex-end;
  min-height: 32px;
  margin-bottom: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #12b8d8;
  color: #04202a;
  font: inherit;
  font-size: 13px;
}
.adele-say textarea {
  width: 100%;
  min-height: 34px;
  max-height: 96px;
  resize: none;
  overflow: hidden;
  border: 1px solid rgba(18, 184, 216, 0.55);
  border-radius: 12px;
  padding: 6px 10px;
  line-height: 1.3;
  font: inherit;
  font-size: calc(13px * var(--adele-chat, var(--adele-scale)));
  background: rgba(255, 255, 255, 0.9);
  color: #102033;
}
html[data-theme="dark"] .adele-say textarea {
  background: rgba(7, 20, 34, 0.72);
  color: #f4fbff;
}
.adele-say.is-below {
  top: calc(100% + 8px);
  bottom: auto;
}
.adele-say.is-right {
  right: auto;
  left: calc(100% + 8px);
}
#crmHelper.is-out .adele-say { display: none !important; }
.adele-menu {
  position: fixed;
  z-index: 180;
  display: grid;
  gap: 4px;
  min-width: 200px;
  padding: 8px;
  background: rgba(7, 20, 34, 0.94);
  border: 1px solid rgba(18, 184, 216, 0.45);
  border-radius: 14px;
}
.adele-menu[hidden] { display: none !important; }
.adele-site-sheet {
  position: fixed;
  z-index: 190;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 16px;
  background: #0c1c30;
  color: #f4fbff;
  border: 1px solid rgba(18, 184, 216, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.adele-site-sheet h2 { margin: 0; font-size: 18px; }
.adele-site-sheet input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(18, 184, 216, 0.45);
  background: transparent;
  color: inherit;
  padding: 0 10px;
}
.adele-site-sheet div { display: flex; gap: 8px; }
.adele-site-sheet button {
  min-height: 36px;
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(18, 184, 216, 0.7);
  background: transparent;
  color: #f4fbff;
}
.adele-site-sheet button[type="submit"] { background: #12c8e0; color: #042430; border-color: #12c8e0; }
.adele-back-figure {
  height: 26px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #12b8d8;
  color: #042430;
  font: inherit;
  font-size: 11px;
  line-height: 26px;
  flex: 0 0 auto;
}
.adele-back-figure[hidden] { display: none !important; }
.adele-menu button,
.desk-menu button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f4fbff;
  text-align: left;
  font: inherit;
  font-size: 13px;
  padding: 0 8px;
}
.desk-menu {
  position: fixed;
  z-index: 160;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 20, 34, 0.92);
  border: 1px solid rgba(18, 184, 216, 0.45);
}
.adele-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  touch-action: none;
  z-index: 142;
}
#crmHelper.is-awake .adele-mark,
#adeleFloat.is-awake .adele-mark,
#adeleFloat.is-marked .adele-mark {
  animation: adele-pulse 1.3s ease-in-out infinite;
}
html[data-adele-float="1"],
html[data-adele-float="1"] body {
  background: transparent !important;
}
html[data-adele-float="1"] #appShell,
html[data-adele-float="1"] #loginScreen,
html[data-adele-float="1"] .citadel-intro,
html[data-adele-float="1"] .adele-mark { display: none !important; }
html[data-adele-float="1"] body { margin: 0; overflow: hidden; }
#adeleFloat {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 8px;
  align-items: stretch;
  justify-content: flex-end;
}
#adeleFloat .adele-live { width: 100%; flex-direction: column; align-items: center; }
#adeleFloat .adele-back { align-self: flex-end; }
#adeleFloat .adele-guide { width: 120px; height: 210px; }
#adeleFloat .adele-say,
#adeleFloat .adele-menu {
  position: static !important;
  left: auto;
  right: auto;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
#adeleFloat .adele-say p,
#adeleFloat .adele-say textarea {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}
#adeleFloat .adele-say textarea { display: block; }
#adeleFloat.is-marked { width: 72px; height: 72px; }
#adeleFloat.is-marked .adele-mark { display: inline-flex !important; }
#adeleUpdateLine { margin: 8px 0 0; color: #0b6e84; }
#crmHelper .mini-btn.is-speaking {
  color: #04202a;
  border-color: #12b8d8;
  background: #12b8d8;
  animation: adele-pulse 1.3s ease-in-out infinite;
}
@keyframes adele-pulse {
  50% { background: #f1b273; border-color: #f1b273; }
}
.chat-inbox-section-title {
  margin: 8px 10px 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.chat-thread-card, .chat-message {
  border-radius: 16px;
  margin: 6px;
  padding: 8px 10px;
}
.chat-avatar, .chat-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  box-shadow: 0 0 0 2px var(--glow);
  background: var(--accent);
  color: #04202a;
  font-size: 12px;
  font-weight: 700;
}
.chat-message--outgoing { margin-left: 18%; }
.chat-message--incoming { margin-right: 18%; }
.chat-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #04202a;
  font-size: 11px;
}

.login-screen { position: relative; }
.login-card { border-radius: 24px; }

@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; height: auto; min-height: 70dvh; }
  .chat-shell--detail .chat-inbox-pane { display: none; }
  .sidebar { border-radius: 0; }
}
.call-handset, .call-hangup {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 0;
  border-radius: 12px;
}
.call-handset svg, .call-hangup svg { width: 18px; height: 18px; }
.call-handset { background: #12b8d8; color: #04202a; }
.call-hangup { background: #c2412d; color: white; }
.emoji-bar { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.emoji-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: var(--bg-hover);
  font-size: 20px;
}
.chat-message {
  max-width: 86%;
  border-radius: 18px;
}
.chat-compose, .mention-compose { border-radius: 18px; }
#themeToggle, #mobileThemeToggle { font-size: 20px; min-width: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* citadel-call-row */
.call-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px;
  overflow: hidden;
}
.call-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.call-channel .call-handset {
  min-width: 0;
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}
.call-stage {
  display: none;
  position: relative;
  margin-top: 12px;
}
.call-stage.is-live { display: block; }
.call-remote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 180px;
  background: #041525;
  border-radius: 16px;
  overflow: hidden;
}
.call-remote:has(.call-peer + .call-peer) { grid-template-columns: 1fr 1fr; }
.call-peer {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #041525;
}
.call-stage video[data-role="local"] {
  position: absolute;
  width: 88px;
  height: 124px;
  right: 10px;
  top: 10px;
  object-fit: cover;
  border-radius: 12px;
  z-index: 2;
  background: #08243c;
}
.call-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 4px;
}
.call-round {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #123246;
  color: #fff;
  font-size: 20px;
}
.call-round-end { background: #c2412d; }
.call-round.is-off { opacity: 0.45; }
@media (max-width: 700px) {
  .toast-container {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* citadel-dock */
.citadel-dock { display: none; }
.citadel-dock[hidden],
.citadel-more[hidden],
.more-row[hidden],
.dock-btn[hidden] { display: none !important; }

.adele-bubble {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 131;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  width: min(280px, 34vw);
  padding: 8px 12px 8px 6px;
  color: #f4fbff;
  background: rgba(16, 32, 51, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}
html[data-theme="light"] .adele-bubble {
  color: #102033;
  background: rgba(247, 251, 253, 0.9);
}
@media (max-width: 900px) {
  .citadel-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    margin: 0;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    background: #0d1b2c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
  }
  html[data-theme="light"] .citadel-dock {
    background: #f4fbfe;
    border-top-color: rgba(16, 36, 46, 0.08);
  }
  html[data-theme="gray"] .citadel-dock { background: #1c2430; }
  .dock-btn {
    min-height: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #8ea0b5;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
  }
  .dock-btn.active,
  .dock-btn[aria-current="page"] { color: #3ec6e0; }
  html[data-theme="light"] .dock-btn.active,
  html[data-theme="light"] .dock-btn[aria-current="page"] { color: #0b7f99; }
  .app { padding-bottom: calc(48px + 12px + env(safe-area-inset-bottom)); }
  .bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 12px;
  }
  .bento-card {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 92px;
    padding: 12px;
    text-align: left;
    color: #f4fbff;
    background: #102033;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }
  .bento-card.is-wide { grid-column: 1 / -1; }
  .bento-card:active { transform: scale(0.98); }
  .bento-name { color: #8ea0b5; font-size: 13px; }
  .bento-value { font-size: 28px; line-height: 1; }
  .bento-detail { color: #8ea0b5; font-size: 12px; }
  .bento-bar {
    display: block;
    height: 4px;
    margin-top: 6px;
    border-radius: 99px;
    background: #12b8d8;
  }
  .bento-events { border-radius: 20px; }
  .bento-events h2 { margin: 0 0 8px; font-size: 16px; }
  .bento-events p { margin: 0 0 6px; }
  .toast-container { bottom: 84px; }
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.bento-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 110px;
  padding: 14px;
  text-align: left;
  color: inherit;
  background: #102033;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}
html[data-theme="light"] .bento-card { background: #f7fbfd; color: #102033; }
.bento-card.is-wide { grid-column: span 2; }
.bento-name, .bento-detail { color: #8ea0b5; font-size: 13px; }
.bento-value { font-size: 28px; line-height: 1; }
.bento-bar { display: block; height: 4px; margin-top: 8px; border-radius: 99px; background: #12b8d8; }
.bento-card:active { transform: scale(0.98); }

html[data-theme="dark"] .login-screen { background: #071422; }
html[data-theme="dark"] .login-card {
  background: #102033;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}
html[data-theme="dark"] .login-title { color: #f4fbff; }
.login-form .btn,
.login-form button[type="submit"] {
  min-height: 52px;
  border-radius: 16px;
  background: #128eab;
}

/* citadel-chat-face */
.chat-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 2px 0 6px;
}
.chat-filters::-webkit-scrollbar { display: none; }
.chat-filter {
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 14px rgba(16, 60, 80, 0.08);
  color: inherit;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
html[data-theme="dark"] .chat-filter,
html[data-theme="gray"] .chat-filter {
  background: rgba(14, 36, 52, 0.42);
  border-color: rgba(190, 230, 240, 0.2);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.chat-filter.is-on {
  background: #12b8d8;
  color: #04202a;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.citadel-land {
  outline: 2px solid #39f3ff;
  box-shadow: 0 0 0 3px rgba(57, 243, 255, 0.45), 0 0 28px rgba(57, 243, 255, 0.9);
  animation: citadel-land-pulse 0.55s ease 4;
}
@keyframes citadel-land-pulse {
  50% { box-shadow: 0 0 0 5px rgba(57, 243, 255, 0.2), 0 0 42px rgba(57, 243, 255, 1); }
}
#headerActions .btn.chat-plus,
.btn.chat-plus {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  aspect-ratio: 1;
  align-self: center;
  box-sizing: border-box;
  padding: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 40px;
}
.chat-thread-card {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  padding: 12px 4px;
}
.chat-thread-card-head {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-thread-type {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.chat-thread-card-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.chat-thread-card-preview { margin: 2px 0 0; }
.chat-compose {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 8px;
  padding-top: 8px;
}
.emoji-bar { flex: 1 0 100%; }
.chat-compose .mention-compose,
.chat-compose textarea {
  flex: 1 1 140px;
  min-width: 0;
  border-radius: 18px;
}
.composer-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 20px;
}
.chat-compose button[type="submit"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
.chat-message {
  border-radius: 18px;
}

/* citadel-room-face */
.call-start {
  width: 100%;
  min-height: 48px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 14px;
  background: #12b8d8;
  color: #04202a;
  font: inherit;
  font-weight: 750;
}
.call-board .call-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
}
.call-join {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #12b8d8;
  background: transparent;
  color: #12b8d8;
  font: inherit;
}
.call-controls .call-round {
  width: auto;
  height: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.call-round-glyph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16324a;
  font-size: 22px;
}
.call-round-end .call-round-glyph { background: #e23d3d; }
.call-round-label { font-size: 12px; }
.call-stage { order: -1; margin: 0 0 14px; }
.call-stage.is-live { display: block; }
.call-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.call-tile { position: relative; min-width: 0; }
.call-tile-ring {
  border-radius: 22px;
  overflow: hidden;
  background: #041525;
  aspect-ratio: 4 / 3;
}
.call-tile-video,
.call-tile video,
.call-stage video[data-role="local"] {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: #08243c;
}
.call-tile-name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(4, 16, 28, 0.72);
  color: #f4fbff;
  font-size: 13px;
}
.call-tile.is-speaking .call-tile-ring {
  animation: call-wave 1.15s ease-out infinite;
}
@keyframes call-wave {
  0% { box-shadow: 0 0 0 0 rgba(18, 184, 216, 0.8); }
  75% { box-shadow: 0 0 0 14px rgba(18, 184, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 184, 216, 0); }
}
.call-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.call-start svg,
.call-round-glyph svg { width: 22px; height: 22px; }
.call-round-end .call-round-glyph svg { transform: rotate(135deg); }
.call-round.is-off .call-round-glyph { opacity: 0.4; }
.call-toolbar { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.call-gear {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: transparent;
  font-size: 18px;
  transition: transform .16s ease;
}
.call-gear:active { transform: scale(0.94); }
.call-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  padding: 4px 0 8px;
}
.call-channel {
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
}
.call-room-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-room-meta { display: block; font-size: 12px; }
.call-clip {
  width: 28px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: grab;
  padding: 0;
  display: grid;
  place-items: center;
  touch-action: none;
}
.call-clip svg { width: 18px; height: 18px; stroke-width: 3; }
.call-clip.is-pin { color: var(--accent); }
.call-entry-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #12b8d8;
  border-radius: 12px;
  background: #071422;
  color: #f4fbff;
  padding: 0;
  display: grid;
  place-items: center;
  z-index: 4;
}
.call-entry-pop svg { width: 18px; height: 18px; }
.call-note {
  position: fixed;
  z-index: 81;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 16px));
  padding: 10px;
  border-radius: 14px;
  background: rgba(7, 20, 34, 0.94);
  border: 1px solid #12b8d8;
}
.call-note textarea {
  min-height: 64px;
  border-radius: 10px;
  padding: 8px;
}
.call-channel { transition: transform .22s ease; }
.call-channel.is-dragging { opacity: 0.92; cursor: grabbing; z-index: 4; box-shadow: 0 14px 28px rgba(8, 30, 48, 0.28); }
.call-face { width: 36px; height: 36px; border: 0; padding: 0; border-radius: 10px; object-fit: cover; background: #16324a; display: grid; place-items: center; color: #d7f6ff; font: inherit; font-weight: 700; cursor: pointer; }
.call-face img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.call-face:disabled { cursor: default; }
.call-handset { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: 0; border-radius: 14px; background: #12b8d8; color: #04202a; padding: 0; position: relative; z-index: 2; }
.call-handset svg { width: 20px; height: 20px; }
.call-handset.is-busy { color: #3ec2ff; filter: drop-shadow(0 0 6px #1aa7ff); }
.call-channel.is-pinned { outline: 1px solid rgba(18, 184, 216, 0.45); }
.call-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.call-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
}
.call-menu button:hover,
.call-menu button:focus { background: var(--bg-hover); color: var(--text); }
html[data-theme="light"] .call-menu { background: #ffffff; color: #10242e; }
html[data-theme="light"] .call-menu button { color: #10242e; }
html[data-theme="dark"] .call-menu { background: #07182a; color: #f4fbff; }
html[data-theme="dark"] .call-menu button { color: #f4fbff; }
html[data-theme="gray"] .call-menu { background: #3a444e; color: #f4f7f8; }
html[data-theme="gray"] .call-menu button { color: #f4f7f8; }
.call-channel.is-once { background: rgba(226, 61, 61, 0.14); border-left: 4px solid #e23d3d; }
.call-channel.is-timed { background: rgba(226, 180, 61, 0.16); border-left: 4px solid #e2b43d; }
.call-channel.is-keep { background: rgba(61, 204, 122, 0.12); border-left: 4px solid #3dcc7a; }
.call-channel.is-locked { background: rgba(61, 125, 255, 0.14); border-left: 4px solid #3d7dff; }
.call-channel.is-live { animation: call-live 1.6s ease-in-out infinite; }
@keyframes call-live {
  50% { box-shadow: 0 0 0 3px rgba(18, 184, 216, 0.28); }
}
.call-who { display: flex; gap: 6px; margin-top: 4px; }
.call-who-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 92px; }
.call-who-face {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12b8d8;
  color: #04202a;
  font-size: 11px;
  font-weight: 700;
}
.call-who-name { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sample-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(16, 32, 51, 0.2);
  border-radius: 14px;
  background: transparent;
}
.sample-card p { margin: 2px 0 0; color: #8ea0b5; font-size: 12px; }
.sample-x {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}
#crmHelper .adele-mark,
#adeleFloat .adele-mark {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(18, 184, 216, 0.75);
  border-radius: 50%;
  background: #fff;
  color: #0b6e84;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 36px;
  aspect-ratio: 1;
  overflow: hidden;
}
#crmHelper .adele-mark:hover,
#crmHelper .adele-mark:active,
#adeleFloat .adele-mark:hover,
#adeleFloat .adele-mark:active { transform: none; }
#crmHelper .adele-mark svg,
#adeleFloat .adele-mark svg { width: 36px; height: 36px; display: block; }
#crmHelper .adele-mark text,
#adeleFloat .adele-mark text {
  font-size: 18px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  fill: currentColor;
}
.tab-btn, .task-view-toggle .tab-btn, .btn, .mini-btn, .call-start, .dock-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .14s ease, background .14s ease;
}
.tab-btn:active, .btn:active, .call-start:active { transform: scale(0.96); }
.call-card-actions { display: flex; gap: 8px; align-items: center; }
.call-delete { border: 0; background: transparent; color: #e23d3d; font: inherit; cursor: pointer; }
.call-hand, .call-prefs { font: inherit; }
.call-hand {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e2b43d;
  background: transparent;
  color: #e2b43d;
  display: grid;
  place-items: center;
}
.call-hand svg { width: 16px; height: 16px; }
.call-controls { position: relative; padding-left: 44px; }
.call-add {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 92px;
  display: grid;
  gap: 8px;
  width: min(280px, calc(100% - 24px));
  padding: 12px;
  border-radius: 14px;
  background: #0c1c30;
  color: #f4fbff;
}
.call-add select { min-height: 88px; }
.call-hand.is-on { background: #e2b43d; color: #04202a; }
.call-prefs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 12px; }
.call-pref { display: inline-flex; gap: 6px; align-items: center; }
.call-tile.is-hand .call-tile-name::after { content: ' · рука'; }
.profile-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.crop-host { flex: 1 1 100%; }
.crop-box { display: grid; gap: 8px; }
.crop-canvas { width: min(100%, 320px); height: auto; border-radius: 16px; touch-action: none; cursor: move; }
.profile-card-photo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: #16324a; }
.profile-card-letter { display: grid; place-items: center; color: #d7f6ff; font-size: 28px; }
.profile-phone { display: flex; gap: 8px; }
.profile-phone select { max-width: 120px; }
.profile-links { display: flex; gap: 8px; margin: 8px 0; }
.profile-link { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #12b8d8; background: transparent; color: #12b8d8; }
.profile-link svg { width: 22px; height: 22px; }
.profile-pop { display: grid; gap: 8px; margin: 8px 0 12px; padding: 10px; border-radius: 12px; background: rgba(18, 184, 216, 0.08); }
.adele-brain-text {
  width: 100%;
  min-height: 160px;
  margin: 8px 0;
  resize: vertical;
}
.adele-dock {
  position: fixed;
  right: 10px;
  bottom: 58px;
  z-index: 35;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 14px;
  background: #102126;
  color: #f4fbff;
  border: 1px solid #12b8d8;
}
.adele-dock input {
  width: 100%;
  min-height: 36px;
}
.adele-tip {
  position: fixed;
  z-index: 45;
  max-width: 280px;
  padding: 10px;
  border-radius: 14px;
  background: #12343c;
  color: #f4fbff;
  border: 1px solid #12b8d8;
}
.adele-tip p { margin: 0 0 8px; }
.adele-gear { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #12b8d8; background: transparent; color: #12b8d8; font-size: 20px; }
.adele-copy { background: #1f8a4c; color: #fff; border: 0; border-radius: 12px; min-height: 36px; padding: 0 12px; animation: adele-blink 1s steps(2) infinite; }
@keyframes adele-blink { 50% { opacity: 0.45; } }
.adele-jobs { display: grid; gap: 8px; margin-top: 10px; }
.adele-triad { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adele-dept { padding: 14px 16px; border-radius: 16px; background: rgba(18, 184, 216, 0.08); }
.adele-code { margin: 0 0 4px; font-weight: 750; letter-spacing: 0.06em; }
.adele-job { padding: 12px 14px; border-radius: 12px; background: rgba(18, 184, 216, 0.08); }
.adele-head { margin-bottom: 8px; }
.agent-deck-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.agent-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.agent-set {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  padding: 16px;
  border-radius: 16px;
  background: #0c1c30;
  color: #f4fbff;
  border: 1px solid rgba(18, 184, 216, 0.55);
}
.agent-set h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.agent-set-top { display: flex; align-items: center; justify-content: space-between; }
.agent-set-mark { margin: 0; color: #12c8e0; font-size: 12px; letter-spacing: 0.16em; }
.agent-role { margin: 0; color: #9ec9d6; }
.agent-live { margin: 0; color: #d7e7f2; }
.agent-live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f5c400;
}
.agent-live.is-off::before { background: #6b7c88; }
.agent-instruction,
.agent-memory {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(18, 184, 216, 0.45);
  background: transparent;
  color: inherit;
  font: inherit;
}
.agent-instruction { min-height: 88px; resize: vertical; }
.agent-memory[hidden] { display: none; }
.agent-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.agent-btn,
.agent-chip,
.agent-choice {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(18, 184, 216, 0.7);
  background: transparent;
  color: #f4fbff;
  font: inherit;
}
.agent-btn.is-fill { background: #12c8e0; color: #042430; border-color: #12c8e0; }
.agent-memory-btn { display: flex; align-items: center; justify-content: space-between; }
.agent-other { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip { padding: 0 12px; }
.agent-choices { display: grid; gap: 8px; }
.agent-choice { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 0 12px; }
.agent-choice.is-on { background: #12c8e0; color: #042430; border-color: #12c8e0; }
.agent-radio { width: 16px; text-align: center; }
.agent-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(18, 184, 216, 0.55);
}
.agent-switch input {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 99px;
  background: #2a3a48;
  position: relative;
}
.agent-switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.agent-switch input:checked { background: #12c8e0; }
.agent-switch input:checked::after { left: 18px; }
.agent-hint { margin: 0; color: #9ec9d6; font-size: 13px; }
.agent-size { display: grid; gap: 6px; color: #d7e7f2; font-size: 14px; }
.agent-size input { width: 100%; accent-color: #12c8e0; }
.agent-extra { margin-top: 12px; }
@media (max-width: 1100px) {
  .agent-deck { grid-template-columns: 1fr; }
}
.media-shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.media-block { margin-top: 12px; }
.media-folder,
.media-folders .empty-state {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
}
.gallery-file { width: 180px; flex: 0 0 180px; display: grid; gap: 6px; }
.gallery-file-head { display: grid; gap: 6px; }
.gallery-file-name { display: block; font-size: 12px; line-height: 1.35; word-break: break-word; }
.gallery-file-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-file img,
.gallery-file video {
  width: 148px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

/* citadel-more-face */
.citadel-more {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 76px;
  z-index: 125;
  max-height: min(70vh, 560px);
  overflow: auto;
  margin: 0 10px;
  padding: 12px;
  border-radius: 18px;
  background: #102033;
  color: #e7f4fb;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] .citadel-more { background: #f7fbfd; color: #10242e; }
.citadel-more h2 { margin: 0 0 8px; }
.citadel-more h3 {
  margin: 14px 0 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .7;
}
.more-row {
  display: block;
  width: 100%;
  min-height: 46px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
}
.more-row-out { color: #e06a6a; }
.attach-sheet, .sketch-pad {
  flex: 1 0 100%;
  padding: 8px;
  border-radius: 16px;
  background: #102033;
}
html[data-theme="light"] .attach-sheet,
html[data-theme="light"] .sketch-pad { background: #f4fbfe; }
.attach-title { margin: 0 0 8px; font-weight: 700; }
.attach-row {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
}
.sketch-canvas {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: #f7fbff;
  touch-action: none;
}

/* citadel-external-face */
.external-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 58px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.external-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.external-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.external-bubble {
  max-width: 82%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: #16324a;
  white-space: pre-wrap;
}
.external-bubble-out {
  align-self: flex-end;
  background: #0e6f86;
}
.is-vk .chat-message--incoming .external-service-bubble {
  background: #f3f4f6;
  color: #1d1d1f;
  border-radius: 4px 14px 14px 14px;
}
.is-vk .chat-message--outgoing .external-service-bubble {
  background: #5181b8;
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}
.is-avito .chat-message--incoming .external-service-bubble {
  background: #f2f3f5;
  color: #1a1a1a;
  border-radius: 4px 16px 16px 16px;
}
.is-avito .chat-message--outgoing .external-service-bubble {
  background: #00aaff;
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}
.is-vk .external-row,
.is-avito .external-row {
  min-height: 52px;
  padding: 6px 2px;
}
.chat-thread-card--selected {
  background: rgba(42, 212, 242, 0.2);
}
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.oc-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 42, 58, 0.08);
}
html[data-theme="dark"] .oc-card { background: rgba(8, 28, 48, 0.72); }
.oc-photo {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 12px;
  background: #16324a;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.oc-photo img { width: 100%; height: 100%; object-fit: cover; }
.oc-card p { margin: 2px 0; font-size: 12px; }
.oc-card input { width: 100%; min-height: 28px; font-size: 12px; }
.shell-card h2 { margin-bottom: 4px; }
.shell-row { display: flex; gap: 8px; margin-top: 8px; }
.shell-row a { text-decoration: none; }
.adele-find {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: min(420px, calc(100vw - 32px));
  height: min(520px, 70vh);
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: #071422;
  border: 1px solid #2ad4f2;
}
.adele-find div { display: flex; justify-content: space-between; align-items: center; color: #f4fbff; }
.adele-find iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; }
.external-locked,
.external-compose {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #102033;
}
.external-compose { opacity: 0.7; }
.voice-orb {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #12b8d8;
  color: #04202a;
  font-size: 18px;
}
.voice-orb.is-live { background: #e23d3d; color: #fff; box-shadow: 0 0 0 6px rgba(226, 61, 61, 0.28); }
.voice-orb:disabled { opacity: 0.4; }

/* Лицо мессенджера: чат, звонок, комнаты. */
.chat-thread-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  text-align: left;
}
.chat-thread-card-head { display: contents; }
.chat-thread-card .chat-avatar,
.chat-thread-card .chat-avatar-placeholder {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
}
.chat-thread-card-title { grid-column: 2; grid-row: 1; }
.chat-thread-card-time { grid-column: 3; grid-row: 1; justify-self: end; }
.chat-thread-card-preview {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-thread-card .chat-unread-badge { grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }
.chat-message {
  max-width: min(78%, 520px);
  margin: 4px 12px;
  padding: 8px 12px;
}
.chat-message--incoming {
  margin-right: auto;
  background: #13283a;
  border-radius: 16px 16px 16px 4px;
}
.chat-message--outgoing {
  margin-left: auto;
  background: #0e4e5c;
  border-radius: 16px 16px 4px 16px;
}
.chat-compose {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
  margin: 8px;
  padding: 6px 8px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.chat-compose textarea { max-height: 96px; resize: none; }
.chat-compose .neon-mode { order: 0; flex: 0 0 auto; }
.chat-compose .composer-icon,
.chat-compose .voice-orb,
.chat-compose .mention-compose,
.chat-compose button[type="submit"] { order: 1; flex: 0 0 auto; }
.chat-compose .mention-compose { flex: 1 1 120px; min-width: 0; }
.chat-compose .emoji-bar,
.chat-compose .attach-sheet,
.chat-compose .sketch-pad,
.chat-compose .chat-local-preview,
.chat-compose > .muted,
.chat-compose > .btn { order: 3; flex: 1 0 100%; }
.call-board { display: grid; gap: 12px; padding: 14px; }
.call-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
}
.call-channel .call-join { order: -1; justify-self: start; }
.call-channel {
  display: grid;
  grid-template-columns: 36px 22px 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.call-handset,
.call-channel .call-handset {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  justify-self: end;
}
.call-prefs { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.call-pref {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
}
.call-stage.is-live { border-radius: 18px; overflow: hidden; }
@media (min-width: 900px) {
  .call-channels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .chat-shell { height: calc(100dvh - 196px); min-height: 420px; }
  #crmHelper.crm-helper-mini { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .dock-btn { min-height: 46px; font-size: 11px; line-height: 1.15; padding: 2px 2px 4px; }
  .toast-container { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
html[data-theme="light"] .chat-message--incoming { background: #e7f4f8; }
html[data-theme="light"] .chat-message--outgoing { background: #c9eef5; }
html[data-theme="light"] .chat-compose { background: #f7fbfd; }
html[data-theme="light"] .chat-thread-card { border-bottom-color: rgba(16, 36, 46, 0.08); }
.neon-mode {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #12b8d8;
  background: transparent;
  color: #12b8d8;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 10px rgba(18, 184, 216, 0.45);
}
.neon-mode.is-blue { color: #1494e6; border-color: #1494e6; box-shadow: 0 0 12px rgba(20, 148, 230, 0.7); }
.neon-mode.is-green { color: #1f9d55; border-color: #1f9d55; box-shadow: 0 0 12px rgba(31, 157, 85, 0.65); }
.neon-mode.is-red { color: #d64545; border-color: #d64545; box-shadow: 0 0 12px rgba(214, 69, 69, 0.65); }
html[data-theme="dark"] .neon-mode.is-blue { color: #7fd4ff; }
html[data-theme="dark"] .neon-mode.is-green { color: #7dffa8; }
html[data-theme="dark"] .neon-mode.is-red { color: #ff8d9a; }
.voice-picker { display: grid; gap: 6px; margin-top: 8px; }
.voice-picker-row { display: flex; gap: 8px; flex-wrap: wrap; }
.voice-script { margin: 6px 0 0; }
.visit-designs, .visit-contacts, .visit-grant { display: grid; gap: 8px; margin-top: 8px; }
.visit-preview { margin: 8px 0; }
.visit-card {
  width: min(100%, 360px);
  min-height: 168px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: #10242e;
}
.visit-photo, .visit-letter { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: #16324a; color: #fff; font-size: 28px; }
.visit-copy { display: grid; gap: 3px; min-width: 0; }
.visit-copy span { overflow: hidden; text-overflow: ellipsis; }
.visit-card.is-band { border-left: 8px solid #12b8d8; }
.visit-card.is-plain { grid-template-columns: 1fr; text-align: center; }
.visit-card.is-plain .visit-photo, .visit-card.is-plain .visit-letter { margin: 0 auto; }
.visit-card.is-night { background: #10242e; color: #f4fbff; border-color: transparent; }
.visit-grant-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.visit-slot { display: grid; gap: 8px; }
.sound-link { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); }
#officeJoin { display: none; }

.chat-avatar,
.chat-avatar-placeholder {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  aspect-ratio: 1;
  flex: 0 0 36px;
  align-self: center;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  padding: 0;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 12px;
}
.chat-band-title {
  margin: 10px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #128eab;
}
.chat-thread-card.is-pinned { box-shadow: inset 3px 0 0 #12b8d8; }
.chat-pin {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #8ea0b5;
  font-size: 12px;
}
.chat-pin.is-on { color: #12b8d8; }
.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: fit-content;
  max-width: min(78%, 520px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: bubble-in .22s ease;
}
.chat-message--incoming { align-self: flex-start; margin-right: auto; }
.chat-message--outgoing { align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.chat-bubble {
  max-width: 100%;
  padding: 8px 12px 6px;
  border-radius: 4px 18px 18px 18px;
  background: #fff;
  color: #10242e;
  box-shadow: 0 1px 1px rgba(16, 36, 46, 0.08);
  font-size: 14.5px;
  line-height: 1.35;
}
.chat-message--outgoing .chat-bubble {
  border-radius: 18px 4px 18px 18px;
  background: #e7f6ff;
}
.chat-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-bubble-name { font-size: 12px; font-weight: 700; color: #0b7f99; margin-bottom: 2px; }
.chat-bubble time { display: block; margin-top: 4px; font-size: 11px; text-align: right; color: #6b7c88; }
.chat-reply-btn {
  min-height: 22px;
  margin-top: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 184, 216, 0.14);
  color: #0b7f99;
  font: inherit;
  font-size: 12px;
}
html[data-theme="dark"] .chat-bubble { background: #173044; color: #f4fbff; }
html[data-theme="dark"] .chat-message--outgoing .chat-bubble { background: #0e4d63; }
html[data-theme="dark"] .chat-bubble time { color: #b7c9d4; }
html[data-theme="gray"] .chat-bubble { background: #fff; color: #1c2430; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.chat-thread-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
}
.chat-activity {
  margin: 0 4px 6px;
  color: #128eab;
  font-size: 0.86rem;
  font-style: italic;
}
.chat-head-mini {
  width: 100%;
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-align: left;
}
.chat-head-sheet {
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.chat-thread-header.is-open .chat-head-sheet { max-height: 280px; padding-bottom: 10px; }
.chat-head-person { display: flex; align-items: center; gap: 8px; }
.chat-head-person p { margin: 0; }
.btn.send-arrow,
.send-arrow {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1a8cff;
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
}
.send-arrow-glyph {
  width: 22px;
  height: 22px;
  display: block;
  transform: rotate(-28deg);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.chat-search {
  width: calc(100% - 16px);
  margin: 8px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 10px;
  font: inherit;
  background: var(--bg);
  color: inherit;
}
.chat-all { margin: 0 8px 8px; }
.chat-all summary {
  list-style: none;
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(18, 184, 216, 0.16);
}
.chat-all summary::-webkit-details-marker { display: none; }
.chat-all-menu {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.chat-all-menu button, .chat-all-menu input {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  background: transparent;
  color: inherit;
  padding: 0 8px;
}
.btn.send-arrow.is-down,
.send-arrow.is-down { background: #2f9e5f; }
.send-arrow.is-down .send-arrow-glyph { transform: rotate(135deg); }
.send-arrow.is-fly .send-arrow-glyph { animation: send-flip .35s ease; }
.btn.send-arrow.is-fail,
.send-arrow.is-fail { background: #e23d3d; }
.send-arrow.is-fail .send-arrow-glyph { opacity: 0; }
.send-arrow.is-fail::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.send-arrow:disabled { opacity: 1; }
@keyframes send-flip {
  from { transform: rotate(135deg); }
  to { transform: rotate(-45deg); }
}
.chat-bubble .chat-media-image,
.chat-bubble .chat-media-video {
  display: block;
  width: min(240px, 68vw);
  max-height: 280px;
  margin: 2px 0;
  border-radius: 12px;
  object-fit: cover;
}
.chat-bubble audio { display: block; width: min(240px, 68vw); margin: 2px 0; }
.chat-video-note {
  width: 168px;
  height: 168px;
  min-width: 168px;
  min-height: 168px;
  max-width: 168px;
  max-height: 168px;
  border-radius: 50%;
  object-fit: cover;
  background: #10242e;
  cursor: pointer;
}
.external-thread { display: flex; flex-direction: column; gap: 6px; }
.chat-thread-card { margin: 0; border-radius: 0; }
.chat-message { margin: 8px 14px; }
.external-bubble { background: #fff; color: #10242e; }

.radio-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 10px;
  overflow: hidden;
}
.radio-dock[hidden] { display: none !important; }
.radio-dock:hover,
.radio-dock:focus-within {
  height: 36px;
  overflow: visible;
}
.radio-mini {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #12b8d8;
  border-radius: 0;
  background: #0c1929;
  color: #d7f6ff;
  transform: translateY(100%);
  transition: transform .16s ease;
}
.radio-dock:hover .radio-mini,
.radio-dock:focus-within .radio-mini { transform: translateY(0); }
.radio-mini .radio-play {
  background: #0e4e60;
}
.radio-mini[hidden] { display: none !important; }
.radio-mini button {
  pointer-events: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7f6ff;
  font-size: 14px;
  line-height: 1;
}
.radio-mini button:hover { background: rgba(18, 184, 216, 0.28); }
.sound-zone {
  position: relative;
  height: 8px;
  margin: 4px 10px 0;
}
.sound-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
.sound-zone:hover .sound-row,
.sound-zone:focus-within .sound-row,
.sound-zone:has(.sound-eq:not([hidden])) .sound-row {
  opacity: 1;
  pointer-events: auto;
}
.sound-speaker {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #12b8d8;
  color: #042430;
}
.sound-speaker svg { width: 14px; height: 14px; display: block; margin: auto; }
.sound-speaker.is-off { background: #d7e3ea; color: #6b7c88; }
.sound-row input[type="range"],
.sound-eq input[type="range"] {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  accent-color: #12b8d8;
}
.sound-row input[type="range"]:focus,
.sound-eq input[type="range"]:focus { outline: none; }
.sound-row input[type="range"] { flex: 1; height: 14px; }
.sound-eq {
  position: fixed;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 8px;
  width: 280px;
  padding: 16px 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #0c1c30;
  color: #f4fbff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  overflow: visible;
}
.sound-eq h3 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}
.sound-eq[hidden] { display: none !important; }
.sound-eq label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: visible;
  font-size: 12px;
  text-align: center;
}
.sound-pct { color: #d7f6ff; font-size: 12px; }
.sound-eq .is-v {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 22px;
  height: 112px;
  margin: 4px 0;
  accent-color: #12b8d8;
}
.radio-pop {
  position: fixed;
  left: 6px;
  bottom: 26px;
  z-index: 70;
  width: min(340px, calc(100vw - 28px));
  max-height: min(420px, 70vh);
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #071422;
  color: #f4fbff;
  border: 1px solid #12b8d8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.radio-pop h2 { margin: 0; font-size: 16px; }
.radio-pop p { margin: 0; color: #b7c9d4; font-size: 13px; }
.radio-list { display: grid; gap: 4px; overflow: auto; max-height: 260px; }
.radio-list button {
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: rgba(18, 184, 216, 0.12);
  color: #f4fbff;
  min-height: 32px;
  padding: 6px 10px;
}
.adele-spot {
  animation: adele-spot 1.2s ease-in-out infinite;
  outline: 2px solid rgba(18, 184, 216, 0.9);
  outline-offset: 3px;
  border-radius: 12px;
}
@keyframes adele-spot {
  50% { box-shadow: 0 0 0 7px rgba(18, 184, 216, 0.28); }
}
.adele-say.is-wide {
  width: min(560px, 86vw);
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: rgba(7, 20, 34, 0.94);
}
.adele-site {
  min-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #12b8d8;
  color: #042430;
  font: inherit;
  font-size: 12px;
}
.desk-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 8px 0;
  overflow-x: auto;
}
.desk-tab, .desk-tab-plus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, 0.08);
}
.desk-tab.is-on { background: rgba(18, 184, 216, 0.22); }
.desk-tab-title, .desk-tab-star, .desk-tab-x, .desk-tab-plus {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
}
.desk-tab-title { padding: 4px 8px; }
.desk-home { background: transparent; }
.desk-mark {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #128eab;
  display: grid;
  place-items: center;
  padding: 0;
}
.desk-glyph svg { width: 16px; height: 16px; display: block; }
.desk-planet-slot {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  position: sticky;
  right: 0;
}
.desk-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  padding: 12px;
}
.desk-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 96px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #10242e;
  font: inherit;
  font-size: 12px;
  padding: 10px 6px;
}
.desk-tile img { width: 36px; height: 36px; object-fit: contain; }
.desk-tab.is-pin .desk-tab-star { color: #12b8d8; }
.desk-pane {
  width: 100%;
  min-height: calc(100vh - 160px);
  border: 0;
  background: #f4fbff;
}
html.is-browser .header-title,
html.is-browser .header-actions { display: none; }
html.is-browser .header { min-height: 0; padding: 0; border: 0; background: transparent; }
html.is-browser .desk-browser { min-height: calc(100vh - 56px); }
html.is-icons { --sidebar-w: 76px; }
html.is-icons .sidebar-nav summary,
html.is-icons .nav-item,
html.is-icons .sidebar-footer .mini-btn,
html.is-icons .user-badge { font-size: 0; }
html.is-icons .nav-icon { font-size: 16px; }
html.is-icons .nav-item { position: relative; justify-content: center; padding-left: 0; padding-right: 0; }
html.is-icons .nav-count:not(:empty) {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #e23d4a;
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
}
html.is-icons .sidebar-brand { margin: 6px; }
.main-wrap { position: relative; }
.rail-fold {
  position: absolute;
  z-index: 6;
  top: 44px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.rail-fold:hover { background: var(--bg-hover); color: var(--text); }
.rail-fold svg { width: 16px; height: 16px; display: block; }
.rail-left { left: 8px; }
.rail-right { right: 8px; }
.desk-browser { display: flex; flex-direction: column; min-height: calc(100vh - 120px); position: relative; }
.desk-browser-bar { display: flex; gap: 6px; align-items: center; padding: 8px; }
.desk-engine, .desk-vpn {
  height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  background: transparent;
  color: inherit;
}
.desk-engine.is-on { background: rgba(18, 184, 216, 0.22); }
.desk-search {
  flex: 1;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(18, 184, 216, 0.45);
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: #102033;
}
.desk-vpn.is-off { background: #c44747; color: #fff; }
.desk-vpn.is-auto { background: #1d6fbf; color: #fff; }
.desk-vpn.is-hand { background: #1f8a4c; color: #fff; }
.desk-vpn-list {
  position: absolute;
  z-index: 5;
  right: 8px;
  top: 44px;
  display: grid;
  gap: 4px;
  width: min(280px, calc(100% - 16px));
  padding: 8px;
  border-radius: 12px;
  background: #0c1c30;
  color: #f4fbff;
}
.desk-vpn-list[hidden] { display: none !important; }
.desk-vpn-list button, .desk-vpn-list input {
  min-height: 28px;
  border-radius: 8px;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 12px;
  padding: 0 8px;
}
.desk-vpn-list p { margin: 0; font-size: 12px; }
.desk-icos { display: flex; gap: 8px; align-items: center; padding: 0 8px 8px; overflow-x: auto; }
.desk-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #0b6e84;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 13px;
  padding: 0;
}
.desk-ico img { width: 18px; height: 18px; display: block; object-fit: contain; }
.desk-browser-slot { flex: 1; min-height: 420px; }
.desk-browser-hello { margin: 24px 12px; color: #0b6e84; font-size: 13px; }
.nav-icon.is-mask {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--ico) center / contain no-repeat;
  -webkit-mask: var(--ico) center / contain no-repeat;
}
.chat-license-people { padding: 8px 10px 4px; }
.chat-license-people h2 { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.chat-license-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; }
.chat-inbox-top { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.chat-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-chip {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(18, 184, 216, 0.16);
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.chat-chip.is-on { background: #12b8d8; color: #042430; }
.chat-all-thread {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 8px 10px;
}
.desk-ask {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 16px;
  background: #0c1c30;
  color: #f4fbff;
}
.desk-ask button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: #12b8d8;
  color: #042430;
  font: inherit;
}
.citadel-stage {
  position: fixed;
  z-index: 90;
  inset: 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #041525;
  color: #f4fbff;
}
.citadel-stage div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.citadel-stage p { margin: 0; }
.citadel-stage button { border: 0; border-radius: 999px; min-height: 32px; padding: 0 12px; background: #12b8d8; color: #042430; font: inherit; }
.citadel-stage img,
.citadel-stage video,
.citadel-stage iframe { width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.citadel-stage audio { width: 100%; }
.rooms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.rooms-title { display: grid; gap: 12px; }
.rooms-head h2 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.rooms-tools { display: flex; align-items: center; gap: 8px; }
.rooms-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rooms-filter {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  background: #fff;
  color: #5d7382;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 40, 60, 0.04);
}
.rooms-filter.is-on { background: #12c8e0; color: #042430; box-shadow: none; }
.call-board .call-start {
  border: 0;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 16px;
  background: #12c8e0;
  color: #042430;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rooms-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 2px 0;
  color: #8ea0b5;
  font-size: 13px;
}
.rooms-hint-grip {
  width: 10px;
  height: 14px;
  background-image: radial-gradient(circle, #b7c6d1 1.3px, transparent 1.5px);
  background-size: 5px 5px;
  background-repeat: repeat;
}
.call-board .call-channels { grid-template-columns: 1fr; gap: 14px; }
.call-board .call-channel {
  grid-template-columns: 28px 48px minmax(0, 1fr) auto auto auto;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 40, 60, 0.05);
  border-left-width: 4px;
  box-shadow: 0 10px 24px rgba(16, 40, 60, 0.04);
  overflow: visible;
}
.call-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.call-kind-chip {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e7f6ea;
  color: #1f8a4c;
}
.call-channel.is-once { border-left-color: #e23d6a; }
.call-channel.is-once .call-kind-chip,
.call-channel.is-once .call-face { background: #fde8ee; color: #d4536a; }
.call-channel.is-timed { border-left-color: #e2b43d; }
.call-channel.is-timed .call-kind-chip,
.call-channel.is-timed .call-face { background: #fff4d6; color: #a67a12; }
.call-channel.is-keep { border-left-color: #3dcc7a; }
.call-channel.is-keep .call-kind-chip,
.call-channel.is-keep .call-face { background: #e5f8ee; color: #1f8a4c; }
.call-channel.is-locked { border-left-color: #6aa0ff; }
.call-channel.is-locked .call-kind-chip,
.call-channel.is-locked .call-face { background: #e7eefc; color: #3d6adf; }
.call-board .call-face {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
}
.call-board .call-who { margin: 0; justify-content: flex-end; gap: 8px; }
.call-board .call-who-face {
  width: 32px;
  height: 32px;
  background: #d7f3f8;
  color: #2f7f8e;
  font-weight: 700;
}
.call-join { display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; }
.call-board .call-entry-pop {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  color: #3d6adf;
  border: 1.5px solid #c9d7f8;
  box-shadow: 0 6px 16px rgba(16, 40, 60, 0.08);
}
.call-entry-pop[hidden] { display: none !important; }
.call-live-mark { color: #7d92a3; font-size: 13px; white-space: nowrap; }
.call-live-mark[hidden] { display: none !important; }
.call-live-mark.is-closed::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 6px;
  border: 1.5px solid #8ea0b5;
  border-radius: 2px;
  border-top-width: 3px;
}
.call-live-mark.is-on { color: #1aaa6a; }
.call-live-mark.is-on::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #1aaa6a;
}
.call-board .call-handset {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 14px;
  background: #fff;
  color: #12b8d8;
  border: 1.5px solid #b7e7f0;
}
.call-channel.is-once .call-handset { color: #d4536a; border-color: #f3c3cf; }
.call-channel.is-timed .call-handset { color: #c4921a; border-color: #f0ddaa; }
.call-channel.is-keep .call-handset { color: #1f8a4c; border-color: #b7e6c8; }
.call-channel.is-locked .call-handset { color: #3d6adf; border-color: #c9d7f8; }
.call-board .call-room-name { font-size: 16px; font-weight: 800; color: #16324a; }
.call-board .call-room-meta { color: #8ea0b5; }
html[data-theme="dark"] .call-board .call-room-name,
html[data-theme="gray"] .call-board .call-room-name { color: #f4fbff; }
html[data-theme="dark"] .call-board .call-channel,
html[data-theme="gray"] .call-board .call-channel {
  background: #102033;
  color: #f4fbff;
}
html[data-theme="dark"] .rooms-filter,
html[data-theme="gray"] .rooms-filter { background: #16324a; color: #d5e7f2; }
@media (min-width: 900px) {
  .call-board .call-channels { grid-template-columns: 1fr; }
}
