:root {
  color-scheme: dark;
  --bg: #07101f;
  --panel: rgba(14, 27, 48, 0.88);
  --panel-strong: #111f36;
  --border: rgba(147, 177, 224, 0.16);
  --text: #f5f8ff;
  --muted: #92a3bd;
  --blue: #4d8dff;
  --green: #39d98a;
  --yellow: #f8c24e;
  --red: #ff667a;
  --sidebar: #081322;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 0%, rgba(42, 97, 188, 0.24), transparent 35%),
    linear-gradient(180deg, #07101f, #050b15);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  background: rgba(5, 14, 26, 0.94);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #67a5ff, #2864dd);
  box-shadow: 0 14px 38px rgba(36, 102, 224, 0.32);
  font-size: 20px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 7px;
  margin-top: 42px;
}

nav a {
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b4c0d3;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(77, 141, 255, 0.13);
  border-color: rgba(77, 141, 255, 0.24);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 16px currentColor;
}

main {
  width: min(1480px, 100%);
  padding: 36px 42px 70px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #76a9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
}

.logout-link {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.summary-card,
.panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(22, 41, 70, 0.86),
      rgba(9, 20, 37, 0.9)
    );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.summary-card {
  padding: 20px;
  border-radius: 16px;
}

.summary-card span,
.summary-card small {
  display: block;
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin: 9px 0 4px;
  font-size: 30px;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 18px;
}

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

.timestamp {
  color: var(--muted);
  font-size: 12px;
}

.fronts-list {
  display: grid;
  gap: 11px;
}

.front-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 17px;
  border: 1px solid rgba(147, 177, 224, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.front-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.front-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.badge {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(77, 141, 255, 0.12);
  color: #9fc1ff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.completed {
  background: rgba(57, 217, 138, 0.12);
  color: #83eab6;
}

.badge.blocked {
  background: rgba(255, 102, 122, 0.13);
  color: #ff9cab;
}

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

.metrics-grid article {
  padding: 16px;
  border: 1px solid rgba(147, 177, 224, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.metrics-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.metrics-grid strong {
  font-size: 20px;
}

.heartbeat {
  position: relative;
  overflow: hidden;
  height: 62px;
  margin-top: 18px;
  border: 1px solid rgba(57, 217, 138, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(57, 217, 138, 0.04), transparent),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 34px,
      rgba(255, 255, 255, 0.025) 35px
    );
}

.heartbeat-line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0 30%,
      rgba(57, 217, 138, 0.2) 31%,
      transparent 32% 42%,
      rgba(57, 217, 138, 0.65) 43%,
      transparent 44% 100%
    );
  animation: scan 3.6s linear infinite;
}

.heartbeat span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #71dca7;
  font-size: 11px;
}

@keyframes scan {
  from {
    transform: translateX(-55%);
  }

  to {
    transform: translateX(55%);
  }
}

.atlas-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
}

.atlas-panel p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.atlas-actions {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 14px;
  border: 1px solid rgba(77, 141, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, #367ced, #275fc4);
  color: #fff;
  cursor: pointer;
}

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

.notice {
  grid-column: 1 / -1;
  padding: 13px 14px;
  border: 1px solid rgba(248, 194, 78, 0.2);
  border-radius: 10px;
  background: rgba(248, 194, 78, 0.07);
  color: #dec98f;
  font-size: 13px;
}

.notice.error {
  margin: 14px 0;
  border-color: rgba(255, 102, 122, 0.24);
  background: rgba(255, 102, 122, 0.08);
  color: #ffb4c0;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

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

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(9, 20, 37, 0.94);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.login-card .brand-mark {
  margin-bottom: 24px;
}

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

.login-copy {
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #b8c5d9;
  font-size: 13px;
}

.login-form input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #091526;
  color: #fff;
}

.login-form input:focus {
  border-color: rgba(77, 141, 255, 0.7);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
  }

  .sidebar-footer {
    margin-top: 20px;
  }

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

  .atlas-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 660px) {
  main {
    padding: 24px 16px 50px;
  }

  nav {
    grid-template-columns: 1fr 1fr;
  }

  .summary-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .front-card {
    grid-template-columns: 1fr;
  }

  .atlas-actions {
    flex-direction: column;
  }
}

/* C3G9B46X_CENTRAL_ATLAS_UI */

.atlas-workspace {
  display: block;
}

.atlas-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.atlas-heading p {
  max-width: 760px;
}

.atlas-ready-badge {
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid rgba(248, 194, 78, 0.24);
  border-radius: 999px;
  background: rgba(248, 194, 78, 0.08);
  color: #e4cb8b;
  font-size: 11px;
  font-weight: 800;
}

.atlas-ready-badge.ready {
  border-color: rgba(57, 217, 138, 0.25);
  background: rgba(57, 217, 138, 0.09);
  color: #83eab6;
}

.atlas-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.secondary-button,
.button-link.secondary-button {
  border: 1px solid rgba(147, 177, 224, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: #c6d3e7;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.atlas-chat-grid {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.9fr)
    minmax(380px, 1.1fr);
  gap: 14px;
}

.atlas-question-box,
.atlas-response,
.next-chat-card {
  border: 1px solid rgba(147, 177, 224, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.atlas-question-box {
  padding: 17px;
}

.atlas-question-box label {
  display: block;
  margin-bottom: 9px;
  color: #c9d5e7;
  font-size: 13px;
  font-weight: 700;
}

.atlas-question-box textarea {
  width: 100%;
  min-height: 142px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid rgba(147, 177, 224, 0.17);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 13, 25, 0.72);
  color: #f5f8ff;
  line-height: 1.55;
}

.atlas-question-box textarea:focus {
  border-color: rgba(77, 141, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.1);
}

.atlas-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
}

.atlas-question-footer span {
  color: var(--muted);
  font-size: 11px;
}

.atlas-response {
  min-height: 232px;
  padding: 18px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #d9e2f0;
  font-size: 14px;
  line-height: 1.7;
}

.atlas-response-placeholder {
  color: var(--muted);
}

.atlas-response.loading {
  color: #9fc1ff;
}

.atlas-response.error {
  border-color: rgba(255, 102, 122, 0.26);
  background: rgba(255, 102, 122, 0.07);
  color: #ffb4c0;
}

.atlas-response.attention {
  border-color: rgba(248, 194, 78, 0.22);
  background: rgba(248, 194, 78, 0.06);
  color: #dec98f;
}

.next-chat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 15px;
  padding: 18px;
}

.next-chat-card h3 {
  margin: 0 0 7px;
}

.next-chat-card p {
  margin-bottom: 0;
}

.next-chat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 9px;
}

.next-chat-card .notice,
.next-chat-preview {
  grid-column: 1 / -1;
}

.next-chat-preview {
  max-height: 420px;
  margin: 0;
  padding: 17px;
  overflow: auto;
  border: 1px solid rgba(147, 177, 224, 0.14);
  border-radius: 11px;
  background: rgba(3, 10, 20, 0.78);
  color: #cbd7e8;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .atlas-chat-grid {
    grid-template-columns: 1fr;
  }

  .next-chat-card {
    grid-template-columns: 1fr;
  }

  .next-chat-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .atlas-heading {
    flex-direction: column;
  }

  .atlas-question-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .atlas-question-footer button,
  .next-chat-actions button,
  .next-chat-actions .button-link {
    width: 100%;
  }
}


/* C3G9B47J_REAL_TELEMETRY_HEARTBEAT */
.telemetry-heartbeat-svg {
  display: block;
  width: 100%;
  height: 72px;
  overflow: visible;
}

.telemetry-heartbeat-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.heartbeat[data-state="live"] {
  opacity: 1;
}

.heartbeat[data-state="waiting"] {
  opacity: 0.55;
}
