.dashboard-head {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  padding: 72px 0 42px;
}

.dashboard-head h1 {
  margin-bottom: 0;
  font-size: clamp(36px, 6vw, 64px);
}

.auth-form {
  display: flex;
  align-items: end;
}

.analytics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.metric {
  min-width: 140px;
  padding: 16px;
  background: #1b1613;
  border: 1px solid #3b2d25;
  border-radius: 12px;
}

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

.metric strong {
  margin-top: 6px;
  font-size: 28px;
}

.metric span {
  color: #a8a29e;
  font-size: 12px;
}

.widgets {
  display: grid;
  gap: 18px;
  padding-bottom: 72px;
}

.widget-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.widget-editor h2,
.widget-editor .sitekey {
  grid-column: 1 / -1;
}

.widget-editor .sitekey {
  color: #fb923c;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.widget-editor label {
  display: grid;
}

.widget-editor select,
.widget-editor input {
  padding: 10px;
  color: #fff;
  background: #100d0b;
  border: 1px solid #4b3a30;
  border-radius: 8px;
}

.widget-editor .checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.widget-editor input[type="checkbox"] {
  width: auto;
}

.widget-editor button,
.widget-editor output {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .dashboard-head,
  .auth-form {
    align-items: stretch;
    flex-direction: column;
  }

  .widget-editor {
    grid-template-columns: 1fr;
  }

  .widget-editor h2,
  .widget-editor .sitekey,
  .widget-editor button,
  .widget-editor output {
    grid-column: auto;
  }
}
