* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: #1b1c1f;
  background: linear-gradient(160deg, #fdfcfb 0%, #eef2f7 60%, #e5ebf4 100%);
  min-height: 100vh;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app__logo {
  background: #1b1c1f;
  color: #fdfcfb;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.app__title {
  font-size: 22px;
  font-weight: 600;
}

.app__badge {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(31, 35, 45, 0.08);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

h1,
h2 {
  margin: 0 0 16px;
}

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

.card {
  border: none;
  background: #ffffff;
  color: #1b1c1f;
  padding: 18px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(31, 35, 45, 0.12);
  border: 1px solid rgba(203, 214, 229, 0.5);
}

.card.danger {
  background: #ffe9e7;
  border-color: #ffc9c2;
  color: #aa2c20;
}

.card:hover {
  transform: translateY(-1px);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.list__item {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 18px rgba(31, 35, 45, 0.12);
  border: 1px solid rgba(203, 214, 229, 0.45);
}

.list__item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.muted {
  color: #6a7280;
}

.is-hidden {
  display: none;
}

.qr-block {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.qr-block img {
  border-radius: 12px;
  border: 1px solid #d9e2ef;
  background: #fff;
}

.back {
  background: none;
  border: none;
  color: #1b1c1f;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
}

.profile {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 20px rgba(31, 35, 45, 0.12);
  border: 1px solid rgba(203, 214, 229, 0.5);
}

.request {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d9e2ef;
  font-size: 15px;
}

.request button {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: #1b1c1f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(203, 214, 229, 0.5);
  box-shadow: 0 12px 20px rgba(31, 35, 45, 0.12);
}

.editor label {
  font-weight: 600;
  font-size: 14px;
}

.editor input,
.editor select,
.editor textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d9e2ef;
  font-size: 15px;
  font-family: inherit;
}

.editor textarea {
  resize: vertical;
}

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

.profile__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

.profile__row:last-child {
  border-bottom: none;
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .actions,
  .editor__row {
    grid-template-columns: 1fr;
  }
}
