* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #080b10;
  color: #f5f7fa;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}

.shell {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 42px 0 70px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .18em;
}

.subtitle {
  margin-top: 4px;
  color: #7f8998;
  font-size: 13px;
}

.status {
  font-size: 13px;
  color: #aeb7c4;
  display: flex;
  gap: 9px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57e89a;
  box-shadow: 0 0 15px #57e89a;
}

.hero {
  padding: 36px;
  border: 1px solid #202733;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      #121823,
      #0d1118
    );
}

.eyebrow {
  color: #78879c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

h1 {
  max-width: 780px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  margin: 16px 0 12px;
}

#priority-meta {
  color: #929dad;
}

.score-row {
  display: flex;
  gap: 55px;
  margin-top: 35px;
}

.score-row span {
  display: block;
  color: #727d8d;
  font-size: 12px;
}

.score-row strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  min-height: 210px;
  padding: 26px;
  border-radius: 20px;
  background: #0e131b;
  border: 1px solid #1d2531;
}

.card h2 {
  margin: 0 0 20px;
  font-size: 15px;
}

.item {
  padding: 13px 0;
  border-top: 1px solid #1a212b;
}

.item:first-child {
  border-top: 0;
}

.item-title {
  font-weight: 600;
}

.item-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #778292;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}

.metric span {
  color: #818c9b;
}

.voice-panel {
  text-align: center;
  padding-top: 40px;
}

#voice-button {
  border: 1px solid #303a48;
  border-radius: 999px;
  background: #171e29;
  color: #8994a3;
  padding: 17px 28px;
  font-weight: 700;
  font-size: 15px;
}

.mic {
  margin-right: 8px;
}

.voice-panel p {
  color: #687382;
  font-size: 12px;
}

.error {
  color: #ff8b8b;
}

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

  header {
    align-items: flex-start;
  }

  .status {
    font-size: 11px;
  }

  .hero {
    padding: 25px;
  }
}


#install-button {
  margin-top: 14px;
  border: 1px solid #57e89a;
  border-radius: 999px;
  background: transparent;
  color: #57e89a;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
}


@media (max-width: 720px) {

  .shell {
    width: 94%;
    padding-top: 24px;
  }

  .score-row {
    gap: 24px;
  }

  .voice-panel {
    position: sticky;
    bottom: 0;
    padding: 18px 0 24px;
    background:
      linear-gradient(
        transparent,
        #080b10 28%
      );
  }

  #voice-button {
    width: 100%;
    min-height: 56px;
  }

}


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


.auth-card {
  width: min(430px, 100%);
  padding: 36px;
  border: 1px solid #202733;
  border-radius: 24px;
  background: #0e131b;
}


.auth-card h1 {
  font-size: 34px;
  margin-bottom: 10px;
}


.auth-card p {
  color: #818c9b;
  margin-bottom: 28px;
}


.auth-card input {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 12px;

  border-radius: 12px;
  border: 1px solid #273140;

  background: #080b10;
  color: white;

  font-size: 15px;
}


.auth-card button {
  width: 100%;
  padding: 15px;
  margin-top: 8px;

  border: 0;
  border-radius: 12px;

  background: #57e89a;
  color: #07110b;

  font-weight: 800;
  cursor: pointer;
}


.auth-card .secondary-button {
  background: #171e29;
  color: #dce3ec;
}


#auth-message {
  min-height: 24px;
  margin-top: 15px;
  color: #ff9292;
  font-size: 13px;
}


.chat-panel {
  margin-bottom: 18px;
  padding: 28px;

  border: 1px solid #202733;
  border-radius: 24px;

  background: #0e131b;
}


.chat-heading h2 {
  margin: 8px 0 22px;
  font-size: 25px;
}


.chat-messages {
  min-height: 180px;
  max-height: 420px;

  overflow-y: auto;

  padding: 10px 0 20px;
}


.chat-message {
  display: flex;
  margin: 12px 0;
}


.chat-message.user {
  justify-content: flex-end;
}


.chat-message.assistant {
  justify-content: flex-start;
}


.chat-bubble {
  max-width: min(
    76%,
    700px
  );

  padding: 13px 16px;

  line-height: 1.45;

  border-radius: 17px;

  white-space: pre-wrap;
}


.chat-message.user
.chat-bubble {
  background: #57e89a;
  color: #07110b;
}


.chat-message.assistant
.chat-bubble {
  background: #171e29;
  color: #e8edf4;
}


.chat-compose {
  display: flex;
  gap: 10px;

  padding-top: 15px;

  border-top:
    1px solid #202733;
}


.chat-compose textarea {
  flex: 1;

  resize: none;

  min-height: 48px;
  max-height: 140px;

  padding: 13px 15px;

  border-radius: 15px;
  border: 1px solid #293342;

  background: #080b10;
  color: white;

  font: inherit;
}


#send-button {
  width: 48px;
  height: 48px;

  border: 0;
  border-radius: 50%;

  background: #57e89a;
  color: #07110b;

  font-size: 20px;
  font-weight: 900;

  cursor: pointer;
}


@media (max-width: 720px) {

  .chat-panel {
    padding: 20px;
  }

  .chat-messages {
    max-height: 52vh;
  }

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

}


.action-card-container {
  margin-top: 16px;
}


.action-card {
  padding: 18px;

  border:
    1px solid #57e89a;

  border-radius: 18px;

  background:
    rgba(87, 232, 154, 0.06);
}


.action-card-label {
  margin-bottom: 8px;

  color: #57e89a;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.14em;
}


.action-card-summary {
  font-size: 16px;
  font-weight: 700;

  line-height: 1.4;
}


.action-card-note {
  margin-top: 7px;

  color: #8793a3;

  font-size: 13px;
}


.action-card-buttons {
  display: flex;
  gap: 10px;

  margin-top: 16px;
}


.action-card-buttons button {
  flex: 1;

  min-height: 44px;

  border-radius: 12px;

  font-weight: 800;

  cursor: pointer;
}


.action-confirm {
  border: 0;

  background: #57e89a;
  color: #07110b;
}


.action-cancel {
  border:
    1px solid #303b4a;

  background: transparent;
  color: #d9e0e9;
}


@media (max-width: 720px) {

  .action-card-buttons {
    flex-direction: column;
  }

}


/* Always respect application visibility state */
[hidden] {
  display: none !important;
}
