:root {
  --atnvc-primary: #128c7e;
  --atnvc-primary-dark: #0a6b61;
  --atnvc-ink: #17212b;
  --atnvc-muted: #667085;
  --atnvc-line: #d9e1e7;
  --atnvc-panel: #ffffff;
  --atnvc-page: #edf2f4;
  --atnvc-soft: #f7fafb;
  --atnvc-own: #d8f3dc;
  --atnvc-remote: #ffffff;
  --atnvc-warn: #b7791f;
  --atnvc-danger: #b42318;
  --atnvc-radius: 8px;
}

.atnvc-app-shell,
.atnvc-download {
  color: var(--atnvc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.atnvc-app-shell * ,
.atnvc-app-shell *::before,
.atnvc-app-shell *::after,
.atnvc-download *,
.atnvc-download *::before,
.atnvc-download *::after {
  box-sizing: border-box;
}

.atnvc-boot,
.atnvc-access-box {
  align-items: center;
  background: var(--atnvc-panel);
  border: 1px solid var(--atnvc-line);
  border-radius: var(--atnvc-radius);
  display: flex;
  gap: 14px;
  margin: 24px auto;
  max-width: 720px;
  padding: 18px;
}

.atnvc-boot span,
.atnvc-access-box {
  color: var(--atnvc-muted);
}

.atnvc-boot-mark,
.atnvc-logo {
  align-items: center;
  background: var(--atnvc-primary);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  justify-content: center;
}

.atnvc-boot-mark {
  height: 42px;
  width: 42px;
}

.atnvc-frame {
  background: var(--atnvc-page);
  border: 1px solid var(--atnvc-line);
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(240px, 300px);
  height: min(820px, calc(100vh - 48px));
  min-height: 620px;
  overflow: hidden;
  width: 100%;
}

.atnvc-sidebar,
.atnvc-chat-panel,
.atnvc-inspector {
  min-width: 0;
}

.atnvc-sidebar {
  background: var(--atnvc-panel);
  border-right: 1px solid var(--atnvc-line);
  display: flex;
  flex-direction: column;
}

.atnvc-sidebar-head,
.atnvc-chat-head {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
}

.atnvc-sidebar-head {
  border-bottom: 1px solid var(--atnvc-line);
}

.atnvc-logo {
  height: 42px;
  width: 42px;
}

.atnvc-title-block {
  min-width: 0;
}

.atnvc-title-block strong,
.atnvc-title-block span,
.atnvc-chat-copy strong,
.atnvc-chat-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atnvc-title-block strong {
  font-size: 15px;
  line-height: 1.3;
}

.atnvc-title-block span,
.atnvc-chat-copy small,
.atnvc-chat-meta small,
.atnvc-transport-row small,
.atnvc-network-strip small,
.atnvc-platform-card small {
  color: var(--atnvc-muted);
  font-size: 12px;
}

.atnvc-icon-btn,
.atnvc-send-btn,
.atnvc-btn {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}

.atnvc-icon-btn {
  background: var(--atnvc-soft);
  border: 1px solid var(--atnvc-line);
  border-radius: 50%;
  color: var(--atnvc-ink);
  flex: 0 0 auto;
  font-weight: 800;
  height: 40px;
  margin-left: auto;
  width: 40px;
}

.atnvc-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.atnvc-head-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.atnvc-network-strip {
  align-items: center;
  background: #f0f7f6;
  border-bottom: 1px solid var(--atnvc-line);
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 10px minmax(0, auto);
  padding: 10px 16px;
}

.atnvc-network-strip small {
  grid-column: 2;
}

.atnvc-status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.atnvc-status-dot.is-online {
  background: #168a55;
}

.atnvc-status-dot.is-offline {
  background: var(--atnvc-danger);
}

.atnvc-status-dot.is-muted {
  background: #98a2b3;
}

.atnvc-search {
  border-bottom: 1px solid var(--atnvc-line);
  display: block;
  padding: 12px 16px;
}

.atnvc-search span {
  display: none;
}

.atnvc-search input {
  background: var(--atnvc-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 40px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.atnvc-search input:focus {
  border-color: var(--atnvc-primary);
}

.atnvc-chat-list {
  overflow: auto;
  padding: 6px;
}

.atnvc-chat-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--atnvc-radius);
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.atnvc-chat-item:hover,
.atnvc-chat-item.is-active {
  background: #eef7f6;
}

.atnvc-avatar {
  align-items: center;
  background: #d5ece8;
  border-radius: 50%;
  color: #0a5b53;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.atnvc-chat-copy {
  min-width: 0;
}

.atnvc-chat-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.atnvc-chat-meta b {
  align-items: center;
  background: var(--atnvc-primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

.atnvc-chat-panel {
  background: #efe7dc;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.atnvc-chat-head {
  background: var(--atnvc-panel);
  border-bottom: 1px solid var(--atnvc-line);
}

.atnvc-message-list {
  overflow: auto;
  padding: 18px min(5vw, 44px);
}

.atnvc-message {
  display: flex;
  margin: 8px 0;
}

.atnvc-message.is-own {
  justify-content: flex-end;
}

.atnvc-bubble {
  background: var(--atnvc-remote);
  border: 1px solid rgba(23, 33, 43, 0.06);
  border-radius: var(--atnvc-radius);
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04);
  max-width: min(78%, 620px);
  padding: 8px 10px 6px;
}

.atnvc-message.is-own .atnvc-bubble {
  background: var(--atnvc-own);
}

.atnvc-sender {
  color: var(--atnvc-primary-dark);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}

.atnvc-bubble p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

.atnvc-bubble footer {
  align-items: center;
  color: var(--atnvc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 4px;
}

.atnvc-attachment {
  background: rgba(18, 140, 126, 0.11);
  border: 1px solid rgba(18, 140, 126, 0.22);
  border-radius: 6px;
  display: block;
  font-size: 12px;
  margin-top: 8px;
  overflow-wrap: anywhere;
  padding: 6px 8px;
}

.atnvc-composer {
  align-items: flex-end;
  background: var(--atnvc-panel);
  border-top: 1px solid var(--atnvc-line);
  display: grid;
  gap: 10px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.atnvc-composer .atnvc-icon-btn {
  margin-left: 0;
}

.atnvc-composer textarea {
  border: 1px solid var(--atnvc-line);
  border-radius: 20px;
  font: inherit;
  max-height: 140px;
  min-height: 40px;
  outline: none;
  padding: 9px 14px;
  resize: none;
  width: 100%;
}

.atnvc-composer textarea:focus {
  border-color: var(--atnvc-primary);
}

.atnvc-send-btn,
.atnvc-btn-primary {
  background: var(--atnvc-primary);
  color: #fff;
}

.atnvc-btn-disabled {
  background: #d0d5dd;
  color: #475467;
  cursor: not-allowed;
}

.atnvc-send-btn {
  border-radius: 20px;
  font-weight: 700;
  padding: 0 18px;
}

.atnvc-hidden-file {
  display: none;
}

.atnvc-inspector {
  background: #fbfcfd;
  border-left: 1px solid var(--atnvc-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 12px;
}

.atnvc-panel {
  background: var(--atnvc-panel);
  border: 1px solid var(--atnvc-line);
  border-radius: var(--atnvc-radius);
  padding: 14px;
}

.atnvc-panel h2 {
  font-size: 13px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

.atnvc-transport-row {
  align-items: center;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 10px minmax(0, 1fr);
}

.atnvc-transport-row small {
  grid-column: 2;
}

.atnvc-queue-meter {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.atnvc-queue-meter strong {
  font-size: 30px;
}

.atnvc-btn {
  border-radius: var(--atnvc-radius);
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
}

.atnvc-pill {
  background: #eef7f6;
  border: 1px solid #cae2de;
  border-radius: 999px;
  color: #0a5b53;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.atnvc-account-panel p {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

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

.atnvc-empty-chat {
  background: rgba(255, 255, 255, 0.68);
  border-radius: var(--atnvc-radius);
  margin: 40px auto;
  max-width: 260px;
}

.atnvc-download {
  background: var(--atnvc-page);
  border: 1px solid var(--atnvc-line);
  padding: clamp(18px, 4vw, 42px);
}

.atnvc-download-main {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.atnvc-brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.atnvc-brand-lockup img {
  display: block;
}

.atnvc-brand-lockup h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 0 0 6px;
}

.atnvc-brand-lockup p {
  color: var(--atnvc-muted);
  margin: 0;
}

.atnvc-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.atnvc-download-actions .atnvc-btn {
  min-width: 142px;
}

.atnvc-install-status {
  color: var(--atnvc-muted);
  min-height: 20px;
}

.atnvc-download-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.atnvc-platform-card {
  background: var(--atnvc-panel);
  border: 1px solid var(--atnvc-line);
  border-radius: var(--atnvc-radius);
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  text-decoration: none;
}

.atnvc-platform-card:not(.is-disabled):hover {
  border-color: var(--atnvc-primary);
}

.atnvc-platform-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.68;
  pointer-events: none;
}

.atnvc-platform-icon {
  align-items: center;
  background: #eef7f6;
  border-radius: 6px;
  color: #0a5b53;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 48px;
}

.atnvc-platform-card strong {
  font-size: 18px;
}

.atnvc-capability-band {
  background: #17212b;
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.atnvc-capability-band div {
  background: rgba(255, 255, 255, 0.06);
  min-height: 88px;
  padding: 16px;
}

.atnvc-capability-band strong,
.atnvc-capability-band span {
  display: block;
}

.atnvc-capability-band span {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .atnvc-frame {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .atnvc-inspector {
    display: none;
  }
}

@media (max-width: 760px) {
  .atnvc-frame {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 720px;
  }

  .atnvc-sidebar {
    border-bottom: 1px solid var(--atnvc-line);
    border-right: 0;
    max-height: 320px;
  }

  .atnvc-chat-panel {
    min-height: 560px;
  }

  .atnvc-message-list {
    padding: 14px 12px;
  }

  .atnvc-bubble {
    max-width: 88%;
  }

  .atnvc-composer {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .atnvc-send-btn {
    grid-column: 2;
    justify-self: end;
    min-width: 92px;
  }

  .atnvc-download-main,
  .atnvc-brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .atnvc-download-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .atnvc-download-grid,
  .atnvc-capability-band {
    grid-template-columns: 1fr;
  }
}
