:root {
  color-scheme: dark;
  --bg: #0e1419;
  --surface: #151d23;
  --ink: #e1e9ec;
  --muted: #8899a4;
  --green: #68c4a7;
  --green-light: #1a322b;
  --line: #27333c;
  --purple: #a89bdc;
  --sidebar: 236px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8ac9b4;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b2d9cb;
  border-color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  letter-spacing: -1.7px;
  font-weight: 760;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 11px;
}
.brand-icon .icon {
  width: 22px;
  height: 22px;
}
.brand-period {
  color: var(--green);
}
.button {
  border: 1px solid transparent;
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.16s,
    box-shadow 0.16s;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 3px #0b6c4b13;
}
.button.primary:hover:not(:disabled) {
  background: #106e55;
  box-shadow: 0 3px 9px #14856628;
}
.button.secondary {
  background: white;
  border-color: #dfe6e8;
  color: #45565e;
}
.button.secondary:hover:not(:disabled) {
  background: #f4f8f6;
  border-color: #c6d7d0;
}
.button.danger {
  background: #b74c4a;
  color: white;
}
.button.danger:hover {
  background: #9c3b3a;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #6f7f86;
  flex: none;
}
.icon-button.bordered {
  border: 1px solid #dfe6e8;
  background: white;
}
.icon-button:hover {
  background: var(--green-light);
  color: var(--green);
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 0;
  white-space: nowrap;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.text-button:hover {
  text-decoration: underline;
}
.tiny-dot {
  width: 6px;
  height: 6px;
  background: #29aa7d;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.soft-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.65px;
  color: #7c8b8f;
  background: #f3f6f7;
  padding: 6px 8px;
  border: 1px solid #edf1f2;
  border-radius: 5px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice.info {
  background: #f0f7f4;
  border-color: #deede5;
  color: #557768;
}
.notice.info .icon {
  color: var(--green);
}
.notice strong {
  font-weight: 650;
}
.notice.warning {
  background: #fff9ed;
  border-color: #f4e9ca;
  color: #937738;
}
.notice.error,
.feedback.error {
  color: #b14f4b;
  background: #fff2f1;
  border-color: #f4dedb;
}
.notice.demo {
  background: #edf2fc;
  color: #5c72a4;
  border-color: #dfe6f6;
  font-size: 11px;
}
.feedback {
  font-size: 12px;
  line-height: 1.7;
  min-height: 20px;
  margin-top: 14px;
  color: var(--green);
}
.feedback:empty {
  margin: 0;
  min-height: 0;
}
.feedback.error {
  padding: 9px 12px;
  border-radius: 7px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 4px #243e4b02;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 24px 0;
}
.panel-heading p {
  font-size: 11px;
  margin-top: 7px;
}
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.metric-icon .icon {
  width: 18px;
  height: 18px;
}
.metric-icon.green {
  background: #edf8f2;
  color: #268c67;
}
.metric-icon.blue {
  background: #edf4fd;
  color: #648fbd;
}
.metric-icon.amber {
  background: #fff7e7;
  color: #c1a055;
}
.metric-icon.violet {
  background: #f2effc;
  color: #9283c7;
}
.metric-icon.red {
  background: #fff1ef;
  color: #ba6e64;
}
.green-bg {
  background: #35a784;
}
.purple-bg {
  background: #9b90d5;
}
.blue-bg {
  background: #83b4d4;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
/* Authentication */
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.login-story {
  background: #edf5f1;
  display: flex;
  flex-direction: column;
  padding: 48px 64px;
  overflow: hidden;
  position: relative;
}
.login-copy {
  max-width: 470px;
  margin: auto;
  padding-top: 70px;
}
.login-copy h1 {
  font-size: clamp(40px, 4.5vw, 65px);
  letter-spacing: -2.5px;
  font-weight: 600;
  line-height: 1.12;
  color: #254a3f;
}
.login-copy > p {
  max-width: 330px;
  color: #769087;
  font-size: 15px;
  line-height: 1.9;
  margin-top: 25px;
}
.login-footer {
  font-size: 11px;
  color: #87a096;
  padding-top: 20px;
}
.login-visual {
  height: 235px;
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 12px;
}
.orbit {
  position: absolute;
  border: 1px solid #d1e5db;
  border-radius: 50%;
  width: 180px;
  height: 180px;
}
.orbit-two {
  width: 280px;
  height: 280px;
  border-style: dashed;
  opacity: 0.65;
}
.visual-center {
  border: 8px solid #dceee4;
  background: var(--green);
  border-radius: 32px;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  transform: rotate(-8deg);
  box-shadow: 0 16px 35px #3c7f6020;
  color: white;
  z-index: 1;
}
.visual-center .icon {
  width: 40px;
  height: 40px;
}
.visual-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: white;
  border: 1px solid #deebe4;
  border-radius: 14px;
  box-shadow: 0 6px 20px #33574408;
  color: #72a08b;
  z-index: 2;
}
.node-a {
  left: 18%;
  top: 25px;
  transform: rotate(8deg);
}
.node-b {
  right: 16%;
  top: 54px;
  transform: rotate(-7deg);
}
.node-c {
  left: 28%;
  bottom: 9px;
  transform: rotate(-6deg);
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 45px;
}
.login-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-lock {
  background: var(--green-light);
  border: 1px solid #dcebe3;
  color: var(--green);
  border-radius: 13px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin-bottom: 12px;
}
.login-form > p.muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form label {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  gap: 10px;
}
.login-form .button {
  width: 100%;
  margin-top: 18px;
}
.login-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #99a4a6;
  font-size: 10px;
  margin-top: 27px;
  line-height: 1.6;
}
.login-note .icon {
  width: 15px;
  height: 15px;
}
/* Workspace navigation */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 19px 20px;
  z-index: 30;
}
.sidebar > .brand {
  padding-left: 13px;
  margin-bottom: 40px;
}
.workspace-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px 10px;
  border-radius: 9px;
  margin: 33px 0 31px;
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #dfece5;
  border-radius: 7px;
  background: #f3f9f5;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}
.workspace-switch strong {
  font-size: 12px;
  display: block;
}
.workspace-switch small {
  font-size: 9px;
  color: #94a0a4;
  display: block;
  margin-top: 4px;
}
.workspace-chevron {
  margin-left: auto;
  color: #9ca9ac;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: #a4afb3;
  padding-left: 14px;
  margin-bottom: 12px;
}
.nav-item {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  background: none;
  padding: 13px 14px;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #7c8b90;
  margin-bottom: 4px;
  transition: background 0.15s;
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #f6f9f8;
  color: #3b7c63;
}
.nav-item.active {
  background: #edf7f2;
  color: var(--green);
  font-weight: 650;
}
.nav-count {
  font-size: 10px;
  margin-left: auto;
  border-radius: 4px;
  padding: 2px 6px;
  background: #eef1f3;
  color: #88969a;
}
.nav-item.active .nav-count {
  background: #dceee4;
  color: #56957b;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  padding: 16px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
  margin-bottom: 18px;
}
.sidebar-note strong {
  font-size: 11px;
  margin-left: 5px;
  color: #5c7267;
}
.sidebar-note p {
  font-size: 10px;
  line-height: 1.9;
  color: #9aa7a2;
  margin-top: 8px;
}
.sidebar-version {
  display: block;
  font-size: 9px;
  color: #b1babc;
  padding: 12px 14px 0;
}
.workspace-main {
  margin-left: var(--sidebar);
}
.topbar {
  height: 73px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #9aa5a9;
}
.breadcrumb strong {
  font-weight: 500;
  color: #5f7077;
}
.breadcrumb-slash {
  color: #d0d8db;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.topbar-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
.profile-avatar {
  background: #e9eee9;
  color: #64826b;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  border: 3px solid white;
  outline: 1px solid #e2e9e4;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  border: 1px solid #deece3;
  border-radius: 20px;
  background: #f2f9f4;
  color: #4f9271;
  padding: 6px 10px;
  white-space: nowrap;
}
.status-badge.offline {
  background: #fff7ef;
  border-color: #f1e5d4;
  color: #b98e59;
}
.status-badge.offline .tiny-dot {
  background: #c9a372;
}
.status-badge.error {
  background: #fff2f1;
  border-color: #f4dedb;
  color: #b76d68;
}
.status-badge.error .tiny-dot {
  background: #c97e76;
}
.mobile-only {
  display: none;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: #183b3040;
  z-index: 29;
  backdrop-filter: blur(2px);
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 35px 35px 24px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 29px;
}
.page-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 11px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.overview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 15px;
}
.live-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8c9a9e;
  font-size: 10px;
}
.live-caption .tiny-dot {
  width: 5px;
  height: 5px;
}
.range-control {
  display: flex;
  padding: 3px;
  border: 1px solid #e2e8eb;
  background: #f0f3f5;
  border-radius: 7px;
  gap: 3px;
}
.range-control button {
  font-size: 10px;
  color: #8a989e;
  font-weight: 500;
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 7px 14px;
}
.range-control button.active {
  background: white;
  color: #415b52;
  box-shadow: 0 1px 4px #233d3420;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 21px;
  min-width: 0;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #7e8d92;
}
.metric-value {
  display: block;
  font-size: 31px;
  letter-spacing: -1.2px;
  font-weight: 600;
  margin: 10px 0 15px;
  line-height: 1;
}
.metric-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  min-height: 20px;
}
.metric-bottom > span {
  font-size: 9px;
  color: #9aa6ab;
}
.metric-bottom .metric-detail {
  font-size: 7px;
  letter-spacing: 0.4px;
  color: #a9b3b6;
}
.sparkline {
  width: 60px;
  height: 20px;
  color: #80bca5;
  flex: none;
}
.sparkline.blue-line {
  color: #87afcf;
}
.sparkline.violet-line {
  color: #a295ce;
}
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(255px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 9px;
  color: #8c9b9f;
  white-space: nowrap;
  padding-top: 4px;
}
.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-wrap {
  position: relative;
  padding: 14px 15px 0;
  min-height: 210px;
}
#activityChart {
  display: block;
  width: 100%;
  overflow: visible;
}
#activityChart text {
  font-family: inherit;
  fill: #a3afb4;
  font-size: 10px;
}
#activityChart .chart-hit {
  cursor: crosshair;
  fill: transparent;
}
.chart-footer {
  padding: 1px 24px 17px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 9px;
  color: #a3afb2;
  position: relative;
}
.chart-footer summary {
  cursor: pointer;
  color: #8a9b97;
  list-style: none;
}
.chart-footer details[open] {
  width: 80%;
}
.chart-footer details[open] summary {
  margin-bottom: 10px;
}
.data-table-wrap {
  overflow: auto;
  max-height: 250px;
}
.data-table-wrap table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
  text-align: left;
}
.data-table-wrap td,
.data-table-wrap th {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  top: 30px;
  left: 45%;
  background: #233f35;
  color: white;
  border-radius: 7px;
  padding: 10px 13px;
  font-size: 10px;
  line-height: 1.9;
  box-shadow: 0 4px 15px #23463420;
  z-index: 2;
  white-space: nowrap;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #8c9c96;
  text-align: center;
  padding: 25px;
  pointer-events: none;
}
.chart-empty small {
  font-size: 10px;
  display: block;
  margin-top: 7px;
  color: #a4b0ab;
}
.donut-wrap {
  display: grid;
  place-items: center;
  padding: 22px 15px 18px;
}
.donut {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: #f0f4f2;
  padding: 14px;
  transform: rotate(-90deg);
}
.donut-center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  background: white;
  transform: rotate(90deg);
}
.donut-center strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}
.donut-center span {
  font-size: 9px;
  color: #a0acae;
  margin-top: 4px;
}
.mix-legend {
  padding: 0 25px 20px;
  display: grid;
  gap: 11px;
}
.mix-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #7c8d92;
}
.mix-row strong {
  margin-left: auto;
  font-size: 11px;
  color: #4e6560;
  font-weight: 550;
}
.mix-row .mix-percent {
  min-width: 28px;
  text-align: right;
  color: #abb5b8;
  font-size: 9px;
}
.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.verification-bars {
  padding: 23px 24px 17px;
  display: grid;
  gap: 17px;
}
.outcome-row {
  display: grid;
  grid-template-columns: 115px 1fr 25px;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #839296;
}
.bar-track {
  height: 5px;
  background: #f2f5f5;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 5px;
  min-width: 0;
  transition: width 0.3s;
}
.outcome-row strong {
  font-size: 10px;
  text-align: right;
  color: #6c8078;
}
.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 14px 24px;
  border-top: 1px solid #f0f3f4;
  color: #a0aeaf;
  font-size: 9px;
  line-height: 1.7;
}
.inline-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}
.health-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #d2e3da 0 25%, #f5f8f6 30% 100%);
  flex: none;
}
.health-orb.connected {
  background: radial-gradient(
    circle,
    #5fb78c 0 23%,
    #e0f3e9 30% 52%,
    #f2faf5 56%
  );
}
.health-status {
  padding: 20px 24px 15px;
}
.health-status > span {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.health-status p {
  font-size: 10px;
  margin-top: 7px;
}
.health-stats {
  padding: 0 24px;
  display: grid;
  gap: 13px;
}
.health-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #9aa7aa;
}
.health-stats strong {
  color: #61796f;
  font-weight: 500;
}
.health-panel > .text-button {
  margin: 20px 24px 17px;
}
.recent-panel .panel-heading {
  padding-bottom: 17px;
}
.recent-logs {
  padding: 0 24px 8px;
}
.recent-log {
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #f0f3f4;
  padding: 13px 0;
  font-size: 10px;
  min-width: 0;
}
.event-dot {
  width: 27px;
  height: 27px;
  border: 1px solid #e5eee9;
  background: #f4f9f6;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #78a18a;
  flex: none;
}
.event-dot .icon {
  width: 13px;
  height: 13px;
}
.recent-log > span:nth-child(2) {
  color: #71857d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-log time {
  color: #a2aeb1;
  margin-left: auto;
  white-space: nowrap;
  font-size: 9px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  line-height: 1.8;
  color: #a3afb3;
  padding: 21px 0 0;
}
.empty-state {
  padding: 28px;
  text-align: center;
  font-size: 12px;
  color: #a2aeaf;
}
/* Message templates */
.templates-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.template-sidebar {
  overflow: hidden;
}
.template-list-heading {
  padding: 20px 18px 17px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
  color: #91a09e;
  display: flex;
  justify-content: space-between;
}
.template-list-heading span {
  font-size: 10px;
  letter-spacing: 0;
  background: #f0f5f2;
  border-radius: 4px;
  padding: 1px 5px;
  color: #7d9c89;
}
.template-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-top: 1px solid #f3f6f5;
  background: white;
  text-align: left;
  padding: 16px;
  color: #82938c;
  font-size: 11px;
}
.template-choice .metric-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.template-choice .metric-icon .icon {
  width: 15px;
  height: 15px;
}
.template-choice span.template-name {
  line-height: 1.5;
}
.template-choice small {
  display: block;
  font-size: 9px;
  color: #a2b0aa;
  margin-top: 3px;
}
.template-choice:hover {
  background: #f8fbf9;
}
.template-choice.active {
  background: #eff7f3;
  color: #37785a;
  border-left: 3px solid var(--green);
  padding-left: 13px;
}
.template-choice.active::after {
  content: "›";
  margin-left: auto;
  font-size: 18px;
  color: #82a892;
}
.template-workspace {
  display: grid;
  gap: 23px;
}
.editor-panel {
  overflow: hidden;
}
.editor-panel .panel-heading {
  padding-bottom: 22px;
  align-items: center;
}
.editor-panel label {
  display: block;
  font-size: 0;
}
.editor-panel textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #587367;
  background: #fff;
  outline-offset: -2px;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  font-size: 10px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
  color: #99aaa3;
}
.message-preview {
  border: 1px solid #e4ebe5;
  border-radius: 12px;
  overflow: hidden;
}
.preview-header {
  background: #fafcfb;
  padding: 14px 20px;
  border-bottom: 1px solid #e4ebe5;
  display: flex;
  gap: 10px;
  align-items: center;
}
.preview-avatar {
  width: 32px;
  height: 32px;
  background: #e4f1e8;
  color: #72a087;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.preview-avatar .icon {
  width: 17px;
  height: 17px;
}
.preview-header strong {
  font-size: 11px;
  color: #53705e;
}
.preview-header small {
  display: block;
  font-size: 9px;
  color: #9aae9f;
  margin-top: 4px;
}
.preview-header .soft-tag {
  margin-left: auto;
  background: white;
}
.preview-conversation {
  background-color: #edf1e9;
  background-image: radial-gradient(#c8d5c466 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  min-height: 195px;
  padding: 27px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.message-bubble {
  position: relative;
  background: #d9edce;
  border: 1px solid #cde1c3;
  border-radius: 10px 0 10px 10px;
  box-shadow: 0 1px 2px #5274410a;
  padding: 16px 16px 8px;
  max-width: 85%;
  min-width: 180px;
}
.message-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
  color: #4c6344;
}
.bubble-meta {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  font-size: 9px;
  color: #8aa17f;
  margin-top: 5px;
}
.bubble-meta > span {
  color: #6cb0c2;
}
/* Forms, connection and activity */
label {
  font-size: 12px;
  color: #647d70;
  font-weight: 500;
  display: grid;
  gap: 9px;
}
input,
textarea,
select {
  background: white;
  border: 1px solid #e0e8e4;
  border-radius: 7px;
  padding: 11px 12px;
  min-width: 0;
  color: #465f51;
}
input,
textarea {
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #adb9b1;
  font-size: 11px;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex: none;
  cursor: pointer;
}
input[type="number"] {
  max-width: 110px;
}
.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.notification-credentials {
  padding-bottom: 23px;
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 25px 24px 0;
}
.form-grid small {
  font-size: 10px;
  font-weight: 400;
}
.notification-aside {
  padding: 25px;
}
.notification-aside h2 {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin: 20px 0 12px;
}
.notification-aside > p {
  font-size: 11px;
}
.notification-aside .inline-note {
  padding: 20px 0;
  margin-top: 19px;
}
.notification-aside .notice {
  padding: 12px;
  font-size: 10px;
  align-items: flex-start;
  margin: 6px 0 0;
}
.switch {
  display: flex;
  position: relative;
  gap: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 38px;
  height: 22px;
  margin: 0;
  z-index: 1;
}
.switch > span {
  width: 38px;
  height: 22px;
  display: block;
  background: #dfe7e2;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
}
.switch > span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  background: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0001;
  transition: transform 0.2s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span::after {
  transform: translateX(16px);
}
.switch input:focus-visible + span {
  outline: 3px solid #8ac9b4;
  outline-offset: 3px;
}
.notification-group {
  margin-bottom: 20px;
}
.notification-group .panel-heading {
  padding-bottom: 17px;
}
.notification-option {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  border-top: 1px solid #f0f4f2;
  font-size: 12px;
  color: #6c8577;
}
.notification-option small {
  display: block;
  font-size: 10px;
  color: #a0afa6;
  margin-top: 5px;
  line-height: 1.7;
  font-weight: 400;
}
.connection-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 23px;
  align-items: start;
}
.connection-panel {
  text-align: center;
  padding: 40px 30px;
}
.connection-art {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 8px solid #f5faf6;
  background: #e8f4ec;
  color: #7ca88c;
  margin: 0 auto 22px;
}
.connection-art .icon {
  width: 29px;
  height: 29px;
}
.connection-panel h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.connection-panel > .status-badge {
  margin-bottom: 16px;
}
.connection-panel > .muted {
  font-size: 12px;
  max-width: 350px;
  margin: auto;
}
.connection-details {
  margin: 30px 0 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.connection-details > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.connection-details dt {
  color: #91a398;
}
.connection-details dd {
  margin: 0;
  color: #5b7665;
  text-align: right;
}
.connection-panel .notice {
  text-align: left;
  overflow-wrap: anywhere;
}
.pairing-panel {
  padding: 30px;
}
.pairing-panel h2 {
  font-size: 21px;
  margin-bottom: 13px;
}
.pairing-panel > .muted {
  font-size: 12px;
}
.no-qr {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #d9e6dd;
  border-radius: 10px;
  padding: 40px 15px;
  background: #fafcfb;
  text-align: center;
}
.no-qr .icon {
  color: #8bb69a;
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}
.no-qr strong {
  font-size: 12px;
  font-weight: 500;
  color: #769680;
}
.no-qr span {
  font-size: 10px;
  color: #a3b3a8;
  line-height: 1.7;
  margin-top: 7px;
}
.qr-box {
  margin: 25px auto 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  max-width: 300px;
}
.qr-box img {
  display: block;
  width: 100%;
  height: auto;
}
.pairing-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 17px;
}
.pairing-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #8da192;
}
.pairing-steps li > span {
  border: 1px solid #e1eae4;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #7a9e87;
  flex: none;
}
.log-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fbfa;
  border: 1px solid #e6ece8;
  border-radius: 7px;
  padding: 0 11px;
  flex: 1;
  max-width: 380px;
}
.search-input .icon {
  width: 16px;
  height: 16px;
  color: #9eafa4;
}
.search-input input {
  background: none;
  border: 0;
  outline: none !important;
  padding: 10px 0;
  font-size: 11px;
}
.search-input:focus-within {
  outline: 2px solid #b2d9cb;
}
.level-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #a1afa6;
}
.level-filter select {
  font-size: 11px;
  padding: 9px 12px;
}
#logCount {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
}
.log-table-wrap {
  max-height: 650px;
  overflow: auto;
}
.log-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.log-table th {
  background: #fbfcfc;
  color: #9aaba0;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 24px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
}
.log-table td {
  padding: 17px 24px;
  vertical-align: top;
  color: #789180;
  border-bottom: 1px solid #f0f4f1;
  line-height: 1.8;
}
.log-table td:first-child {
  color: #a1afa6;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  width: 160px;
}
.log-table td:nth-child(2) {
  width: 95px;
}
.log-table td:last-child {
  overflow-wrap: anywhere;
  max-width: 650px;
}
.level-badge {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 8px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #edf6f0;
  color: #7b9d87;
}
.level-badge.warn {
  background: #fff5e4;
  color: #bba16c;
}
.level-badge.error,
.level-badge.fatal {
  background: #fff0ed;
  color: #bf8b82;
}
.level-badge.debug,
.level-badge.trace {
  background: #f0f0f7;
  color: #9993b1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
dialog {
  width: min(490px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #e0e7e2;
  border-radius: 15px;
  box-shadow: 0 24px 100px #17332930;
  color: var(--ink);
}
dialog::backdrop {
  background: #18372c66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 21px;
  margin: 20px 0 13px;
}
dialog p {
  font-size: 12px;
  color: #91a297;
  line-height: 1.9;
}
dialog .button.danger {
  white-space: normal;
}
@media (min-width: 1600px) {
  main {
    padding-top: 43px;
  }
  .metric-card {
    padding: 23px;
  }
  .chart-wrap {
    padding-top: 23px;
  }
  .donut-wrap {
    padding-top: 34px;
    padding-bottom: 27px;
  }
  .donut {
    width: 180px;
    height: 180px;
  }
  .verification-bars {
    padding-top: 27px;
    gap: 20px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 210px;
  }
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  main {
    padding: 29px 25px 22px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-icon {
    width: 29px;
    height: 29px;
  }
  .metric-bottom {
    gap: 4px;
  }
  .metric-bottom > span {
    font-size: 8px;
  }
  .metric-bottom .metric-detail {
    display: none;
  }
  .sparkline {
    width: 45px;
  }
  .charts-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
    gap: 17px;
  }
  .panel-heading {
    padding-left: 20px;
    padding-right: 20px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .chart-legend {
    gap: 9px;
    font-size: 8px;
  }
  .insights-grid {
    gap: 17px;
  }
  .notification-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .templates-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
  }
  .template-choice {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-heading p {
    font-size: 11px;
  }
  .outcome-row {
    grid-template-columns: 100px 1fr 20px;
  }
}
@media (max-width: 1000px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-card {
    padding: 18px 20px;
  }
  .metric-top {
    font-size: 11px;
  }
  .metric-bottom > span {
    font-size: 9px;
  }
  .sparkline {
    width: 80px;
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .mix-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .mix-panel .panel-heading {
    grid-column: 1/-1;
  }
  .mix-legend {
    padding: 20px 25px;
  }
  .donut-wrap {
    padding: 22px;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .notification-layout {
    grid-template-columns: 1fr;
  }
  .notification-aside {
    display: none;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions .button {
    font-size: 0;
    gap: 0;
    padding: 10px 12px;
  }
  .heading-actions .button .icon {
    width: 17px;
    height: 17px;
  }
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .templates-layout {
    grid-template-columns: 1fr;
  }
  .template-list-heading {
    padding-bottom: 12px;
  }
  #templateList {
    display: flex;
    overflow: auto;
    padding: 0 12px 12px;
    gap: 8px;
  }
  .template-choice {
    width: auto;
    min-width: 160px;
    border: 1px solid #edf1ee;
    border-radius: 7px;
    padding: 10px;
  }
  .template-choice.active {
    border: 1px solid #b7d4c2;
    padding: 10px;
  }
  .template-choice.active::after {
    display: none;
  }
  .template-choice .metric-icon {
    display: none;
  }
  .template-choice small {
    white-space: nowrap;
  }
  .template-list-heading span {
    margin-right: auto;
    margin-left: 10px;
  }
  .login-story {
    padding: 35px;
  }
  .login-copy h1 {
    font-size: 46px;
  }
  .login-form-wrap {
    padding: 35px;
  }
  .login-visual {
    height: 210px;
  }
  .node-a {
    left: 3%;
  }
  .node-b {
    right: 3%;
  }
  .node-c {
    left: 18%;
  }
  .log-toolbar {
    flex-wrap: wrap;
  }
  .search-input {
    max-width: none;
    flex-basis: 100%;
  }
  .level-filter {
    margin-top: 2px;
  }
  .log-table td,
  .log-table th {
    padding-left: 17px;
    padding-right: 17px;
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 236px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace-main {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-grid;
  }
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .breadcrumb {
    gap: 10px;
    font-size: 10px;
  }
  .breadcrumb > span:first-of-type {
    display: none;
  }
  .breadcrumb-slash {
    display: none;
  }
  .topbar-right {
    gap: 13px;
  }
  .topbar-divider {
    display: none;
  }
  .profile-avatar {
    width: 27px;
    height: 27px;
  }
  .status-badge {
    font-size: 9px;
    padding: 5px 8px;
  }
  main {
    padding: 25px 19px 20px;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  .page-heading {
    gap: 14px;
    margin-bottom: 23px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 280px;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 10px;
    gap: 6px;
  }
  .page-heading > .button .icon {
    width: 14px;
    height: 14px;
  }
  .overview-toolbar {
    margin-bottom: 20px;
  }
  .live-caption {
    font-size: 9px;
  }
  .range-control button {
    padding: 7px 10px;
    font-size: 9px;
  }
  .metrics-grid {
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric-card {
    padding: 15px 16px;
  }
  .metric-value {
    font-size: 29px;
    margin: 11px 0;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
  .metric-icon .icon {
    width: 15px;
    height: 15px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-bottom > span {
    font-size: 8px;
  }
  .sparkline {
    width: 43px;
  }
  .charts-grid,
  .insights-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .panel-heading {
    padding: 20px 19px 0;
  }
  .panel-heading p {
    font-size: 10px;
    margin-top: 6px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .chart-wrap {
    min-height: 180px;
    padding: 13px 10px 0;
  }
  .chart-legend {
    font-size: 8px;
  }
  .chart-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .recent-logs {
    padding-left: 19px;
    padding-right: 19px;
  }
  .recent-log > span:nth-child(2) {
    font-size: 9px;
  }
  .recent-log time {
    font-size: 8px;
  }
  .notice {
    padding: 12px 14px;
    font-size: 10px;
    align-items: flex-start;
  }
  .notice.info strong {
    display: block;
    margin-bottom: 2px;
  }
  .notice .icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
  }
  .editor-panel textarea {
    font-size: 13px;
    padding: 20px;
    min-height: 220px;
  }
  .editor-footer {
    padding: 13px 18px;
    font-size: 9px;
  }
  .editor-footer > span:first-child {
    max-width: 170px;
    line-height: 1.7;
  }
  .preview-conversation {
    padding: 23px;
  }
  .message-bubble {
    max-width: 95%;
  }
  .connection-panel {
    padding: 30px 23px;
  }
  .pairing-panel {
    padding: 25px;
  }
  .notification-option {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 11px;
  }
  .form-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .notification-credentials .panel-heading h2 {
    font-size: 15px;
  }
  .log-table td,
  .log-table th {
    padding: 13px 15px;
  }
  .log-table td:first-child {
    white-space: normal;
    width: 90px;
    font-size: 9px;
  }
  .log-table td:nth-child(2) {
    width: 65px;
  }
  .log-table td:last-child {
    font-size: 10px;
    min-width: 140px;
  }
  .log-toolbar {
    padding: 15px;
    gap: 12px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
    padding: 35px;
  }
  .login-form:before {
    content: "yavoy.";
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -1.7px;
    color: var(--green);
    margin-bottom: 55px;
  }
  .login-lock {
    display: none;
  }
  .login-form h2 {
    font-size: 27px;
  }
  .login-form .eyebrow {
    font-size: 9px;
  }
  .page-footer {
    font-size: 8px;
  }
  .health-panel > .text-button {
    margin-bottom: 20px;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions .button {
    width: 100%;
  }
}
@media (max-width: 400px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .metric-card {
    padding: 13px;
  }
  .metric-top {
    font-size: 9px;
    gap: 4px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metric-bottom .sparkline {
    width: 35px;
  }
  .metric-bottom > span {
    font-size: 7px;
  }
  .range-control button {
    padding: 7px 8px;
  }
  .live-caption {
    font-size: 8px;
  }
  .chart-legend {
    gap: 7px;
  }
  .chart-legend .legend-dot {
    width: 5px;
    height: 5px;
  }
  .panel-heading {
    gap: 9px;
  }
  .overview-toolbar {
    gap: 7px;
  }
  .outcome-row {
    grid-template-columns: 95px 1fr 20px;
    gap: 8px;
  }
  .message-bubble p {
    font-size: 11px;
  }
  .editor-footer {
    font-size: 8px;
  }
  .mix-legend {
    padding-left: 10px;
    padding-right: 18px;
  }
  .donut {
    width: 135px;
    height: 135px;
    padding: 12px;
  }
  .donut-center strong {
    font-size: 26px;
  }
  .donut-wrap {
    padding: 20px 10px;
  }
  .notification-option .switch {
    margin-left: 4px;
  }
}
/* Quiet dark surfaces, with restrained color reserved for meaningful signals. */
.brand-icon {
  background: #1f745d;
  color: #ccf5e6;
}
.button.primary {
  background: #24886e;
  color: #f1fff9;
}
.button.primary:hover:not(:disabled) {
  background: #2e9c7e;
}
.button.secondary,
.icon-button.bordered {
  background: #1a242c;
  border-color: #33424e;
  color: #c0cfd7;
}
.button.secondary:hover:not(:disabled) {
  background: #22322e;
  border-color: #426556;
}
.icon-button {
  color: #9aadb8;
}
.soft-tag {
  background: #1d2830;
  border-color: #2c3b44;
  color: #9cadb6;
}
.notice.info {
  background: #172c26;
  border-color: #27483a;
  color: #a0c3b0;
}
.notice.warning {
  background: #302a1b;
  border-color: #4e4227;
  color: #c8b783;
}
.notice.error,
.feedback.error {
  background: #342021;
  border-color: #533237;
  color: #e4a6a2;
}
.notice.demo {
  background: #192532;
  border-color: #2b3d50;
  color: #8da7bf;
}
.metric-icon.green {
  background: #1a352b;
  color: #78c8a4;
}
.metric-icon.blue {
  background: #1d3043;
  color: #88b1d5;
}
.metric-icon.amber {
  background: #342f20;
  color: #cdb680;
}
.metric-icon.violet {
  background: #2d2941;
  color: #b0a1d6;
}
.metric-icon.red {
  background: #38272b;
  color: #d49991;
}
.sidebar {
  background: #11191f;
}
.workspace-switch {
  border-color: #29363d;
  background: #161f26;
}
.workspace-avatar {
  background: #20352d;
  border-color: #345141;
  color: #8bbaa1;
}
.workspace-switch strong {
  color: #c7d7cf;
}
.workspace-switch small {
  color: #83988c;
}
.workspace-chevron {
  color: #91a69a;
}
.nav-label {
  color: #758b98;
}
.nav-item {
  color: #94a8b4;
}
.nav-item:hover {
  background: #1b282d;
  color: #c5dbcf;
}
.nav-item.active {
  background: #1b322c;
  color: #8cd4b6;
}
.nav-count {
  background: #26353e;
  color: #95a7b3;
}
.nav-item.active .nav-count {
  background: #2a483c;
  color: #a0c8ae;
}
.sidebar-note {
  background: #161f26;
  border-color: #2a3740;
}
.sidebar-note strong {
  color: #b0c4ba;
}
.sidebar-note p {
  color: #80998b;
}
.sidebar-version {
  color: #71818b;
}
.topbar {
  background: #11191f;
}
.breadcrumb {
  color: #8398a5;
}
.breadcrumb strong {
  color: #c4d0d7;
}
.breadcrumb-slash {
  color: #52646f;
}
.topbar-divider {
  background: #31404a;
}
.profile-avatar {
  background: #304139;
  color: #b9d5c2;
  border-color: #17221c;
  outline-color: #3b5243;
}
.status-badge {
  background: #182e24;
  border-color: #2f4c3b;
  color: #91c9a4;
}
.status-badge.offline {
  background: #302a1e;
  border-color: #4a402c;
  color: #ccb58c;
}
.status-badge.error {
  background: #332225;
  border-color: #523239;
  color: #dda6a2;
}
.live-caption {
  color: #8c9fab;
}
.range-control {
  background: #151f27;
  border-color: #2c3c47;
}
.range-control button {
  color: #8ea2af;
}
.range-control button.active {
  background: #2a3c42;
  color: #d0e1dc;
  box-shadow: 0 1px 4px #0002;
}
.metric-card {
  background: var(--surface);
  border-color: var(--line);
}
.metric-top {
  color: #91a5b0;
}
.metric-bottom > span {
  color: #7f96a2;
}
.metric-bottom .metric-detail {
  color: #78928d;
}
.panel-heading p {
  color: #8499a4;
}
.chart-legend {
  color: #91a6b0;
}
#activityChart text {
  fill: #7b94a4;
}
#activityChart line {
  stroke: #2b3943;
}
.chart-footer {
  color: #8297a4;
}
.chart-footer summary {
  color: #9bb8ac;
}
.chart-empty {
  color: #a1b7ad;
}
.chart-empty small {
  color: #7e968b;
}
.chart-tooltip {
  background: #2f4940;
  border: 1px solid #456457;
  color: #e0eee6;
}
.donut-center {
  background: var(--surface);
}
.donut-center span {
  color: #8da29a;
}
.mix-row {
  color: #a0b3bb;
}
.mix-row strong {
  color: #d0ddd7;
}
.mix-row .mix-percent {
  color: #82968c;
}
.outcome-row {
  color: #9eb3aa;
}
.bar-track {
  background: #26342d;
}
.outcome-row strong {
  color: #b0c5b7;
}
.inline-note {
  border-color: #2b383f;
  color: #819b8b;
}
.health-orb {
  background: radial-gradient(circle, #547060 0 25%, #1c2b23 30% 100%);
}
.health-orb.connected {
  background: radial-gradient(
    circle,
    #74c996 0 23%,
    #294b36 30% 52%,
    #1b3024 56%
  );
}
.health-stats > div {
  color: #8fa699;
}
.health-stats strong {
  color: #bdd3c3;
}
.recent-log {
  border-color: #26363a;
}
.event-dot {
  background: #1c3027;
  border-color: #304b3b;
  color: #89b899;
}
.recent-log > span:nth-child(2) {
  color: #a9beb2;
}
.recent-log time,
.page-footer {
  color: #7b929e;
}
.empty-state {
  color: #8ca39c;
}
.template-list-heading {
  color: #92aa9d;
}
.template-list-heading span {
  background: #243d2e;
  color: #9abda4;
}
.template-choice {
  background: var(--surface);
  border-color: #26363e;
  color: #a2b7aa;
}
.template-choice:hover {
  background: #1c2d26;
}
.template-choice.active {
  background: #1c3229;
  color: #b5ddc2;
  border-color: #477858;
}
.template-choice small {
  color: #7f9a8b;
}
.template-choice.active::after {
  color: #91bd9d;
}
.editor-panel textarea {
  color: #c3d8cb;
  background: #131d22;
  border-color: #2a3b40;
}
.editor-footer {
  background: #162228;
  border-color: #293b41;
  color: #91a99a;
}
.message-preview {
  border-color: #2e4238;
}
.preview-header {
  background: #18271f;
  border-color: #2e4238;
}
.preview-avatar {
  background: #2a4632;
  color: #9ac4a5;
}
.preview-header strong {
  color: #c4dcc9;
}
.preview-header small {
  color: #859e8c;
}
.preview-header .soft-tag {
  background: #203429;
}
.preview-conversation {
  background-color: #111e18;
  background-image: radial-gradient(#385a413d 0.7px, transparent 0.7px);
}
.message-bubble {
  background: #214531;
  border-color: #325b40;
  box-shadow: 0 2px 8px #0001;
}
.message-bubble p {
  color: #c0d9bf;
}
.bubble-meta {
  color: #8faf8b;
}
label {
  color: #acbfb3;
}
input,
textarea,
select {
  background: #111b22;
  border-color: #34453d;
  color: #ceded3;
}
input::placeholder,
textarea::placeholder {
  color: #71897a;
}
input:focus,
textarea:focus,
select:focus {
  outline-color: #426550;
}
.notification-option {
  color: #aec5b4;
  border-color: #293b32;
}
.notification-option small {
  color: #819e8b;
}
.switch > span {
  background: #3c5044;
}
.switch > span::after {
  background: #b4cabb;
}
.switch input:checked + span {
  background: #3d8f61;
}
.notification-aside .inline-note {
  border-color: #304238;
}
.connection-art {
  background: #254c35;
  border-color: #192c22;
  color: #9ac5a5;
}
.connection-details > div {
  border-color: #2e4136;
}
.connection-details dt {
  color: #95ad9c;
}
.connection-details dd {
  color: #c3d7c7;
}
.no-qr {
  background: #17261e;
  border-color: #37523e;
}
.no-qr .icon {
  color: #85b493;
}
.no-qr strong {
  color: #abc9b2;
}
.no-qr span {
  color: #839f8b;
}
.pairing-steps li {
  color: #a7bcab;
}
.pairing-steps li > span {
  border-color: #3c5142;
  color: #9bbca5;
}
.qr-box {
  background: white;
  border-color: #3b5442;
}
.search-input {
  background: #15251d;
  border-color: #2d4535;
}
.search-input .icon {
  color: #8caa97;
}
.level-filter {
  color: #8fab96;
}
.log-table th {
  background: #18251e;
  color: #99b29f;
  border-color: #304538;
}
.log-table td {
  color: #a4c0ac;
  border-color: #283c2f;
}
.log-table td:first-child {
  color: #89a791;
}
.level-badge {
  background: #284a34;
  color: #a2c7ae;
}
.level-badge.warn {
  background: #403721;
  color: #cabb8b;
}
.level-badge.error,
.level-badge.fatal {
  background: #422b2c;
  color: #d3a29d;
}
.level-badge.debug,
.level-badge.trace {
  background: #332f47;
  color: #b7acd0;
}
dialog {
  background: #18241e;
  border-color: #3b5241;
  color: #d9e7dc;
}
dialog p {
  color: #9bb7a4;
}
.minimal-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0e1419;
}
.minimal-login-form {
  width: min(100%, 340px);
  padding: 27px;
  display: grid;
  gap: 16px;
  background: #151d23;
  border: 1px solid #2b3942;
  border-radius: 12px;
  box-shadow: 0 12px 50px #0002;
}
.minimal-login-form label {
  font-size: 12px;
  color: #a6b7c0;
  gap: 10px;
}
.minimal-login-form input {
  background: #11191f;
  border-color: #34434b;
  color: #e1e9ed;
  padding: 12px;
}
.minimal-login-form input::placeholder {
  color: #687c89;
}
.minimal-login-form .button {
  width: 100%;
}
.minimal-login-form .feedback:empty {
  display: none;
}
.minimal-login-form .feedback {
  margin: 0;
  font-size: 11px;
}
.analytics-selectors {
  display: flex;
  align-items: center;
  gap: 14px;
}
.analytics-selectors label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #8fa7b5;
  font-weight: 400;
}
.analytics-selectors select {
  padding: 8px 30px 8px 11px;
  font-size: 11px;
  min-height: 35px;
  background: #17232b;
  border-color: #334650;
  color: #bbced8;
  border-radius: 7px;
  cursor: pointer;
}
.analytics-selectors select:focus {
  outline: 2px solid #416e5b;
}
@media (max-width: 760px) {
  .overview-toolbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  .analytics-selectors {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .analytics-selectors label {
    font-size: 9px;
    gap: 7px;
  }
  .analytics-selectors select {
    font-size: 10px;
    padding-right: 20px;
  }
}
.log-table td.log-phone {
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #a9c2b5;
}
.log-table td:nth-child(3) {
  width: 145px;
}
.log-table td:nth-child(4) {
  width: 110px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 500;
}
.result-badge.success {
  background: #1c382a;
  border-color: #2d533c;
  color: #9bc5a6;
}
.result-badge.failure {
  background: #3b2428;
  border-color: #53333a;
  color: #d3a1a2;
}
.result-badge.warning {
  background: #322c1e;
  border-color: #4b4027;
  color: #c7b585;
}
.result-badge.neutral {
  background: #24323c;
  border-color: #30414c;
  color: #8ea9b9;
}
@media (max-width: 1000px) {
  .log-table {
    min-width: 700px;
  }
}
/* Operational monitoring */
.compact-value {
  font-size: 25px !important;
  letter-spacing: -0.6px;
}
.diagnostic-issues .notice p {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.8;
}
.diagnostic-latency {
  margin-bottom: 22px;
}
.diagnostic-latency .chart-wrap {
  padding: 15px 24px 0;
  min-height: 190px;
}
#latencyChart {
  width: 100%;
  display: block;
}
#latencyChart text {
  fill: #849aa8;
  font-family: inherit;
  font-size: 10px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.ops-details {
  margin: 18px 24px 23px;
  display: grid;
  gap: 0;
}
.ops-details > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.ops-details dt {
  color: #8fa6b3;
}
.ops-details dd {
  margin: 0;
  color: #c0d0d6;
  overflow-wrap: anywhere;
  text-align: right;
}
.ops-details > div:last-child {
  border: 0;
}
.storage-checks {
  display: grid;
  padding: 15px 24px 23px;
}
.storage-checks > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.storage-checks > div:last-child {
  border: 0;
}
.storage-checks span {
  color: #92a9b6;
  overflow-wrap: anywhere;
}
.storage-checks strong {
  color: #b1c9bc;
  font-weight: 500;
  text-align: right;
  font-size: 10px;
}
.diagnostic-section {
  margin-bottom: 22px;
}
.diagnostic-section > .panel-heading {
  padding-bottom: 20px;
}
.diagnostic-section .heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.diagnostic-section .heading-actions .button {
  font-size: 11px;
}
.backup-feedback {
  padding: 0 24px 20px;
  margin-top: 0 !important;
}
.phone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.phone-chip {
  border: 1px solid #344b42;
  border-radius: 5px;
  background: #1c3028;
  color: #a6c6b4;
  font-size: 10px;
  white-space: nowrap;
  padding: 4px 7px;
}
.phone-chip:hover {
  background: #2a4637;
}
.errors-table td:nth-child(2) {
  width: 290px;
}
.errors-table td:nth-child(3) {
  width: 70px;
}
.errors-table td:nth-child(4) {
  width: auto;
}
.delivery-table {
  min-width: 880px;
}
.delivery-table td:nth-child(2) {
  width: 140px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.delivery-table td:nth-child(3) {
  width: 100px;
}
.delivery-table td:nth-child(4) {
  width: 115px;
}
.delivery-table td:nth-child(5) {
  width: 90px;
  text-align: center;
}
.delivery-table td:last-child {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  max-width: 270px;
  overflow-wrap: anywhere;
}
.import-changes {
  white-space: pre-line;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #a8c6b3;
  font-size: 11px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
}
.sidebar-bottom {
  flex: none;
}
@media (max-width: 1200px) {
  .ops-details > div {
    grid-template-columns: 115px 1fr;
    gap: 10px;
  }
  .storage-checks {
    padding-left: 20px;
    padding-right: 20px;
  }
  .storage-checks > div {
    font-size: 9px;
  }
  .storage-checks strong {
    font-size: 9px;
  }
}
@media (max-width: 1000px) {
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .diagnostic-section > .panel-heading {
    flex-wrap: wrap;
  }
  .diagnostic-section .heading-actions {
    justify-content: flex-start;
  }
  .ops-details > div {
    grid-template-columns: 145px 1fr;
  }
}
@media (max-width: 760px) {
  .diagnostic-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .diagnostic-section {
    margin-bottom: 18px;
  }
  .diagnostic-latency .panel-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .diagnostic-latency .chart-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
  .ops-details {
    margin-left: 19px;
    margin-right: 19px;
  }
  .ops-details > div {
    font-size: 10px;
    grid-template-columns: 115px 1fr;
  }
  .storage-checks {
    padding-left: 19px;
    padding-right: 19px;
  }
  .storage-checks > div {
    font-size: 10px;
  }
  .storage-checks strong {
    font-size: 10px;
  }
  .diagnostic-section .heading-actions .button {
    font-size: 10px;
  }
  .diagnostic-issues .notice p {
    font-size: 10px;
  }
  .compact-value {
    font-size: 22px !important;
  }
  .errors-table {
    min-width: 680px;
  }
  .sidebar > .brand {
    margin-bottom: 30px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
}
.queue-pacing-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 24px;
  padding: 23px 24px;
  margin-bottom: 23px;
  align-items: center;
}
.queue-pacing-panel > div > .muted {
  font-size: 11px;
  margin-top: 9px;
  max-width: 510px;
}
.queue-pacing-state {
  font-size: 11px;
  color: #89c5ac;
  margin-top: 11px;
  font-variant-numeric: tabular-nums;
}
.queue-pacing-panel form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.queue-pacing-panel label {
  font-size: 10px;
  color: #9db4bd;
}
.queue-pacing-panel input {
  max-width: 145px;
  width: 145px;
}
.queue-pacing-panel .queue-pacing-note {
  grid-column: 1/-1;
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  line-height: 1.8;
}
.queue-pacing-panel .feedback {
  grid-column: 1/-1;
  margin: 0;
}
.queue-pacing-panel .feedback:empty {
  display: none;
}
@media (max-width: 1100px) {
  .queue-pacing-panel {
    grid-template-columns: 1fr;
  }
  .queue-pacing-panel form {
    justify-content: flex-start;
  }
  .queue-pacing-panel .queue-pacing-note {
    grid-column: auto;
  }
  .queue-pacing-panel .feedback {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .queue-pacing-panel {
    padding: 20px 19px;
    margin-bottom: 18px;
    gap: 17px;
  }
  .queue-pacing-panel > div > .muted {
    font-size: 10px;
  }
  .queue-pacing-state {
    font-size: 10px;
  }
  .queue-pacing-panel form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .queue-pacing-panel input {
    width: 100%;
    max-width: 100%;
  }
  .queue-pacing-panel form button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .queue-pacing-panel .queue-pacing-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
