:root {
  --bg-left: #15112c;
  --bg-right: #03152d;
  --top: #10172a;
  --panel: rgba(28, 39, 64, 0.76);
  --panel-purple: rgba(48, 36, 82, 0.84);
  --line: rgba(185, 199, 255, 0.17);
  --line-bright: rgba(218, 196, 255, 0.34);
  --text: #e3e6ff;
  --muted: #beb5d5;
  --purple: #8a2bd1;
  --purple-soft: #d8a7ff;
  --blue: #2378f0;
  --cyan: #2fd9f4;
  --green: #18b981;
  --danger: #ffb4ab;
  --shadow: rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Montserrat, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 38, 151, 0.32), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(35, 120, 240, 0.18), transparent 30%),
    linear-gradient(90deg, var(--bg-left), var(--bg-right));
}

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

button,
a {
  min-height: 40px;
  border: 1px solid rgba(222, 190, 255, 0.25);
  border-radius: 18px;
  background: linear-gradient(90deg, #7f25c9, #9b37d6);
  color: var(--text);
  cursor: pointer;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
}

button:hover,
a:hover {
  border-color: rgba(216, 167, 255, 0.72);
  filter: brightness(1.08);
}

button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.login-panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 390px;
  gap: 40px;
  align-items: center;
}

.login-copy {
  display: grid;
  justify-items: start;
}

.hero-logo {
  width: min(230px, 72vw);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 0 8px -10px;
  filter: drop-shadow(0 0 34px rgba(47, 217, 244, 0.3));
}

.login-panel h1 {
  max-width: 780px;
  margin: 0;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-panel .muted,
.topbar-subtitle,
.panel-head p,
.metric-label {
  color: var(--muted);
  line-height: 1.55;
}

.login-panel form,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel form {
  padding: 28px;
}

.login-panel form input:-webkit-autofill,
.login-panel form input:-webkit-autofill:hover,
.login-panel form input:-webkit-autofill:focus,
.login-panel form input:-webkit-autofill:active,
.login-panel form input:-webkit-autofill:read-only {
  -webkit-box-shadow: 0 0 0 1000px rgba(28, 39, 64, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(28, 39, 64, 0.95) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}

.login-panel form input[readonly] {
  color: var(--text);
  opacity: 1;
}

.login-panel form .password-field input[readonly] {
  background: transparent !important;
}

.stack,
.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(218, 226, 253, 0.17);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(226, 230, 255, 0.52);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 167, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(138, 43, 209, 0.22);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(218, 226, 253, 0.17);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding-right: 6px;
}

.password-field:focus-within {
  border-color: rgba(216, 167, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(138, 43, 209, 0.22);
}

.password-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding-right: 8px;
}

.password-field input:focus {
  outline: none;
  box-shadow: none;
}

.password-toggle {
  position: static;
  transform: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(47, 217, 244, 0.35);
  border-radius: 10px;
  background: rgba(47, 217, 244, 0.16);
  color: var(--cyan);
  box-shadow: none;
  filter: none;
}

.password-toggle:hover {
  color: #8ef6ff;
  background: rgba(47, 217, 244, 0.28);
  border-color: rgba(47, 217, 244, 0.42);
  filter: none;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(216, 167, 255, 0.8);
  outline-offset: 2px;
}

.password-toggle-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-hide {
  display: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--purple-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.45;
}

.error.visible {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.08);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-signals span,
.badge,
.coverage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(47, 217, 244, 0.13);
  color: var(--cyan);
  border: 1px solid rgba(47, 217, 244, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 28px;
  background: rgba(16, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 22px rgba(47, 217, 244, 0.22);
}

nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #d9d1e9;
  padding: 9px 14px;
  font-size: 13px;
  white-space: nowrap;
}

nav button.active {
  background: linear-gradient(90deg, #7a25c8, #9534d1);
  color: white;
  box-shadow: 0 12px 32px rgba(138, 43, 209, 0.3);
}

nav button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-box {
  position: relative;
  display: block;
  width: 176px;
  font-size: 0;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.search-box input {
  min-height: 40px;
  border-radius: 999px;
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
  fill: currentColor;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.profile-chip img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-chip strong,
.profile-chip span {
  display: block;
  white-space: nowrap;
}

.profile-chip strong {
  font-size: 12px;
}

.profile-chip span {
  color: var(--muted);
  font-size: 11px;
}

.main {
  width: min(1536px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-view="attendance"] .topbar {
  display: none;
}

.topbar h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar-subtitle {
  margin: 2px 0 0;
  font-size: 16px;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-actions a {
  background: rgba(216, 167, 255, 0.16);
  color: var(--purple-soft);
  border-color: rgba(216, 167, 255, 0.35);
}

.view {
  display: none;
}

.active-view {
  display: grid;
  gap: 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.client-welcome {
  min-height: 146px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 28px 30px;
  border-bottom: 1px solid rgba(218, 226, 253, 0.12);
}

.client-welcome span {
  color: #9bc7ff;
  font-size: 13px;
  font-weight: 700;
}

.client-welcome h3 {
  margin: 0;
  color: white;
  font-size: 32px;
  line-height: 1.15;
}

.client-welcome p {
  margin: 0;
  color: #9fb6d7;
  font-size: 13px;
}

.support-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.support-metric-card {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(31, 43, 65, 0.94);
  box-shadow: none;
}

.metric-copy {
  display: grid;
  gap: 9px;
}

.metric-copy span {
  color: #9bc7ff;
  font-size: 13px;
  font-weight: 600;
}

.metric-copy strong {
  color: #2e7dff;
  font-size: 30px;
  line-height: 1;
}

.metric-copy small {
  color: #90a5c3;
  font-size: 12px;
  font-weight: 700;
}

.support-metric-card.green .metric-copy strong,
.support-metric-card.green .metric-copy small {
  color: #25dc72;
}

.support-metric-card.orange .metric-copy strong,
.support-metric-card.orange .metric-copy small {
  color: #ff9a21;
}

.support-metric-card.purple .metric-copy strong,
.support-metric-card.purple .metric-copy small {
  color: #7f77ff;
}

.support-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(46, 125, 255, 0.16);
  color: #7ea8ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-metric-card.green .support-icon {
  background: rgba(37, 220, 114, 0.15);
  color: #65eda0;
}

.support-metric-card.orange .support-icon {
  background: rgba(255, 154, 33, 0.15);
  color: #ffba69;
}

.support-metric-card.purple .support-icon {
  background: rgba(127, 119, 255, 0.16);
  color: #aaa5ff;
}

.support-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.support-dashboard .panel {
  border-radius: 14px;
  background: rgba(31, 43, 65, 0.94);
  box-shadow: none;
}

.panel-head.compact {
  margin-bottom: 18px;
}

.panel-head.compact h3 {
  font-size: 18px;
}

.panel-head.compact p {
  color: #9bc7ff;
  font-size: 12px;
  font-weight: 500;
}

.support-chart-card {
  min-height: 360px;
}

.service-chart,
.notification-chart {
  display: grid;
  gap: 8px;
}

.service-chart svg,
.notification-chart svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.notification-chart svg {
  height: 220px;
}

.service-grid {
  fill: none;
  stroke: rgba(157, 180, 213, 0.15);
  stroke-width: 1;
}

.service-area {
  fill: rgba(101, 103, 255, 0.34);
}

.service-line {
  fill: none;
  stroke: #6667ff;
  stroke-width: 3;
}

.notification-line {
  fill: none;
  stroke: #728199;
  stroke-width: 3;
}

.chart-badges text {
  fill: white;
  font-size: 13px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #74839c;
  stroke-width: 7px;
  stroke-linejoin: round;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: #9bc7ff;
  font-size: 12px;
}

.chart-labels span {
  text-align: center;
}

.channels-card {
  min-height: 360px;
  display: grid;
  align-content: start;
}

.donut {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 6px 0 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(31, 43, 65, 1) 0 45%, transparent 46%),
    conic-gradient(#25dc72 0 100%);
  border: 2px solid rgba(255, 255, 255, 0.88);
}

.donut span,
.donut strong {
  grid-area: 1 / 1;
}

.donut span {
  transform: translateY(-12px);
  color: #b7c7df;
  font-size: 16px;
}

.donut strong {
  transform: translateY(18px);
  color: white;
  font-size: 20px;
}

.channel-legend {
  display: grid;
  gap: 10px;
}

.channel-legend span {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 8px;
  align-items: center;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.channel-legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #a7b5c9;
}

.channel-legend .ok-dot {
  background: #25dc72;
}

.channel-legend .danger-dot {
  background: #ff746f;
}

.support-kpis {
  display: grid;
  gap: 16px;
}

.progress-card {
  min-height: 138px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.progress-card span {
  color: #9bc7ff;
  font-size: 13px;
  font-weight: 700;
}

.progress-card strong {
  color: #20db96;
  font-size: 28px;
  line-height: 1;
}

.progress-card.warning strong {
  color: #ff9a21;
}

.progress-card.blue strong {
  color: #2e7dff;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(157, 180, 213, 0.22);
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #20db96;
}

.progress-card.warning .progress-track i {
  background: #ff9a21;
}

.progress-card.blue .progress-track i {
  background: #2e7dff;
}

.progress-card small {
  color: #90a5c3;
  font-size: 11px;
  font-weight: 600;
}

.notification-card {
  min-height: 432px;
}

.notification-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.notification-stats div {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 12px;
  background: rgba(157, 180, 213, 0.1);
}

.notification-stats strong {
  color: #7f77ff;
  font-size: 20px;
}

.notification-stats div:nth-child(2) strong {
  color: #25dc72;
}

.notification-stats span {
  color: #9bc7ff;
  font-size: 10px;
  font-weight: 700;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.panel h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.metric-card {
  min-height: 160px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 167, 255, 0.13), transparent 34%),
    linear-gradient(140deg, var(--panel-purple), rgba(25, 44, 72, 0.78));
}

.metric-card::after {
  content: attr(data-chip);
  position: absolute;
  right: 22px;
  top: 24px;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(47, 217, 244, 0.22);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.metric-top {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(216, 167, 255, 0.13);
  border: 1px solid rgba(216, 167, 255, 0.12);
  color: var(--purple-soft);
  font-size: 18px;
  font-weight: 900;
}

.metric-value {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 850;
  line-height: 1.05;
}

.metric-label {
  font-size: 16px;
  line-height: 1.3;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(360px, 0.95fr);
  gap: 32px;
}

.automation-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.automation-intro {
  max-width: 620px;
}

.automation-intro h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.automation-intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.automation-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.automation-controls {
  display: grid;
  gap: 18px;
}

.bot-card {
  padding: 22px;
  background: rgba(24, 32, 54, 0.86);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title-row h3 {
  font-size: 18px;
}

.status-chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(47, 217, 244, 0.12);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.control-label,
.range-row span {
  color: #ded6ef;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 22px;
}

.tone {
  min-height: 66px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(218, 226, 253, 0.14);
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
}

.tone.active {
  border-color: rgba(216, 167, 255, 0.86);
  color: white;
  background: rgba(138, 43, 209, 0.18);
}

.range-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.range-row strong {
  color: var(--purple-soft);
  font-size: 12px;
}

.range-track {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.range-track span {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-soft), #9bc7ff);
}

.text-action {
  min-height: 28px;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--purple-soft);
  font-size: 12px;
}

.trigger-list {
  display: grid;
  gap: 10px;
}

.trigger-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(218, 226, 253, 0.12);
}

.trigger-item.selected {
  border-color: rgba(132, 176, 255, 0.88);
  background: rgba(35, 120, 240, 0.11);
}

.trigger-item.muted-row {
  opacity: 0.55;
}

.trigger-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 900;
}

.trigger-icon.danger {
  background: rgba(214, 20, 20, 0.7);
  color: white;
}

.trigger-icon.blue {
  background: rgba(35, 120, 240, 0.34);
  color: #a9c9ff;
}

.trigger-item strong,
.trigger-item small {
  display: block;
}

.trigger-item strong {
  font-size: 13px;
}

.trigger-item small {
  color: var(--muted);
  font-size: 10px;
}

.switch {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.switch.on {
  background: var(--purple-soft);
}

.switch.on::after {
  left: 17px;
  background: white;
}

.chat-demo {
  min-height: 650px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  overflow: hidden;
  background: rgba(27, 35, 56, 0.92);
}

.chat-demo-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-agent img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.chat-agent strong,
.chat-agent span {
  display: block;
}

.chat-agent strong {
  font-size: 13px;
}

.chat-agent span {
  color: var(--muted);
  font-size: 11px;
}

.chat-tools {
  display: flex;
  gap: 8px;
}

.chat-tools button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.chat-window {
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 55% 8%, rgba(107, 33, 168, 0.17), transparent 30%),
    rgba(9, 17, 35, 0.35);
}

.chat-line {
  max-width: 76%;
  display: grid;
  gap: 6px;
}

.chat-line small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.chat-line p {
  margin: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-line time {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
}

.chat-line.client {
  justify-self: end;
}

.chat-line.client p {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(218, 226, 253, 0.16);
}

.chat-line.agent {
  justify-self: start;
}

.chat-line.agent p {
  background: var(--purple-soft);
  color: #28133e;
}

.chat-line.small {
  max-width: 70%;
}

.thinking-pill {
  justify-self: center;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.voice-note {
  width: 154px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: #a8c9ff;
  color: #13213b;
  font-size: 10px;
  font-weight: 800;
}

.voice-note button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #13213b;
  border: 0;
  box-shadow: none;
}

.chat-input-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.chat-input-demo button {
  min-width: 44px;
  padding: 0;
  border-radius: 10px;
  color: #13213b;
  background: #a8c9ff;
}

.automation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.analytics-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.analytics-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analytics-tabs strong {
  color: var(--purple-soft);
  font-size: 20px;
}

.analytics-tabs button {
  margin-left: auto;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(47, 217, 244, 0.12);
  color: white;
  box-shadow: none;
  font-size: 12px;
}

.analytics-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2.1fr;
  gap: 16px;
}

.analytics-card {
  min-height: 140px;
  padding: 22px;
  background: rgba(24, 32, 54, 0.82);
}

.analytics-card span,
.analytics-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.analytics-card strong {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 28px;
}

.success-rate strong {
  color: var(--purple-soft);
  font-size: 44px;
}

.mini-progress {
  height: 7px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-progress span {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple-soft), #9bc7ff);
}

.training-card .panel-title-row {
  margin-bottom: 16px;
}

.bar-chart {
  height: 74px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
}

.bar-chart i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: rgba(216, 167, 255, 0.2);
}

.bar-chart i.active {
  background: var(--purple-soft);
  box-shadow: 0 0 24px rgba(216, 167, 255, 0.45);
}

.analytics-mid-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.98fr);
  gap: 20px;
}

.handoff-card {
  min-height: 390px;
}

.handoff-card h3 {
  font-size: 22px;
}

.handoff-card p {
  margin: 4px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.handoff-card svg {
  width: 100%;
  height: 230px;
  overflow: visible;
}

.handoff-fill {
  fill: url("#handoffFill");
}

.handoff-line {
  fill: none;
  stroke: var(--purple-soft);
  stroke-width: 4;
}

.handoff-card circle {
  fill: var(--purple-soft);
}

.handoff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(218, 226, 253, 0.12);
  padding-top: 16px;
}

.handoff-stats div {
  text-align: center;
  border-right: 1px solid rgba(218, 226, 253, 0.12);
}

.handoff-stats div:last-child {
  border-right: 0;
}

.handoff-stats span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.handoff-stats strong {
  color: var(--purple-soft);
  font-size: 20px;
}

.ai-feed-card {
  min-height: 390px;
}

.ai-feed-card h3 {
  font-size: 20px;
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  position: relative;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.feed-item span,
.feed-item time,
.feed-item strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.feed-item time {
  position: absolute;
  right: 12px;
  top: 12px;
}

.feed-item p {
  margin: 8px 0;
  color: #e5ddf5;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.feed-item strong {
  color: var(--cyan);
}

.feed-action {
  width: 100%;
  margin-top: 10px;
}

.deployment-map {
  min-height: 230px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 20%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px),
    linear-gradient(90deg, rgba(7, 22, 42, 0.94), rgba(24, 32, 54, 0.82));
}

.deployment-map .coverage-chip {
  position: static;
  justify-self: center;
  margin-bottom: 6px;
  background: rgba(216, 167, 255, 0.24);
  color: white;
}

.deployment-map h3 {
  font-size: 30px;
}

.deployment-map p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.floating-chat-demo {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  width: 260px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(24, 32, 54, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.floating-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.floating-chat-head strong,
.floating-chat-head span,
.floating-chat-demo small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-chat-head span {
  color: #9bc7ff;
}

.floating-message {
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.floating-message.bot {
  justify-self: end;
  max-width: 82%;
  background: var(--purple-soft);
  color: #2b1642;
}

.floating-message.user {
  justify-self: start;
  max-width: 82%;
  background: rgba(255, 255, 255, 0.12);
}

.stat-box {
  min-height: 92px;
  display: grid;
  align-content: center;
  padding: 18px 22px;
}

.stat-box.active {
  border-color: rgba(216, 167, 255, 0.9);
}

.stat-box span,
.stat-box strong {
  display: block;
}

.stat-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-box strong {
  margin-top: 6px;
  color: white;
  font-size: 18px;
}

.side-stack {
  display: grid;
  gap: 32px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.panel-head p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.segmented {
  display: flex;
  gap: 8px;
}

.segmented span {
  min-width: 64px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.segmented .active {
  color: var(--purple-soft);
  border: 1px solid rgba(216, 167, 255, 0.3);
}

.traffic-panel {
  min-height: 460px;
}

.chart-lines {
  height: 310px;
}

.chart-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.grid-line {
  fill: none;
  stroke: rgba(218, 226, 253, 0.1);
  stroke-width: 1;
}

.traffic-line {
  fill: none;
  stroke: url("#trafficGradient");
  stroke-width: 4;
  filter: drop-shadow(0 0 12px rgba(47, 217, 244, 0.3));
}

.traffic-line {
  stroke: #8ed5ff;
}

.coverage-panel {
  padding: 0;
}

.coverage-map {
  position: relative;
  min-height: 256px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.42), transparent 8%),
    repeating-linear-gradient(18deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(7, 22, 42, 0.84));
}

.coverage-map::before,
.coverage-map::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-18deg);
}

.coverage-map::after {
  inset: 20%;
  transform: rotate(28deg);
}

.coverage-chip {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text);
  background: rgba(7, 22, 42, 0.74);
}

.node-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--purple-soft);
  box-shadow: 0 0 18px rgba(216, 167, 255, 0.78);
}

.node-a {
  left: 34%;
  top: 28%;
}

.node-b {
  left: 66%;
  top: 50%;
  background: #9bc7ff;
}

.node-c {
  left: 8%;
  top: 11%;
  background: var(--cyan);
}

.map-action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  color: #2c0b4b;
  background: var(--purple-soft);
}

.alert-title {
  margin: 0;
  color: var(--danger);
  font-weight: 900;
}

.dots {
  color: var(--muted);
  font-weight: 900;
}

.alert-card {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(94, 28, 58, 0.44);
  border: 1px solid rgba(255, 92, 154, 0.22);
}

.alert-card strong {
  font-size: 16px;
}

.alert-card span,
.alert-card small {
  color: var(--muted);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.table {
  overflow: auto;
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(218, 226, 253, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: #cbb8ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 14px;
}

.badge.ok {
  color: #001f25;
  background: var(--cyan);
  border-color: rgba(47, 217, 244, 0.62);
}

.badge.warn {
  color: #2d0050;
  background: var(--purple-soft);
  border-color: rgba(216, 167, 255, 0.62);
}

.badge.danger {
  color: #3b0205;
  background: var(--danger);
  border-color: rgba(255, 180, 171, 0.62);
}

pre {
  white-space: pre-wrap;
  overflow: auto;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(218, 226, 253, 0.12);
  border-radius: 16px;
  color: var(--text);
  padding: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 360px;
  background: rgba(16, 23, 42, 0.94);
  border: 1px solid rgba(216, 167, 255, 0.34);
  color: white;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(107, 33, 168, 0.32);
  backdrop-filter: blur(18px);
}

@media (max-width: 1180px) {
  .sidebar {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .support-dashboard {
    grid-template-columns: 1fr;
  }

  .automation-grid,
  .analytics-top-grid,
  .analytics-mid-grid,
  .automation-stats {
    grid-template-columns: 1fr 1fr;
  }

  .training-card,
  .handoff-card,
  .deployment-map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .login-panel,
  .split,
  .metric-grid,
  .support-metric-grid {
    grid-template-columns: 1fr;
  }

  .login-panel h1 {
    font-size: 34px;
  }

  .sidebar {
    position: static;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 16px;
  }

  .brand-block {
    justify-content: center;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  nav {
    justify-content: flex-start;
    grid-column: 2;
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .search-box {
    width: min(100%, 280px);
  }

  .profile-chip {
    display: none;
  }

  .main {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .topbar-actions > * {
    flex: 1 1 120px;
    text-align: center;
  }

  .traffic-panel {
    min-height: 380px;
  }

  .client-welcome {
    padding: 0 0 14px;
  }

  .client-welcome h3 {
    font-size: 26px;
  }

  .support-metric-card {
    min-height: 116px;
  }

  .service-chart svg,
  .notification-chart svg {
    height: 190px;
  }

  .chart-labels {
    font-size: 10px;
  }

  .notification-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .automation-grid,
  .analytics-top-grid,
  .analytics-mid-grid,
  .automation-stats,
  .tone-grid {
    grid-template-columns: 1fr;
  }

  .analytics-tabs {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .analytics-tabs button {
    margin-left: 0;
  }

  .floating-chat-demo {
    position: static;
    width: 100%;
    margin-top: -8px;
  }

  .chat-demo {
    min-height: auto;
  }

  .chat-window {
    padding: 18px;
  }

  .chat-line,
  .chat-line.small {
    max-width: 100%;
  }
}

/* Client area navigation */
.app-shell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 88px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 96px minmax(0, 1fr) auto;
  gap: 0;
  align-items: start;
  padding: 14px 0 0;
  background: rgba(13, 22, 40, 0.98);
  border-right: 1px solid rgba(157, 180, 213, 0.15);
  border-bottom: 0;
  box-shadow: none;
}

.brand-block {
  min-height: 78px;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  width: 72px;
  height: 58px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 22px rgba(47, 217, 244, 0.2);
}

#nav {
  width: 100%;
  display: grid;
  grid-auto-rows: minmax(70px, auto);
  justify-content: stretch;
  align-content: start;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding: 6px 0;
}

.sidebar-footer {
  width: 100%;
  padding: 8px 0 14px;
  border-top: 1px solid rgba(157, 180, 213, 0.12);
}

.sidebar-logout {
  width: 100%;
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 7px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffb4ab;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

.sidebar-logout svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(255, 107, 107, 0.22);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.08);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sidebar-logout span {
  display: block;
  max-width: 78px;
  text-align: center;
}

.sidebar-logout:hover {
  color: #ffd7d1;
  background: rgba(255, 107, 107, 0.08);
}

.sidebar-logout:hover svg {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.14);
}

#nav button {
  width: 100%;
  min-height: 68px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 7px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b7c3d7;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

#nav button svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(138, 162, 197, 0.06);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#nav button span {
  display: block;
  max-width: 78px;
  text-align: center;
}

#nav button.active {
  color: white;
  background: rgba(157, 180, 213, 0.07);
  box-shadow: inset 3px 0 0 var(--cyan);
}

#nav button.active svg {
  color: #dffcff;
  background: linear-gradient(145deg, rgba(138, 43, 209, 0.3), rgba(47, 217, 244, 0.16));
  border-color: rgba(47, 217, 244, 0.28);
  box-shadow: 0 6px 18px rgba(47, 217, 244, 0.1);
}

#nav button:hover {
  color: white;
  background: rgba(157, 180, 213, 0.08);
}

#nav button:hover svg {
  transform: translateY(-1px);
  border-color: rgba(47, 217, 244, 0.18);
}

.header-tools {
  display: none;
}

.main {
  grid-column: 2;
  width: min(1490px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.module-placeholder {
  display: grid;
  min-height: 420px;
  align-items: start;
}

.module-hero {
  max-width: 760px;
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: rgba(31, 43, 65, 0.94);
  box-shadow: none;
}

.module-hero h3 {
  font-size: 30px;
}

.module-hero p {
  max-width: 620px;
  margin: 0;
  color: #9fb6d7;
  line-height: 1.65;
}

body[data-view="attendance"] {
  background: #0d1628;
}

body[data-view="attendance"] .main,
body[data-view="notifications"] .main,
body[data-view="system"] .main {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body[data-view="attendance"] .topbar,
body[data-view="notifications"] .topbar,
body[data-view="system"] .topbar {
  display: none;
}

body[data-view="attendance"] .active-view,
body[data-view="notifications"] .active-view,
body[data-view="system"] .active-view {
  gap: 0;
}

body[data-view="notifications"] {
  background:
    radial-gradient(circle at 16% 0%, rgba(138, 43, 209, 0.2), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(47, 217, 244, 0.12), transparent 32%),
    #071426;
}

.dashboard-home {
  display: grid;
  gap: 24px;
}

.dashboard-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.attendance-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: #0d1628;
}

.notifications-workspace {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(138, 43, 209, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(21, 17, 44, 0.96), rgba(3, 21, 45, 0.98));
}

.notifications-workspace.subnav-open {
  grid-template-columns: 224px minmax(0, 1fr);
}

.notifications-subnav {
  display: block;
  width: 224px;
  min-height: 100vh;
  padding: 18px 10px 24px;
  background:
    linear-gradient(180deg, rgba(17, 24, 45, 0.98), rgba(10, 18, 35, 0.98));
  border-right: 1px solid rgba(47, 217, 244, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-18px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.notifications-workspace.subnav-open .notifications-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.notifications-subnav-head {
  display: grid;
  gap: 4px;
  padding: 4px 12px 18px;
}

.notifications-subnav-head strong {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.notifications-subnav-head span {
  color: #91a3be;
  font-size: 11px;
  font-weight: 700;
}

.notification-group {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.notification-group p {
  margin: 0;
  padding: 0 12px 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-group button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #b7c3d7;
  box-shadow: none;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.notification-group button.active {
  background:
    linear-gradient(90deg, rgba(138, 43, 209, 0.38), rgba(47, 217, 244, 0.13));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan);
}

.notification-group button.active svg {
  color: #79edff;
}

.notification-group button:hover {
  background: rgba(47, 217, 244, 0.08);
}

.notification-group svg,
.notification-group i,
.notification-detail-button svg,
.notification-detail-button i,
.notification-search-button svg,
.notification-search-button i,
.notification-add-button svg,
.notification-add-button i {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-detail-button svg,
.notification-detail-button i,
.notification-add-button svg,
.notification-add-button i {
  width: 18px;
  height: 18px;
}

.notifications-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  background: transparent;
}

.notifications-titlebar {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  background:
    linear-gradient(100deg, rgba(31, 43, 65, 0.94), rgba(11, 31, 58, 0.9));
  border-bottom: 1px solid rgba(47, 217, 244, 0.14);
}

.notification-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.notification-breadcrumb span {
  color: #9bc7ff;
  font-size: 12px;
  font-weight: 800;
}

.notification-breadcrumb .accent {
  color: var(--purple-soft);
}

.notification-breadcrumb b {
  color: #60748e;
  font-size: 12px;
}

.notifications-titlebar h3 {
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.1;
}

.notifications-titlebar p {
  max-width: 720px;
  margin: 0;
  color: #98a9c2;
  font-size: 14px;
  line-height: 1.55;
}

.notification-detail-button {
  min-width: 160px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(47, 217, 244, 0.12);
  border: 1px solid rgba(47, 217, 244, 0.34);
  color: #dff8ff;
  box-shadow: none;
}

.notification-add-button {
  min-width: 160px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 217, 244, 0.16);
}

.scheduled-composer-wrap {
  min-height: 0;
  padding: 24px 32px 42px;
  overflow: auto;
}

.scheduled-composer-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(47, 217, 244, 0.15);
  border-radius: 8px;
  background: rgba(27, 40, 62, 0.96);
  box-shadow: 0 18px 42px rgba(2, 8, 18, 0.28);
}

.scheduled-form-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.45fr 0.7fr 0.7fr;
  gap: 14px 10px;
}

.scheduled-form-grid label,
.scheduled-message-field {
  display: grid;
  gap: 7px;
  color: #dbe8f8;
  font-size: 11px;
  font-weight: 800;
}

.scheduled-form-grid input,
.scheduled-form-grid select,
.scheduled-message-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(155, 181, 216, 0.54);
  border-radius: 5px;
  background: #111d30;
  color: #f2f7ff;
}

.scheduled-span-2 {
  grid-column: span 2;
}

.scheduled-message-field {
  margin-top: 16px;
}

.scheduled-message-field textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.scheduled-variables {
  margin: 18px 0 0;
  padding: 0 8px 8px;
  border: 1px solid rgba(155, 181, 216, 0.48);
}

.scheduled-variables legend {
  padding: 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.scheduled-variable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduled-variable-list button {
  min-height: 30px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid rgba(155, 181, 216, 0.18);
  border-radius: 0;
  background: transparent;
  color: #dbe8f8;
  box-shadow: none;
  text-align: left;
  font-size: 10px;
}

.scheduled-variable-list button:hover,
.scheduled-variable-list button:focus-visible {
  background: rgba(47, 217, 244, 0.09);
  color: #fff;
}

.scheduled-composer-card footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(155, 181, 216, 0.18);
}

.scheduled-composer-card footer button {
  min-width: 142px;
}

.notification-table-row.scheduled-row {
  min-height: 62px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(155, 181, 216, 0.16);
}

.notification-table-row.scheduled-row > * {
  min-width: 0;
  padding: 10px 16px;
  overflow: hidden;
  color: #dbe8f8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-workspace {
  min-height: calc(100vh - 24px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #0b1527;
}

.system-subnav {
  padding: 28px 14px;
  border-right: 1px solid rgba(157, 180, 213, 0.15);
  background: #101a2e;
}

.system-subnav > div + div {
  margin-top: 26px;
}

.system-subnav p {
  margin: 0 10px 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-subnav button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b8c5d9;
  box-shadow: none;
  font-weight: 800;
  text-align: left;
}

.system-subnav button.active {
  border-color: rgba(47, 217, 244, 0.13);
  background: linear-gradient(90deg, rgba(112, 54, 203, 0.28), rgba(47, 217, 244, 0.12));
  color: #fff;
}

.system-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
}

.system-nav-icon.cyan { background: rgba(47, 217, 244, 0.14); color: #3be4f8; }
.system-nav-icon.blue { background: rgba(77, 139, 255, 0.16); color: #8bb3ff; }
.system-nav-icon.purple { background: rgba(186, 115, 255, 0.17); color: #daa6ff; }
.system-nav-icon.green { background: rgba(24, 185, 129, 0.16); color: #5ee9b5; }

.system-nav-icon svg {
  width: 19px;
  height: 19px;
}

.system-content {
  min-width: 0;
}

.system-titlebar {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.18);
  background: #1a2940;
}

.system-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.system-breadcrumb b,
.system-breadcrumb em {
  color: #8ca0bc;
  font-style: normal;
}

.system-titlebar h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.system-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-primary-action,
.system-secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.system-primary-action {
  border: 0;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  color: #fff;
}

.system-secondary-action {
  border: 1px solid rgba(157, 180, 213, 0.35);
  background: #9dafc6;
  color: #16243a;
  box-shadow: none;
}

.system-page-body {
  padding: 24px 30px 40px;
}

.system-security-page {
  display: grid;
  place-items: start center;
  padding-top: 36px;
}

.system-security-message {
  width: min(760px, 100%);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.system-security-message.ok {
  color: #8ef6c8;
  border: 1px solid rgba(24, 185, 129, 0.35);
  background: rgba(24, 185, 129, 0.1);
}

.system-security-message.bad {
  color: #ffb4ab;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.system-security-card {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(47, 217, 244, 0.16);
  border-radius: 8px;
  background: #1b2940;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.system-security-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.system-security-head h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.system-security-subtitle,
.system-security-email {
  margin: 0;
  color: #b8c5d9;
  font-size: 14px;
  line-height: 1.55;
}

.system-security-email {
  margin-top: 10px;
}

.system-2fa-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.system-2fa-badge.on {
  color: #8ef6c8;
  border: 1px solid rgba(24, 185, 129, 0.35);
  background: rgba(24, 185, 129, 0.12);
}

.system-2fa-badge.off {
  color: #ffd59a;
  border: 1px solid rgba(255, 193, 94, 0.35);
  background: rgba(255, 193, 94, 0.1);
}

.system-security-card > footer,
.system-2fa-form footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.system-2fa-setup {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(157, 180, 213, 0.18);
}

.system-2fa-qr {
  width: 192px;
  height: 192px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.system-2fa-manual {
  margin: 0;
  color: #9fb0c8;
  font-size: 12px;
  text-align: center;
  word-break: break-all;
}

.system-2fa-manual code {
  color: #dce7f7;
}

.system-2fa-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(157, 180, 213, 0.18);
}

.system-2fa-form label {
  display: grid;
  gap: 7px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 800;
}

.system-2fa-form input {
  min-height: 46px;
  border: 1px solid rgba(157, 180, 213, 0.48);
  border-radius: 8px;
  background: #122033;
  color: #eef5ff;
}

.system-2fa-disable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.system-danger-action {
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 107, 107, 0.45) !important;
  background: linear-gradient(90deg, rgba(180, 45, 45, 0.92), rgba(220, 70, 70, 0.92)) !important;
}

.system-danger-action:hover {
  filter: brightness(1.08);
}

.system-search {
  width: min(360px, 100%);
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 800;
}

.system-search input,
.system-log-filters input,
.system-log-filters select {
  min-height: 42px;
  border: 1px solid rgba(157, 180, 213, 0.48);
  border-radius: 5px;
  background: #0d182b;
  color: #fff;
}

.system-data-table {
  overflow: hidden;
  border: 1px solid rgba(157, 180, 213, 0.12);
  background: #1b2940;
}

.system-table-head,
.system-table-row {
  display: grid;
  align-items: center;
}

.system-table-head.systems,
.system-table-row.systems {
  grid-template-columns: 1fr 1fr 1.5fr 1.8fr;
}

.system-table-head.api,
.system-table-row.api {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.system-table-head.logs,
.system-table-row.logs {
  grid-template-columns: 0.75fr 1.45fr 1fr 3fr 0.7fr;
}

.system-table-head {
  min-height: 54px;
  color: #9bc7ff;
  font-size: 12px;
  font-weight: 800;
}

.system-table-head > *,
.system-table-row > * {
  min-width: 0;
  padding: 12px 18px;
}

.system-table-row {
  min-height: 64px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
  color: #e7eef9;
  font-size: 13px;
}

.system-status {
  min-width: 108px;
  display: inline-flex;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.system-status.ok { background: rgba(13, 177, 159, 0.75); color: #fff; }
.system-status.bad { background: rgba(239, 68, 68, 0.72); color: #fff; }

.system-row-actions {
  display: flex;
  gap: 6px;
}

.system-row-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fb0c8;
  box-shadow: none;
}

.system-row-actions button:hover {
  color: var(--cyan);
}

.system-table-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-top: 1px solid rgba(157, 180, 213, 0.28);
  color: #9bc7ff;
  font-size: 12px;
}

.system-table-footer button {
  min-width: 44px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(157, 180, 213, 0.32);
  border-radius: 5px;
  background: #142138;
  color: #fff;
  box-shadow: none;
}

.system-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
  color: #9fb0c8;
}

.system-log-filters {
  display: grid;
  grid-template-columns: 180px 180px minmax(180px, 1fr) minmax(240px, 1.2fr);
  gap: 12px;
  margin-bottom: 18px;
}

.system-log-filters label {
  display: grid;
  gap: 7px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 800;
}

.system-log-type {
  min-width: 96px;
  display: inline-flex;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.system-log-type.success {
  background: #129e92;
}

.system-log-type.warn {
  background: #df7b00;
}

.system-log-type.error {
  background: #d64045;
}

.system-modal.log-detail {
  width: min(850px, 100%);
  padding: 28px 32px;
}

.system-modal.log-detail > header {
  justify-content: center;
  padding: 0 0 16px;
  border-bottom: 0;
}

.system-modal.log-detail > header h3 {
  font-size: 23px;
}

.system-log-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(191, 210, 235, 0.55);
}

.system-log-summary > div {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(191, 210, 235, 0.55);
  color: #eef5ff;
}

.system-log-summary > div:nth-child(odd):not(.wide) {
  border-right: 1px solid rgba(191, 210, 235, 0.55);
}

.system-log-summary .wide {
  grid-column: 1 / -1;
}

.system-log-summary > div:last-child {
  border-bottom: 0;
}

.system-log-summary strong {
  flex: 0 0 auto;
  color: #fff;
}

.system-log-summary span {
  overflow-wrap: anywhere;
}

.system-log-extra {
  align-items: flex-start !important;
}

.system-log-history {
  margin-top: 20px;
}

.system-log-history h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  text-align: center;
}

.system-log-history-empty {
  min-height: 116px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(191, 210, 235, 0.55);
  color: #eef5ff;
}

.system-log-history-empty svg {
  width: 28px;
  height: 28px;
  color: #9fb0c8;
}

.system-log-history-list {
  border: 1px solid rgba(191, 210, 235, 0.55);
}

.system-log-history-list > div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.2);
  color: #eef5ff;
}

.system-log-history-list > div:last-child {
  border-bottom: 0;
}

.system-log-history-list time {
  color: #9bc7ff;
}

.system-modal.log-detail > footer {
  padding-top: 20px;
  border-top: 0;
}

.system-modal.log-detail > footer button {
  min-width: 190px;
}

.system-modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 18, 0.74);
}

.system-modal {
  width: min(620px, 100%);
  padding: 24px;
  border: 1px solid rgba(47, 217, 244, 0.18);
  border-radius: 8px;
  background: #1b2940;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.system-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.2);
}

.system-modal h3 {
  margin: 0;
  color: #fff;
}

.system-modal header button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fb0c8;
  box-shadow: none;
}

.system-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0;
}

.system-modal-fields label {
  display: grid;
  gap: 7px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 800;
}

.system-modal-fields .wide {
  grid-column: 1 / -1;
}

.system-modal-fields input,
.system-modal-fields select {
  min-height: 42px;
  border: 1px solid rgba(157, 180, 213, 0.48);
  border-radius: 5px;
  background: #101c2f;
  color: #fff;
}

.system-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(157, 180, 213, 0.2);
}

.system-modal footer button {
  min-width: 130px;
}

.system-key-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(47, 217, 244, 0.18);
  background: rgba(47, 217, 244, 0.07);
  color: #b9d7ee;
  font-size: 12px;
}

.system-docs-body {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.system-docs-body code {
  padding: 11px;
  border: 1px solid rgba(157, 180, 213, 0.18);
  background: #101c2f;
  color: #56e5f5;
}

.system-modal.confirm {
  width: min(430px, 100%);
  text-align: center;
}

.system-modal.confirm p {
  margin: 24px 0 6px;
  color: #fff;
  font-weight: 700;
}

.system-modal.confirm small {
  color: #9fb0c8;
}

.system-detail-page,
.system-edit-page {
  display: grid;
  place-items: start center;
  padding-top: 48px;
}

.system-detail-card,
.system-edit-form {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(47, 217, 244, 0.16);
  border-radius: 8px;
  background: #1b2940;
}

.system-detail-card {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.system-detail-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(157, 180, 213, 0.25);
  border-bottom: 0;
  color: #eef5ff;
  overflow-wrap: anywhere;
}

.system-detail-row:last-of-type {
  border-bottom: 1px solid rgba(157, 180, 213, 0.25);
}

.system-detail-row button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fb0c8;
  box-shadow: none;
}

.system-detail-row button:hover {
  color: var(--cyan);
}

.system-detail-card > footer {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.system-detail-card > footer .system-primary-action {
  min-width: 290px;
}

.system-edit-top,
.system-integration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.system-edit-form label {
  display: grid;
  gap: 7px;
  color: #dce7f7;
  font-size: 12px;
  font-weight: 800;
}

.system-edit-form input,
.system-edit-form select {
  min-height: 46px;
  border: 1px solid rgba(157, 180, 213, 0.48);
  border-radius: 5px;
  background: #101c2f;
  color: #fff;
}

.system-accordion {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 0;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  background: #223149;
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.system-accordion svg {
  transition: transform 180ms ease;
}

.system-accordion.open svg {
  transform: rotate(180deg);
}

.system-integration-fields {
  padding: 20px 0 4px;
}

.system-integration-fields .wide {
  grid-column: 1 / -1;
}

.system-edit-form > footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 180, 213, 0.18);
}

.system-edit-form > footer .system-primary-action {
  min-width: 190px;
}

.system-button-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: system-spin 650ms linear infinite;
}

@keyframes system-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .scheduled-composer-wrap {
    padding: 16px;
  }

  .scheduled-composer-card {
    padding: 18px;
  }

  .scheduled-form-grid,
  .scheduled-variable-list {
    grid-template-columns: 1fr;
  }

  .scheduled-span-2 {
    grid-column: auto;
  }

  .system-workspace {
    grid-template-columns: 1fr;
  }

  .system-subnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 180, 213, 0.15);
  }

  .system-subnav > div {
    display: flex;
    gap: 8px;
  }

  .system-subnav > div + div {
    margin-top: 0;
  }

  .system-subnav p {
    display: none;
  }

  .system-subnav button {
    width: auto;
    min-width: 120px;
  }

  .system-titlebar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }

  .system-titlebar h3 {
    font-size: 24px;
  }

  .system-title-actions,
  .system-title-actions button {
    width: 100%;
  }

  .system-page-body {
    padding: 16px;
    overflow-x: auto;
  }

  .system-security-head {
    grid-template-columns: 1fr;
  }

  .system-2fa-disable-grid {
    grid-template-columns: 1fr;
  }

  .system-data-table {
    min-width: 760px;
  }

  .system-log-filters,
  .system-modal-fields {
    grid-template-columns: 1fr;
  }

  .system-modal-fields .wide {
    grid-column: auto;
  }

  .system-log-summary {
    grid-template-columns: 1fr;
  }

  .system-log-summary > div:nth-child(odd):not(.wide) {
    border-right: 0;
  }

  .system-log-summary .wide {
    grid-column: auto;
  }

  .system-log-history-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .system-edit-top,
  .system-integration-fields {
    grid-template-columns: 1fr;
  }

  .system-integration-fields .wide {
    grid-column: auto;
  }

  .system-detail-page,
  .system-edit-page {
    padding-top: 20px;
  }

  .system-detail-card,
  .system-edit-form {
    padding: 16px;
  }
}

.notification-detail-button svg,
.notification-detail-button i,
.notification-add-button svg,
.notification-add-button i {
  width: 18px;
  height: 18px;
}

.notification-filter-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) 86px;
  gap: 8px;
  align-items: end;
  width: min(1152px, calc(100% - 64px));
  margin: 22px auto 14px;
  padding: 10px 18px 18px;
  border-radius: 10px;
  background: rgba(21, 31, 48, 0.9);
  border: 1px solid rgba(47, 217, 244, 0.09);
}

.notification-filter-panel.email-history-filter {
  grid-template-columns: 180px 180px 88px;
  justify-content: start;
}

.notification-filter-panel label {
  gap: 7px;
  color: #aab7ca;
  font-size: 11px;
  font-weight: 800;
}

.notification-filter-panel input,
.notification-filter-panel select {
  min-height: 38px;
  border-radius: 5px;
  background: #101a2b;
  border-color: rgba(157, 180, 213, 0.46);
  color: #dbe8ff;
  font-size: 12px;
}

.notification-search-button {
  min-height: 38px;
  border-radius: 5px;
  background: rgba(47, 217, 244, 0.18);
  border: 0;
  color: #dff8ff;
  box-shadow: none;
}

.notification-metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(1152px, calc(100% - 64px));
  margin: 0 auto 18px;
}

.notification-metric-row.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.notification-metric-row.contacts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.notification-mini-card {
  min-height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 22% 18%, rgba(47, 217, 244, 0.08), transparent 36%),
    rgba(21, 31, 48, 0.92);
  border: 1px solid rgba(47, 217, 244, 0.08);
}

.notification-mini-card strong {
  font-size: 31px;
  line-height: 1;
}

.notification-mini-card span {
  font-size: 13px;
  font-weight: 700;
}

.notification-mini-card.blue strong,
.notification-mini-card.blue span {
  color: #45b8ff;
}

.notification-mini-card.green strong,
.notification-mini-card.green span {
  color: #2fd9f4;
}

.notification-mini-card.orange strong,
.notification-mini-card.orange span {
  color: #d8a7ff;
}

.notification-mini-card.red strong,
.notification-mini-card.red span {
  color: #ff7b88;
}

.notification-chart-panel {
  width: min(1152px, calc(100% - 64px));
  min-height: 276px;
  margin: 0 auto 28px;
  padding: 24px 20px 12px;
  border-radius: 12px;
  background: rgba(21, 31, 48, 0.92);
  border: 1px solid rgba(47, 217, 244, 0.09);
  overflow: hidden;
}

.notification-chart-summary {
  display: flex;
  align-items: end;
  gap: 34px;
  margin-bottom: 6px;
}

.notification-chart-summary > strong {
  align-self: start;
  min-width: 100%;
  color: #fff;
  font-size: 14px;
}

.notification-chart-summary div {
  display: grid;
  gap: 4px;
}

.notification-chart-summary span {
  color: #91a9c8;
  font-size: 12px;
  font-weight: 700;
}

.notification-chart-summary strong {
  color: #dce5fb;
  font-size: 28px;
}

.notification-chart-summary b {
  color: #fff;
  font-size: 30px;
}

.notification-area-graph {
  width: 100%;
  min-height: 190px;
  overflow: visible;
}

.notification-grid-line {
  fill: none;
  stroke: rgba(157, 180, 213, 0.11);
  stroke-width: 1;
}

.notification-area-blue {
  fill: rgba(47, 217, 244, 0.18);
}

.notification-line-blue {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
}

.notification-area-orange {
  fill: rgba(216, 167, 255, 0.18);
}

.notification-line-orange {
  fill: none;
  stroke: rgba(216, 167, 255, 0.72);
  stroke-width: 3;
}

.notification-line-red {
  fill: none;
  stroke: rgba(255, 123, 136, 0.72);
  stroke-width: 2;
}

.notification-axis text {
  fill: #5f6f86;
  font-size: 13px;
  font-weight: 800;
}

.notification-details-panel {
  display: grid;
  gap: 16px;
  margin: -10px 28px 28px;
  padding: 18px;
  border: 1px solid rgba(47, 217, 244, 0.14);
  border-radius: 12px;
  background: rgba(21, 31, 48, 0.94);
}

.notification-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notification-details-head div {
  display: grid;
  gap: 3px;
}

.notification-details-head span,
.notification-details-grid span {
  color: #91a9c8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-details-head strong {
  color: #fff;
  font-size: 17px;
}

.notification-details-head button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(47, 217, 244, 0.12);
  border-color: rgba(47, 217, 244, 0.2);
  box-shadow: none;
  color: #dbe8ff;
}

.notification-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notification-details-grid div {
  display: grid;
  gap: 6px;
  min-height: 74px;
  align-content: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(47, 217, 244, 0.06);
}

.notification-details-grid strong {
  color: #dce5fb;
  font-size: 14px;
}

.notification-history-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.history-action {
  width: 42px;
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  box-shadow: none;
}

.history-action.back {
  width: auto;
  min-width: 132px;
  gap: 8px;
  padding: 0 20px;
  color: #dff8ff;
  background: rgba(47, 217, 244, 0.12);
  border-color: rgba(47, 217, 244, 0.3);
}

.history-action.primary {
  color: #f5eaff;
  background: rgba(138, 43, 209, 0.24);
  border-color: rgba(216, 167, 255, 0.32);
}

.history-action.neutral {
  color: #dff8ff;
  background: rgba(47, 217, 244, 0.12);
  border-color: rgba(47, 217, 244, 0.28);
}

.history-action.danger {
  color: #ffb0b8;
  background: rgba(255, 123, 136, 0.12);
  border-color: rgba(255, 123, 136, 0.28);
}

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

.history-process-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 142px;
  width: 210px;
  padding: 8px;
  border: 1px solid rgba(47, 217, 244, 0.16);
  border-radius: 7px;
  background: #1b293f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.history-process-menu.hidden {
  display: none;
}

.history-process-menu button {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  color: #dce7fa;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}

.history-process-menu button:hover {
  color: #fff;
  background: rgba(47, 217, 244, 0.09);
}

.history-process-menu svg {
  width: 17px;
  height: 17px;
  color: #a9b9d0;
}

.notification-history-details {
  width: min(1320px, calc(100% - 48px));
  min-width: 0;
  max-width: calc(100% - 48px);
  display: grid;
  gap: 16px;
  align-self: start;
  margin: 20px auto 40px;
}

.history-details-filters {
  display: grid;
  grid-template-columns: 170px 170px 180px 180px minmax(220px, 1fr) 46px;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(47, 217, 244, 0.09);
  border-radius: 10px;
  background: rgba(21, 31, 48, 0.9);
}

.history-details-filters label {
  display: grid;
  gap: 7px;
  color: #aab7ca;
  font-size: 11px;
  font-weight: 800;
}

.history-details-filters input,
.history-details-filters select {
  width: 100%;
  min-height: 38px;
  border-radius: 5px;
  background: #101a2b;
  border-color: rgba(157, 180, 213, 0.46);
  color: #dbe8ff;
  font-size: 12px;
}

.history-details-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.history-details-head,
.history-details-row {
  min-width: 1120px;
  display: grid;
  grid-template-columns: 42px 1.35fr 1.35fr 0.75fr 0.8fr 1.25fr 0.45fr 0.8fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.history-details-head {
  min-height: 48px;
}

.history-details-head span {
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 800;
}

.history-details-row {
  min-height: 56px;
  color: #dce5fb;
  font-size: 12px;
}

.history-details-row:hover {
  background: rgba(47, 217, 244, 0.035);
}

.history-details-row.selected {
  background: rgba(47, 217, 244, 0.1);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.history-details-row strong {
  color: #fff;
  font-size: 12px;
}

.history-details-head input,
.history-details-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
}

.history-message-type {
  color: #91a9c8;
}

.history-message-type svg {
  width: 19px;
  height: 19px;
}

.history-status {
  min-width: 92px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
}

.history-status.received,
.history-status.read {
  color: #dffcff;
  background: rgba(47, 217, 244, 0.25);
  border: 1px solid rgba(47, 217, 244, 0.34);
}

.history-status.blocked {
  color: #f3dcff;
  background: rgba(138, 43, 209, 0.28);
  border: 1px solid rgba(216, 167, 255, 0.3);
}

.history-details-table .notification-table-foot {
  min-width: 1120px;
}

.history-details-table .notification-table-foot svg {
  width: 15px;
  height: 15px;
}

.notification-record-page {
  width: min(900px, calc(100% - 48px));
  display: grid;
  align-self: start;
  margin: 32px auto 48px;
}

.notification-record-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(47, 217, 244, 0.13);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 43, 209, 0.12), transparent 36%),
    rgba(27, 41, 63, 0.96);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

.notification-record-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notification-record-channel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 800;
}

.notification-record-channel svg {
  width: 16px;
  height: 16px;
}

.notification-record-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid rgba(157, 180, 213, 0.14);
  border-radius: 7px;
  overflow: hidden;
}

.notification-record-meta div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.12);
}

.notification-record-meta div:nth-child(odd) {
  border-right: 1px solid rgba(157, 180, 213, 0.12);
}

.notification-record-meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.notification-record-meta dt {
  color: #91a9c8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-record-meta dd {
  margin: 0;
  color: #f1f6ff;
  font-size: 13px;
  font-weight: 700;
}

.notification-record-message {
  display: grid;
  gap: 9px;
}

.notification-record-message h4 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.notification-record-message p {
  min-height: 76px;
  margin: 0;
  padding: 15px;
  border: 1px solid rgba(157, 180, 213, 0.24);
  border-radius: 6px;
  color: #dce7fa;
  background: #101b30;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.notification-send-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 25, 0.72);
  backdrop-filter: blur(5px);
}

.notification-send-overlay.hidden {
  display: none;
}

.notification-send-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(47, 217, 244, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 43, 209, 0.15), transparent 34%),
    #17243a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.notification-send-modal > header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.notification-send-modal header span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-send-modal header h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 18px;
}

.notification-send-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: rgba(157, 180, 213, 0.07);
  border: 1px solid rgba(157, 180, 213, 0.15);
  color: #9fb0c8;
  box-shadow: none;
}

.notification-send-close svg {
  width: 17px;
  height: 17px;
}

.notification-send-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
  padding: 22px;
}

.notification-send-fields > label {
  display: grid;
  gap: 7px;
  color: #dce7fa;
  font-size: 11px;
  font-weight: 800;
}

.notification-send-fields .wide,
.notification-file-field,
.notification-send-info {
  grid-column: 1 / -1;
}

.notification-send-control {
  position: relative;
  display: block;
}

.notification-send-control > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #879ab7;
  transform: translateY(-50%);
  pointer-events: none;
}

.notification-send-control.textarea > svg {
  top: 15px;
  transform: none;
}

.notification-send-control input,
.notification-send-control select,
.notification-send-control textarea {
  width: 100%;
  border-radius: 5px;
  background: #101b30;
  border-color: rgba(157, 180, 213, 0.38);
  color: #e7efff;
  font-size: 12px;
}

.notification-send-control input,
.notification-send-control select {
  min-height: 42px;
  padding-left: 40px;
}

.notification-send-control textarea {
  min-height: 104px;
  padding: 13px 13px 13px 40px;
  resize: vertical;
}

.notification-send-control input:focus,
.notification-send-control select:focus,
.notification-send-control textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 217, 244, 0.1);
}

.notification-file-field {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(157, 180, 213, 0.38);
  border-radius: 5px;
  background: #101b30;
  overflow: hidden;
}

.notification-file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notification-file-field > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 5px;
  color: #dffcff;
  background: rgba(47, 217, 244, 0.1);
  border: 1px solid rgba(47, 217, 244, 0.22);
  cursor: pointer;
}

.notification-file-field svg {
  width: 15px;
  height: 15px;
}

.notification-file-field em {
  min-width: 0;
  overflow: hidden;
  color: #9fb0c8;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-send-info {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 217, 244, 0.22);
  border-radius: 6px;
  color: #bfefff;
  background: rgba(47, 217, 244, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.notification-send-info svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.notification-send-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
}

.notification-send-modal footer button {
  min-width: 112px;
  min-height: 38px;
  border-radius: 6px;
  box-shadow: none;
}

.notification-send-modal footer .secondary {
  color: #c7d5e9;
  background: rgba(157, 180, 213, 0.12);
  border: 1px solid rgba(157, 180, 213, 0.2);
}

.notification-send-modal footer .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border: 0;
}

.notification-send-modal footer .primary svg {
  width: 16px;
  height: 16px;
}

.history-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 25, 0.72);
  backdrop-filter: blur(5px);
}

.history-confirm-overlay.hidden {
  display: none;
}

.history-confirm-modal {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  padding: 30px 26px 24px;
  border: 1px solid rgba(47, 217, 244, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 43, 209, 0.14), transparent 36%),
    #1b293f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  text-align: center;
}

.history-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #91a4bf;
  background: transparent;
  box-shadow: none;
}

.history-confirm-close svg {
  width: 17px;
  height: 17px;
}

.history-confirm-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--purple-soft);
}

.history-confirm-modal h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
}

.history-confirm-modal p {
  max-width: 310px;
  margin: 0;
  color: #eef4ff;
  font-size: 16px;
  line-height: 1.45;
}

.history-confirm-modal small {
  margin-top: 7px;
  color: #9fb0c8;
  font-size: 10px;
}

.history-confirm-modal footer {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
}

.history-confirm-modal footer button {
  min-height: 38px;
  border-radius: 999px;
  box-shadow: none;
}

.history-confirm-modal .secondary {
  color: #c7d5e9;
  background: rgba(157, 180, 213, 0.18);
  border: 1px solid rgba(157, 180, 213, 0.22);
}

.history-confirm-modal .primary {
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border: 0;
}

.notification-result-list {
  display: grid;
  gap: 8px;
}

.notification-result-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 90px minmax(160px, 0.8fr) minmax(220px, 1fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 7px;
  background: rgba(13, 22, 40, 0.72);
  border: 1px solid rgba(47, 217, 244, 0.08);
}

.notification-result-item.featured {
  background: rgba(47, 217, 244, 0.12);
  border-color: rgba(47, 217, 244, 0.28);
}

.notification-result-item time,
.notification-result-item span {
  color: #9fb0c8;
  font-size: 12px;
  font-weight: 700;
}

.notification-result-item strong {
  color: #fff;
  font-size: 12px;
}

.notification-result-item em {
  justify-self: end;
  color: var(--cyan);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-table-wrap,
.notification-contacts-wrap {
  width: min(1114px, calc(100% - 64px));
  display: grid;
  align-self: start;
  gap: 12px;
  margin: 16px auto 40px;
}

.notification-search-field {
  width: 274px;
  display: grid;
  gap: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.notification-search-field input,
.notification-contact-filters input,
.notification-contact-filters select {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border-radius: 4px;
  background: #0e1729;
  border-color: rgba(47, 217, 244, 0.24);
}

.notification-data-table {
  background: rgba(31, 43, 65, 0.92);
  border: 1px solid rgba(47, 217, 244, 0.08);
  overflow: hidden;
}

.notification-table-head,
.notification-contact-row {
  display: grid;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.notification-table-head {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 20px;
}

.notification-table-head.email-contact-head {
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
}

.notification-table-head span {
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 800;
}

.notification-empty-table {
  min-height: 122px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.notification-empty-table span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(47, 217, 244, 0.62);
  color: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.notification-empty-table strong {
  font-size: 12px;
}

.notification-table-foot {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  color: #9bc7ff;
  font-size: 12px;
}

.notification-table-foot button {
  min-width: 36px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(15, 29, 51, 0.88);
  border-color: rgba(47, 217, 244, 0.22);
  box-shadow: none;
  color: #9bc7ff;
}

.notification-table-foot button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.notification-contact-filters {
  display: grid;
  grid-template-columns: 180px 180px 180px 274px;
  gap: 8px;
  align-items: end;
}

.notification-contact-filters label {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.notification-contact-row {
  grid-template-columns: 1.5fr 1.5fr 0.75fr 0.75fr 0.75fr 1.1fr;
  padding: 0 20px;
}

.notification-contact-row strong {
  color: #fff;
  font-size: 12px;
}

.contact-detail-page {
  width: min(980px, calc(100% - 48px));
  margin: 48px auto;
}

.contact-detail-card {
  display: grid;
  gap: 28px;
  padding: 34px 46px;
  border: 1px solid rgba(47, 217, 244, 0.12);
  border-radius: 10px;
  background: rgba(31, 43, 65, 0.96);
}

.contact-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(157, 180, 213, 0.42);
}

.contact-detail-fields div {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 15px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.42);
}

.contact-detail-fields div:not(.wide):nth-of-type(2) {
  border-right: 1px solid rgba(157, 180, 213, 0.42);
}

.contact-detail-fields .wide {
  grid-column: 1 / -1;
}

.contact-detail-fields div:last-child {
  border-bottom: 0;
}

.contact-detail-fields strong,
.contact-detail-status strong {
  color: #fff;
}

.contact-detail-fields span {
  color: #dce7fa;
}

.contact-detail-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 24px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
}

.contact-detail-status div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.contact-detail-status .bool-icon,
.contact-detail-status .bool-icon svg {
  width: 38px;
  height: 38px;
}

.contact-block-button {
  min-width: 176px;
  min-height: 44px;
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 71, 87, 0.86);
  box-shadow: none;
}

.contact-block-button svg {
  width: 17px;
  height: 17px;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 25, 0.72);
  backdrop-filter: blur(5px);
}

.contact-modal-overlay.hidden {
  display: none;
}

.contact-edit-modal,
.contact-delete-modal {
  width: min(720px, 100%);
  border: 1px solid rgba(47, 217, 244, 0.18);
  border-radius: 8px;
  background: #1b293f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.contact-edit-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.contact-edit-modal h3 {
  margin: 0;
  color: #fff;
}

.contact-edit-modal header button {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  color: #9fb0c8;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 24px 28px;
}

.contact-edit-grid label {
  display: grid;
  gap: 7px;
  color: #dce7fa;
  font-size: 12px;
  font-weight: 800;
}

.contact-edit-grid .wide {
  grid-column: 1 / -1;
}

.contact-edit-grid input,
.contact-edit-grid textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  color: #fff;
  background: #101b30;
  border-color: rgba(157, 180, 213, 0.42);
}

.contact-edit-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.contact-edit-modal > footer,
.contact-delete-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
}

.contact-edit-modal footer button,
.contact-delete-modal footer button {
  min-width: 150px;
  min-height: 42px;
  border-radius: 999px;
  box-shadow: none;
}

.contact-edit-modal .secondary,
.contact-delete-modal .secondary {
  color: #c7d5e9;
  background: rgba(157, 180, 213, 0.2);
  border: 0;
}

.contact-edit-modal .primary,
.contact-delete-modal .primary {
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border: 0;
}

.contact-delete-modal {
  width: min(540px, 100%);
  display: grid;
  justify-items: center;
  padding-top: 30px;
  text-align: center;
}

.contact-delete-modal > svg {
  width: 34px;
  height: 34px;
  color: #ff7b88;
}

.contact-delete-modal h3 {
  margin: 12px 0;
  color: #fff;
}

.contact-delete-modal p {
  margin: 0;
  color: #eef4ff;
  font-size: 17px;
}

.contact-delete-modal > strong {
  margin-top: 8px;
  color: var(--cyan);
  font-size: 12px;
}

.contact-delete-modal small {
  margin: 6px 0 22px;
  color: #9fb0c8;
}

.contact-delete-modal > footer {
  width: 100%;
  justify-content: center;
}

.bool-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.bool-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.bool-icon.ok {
  color: var(--cyan);
}

.bool-icon.bad {
  color: #ff7b88;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.row-actions button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8fa4c0;
  box-shadow: none;
}

.row-actions button:hover {
  color: #dffcff;
  background: rgba(47, 217, 244, 0.08);
  border-color: rgba(47, 217, 244, 0.16);
}

.row-actions button:last-child:hover {
  color: #ff8b96;
  background: rgba(255, 123, 136, 0.08);
  border-color: rgba(255, 123, 136, 0.16);
}

.row-actions svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.attendance-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  background: #1f2b3f;
  border-right: 1px solid rgba(157, 180, 213, 0.18);
}

.attendance-top {
  min-height: 90px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.attendance-gear,
.attendance-add {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: #9fb0c8;
  box-shadow: none;
}

.attendance-add {
  border: 1px solid rgba(157, 180, 213, 0.42);
}

.attendance-gear:hover,
.attendance-add:hover {
  color: #dffcff;
  background: rgba(47, 217, 244, 0.08);
  border-color: rgba(47, 217, 244, 0.28);
}

.attendance-gear svg,
.attendance-gear i,
.attendance-add svg,
.attendance-add i,
.attendance-search svg,
.attendance-search i,
.attendance-tabs svg,
.attendance-tabs i,
.attendance-empty-list svg,
.chat-empty-state svg,
.conversation-detail-head svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attendance-gear svg,
.attendance-gear i,
.attendance-add svg,
.attendance-add i {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}

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

.attendance-search svg,
.attendance-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #8191aa;
  stroke-width: 2;
}

.attendance-search input {
  min-height: 42px;
  border-radius: 4px;
  padding-left: 42px;
  background: #101b30;
  border-color: rgba(157, 180, 213, 0.58);
  color: #dbe8ff;
  font-size: 12px;
}

.attendance-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 14px 6px 8px;
  background: #1f2b3f;
}

.attendance-tabs button {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 4px;
  background: #223148;
  border: 1px solid rgba(226, 235, 255, 0.75);
  color: #9fb0c8;
  box-shadow: none;
}

.attendance-tabs button.active {
  background: rgba(157, 180, 213, 0.12);
  color: white;
}

.attendance-tabs svg,
.attendance-tabs i {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.attendance-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 25, 0.68);
  backdrop-filter: blur(5px);
}

body.modal-open {
  overflow: hidden;
}

.attendance-settings-overlay.hidden {
  display: none;
}

.attendance-settings-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(47, 217, 244, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(138, 43, 209, 0.15), transparent 34%),
    #17243a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.attendance-settings-modal > header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

.attendance-settings-modal header span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.attendance-settings-modal header h3 {
  margin-top: 3px;
  font-size: 18px;
}

.attendance-settings-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: rgba(157, 180, 213, 0.07);
  border: 1px solid rgba(157, 180, 213, 0.15);
  color: #9fb0c8;
  box-shadow: none;
}

.attendance-settings-close:hover {
  color: white;
  border-color: rgba(47, 217, 244, 0.28);
}

.attendance-settings-close svg {
  width: 17px;
  height: 17px;
}

.attendance-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
  padding: 22px;
}

.attendance-settings-grid label {
  display: grid;
  gap: 7px;
  color: #dce7fa;
  font-size: 11px;
  font-weight: 800;
}

.attendance-settings-grid label.wide {
  grid-column: 1 / -1;
}

.attendance-settings-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border-radius: 5px;
  background-color: #101b30;
  border-color: rgba(157, 180, 213, 0.38);
  color: #e7efff;
  font-size: 12px;
}

.attendance-settings-grid select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 217, 244, 0.1);
}

.attendance-settings-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px;
  border-top: 1px solid rgba(157, 180, 213, 0.16);
}

.attendance-settings-modal footer button {
  min-width: 112px;
  min-height: 38px;
  border-radius: 6px;
  box-shadow: none;
}

.attendance-settings-modal footer .secondary {
  background: rgba(157, 180, 213, 0.12);
  border: 1px solid rgba(157, 180, 213, 0.2);
  color: #c7d5e9;
}

.attendance-settings-modal footer .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  color: white;
}

.attendance-settings-modal footer .primary svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .attendance-settings-grid {
    grid-template-columns: 1fr;
  }

  .attendance-settings-grid label.wide {
    grid-column: auto;
  }
}

/* Sistema visual de icones do FhixBot */
:root {
  --icon-green: #48e59a;
  --icon-blue: #72a9ff;
  --icon-cyan: #34e4f5;
  --icon-orange: #ffad5c;
  --icon-purple: #d39aff;
  --icon-pink: #f28fbc;
  --icon-red: #ff8e96;
  --icon-surface: #20262b;
  --icon-border: rgba(255, 255, 255, 0.11);
}

#nav button svg,
.notification-group button svg,
.attendance-tabs button svg,
.attendance-contact-tools button svg,
.support-icon svg,
.icon-button svg {
  box-sizing: border-box;
  flex: 0 0 auto;
  border: 1px solid var(--icon-border);
  border-radius: 50%;
  background: var(--icon-surface);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  stroke-width: 1.7;
}

#nav button svg {
  width: 44px;
  height: 44px;
  padding: 10px;
}

#nav button:nth-child(1) svg {
  color: var(--icon-green);
  background: #183a2d;
}

#nav button:nth-child(2) svg {
  color: var(--icon-blue);
  background: #223a5c;
}

#nav button:nth-child(3) svg {
  color: var(--icon-cyan);
  background: #123e46;
}

#nav button:nth-child(4) svg {
  color: var(--icon-orange);
  background: #49301f;
}

#nav button:nth-child(5) svg {
  color: var(--icon-purple);
  background: #3d2a4d;
}

#nav button:nth-child(6) svg {
  color: var(--icon-green);
  background: #173b30;
}

#nav button:nth-child(7) svg {
  color: var(--icon-pink);
  background: #4c293a;
}

#nav button.active svg {
  border-color: currentColor;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(47, 217, 244, 0.08);
}

#nav button:hover svg {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.notification-group button {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 44px;
}

.notification-group button svg {
  width: 32px;
  height: 32px;
  padding: 7px;
}

.notification-group button:nth-of-type(1) svg {
  color: var(--icon-green);
  background: #183a2d;
}

.notification-group button:nth-of-type(2) svg {
  color: var(--icon-blue);
  background: #223a5c;
}

.notification-group button:nth-of-type(3) svg {
  color: var(--icon-orange);
  background: #49301f;
}

.notification-group button:nth-of-type(4) svg {
  color: var(--icon-purple);
  background: #3d2a4d;
}

.notification-group button.active svg {
  border-color: currentColor;
  color: var(--icon-cyan);
}

.attendance-tabs {
  gap: 9px;
  padding-top: 12px;
}

.attendance-tabs button {
  min-height: 44px;
  border: 0;
  background: transparent;
}

.attendance-tabs button svg {
  width: 38px;
  height: 38px;
  padding: 9px;
}

.attendance-tabs button:nth-child(1) svg {
  color: var(--icon-green);
  background: #183a2d;
}

.attendance-tabs button:nth-child(2) svg {
  color: var(--icon-blue);
  background: #223a5c;
}

.attendance-tabs button:nth-child(3) svg {
  color: var(--icon-purple);
  background: #3d2a4d;
}

.attendance-tabs button:nth-child(4) svg {
  color: var(--icon-orange);
  background: #49301f;
}

.attendance-tabs button.active {
  background: transparent;
}

.attendance-tabs button.active svg {
  border-color: currentColor;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.34),
    0 0 0 3px rgba(47, 217, 244, 0.08);
}

.attendance-gear,
.attendance-add {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 0;
}

.attendance-gear svg,
.attendance-add svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--icon-border);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.attendance-gear svg {
  color: var(--icon-blue);
  background: #223a5c;
}

.attendance-add svg {
  color: var(--icon-green);
  background: #183a2d;
}

.attendance-contact-tools {
  border: 0;
  padding: 3px 0;
}

.attendance-contact-tools button svg {
  width: 38px;
  height: 38px;
  padding: 9px;
}

.attendance-contact-tools button:nth-child(1) svg {
  color: var(--icon-green);
  background: #183a2d;
}

.attendance-contact-tools button:nth-child(2) svg {
  color: var(--icon-red);
  background: #4b292d;
}

.attendance-contact-tools button:nth-child(3) svg {
  color: var(--icon-blue);
  background: #223a5c;
}

.attendance-contact-tools button:nth-child(4) svg {
  color: var(--icon-purple);
  background: #3d2a4d;
}

.support-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.support-icon svg {
  width: 44px;
  height: 44px;
  padding: 11px;
}

.support-metric-card:nth-child(1) .support-icon svg {
  color: var(--icon-blue);
  background: #223a5c;
}

.support-metric-card:nth-child(2) .support-icon svg {
  color: var(--icon-purple);
  background: #3d2a4d;
}

.support-metric-card:nth-child(3) .support-icon svg {
  color: var(--icon-green);
  background: #183a2d;
}

.support-metric-card:nth-child(4) .support-icon svg {
  color: var(--icon-orange);
  background: #49301f;
}

.icon-button {
  border: 0;
  background: transparent;
}

.icon-button svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--icon-cyan);
  background: #123e46;
}

.row-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.row-actions button:nth-child(1) {
  color: var(--icon-cyan);
  background: #123e46;
}

.row-actions button:nth-child(2) {
  color: var(--icon-blue);
  background: #223a5c;
}

.row-actions button:nth-child(3) {
  color: var(--icon-red);
  background: #4b292d;
}

.row-actions button svg {
  width: 15px;
  height: 15px;
}

.attendance-contact-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.attendance-contact-actions button:first-child {
  color: var(--icon-blue);
  background: #223a5c;
}

.attendance-contact-actions button:last-child {
  color: var(--icon-red);
  background: #4b292d;
}

.attendance-contact-actions button svg {
  width: 15px;
  height: 15px;
}

.notification-search-button,
.attendance-settings-close {
  border-radius: 50%;
  border: 0;
  background: transparent;
}

.notification-search-button svg,
.attendance-settings-close svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid var(--icon-border);
  border-radius: 50%;
  color: var(--icon-cyan);
  background: #123e46;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.notification-detail-button svg,
.notification-add-button svg,
.attendance-settings-modal footer .primary svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 20, 36, 0.28);
}

/* Logo oficial transparente */
.hero-logo,
.brand-logo,
.profile-chip img,
.chat-agent img {
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 12px rgba(47, 217, 244, 0.2));
}

.hero-logo {
  width: min(300px, 78vw);
  margin-left: -22px;
}

.brand-logo {
  width: 84px;
  height: 78px;
}

.profile-chip img {
  width: 42px;
  height: 42px;
}

.chat-agent img {
  width: 46px;
  height: 46px;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 58px;
    height: 52px;
  }
}

.attendance-list-head {
  min-height: 36px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 4px 12px 8px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.mine-filters {
  width: min(252px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(157, 180, 213, 0.17);
}

.mine-filters button {
  min-height: 18px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: white;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
}

.mine-filters button.active {
  background: rgba(157, 180, 213, 0.34);
  color: #ffffff;
}

.conversation-item.unread {
  background: rgba(47, 217, 244, 0.055);
}

.conversation-item.unread .conversation-body > strong {
  color: #ffffff;
}

.conversation-unread {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #06111f;
  font-size: 10px;
  font-weight: 900;
}

.attendance-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #6c7e99 transparent;
}

.attendance-contacts-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  background: #101a2d;
  color: white;
}

.attendance-contacts-panel.hidden {
  display: none;
}

.attendance-contacts-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.18);
}

.attendance-contacts-head h3 {
  font-size: 17px;
}

.attendance-contacts-head button,
.attendance-contact-tools button,
.attendance-contact-actions button {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: #9fb0c8;
  box-shadow: none;
}

.attendance-contacts-head button {
  width: 28px;
  height: 28px;
}

.attendance-contacts-head svg {
  width: 18px;
  height: 18px;
}

.attendance-contact-tools {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 18px 8px;
  padding: 6px;
  border: 1px solid rgba(157, 180, 213, 0.28);
  border-radius: 5px;
}

.attendance-contact-tools button {
  min-height: 34px;
  border-radius: 4px;
}

.attendance-contact-tools button:hover,
.attendance-contact-actions button:hover,
.attendance-contacts-head button:hover {
  color: #dffcff;
  background: rgba(47, 217, 244, 0.08);
}

.attendance-contact-tools svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.attendance-contact-search {
  position: relative;
  display: block;
  margin: 0 18px 12px;
}

.attendance-contact-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #8191aa;
}

.attendance-contact-search input {
  width: 100%;
  min-height: 38px;
  padding-left: 39px;
  border-radius: 4px;
  background: #101a2d;
  border-color: rgba(157, 180, 213, 0.58);
  color: #dbe8ff;
  font-size: 12px;
}

.attendance-contact-letter {
  min-height: 26px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  background: #1f2b3f;
  border-top: 1px solid rgba(157, 180, 213, 0.14);
  border-bottom: 1px solid rgba(157, 180, 213, 0.14);
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 800;
}

.attendance-contacts-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6c7e99 transparent;
}

.attendance-contact-item {
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 10px 17px 10px 24px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.16);
}

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

.attendance-contact-main:hover {
  color: var(--cyan);
}

.attendance-contact-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #324359;
  color: white;
  font-size: 13px;
}

.attendance-contact-main span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.attendance-contact-main strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-contact-main small {
  color: #79b9ef;
  font-size: 11px;
}

.attendance-contact-actions {
  display: grid;
  gap: 5px;
}

.attendance-contact-actions button {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.attendance-contact-actions svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.attendance-contacts-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #8191aa;
}

.attendance-contacts-empty svg {
  width: 40px;
  height: 40px;
}

.conversation-item {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid rgba(157, 180, 213, 0.14);
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
  text-align: left;
}

.conversation-item:hover,
.conversation-item.active {
  background: rgba(157, 180, 213, 0.08);
  filter: none;
}

.conversation-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #324359;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.conversation-avatar i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #0a97ff;
  border: 2px solid #1f2b3f;
}

.conversation-avatar.large {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.conversation-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.conversation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conversation-meta b {
  min-width: 104px;
  display: inline-flex;
  justify-content: center;
  border-radius: 4px;
  padding: 4px 8px;
  background: #0876d8;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.conversation-meta time {
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 600;
}

.conversation-body strong {
  overflow: hidden;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-body small {
  overflow: hidden;
  color: #9bc7ff;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-caret {
  color: #9fb0c8;
  font-size: 14px;
}

.attendance-empty-list {
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  color: #9fb0c8;
  text-align: center;
}

.attendance-empty-list svg {
  width: 72px;
  height: 72px;
  stroke-width: 6;
}

.attendance-empty-list strong {
  color: #9bc7ff;
  font-size: 16px;
}

.attendance-chat {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  background: #0d1628;
}

.chat-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #9fb0c8;
  text-align: center;
}

.chat-empty-state svg {
  width: 92px;
  height: 70px;
  stroke-width: 4;
}

.chat-empty-state strong {
  color: #9bc7ff;
  font-size: 18px;
}

.conversation-detail {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.conversation-detail-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(157, 180, 213, 0.15);
  background: #17243a;
}

.conversation-detail-head p {
  color: #9fb0c8;
  font-size: 12px;
  font-weight: 700;
}

.conversation-detail-head h3,
.conversation-detail-head p {
  margin: 0;
}

.conversation-detail-head h3 {
  font-size: 16px;
}

.conversation-detail-head p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.conversation-detail-head p svg {
  width: 13px;
  height: 13px;
  color: #2fd9f4;
}

.conversation-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.conversation-head-actions button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #9fb0c8;
  background: transparent;
  box-shadow: none;
}

.conversation-head-actions button:hover {
  color: #fff;
  background: rgba(47, 217, 244, 0.09);
}

.conversation-head-actions button svg {
  width: 17px;
  height: 17px;
}

.conversation-head-actions > strong {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 220, 114, 0.13);
  color: #25dc72;
  font-size: 11px;
}

.conversation-messages {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px clamp(18px, 5vw, 72px);
  overflow: auto;
  background-color: #0d1926;
  background-image:
    linear-gradient(rgba(5, 15, 24, 0.36), rgba(5, 15, 24, 0.36)),
    url("/assets/chat-doodles-fhixbot-seamless-v2.png");
  background-repeat: repeat;
  background-position: center, center top;
  background-size: auto, 900px 900px;
  background-blend-mode: multiply, normal;
}

.conversation-day {
  display: flex;
  justify-content: center;
  margin: 2px 0 12px;
}

.conversation-day span {
  padding: 5px 11px;
  border-radius: 7px;
  color: #aebdd1;
  background: rgba(31, 43, 65, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.message-row {
  width: min(72%, 680px);
  display: flex;
}

.message-bubble {
  position: relative;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 8px 10px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
}

.message-bubble strong {
  color: #69e3f6;
  font-size: 10px;
}

.message-bubble p {
  margin: 0;
  color: #e8f1ff;
  font-size: 13px;
  line-height: 1.45;
}

.message-bubble small {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  color: #90a2b8;
  font-size: 9px;
}

.message-bubble small svg {
  width: 14px;
  height: 14px;
  color: #53d9ff;
}

.message-row.client {
  justify-self: start;
}

.message-row.client .message-bubble {
  background: #223148;
  border: 1px solid rgba(157, 180, 213, 0.18);
}

.message-row.client .message-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 9px solid #223148;
  border-left: 9px solid transparent;
}

.message-row.bot,
.message-row.agent {
  justify-self: end;
  justify-content: flex-end;
}

.message-row.bot .message-bubble {
  background: #075e68;
}

.message-row.agent .message-bubble {
  background: #174d58;
}

.message-row.bot .message-bubble::after,
.message-row.agent .message-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  border-top: 9px solid #075e68;
  border-right: 9px solid transparent;
}

.message-row.agent .message-bubble::after {
  border-top-color: #174d58;
}

.conversation-reply {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(157, 180, 213, 0.15);
  background: #17243a;
}

.conversation-reply > label {
  position: relative;
  display: block;
}

.conversation-reply input {
  width: 100%;
  min-height: 42px;
  padding: 0 44px 0 16px;
  border: 0;
  border-radius: 999px;
  color: #e8f1ff;
  background: #243349;
}

.conversation-reply button {
  box-shadow: none;
}

.reply-icon,
.reply-send {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
}

.reply-icon {
  color: #a8b7ca;
  background: transparent;
}

.reply-send {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), var(--cyan));
}

.reply-emoji {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #9fb0c8;
  background: transparent;
  transform: translateY(-50%);
}

.conversation-reply svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .conversation-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .conversation-head-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .message-row {
    width: 88%;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: auto;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 180, 213, 0.15);
  }

  .brand-block {
    min-height: auto;
  }

  .brand-logo {
    width: 50px;
    height: 40px;
  }

  #nav {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
    grid-auto-rows: auto;
    display: grid;
    overflow-x: auto;
    padding: 4px;
  }

  #nav button {
    min-height: 58px;
    border-radius: 10px;
    font-size: 9px;
  }

  #nav button.active {
    box-shadow: inset 0 -3px 0 #7ea8ff;
  }

  .main {
    width: calc(100% - 32px);
  }

  body[data-view="attendance"] .main,
  body[data-view="notifications"] .main,
  body[data-view="system"] .main {
    width: 100%;
    margin-left: 0;
  }

  .attendance-shell,
  .notifications-workspace {
    min-height: calc(100vh - 74px);
    grid-template-columns: 1fr;
  }

  .notifications-workspace,
  .notifications-workspace.subnav-open {
    position: relative;
    grid-template-columns: 1fr;
  }

  .attendance-panel,
  .notifications-subnav {
    min-height: auto;
  }

  .notifications-subnav {
    position: fixed;
    z-index: 70;
    inset: 74px 0 auto 0;
    width: 100%;
    max-height: calc(100vh - 74px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, max-content);
    gap: 12px;
    overflow-x: auto;
    padding: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    transform: translateY(-16px);
  }

  .notifications-workspace.subnav-open .notifications-subnav {
    transform: translateY(0);
  }

  .notifications-subnav-head {
    display: none;
  }

  .notification-group {
    min-width: 190px;
    margin-bottom: 0;
  }

  .notifications-titlebar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }

  .notifications-titlebar h3 {
    font-size: 24px;
  }

  .notification-detail-button {
    width: 100%;
  }

  .notification-filter-panel {
    grid-template-columns: 1fr;
    margin: 16px;
  }

  .notification-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 16px 16px;
  }

  .notification-chart-panel {
    margin: 0 16px 22px;
    padding: 20px 16px 8px;
  }

  .notification-details-panel {
    margin: -6px 16px 22px;
  }

  .notification-details-grid,
  .notification-result-item {
    grid-template-columns: 1fr;
  }

  .notification-history-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .history-action.back {
    min-width: 112px;
  }

  .notification-history-details {
    width: calc(100% - 32px);
    margin: 16px;
  }

  .notification-record-page {
    width: calc(100% - 32px);
    margin: 16px;
  }

  .notification-record-card {
    padding: 18px;
  }

  .notification-record-meta {
    grid-template-columns: 1fr;
  }

  .notification-record-meta div,
  .notification-record-meta div:nth-child(odd),
  .notification-record-meta div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(157, 180, 213, 0.12);
  }

  .notification-record-meta div:last-child {
    border-bottom: 0;
  }

  .history-details-filters {
    grid-template-columns: 1fr;
  }

  .history-details-filters .notification-search-button {
    width: 100%;
  }

  .notification-send-fields {
    grid-template-columns: 1fr;
  }

  .notification-send-fields .wide,
  .notification-file-field,
  .notification-send-info {
    grid-column: 1;
  }

  .notification-file-field {
    grid-template-columns: 1fr;
  }

  .notification-send-modal > footer {
    flex-direction: column-reverse;
  }

  .notification-send-modal footer button {
    width: 100%;
  }

  .notification-result-item em {
    justify-self: start;
  }

  .attendance-chat {
    min-height: 520px;
  }

  .conversation-detail {
    min-height: 520px;
  }
}
