/* Nexus Messenger v5.0 — Obsidian Emerald (Dark) & Pearl Mint (Light) Theme */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root,
html[data-theme="dark"] {
  --bg: #070d11;
  --bg2: #0b141a;
  --surface: #0f1b22;
  --surface-2: #15252e;
  --surface-hover: #1c313d;
  --border: rgba(45, 212, 191, 0.14);
  --border-strong: rgba(20, 184, 166, 0.42);
  --text: #eef6f6;
  --muted: #8ea7b0;
  --accent: #10b981;
  --accent-2: #2dd4bf;
  --accent-soft: rgba(16, 185, 129, 0.16);
  --ok: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.16);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --bubble-me: linear-gradient(135deg, #059669, #0d9488);
  --bubble-me-text: #ffffff;
  --bubble-other: #14222b;
  --bubble-ai: rgba(139, 92, 246, 0.15);
  --chat-bg: #081016;
  --input-bg: #0c171e;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  --radius: 16px;
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --line: var(--border);
  --cyan: var(--accent-2);
  --cyan-2: var(--accent);
  --signal: var(--amber);
}

html[data-theme="light"] {
  --bg: #f2f7f6;
  --bg2: #e5efed;
  --surface: #ffffff;
  --surface-2: #f6fbfa;
  --surface-hover: #eaf4f2;
  --border: rgba(15, 42, 38, 0.11);
  --border-strong: rgba(13, 148, 136, 0.36);
  --text: #0f2424;
  --muted: #587272;
  --accent: #0d9488;
  --accent-2: #059669;
  --accent-soft: rgba(13, 148, 136, 0.11);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.12);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.13);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.12);
  --bubble-me: linear-gradient(135deg, #0d9488, #059669);
  --bubble-me-text: #ffffff;
  --bubble-other: #ffffff;
  --bubble-ai: rgba(124, 58, 237, 0.08);
  --chat-bg: #eef5f4;
  --input-bg: #f8fbfa;
  --shadow: 0 10px 28px rgba(15, 36, 36, 0.09);
  --radius: 16px;
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --line: var(--border);
  --cyan: var(--accent);
  --cyan-2: var(--accent-2);
  --signal: var(--amber);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.3; font-weight: 800; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  margin: 0;
}
.muted { color: var(--muted); }
.tone-ok { color: var(--ok); font-weight: 700; }
.tone-danger { color: var(--danger); font-weight: 700; }

.mono, .code-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  word-break: break-all;
  color: var(--text);
}

/* ======================== APP SHELL & VIEWPORT LOCK ======================== */
.app-shell { display: flex; min-height: 100vh; width: 100%; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

body.messenger-mode {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.messenger-mode .app-shell,
body.messenger-mode .main-wrap {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
body.messenger-mode .rail {
  height: 100dvh;
}
.page.messenger-page {
  max-width: none;
  padding: 0;
  flex: 1;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
body.messenger-mode .flash-stack {
  position: fixed;
  top: 68px;
  inset-inline: 16px;
  z-index: 70;
  pointer-events: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}
body.messenger-mode .flash {
  pointer-events: auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* Navigation Rail */
.rail {
  width: 248px;
  flex-shrink: 0;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  transition: width 0.2s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 25;
}
.rail.collapsed { width: 68px; padding: 12px 8px; }
.rail.collapsed .rail-brand-meta,
.rail.collapsed .nav-txt,
.rail.collapsed .nav-group-label { display: none; }
.rail.collapsed .rail-link { justify-content: center; padding: 10px; }

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  color: var(--text);
}
.rail-brand:hover { text-decoration: none; }
.rail-brand img { width: 34px; height: 34px; flex-shrink: 0; }
.rail-brand-meta strong { display: block; font-size: 16px; letter-spacing: 0.6px; }
.rail-brand-meta small { display: block; font-size: 11px; color: var(--accent-2); font-weight: 700; }

.rail-nav { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.nav-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 10px;
}
.nav-group-owner {
  font-size: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--accent-2);
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rail-link:hover { background: var(--surface-hover); text-decoration: none; }
.rail-link.on {
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.nav-ic { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.rail-foot {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Topbar & Public Header */
.topbar, .public-header {
  min-height: 60px;
  padding: 8px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}
.topbar { height: 60px; }
.public-header { flex-wrap: wrap; }
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions, .public-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.public-brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.public-brand:hover { text-decoration: none; }
.public-brand img { width: 34px; height: 34px; flex-shrink: 0; }
.public-brand .brand-title, .public-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.public-brand .brand-sub, .public-brand small { display: block; font-size: 11px; color: var(--muted); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.user-chip:hover { text-decoration: none; background: var(--surface-hover); }

/* Avatars */
.avatar-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.avatar-dot.xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-dot.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-dot.lg { width: 62px; height: 62px; font-size: 22px; }
.avatar-dot.xl { width: 76px; height: 76px; font-size: 28px; }
.online-dot {
  position: absolute;
  bottom: 1px;
  inset-inline-end: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
}

/* Page Container */
.page { width: 100%; max-width: 1220px; margin: 0 auto; padding: 20px; flex: 1; }
.flash-stack { padding: 8px 16px 0; }
.flash {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Buttons & Inputs */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s, border-color 0.15s;
}
button:hover, .btn:hover { opacity: 0.92; text-decoration: none; }
button:active, .btn:active { transform: scale(0.98); }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 14px; }
.btn.sm, button.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; }
.btn.ghost, button.ghost, .btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost:hover, button.ghost:hover, .btn-ghost:hover { background: var(--surface-hover); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: #ffffff;
  border-color: transparent;
}
.btn.amber, button.amber { background: var(--amber); color: #0f172a; }
.btn.red, button.red { background: var(--danger); color: #fff; }
.btn.purple, button.purple { background: var(--purple); color: #fff; }

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.icon-btn.xs { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.pill-blue { background: var(--accent-soft); color: var(--accent-2); border-color: var(--border-strong); }
.pill-ok, .pill.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(16, 185, 129, 0.35); }
.pill-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(245, 158, 11, 0.35); }
.pill-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(239, 68, 68, 0.35); }
.pill-purple { background: var(--purple-soft); color: var(--purple); border-color: rgba(139, 92, 246, 0.35); }
.mini-badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.mini-badge.blue { background: var(--accent-soft); color: var(--accent-2); }
.mini-badge.amber { background: var(--amber-soft); color: var(--amber); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
}
.chip:hover { background: var(--accent-soft); border-color: var(--border-strong); color: var(--accent-2); }

label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 5px; }
.req { color: var(--danger); }
.opt-tag { font-weight: 400; color: var(--muted); font-size: 11.5px; }
input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { padding-inline-end: 112px; }
.pw-tools { position: absolute; inset-inline-end: 6px; display: flex; gap: 4px; }
.pw-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 7px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.pw-btn:hover { background: var(--surface-hover); }

/* Panels, Cards, Grids (Lab & Auth Pages) */
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.panel.glow, .card.glow { border-color: var(--border-strong); }
.sec-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.score { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--accent-2); }
.safety-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  direction: ltr;
  text-align: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  font-weight: 700;
  padding: 8px 12px;
}
.risk-meter {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 8px;
}
.risk-meter > div {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-item-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }
.bar-track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill-cyan { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.bar-fill-amber { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 999px; }

.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
}

/* Assistant standalone chat widget */
.chat {
  min-height: 260px;
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--chat-bg);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.chat .msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bubble-other);
  border: 1px solid var(--border);
  align-self: flex-end;
  font-size: 14px;
  white-space: pre-wrap;
}
.chat .msg.me {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-color: transparent;
  align-self: flex-start;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid-2-asym { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr); gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease;
}
a.tile:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.tile-icon { font-size: 26px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.kpi-val { font-size: 24px; font-weight: 800; color: var(--accent-2); }
.meter { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.25s, background 0.25s; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; }
th { color: var(--muted); font-weight: 700; background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

/* Security Hub Tabs */
.hub-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hub-tab {
  padding: 9px 15px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
}
.hub-tab.active {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-color: var(--border-strong);
}

/* ======================== QR CARD FRAME (CRISP, ISOLATED, ZERO OVERLAP) ======================== */
.qr-card-frame,
.qr-box {
  width: 204px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 12px auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid var(--border-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  overflow: hidden;
  flex-shrink: 0;
}
.qr-card-frame.sm {
  width: 164px;
  padding: 10px;
  border-radius: 14px;
  margin: 0 auto;
}
.qr-card-frame svg,
.qr-card-frame img,
.qr-box svg,
.qr-box img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  shape-rendering: crispEdges;
}
.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

/* TOTP Verify Box */
.totp-box {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.totp-qr-wrap { text-align: center; }
.totp-details { min-width: 0; text-align: start; }
.totp-code-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.totp-live-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--accent-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Welcome & Auth */
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-title { font-size: 32px; margin: 12px 0; }
.mock-chat {
  background: var(--chat-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.mock-head {
  background: var(--surface-2);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.mock-head small { display: block; color: var(--ok); font-size: 11.5px; }
.mock-msgs { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-b { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 13px; }
.mock-b.in { background: var(--bubble-other); border: 1px solid var(--border); align-self: flex-start; }
.mock-b.out { background: var(--bubble-me); color: #fff; align-self: flex-end; }
.mock-b.ai { background: var(--ok-soft); border: 1px solid rgba(16,185,129,0.3); color: var(--ok); align-self: center; font-size: 12px; font-weight: 700; }

.uni-banner {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.uni-banner strong { color: var(--text); }

.auth-card { max-width: 520px; margin: 18px auto; }
.auth-head { text-align: center; margin-bottom: 14px; }
.auth-head h1 { margin-top: 10px; }
.auth-foot { text-align: center; margin: 16px 0 0; font-size: 13.5px; }
.invite-notice {
  background: var(--ok-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--ok);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
}
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--input-bg);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.seg-tab {
  padding: 9px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.seg-tab.active { background: var(--accent); color: #fff; }

.color-dots { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.color-dot-wrap { position: relative; cursor: pointer; margin: 0; }
.color-dot-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-dot { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; }
.color-dot-wrap input:checked + .color-dot { border-color: var(--text); transform: scale(1.1); }

/* ======================== MESSENGER 3-PANE LAYOUT ======================== */
.messenger-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 0px;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.messenger-shell:has(.info-drawer.open) {
  grid-template-columns: 320px minmax(0, 1fr) 316px;
}

/* Pane 1: Chat Sidebar */
.chat-sidebar {
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.sidebar-top { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.sidebar-head-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-actions { display: flex; gap: 5px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;
}
.search-box input { border: 0; background: transparent; padding: 8px 0; font-size: 13px; box-shadow: none; }
.chat-filter-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cf-tab {
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 9px;
  padding: 5px 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cf-tab.active { background: var(--accent-soft); color: var(--accent-2); border-color: var(--border-strong); }

.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.chat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  color: var(--text);
  transition: background 0.14s;
}
.chat-item:hover { background: var(--surface-hover); text-decoration: none; }
.chat-item.active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.chat-item-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.chat-item-sub { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; }
.chat-item-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pane 2: Active Chat Stage */
.chat-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: var(--chat-bg);
  background-image: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
                    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.04) 0%, transparent 45%);
  overflow: hidden;
  position: relative;
}
.chat-header {
  height: 64px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.chat-peer { display: flex; align-items: center; gap: 11px; min-width: 0; }
.chat-peer-meta { min-width: 0; }
.chat-peer-meta strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peer-meta small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.pill-btn:hover { background: var(--surface-hover); }
.wiretap-btn.on { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

.wiretap-banner {
  display: none;
  padding: 8px 16px;
  background: var(--danger-soft);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  font-size: 12.5px;
  flex-shrink: 0;
}
.wiretap-banner.show { display: block; }

/* Message Stream */
.chat-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.empty-chat {
  margin: auto;
  max-width: 460px;
  text-align: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.msg-row { display: flex; width: 100%; }
.msg-row.me { justify-content: flex-start; }
.msg-row.other, .msg-row.ai { justify-content: flex-end; }

.bubble {
  max-width: min(74%, 560px);
  padding: 10px 14px 7px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bubble-other);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  position: relative;
}
.msg-row.me .bubble {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-color: transparent;
  border-start-start-radius: 6px;
}
.msg-row.other .bubble { border-start-end-radius: 6px; }
.msg-row.ai .bubble { background: var(--bubble-ai); border-color: rgba(139, 92, 246, 0.38); }

.msg-sender { font-size: 12px; font-weight: 800; color: var(--accent-2); margin-bottom: 3px; }
.msg-text { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.bubble-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.8;
}
.msg-row.me .bubble-foot { color: rgba(255, 255, 255, 0.88); }
.reply-mini-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.5;
  padding: 0 3px;
  font-size: 12px;
}
.bubble:hover .reply-mini-btn { opacity: 1; }
.read-ticks { font-size: 11px; letter-spacing: -1.5px; }

.reply-quote {
  background: rgba(0, 0, 0, 0.16);
  border-inline-start: 3px solid var(--accent-2);
  padding: 5px 9px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.reply-quote strong { display: block; font-size: 11px; }

.ttl-pill {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
}
html[data-theme="light"] .msg-row.other .ttl-pill { color: #b45309; }

.sentinel-alert {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--danger);
  font-size: 12px;
}
.sentinel-alert.warn {
  background: var(--amber-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--amber);
}
.msg-row.me .sentinel-alert { background: rgba(255, 255, 255, 0.94); color: #b91c1c; }

.burned-note { font-size: 13px; font-style: italic; opacity: 0.82; }
.secret-card, .file-card, .stego-card, .gen-card, .attack-card, .ai-card, .wiretap-box {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 2px;
}
.file-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.file-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-img-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.stego-unlock-row { display: flex; gap: 6px; align-items: center; }
.stego-pass-inp { padding: 7px 10px; font-size: 12.5px; }
.stego-out, .secret-revealed, .tamper-out { margin-top: 8px; font-size: 12.5px; }
.wiretap-box { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; direction: ltr; text-align: left; }
.wiretap-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-family: 'Cairo', sans-serif; direction: rtl; }

/* Composer & Popover Menus */
.composer-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  position: relative;
  flex-shrink: 0;
  z-index: 15;
}
.composer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 11px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.reply-strip { background: var(--surface-2); border-inline-start: 3px solid var(--accent); }
.ephemeral-strip { background: var(--amber-soft); border: 1px solid rgba(245, 158, 11, 0.35); color: var(--amber); }
.inline-select { width: auto; padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.dlp-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dlp-bar.show { display: flex; }

.composer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer-bar input[type="text"] {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14.5px;
}
.comp-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.dots-btn { font-size: 21px; font-weight: 900; }
.send-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.send-btn:hover { opacity: 0.92; }

.composer-popover {
  display: none;
  position: absolute;
  bottom: 72px;
  inset-inline-start: 14px;
  width: min(330px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  z-index: 40;
}
.composer-popover.open { display: block; animation: popUp 0.14s ease-out; }
@keyframes popUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pop-title { font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 8px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pop-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
}
.pop-item:hover { background: var(--surface-hover); }
.pop-item strong { display: block; font-size: 13.5px; }
.pop-item small { display: block; font-size: 11.5px; color: var(--muted); }
.pop-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bg-blue { background: var(--accent-soft); }
.bg-purple { background: var(--purple-soft); }
.bg-amber { background: var(--amber-soft); }
.bg-cyan { background: rgba(20, 184, 166, 0.2); }
.bg-green { background: var(--ok-soft); }
.bg-red { background: var(--danger-soft); }
.bg-slate { background: var(--surface-2); }

/* Pane 3: Info & QR Drawer */
.info-drawer {
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.info-drawer.open { padding: 14px; opacity: 1; pointer-events: auto; }
.info-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.info-card.center { text-align: center; }
.info-card-title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.safety-num { font-size: 12px; text-align: center; letter-spacing: 1px; margin-bottom: 6px; }
.member-list { display: flex; flex-direction: column; gap: 7px; max-height: 170px; overflow-y: auto; }
.member-row { display: flex; align-items: center; gap: 8px; }
.member-info { flex: 1; min-width: 0; }
.member-info strong { display: block; font-size: 13px; }
.member-info small { display: block; font-size: 11px; color: var(--muted); }
.inline-add-form { display: flex; gap: 6px; margin-top: 10px; }
.inline-add-form input { padding: 7px 10px; font-size: 12.5px; }

.hud-mini-bar { height: 8px; background: var(--input-bg); border-radius: 999px; overflow: hidden; }
.hud-mini-bar i { display: block; height: 100%; background: var(--ok); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 12, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}
.modal-backdrop[hidden] { display: none; }
.modal-box {
  width: min(460px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-divider { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 10px; }
.contact-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.contact-pick {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.contact-pick:hover { background: var(--surface-hover); }
.contact-pick strong { display: block; font-size: 13.5px; }
.contact-pick small { display: block; font-size: 11.5px; color: var(--muted); }
.ai-summary-box {
  white-space: pre-wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.8;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 80;
}

/* Mobile Dock & Responsive */
.mobile-dock { display: none; }
.show-mobile { display: none; }

@media (max-width: 960px) {
  .rail { display: none; }
  .show-mobile { display: inline-flex; }
  .hide-sm { display: none; }
  .hero-card, .grid-2-asym { grid-template-columns: 1fr; }
  .page.messenger-page { padding-bottom: 58px; }
  .messenger-shell,
  .messenger-shell:has(.info-drawer.open) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .chat-sidebar {
    position: fixed;
    top: 60px;
    bottom: 58px;
    inset-inline-start: 0;
    width: min(320px, 88vw);
    height: auto;
    z-index: 35;
    transform: translateX(110%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .chat-sidebar.open { transform: translateX(0); }
  .info-drawer {
    position: fixed;
    top: 60px;
    bottom: 58px;
    inset-inline-end: 0;
    width: min(320px, 90vw);
    height: auto;
    z-index: 36;
    transform: translateX(-110%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }
  .info-drawer.open { transform: translateX(0); }
  .bubble { max-width: 88%; }
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    height: 58px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 30;
  }
  .mobile-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--muted);
    gap: 1px;
  }
  .mobile-dock a span { font-size: 10.5px; font-weight: 700; }
  .mobile-dock a.on { color: var(--accent-2); }
  body:not(.messenger-mode) .page { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .hide-xs { display: none; }
  .totp-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .totp-details { text-align: center; }
  .totp-code-row { justify-content: center; }
  .public-header { padding: 8px 12px; }
  .public-brand .brand-sub, .public-brand small { display: none; }
  .public-brand .brand-title, .public-brand strong { font-size: 14.5px; }
  .public-actions .btn.sm { padding: 6px 10px; font-size: 12px; }
  .qr-actions { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Nexus Messenger v6.0 — Pure Encrypted Messenger Enhancements
   ========================================================================== */
.unread-badge {
  background: var(--ok);
  color: #03150e;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.msg-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.msg-search-bar input {
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
}

.pinned-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 1px solid rgba(16, 185, 129, 0.28);
  cursor: pointer;
}
.pinned-banner-body {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}
.pin-ic { font-size: 16px; }

.edit-strip {
  border-inline-start: 3px solid var(--accent-2);
}
.voice-strip {
  border-inline-start: 3px solid var(--danger);
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
  animation: pulseRec 1s infinite;
}
@keyframes pulseRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.25); }
}

.voice-card {
  min-width: 230px;
}
.voice-player {
  width: 100%;
  height: 34px;
  border-radius: 8px;
}

.bubble { position: relative; }
.msg-hover-bar {
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px;
  margin-bottom: 6px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.msg-row:hover .msg-hover-bar,
.msg-row.actions-open .msg-hover-bar {
  display: inline-flex;
}
.msg-more-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 5px;
  opacity: 0.85;
}
.msg-more-btn:hover { opacity: 1; }
.rx-add-btn, .msg-act-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.rx-add-btn:hover, .msg-act-btn:hover {
  background: var(--surface-2);
}

.rx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.rx-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.rx-pill.mine {
  border-color: var(--ok);
  background: rgba(16, 185, 129, 0.16);
}

.edited-tag, .pinned-tag {
  font-size: 10.5px;
  opacity: 0.75;
}

.member-admin-acts {
  display: flex;
  align-items: center;
  gap: 3px;
}

.highlight-flash .bubble {
  outline: 2px solid var(--ok);
  transition: outline 0.3s ease;
}
