.phxai-app {
  width: min(980px, calc(100vw - 24px));
  margin: 0 auto;
  color: #172033;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.phxai-app * {
  box-sizing: border-box;
}

.phxai-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #063b44, #0f766e 54%, #f97316);
  border-radius: 8px;
}

.phxai-top span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.phxai-top h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.phxai-account {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.phxai-account strong {
  line-height: 1.1;
}

.phxai-account a {
  color: #fff;
  font-weight: 900;
}

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

.phxai-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid #dcefe7;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .08);
}

.phxai-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.phxai-panel form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.phxai-login-panel form {
  grid-template-columns: 1fr;
}

.phxai-login-panel .login-remember label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.phxai-login-panel input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.phxai-login-panel .button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: #0f766e;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
}

.phxai-panel label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  line-height: 1.2;
}

.phxai-panel input,
.phxai-panel select,
.phxai-panel textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

.phxai-panel textarea {
  min-height: 104px;
}

.phxai-wide {
  grid-column: 1 / -1;
}

.phxai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.phxai-btn-primary {
  grid-column: 1 / -1;
  color: #fff;
  background: #0f766e;
  border-color: #0f766e;
}

.phxai-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.phxai-alert-success {
  color: #065f46;
  background: #d1fae5;
}

.phxai-alert-error {
  color: #991b1b;
  background: #fee2e2;
}

.phxai-list,
.phxai-requests {
  display: grid;
  gap: 10px;
}

.phxai-list article,
.phxai-requests article {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.phxai-list strong,
.phxai-list span,
.phxai-list small,
.phxai-list em,
.phxai-request-copy strong,
.phxai-request-copy span,
.phxai-request-copy small {
  display: block;
  line-height: 1.25;
}

.phxai-list span,
.phxai-request-copy span {
  color: #0f766e;
  font-weight: 900;
}

.phxai-list small,
.phxai-request-copy small {
  margin-top: 4px;
  color: #64748b;
}

.phxai-list em {
  margin-top: 6px;
  padding: 8px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  font-style: normal;
  font-weight: 800;
}

.phxai-requests article {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
  align-items: start;
}

.phxai-requests form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 820px) {
  .phxai-app {
    width: min(100%, calc(100vw - 16px));
  }

  .phxai-grid,
  .phxai-panel form,
  .phxai-requests article {
    grid-template-columns: 1fr;
  }

  .phxai-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .phxai-account {
    justify-items: start;
    text-align: left;
  }
}
